Let $f:\mathbb{R} \to \mathbb{R}$ be a polynomial function with rational coefficients and degree $3$. If the graphic of $f$ is tangent to the $x$ axis. Show that all zeros of $f$ are rational numbers.
If $\alpha$ is a zero of $f$, i.e., if $f(\alpha)=0$ and the graph of $f$ is tangent to the $x$ axis in this point, then $\alpha$ has even multiplicity, but I don't know how I can conclude this question. Someone can help-me?
Thanks a lot.
Hint Since $$f(x) = A x^3 + B x^2 + C x + D$$ is rational and scaling a polynomial doesn't change its roots, we can replace $f$ with $A^{-1} f$ and hence assume it is monic: $$f(x) = x^3 + b x^2 + c x + d .$$ Similarly, $f(x)$ has rational roots iff $f(x - \frac{b}{3})$ does, so we may as well prove the claim for $f(x - \frac{b}{3})$, but expanding gives that $f(x - \frac{b}{3})$ is rational and has zero quadratic coefficient, so we may as well assume $f(x)$ has the form $$f(x) = x^3 + p x + q$$ for rational $p, q$ (we call such a cubic depressed).
Now, since the root $\alpha$ has multiplicity $\geq 2$, $f$ must have the form $$f(x) = (x - \alpha)^2 (x - \beta) .$$ Expand and compare like terms in $x$.