So I had my exam for real analysis. I'd just like to make sure if one of my answers was right or not.
I haven't seen any question like this around the internet and I've never had to do this problem in class before, so I thought of the answer on the spot. I wrote nearly a page for this answer, but here's the quick gist of it.
Proof attempt:
We know that $f(x)$ is continuous for all real numbers since it's a sum of continuous functions and a constant. So, let $x=0$. Then $f(0)=-9$. Let $x=2$. Then $f(2)=27$. So, by the intermediate value theorem, there $\exists x_0$ such that $f(x_0)=0$. So, this proves that there is at least one real root.
Since the function's variables are all even powered, it follows that $x^4$=$(-x)^4$ and $5x^2=5(-x)^2$. So, $x^4+5x^2-9=(-x)^4+5(-x)^2-9$. Hence, let $x_n=-x_0$. Then, this would also be a root.
So, there $\exists x_0$ and $x_n$, which are two real roots. This proves there are at least two real roots.
Should I have explained more about the even powered variables? Some of my friends did it by contradictions.
(BONUS) There was also another question that said something around lines of, $f(x)$ is a continuous function where $f(x_0) \gt 0$. Prove there $\exists x$ such that $x \in (x_0-\epsilon, x_0+ \epsilon)$ for some $\epsilon \gt 0$.
For this, I went the with the $\epsilon - \delta$ definition where $|x-x_0| \lt \delta$ and showed that since $|x| \lt \delta -|x_0|$, it implies $x_0-\delta \lt x \lt x_0+ \delta $. If you don't get what I'm saying, then that's fine. i feel like I did that wrong...
Let's walk through the proof, shall we?
Small detail: a constant is also a continuous function, but what you said isn't wrong.
Perfect.
Why you would call one root $x_0$ and the other $x_n$ is a mystery to me, but nevertheless, it's not incorrect. The function being even indeed means the roots are mirrored over $0$, so if $x_0$ is a root, so is $-x_0$.
Again, a small detail; we could have $x_0=x_n$, but this is easily disproved by showing $x_0\neq 0$.
No, this is perfectly fine. It of course depends on the context, but your proof is very clear. You should be okay.
As far as the bonus goes:
I don't think you meant that; sure, take $x=x_0$, and $x \in (x_0-\epsilon, x_0+ \epsilon)$.