I am having some difficulty with this proof for my Real Variables class.
I know that $f(x)$ is a continuous function defined on $R^1$, and $f(x)=x^2$ for any rational $x$. I also have the definition of $e$ to work with, where $$e=\sum \frac1{j!}$$ that I believe can be used in the proof.
I need to prove that $f(x)=x^2$ for irrational $x$ as well. I know I need to use some sort of contradiction as well. This is what I have so far:
We know that $f$ is continuous, so it is continuous for irrational numbers. So for every $\varepsilon >0$, there exists a $\delta>0$ such that $$|x^2-f(p)|<\varepsilon$$ for all points where $$|x-p|<\delta$$ (I used the distance formula for the real numbers, because that is what $f(x)$ is defined on).
Now I assume that $f(x)\ne x^2$ for an irrational $x$. If this is true, it also holds for $e$.
How do I proceed from here? I can't just say $$x^2 - (NOT p^2)<\varepsilon$$, can I? That seems much too vague to me. The follow-up questions for this problem involve series, if that affects any of the answers.
Thank you for any assistance or hints!