Let $p(x)$ be a real coefficient polynomial. Assume that there exits $a\in \mathbb{R}$ s.t. $p(a)\neq 0$ but $p'(a) = p''(a) = 0$. Show that $p(x)$ has at least one non-real root.
This is a problem from today's exam, and actually, I already have a solution. However, I can't understand the solution, so I tried to do it my self in the following direction:
Assume that $p(x)$ is a monic polynomial. We can just set $p(x) = (x-a)^{3}q(x) + B$ for some $B\neq 0$. If $p$ has only real roots, we have $p(x) = (x-\alpha_{1})\cdots (x-\alpha_{n})$ for some $\alpha_{1}\leq \cdots \leq \alpha_{n}$. Then we have $(x-a)^{3}q(x)+B = (x-\alpha_{1})\cdots(x-\alpha_{n})$, and I can' proceed from here.
Here's the original solution:
Solution: Observe that if $q(z)$ is a real-rooted polynomial with distinct roots, then by Rolle’s theorem $q'(z)$ is also real-rooted (since it has degree one less than the degree of $q$) and has the property that between every two roots of $q'$ there is a root of $q$. Since polynomials with distinct roots are dense in the set of real-rooted polynomials, this implies that if $q$ is any real-rooted polynomial and $q'(z)$ has a double root at $z$ then $q(z) = 0$.
For the given polynomial $p'(z)$ has a double root at $a$, but $p(a) \neq 0$, so $p$ cannot be real-rooted.
(Original image here.)