TITLE: Show that this polynomial has three different real roots
QUESTION [6 upvotes]: There is polynomial $f(x)=x^3 +ax^2+bx+c$ and $ab=9c$ and $b<0$. Like in the title. I've only come up so far with $9x^3 + 9ax^2 + 9bx+ab=0$ and factoring here does nothing.

REPLY [4 votes]: Regarding the requirement that $a,c$ be real.  Set $a = 3\mathrm{i}$, $b = -3$, $c = -\mathrm{i}$.  Then $b < 0$, $ab = -9\mathrm{i} = 9c$, and $f(x) = x^3 + 3 \mathrm{i} x^2 - 3 x - \mathrm{i} = (x+\mathrm{i})^3$, so all three roots are the same and none are real.  Consequently, for the problem to be correct, another contraint is required.  That $a$, $b$, and $c$ must be real is a sufficient such constraint.

If $c = 0$, $ab=9c$ and $b<0$ force $a = 0$, so $f(x) = x^3 + bx = (x^2+b)x$, having the three real roots $\{-\sqrt{-b},0,\sqrt{-b}\}$, which are distinct.
From now on, we assume $c \neq 0$, so $0$ is not a root of $f$.  First we address two cases where the roots are real but have duplicates, showing that if the roots are real, they are distinct.  Then we show that having a conjugate pair of roots is impossible.  
If the roots are real and not distinct, then either they are all the same or exactly two are the same.
Suppose (for purposes of contradiction) the roots are $u$, $u$, and $u$ (and $u \neq 0$).  $f(x) = (x-u)^3= x^3 - 3u x^2 + 3u^2 x - u^3$, so \begin{align*}
a &= -3u  \text{,}  \\
b &= 3u^2  \text{, and}  \\
c &= -u^3  \text{.}
\end{align*}
But this says $b > 0$.  So the three roots cannot all be the same.
Now suppose (for purposes of contradiction) the roots are $u$, $u$, and $v$ (and $u \neq 0$, $v \neq 0$, and $v \neq u$).  $f(x) = (x-u)^2(x-v) = x^3 -(2u+v)x^2 + (u^2 + 2uv)x - u^2 v$, so \begin{align*}
a &= -(2u+v)  \text{,}  \\
b &= u^2 + 2uv  \text{, and}  \\
c &= -u^2 v  \text{.}
\end{align*}
From $ab=9c$, \begin{align*}
-(2u+v)(u^2 + 2uv) &= 9(-u^2 v)  \\
-2u^3 -4 u^2 v - u^2 v - 2 uv^2 &= -9 u^2 v  \\
-2u^3 - 2 uv^2 &= -4 u^2 v  \\
-2u(u^2 - 2uv + v^2) &= 0  \\
-2u(u - v)^2 &= 0  \text{.}
\end{align*}
Since a product is zero only if one (or more) of the multiplicands is zero, either $-2u=0$ or $(u-v)^2 = 0$.  The first says $u = 0$, a contradiction.  The second says $v = u$, a contradiction.  This shows not exactly two roots are the same.
Therefore, the if the roots are real, the three roots of $f$ are distinct.
The coefficients of $f$ are real.  (Assumed additional constraint, see the aside before this solution.)  Consequently, either all three roots are real, or one is real and two are a conjugate pair.  Suppose two are a conjugate pair so the roots are $u$, $v + \mathrm{i}w$, $v - \mathrm{i}w$.  By the above, we may take $u \neq 0$ and $w > 0$.  Then 
$f(x) = (x-u)(x-v - \mathrm{i}w)(x - v + \mathrm{i}w) = x^3 - (u+2v)x^2 + (2uv+v^2+w^2)x - (uv^2+uw^2)$, so \begin{align*}
a &= - (u+2v)  \text{,}  \\
b &= (2uv+v^2+w^2)  \text{, and}  \\
c &= - (uv^2+uw^2)  \text{.}
\end{align*}
If $v = 0$, from $ab=9c$,$-(u)(w^2) = -9(uw^2)$, so $8 uw^2 = 0$ and either $u=0$ (contradiction) or $w = 0$ (contradiction).  Therefore, $v \neq 0$.
From $ab=9c$, \begin{align*}
-(u+2v)(2uv+v^2+w^2) &= -9(uv^2+uw^2)  \\
-2u^2v -u v^2 -u w^2 - 4uv^2-2v^3-2vw^2 &= -9uv^2 -9uw^2  \\
-2u^2v -2v^3-2vw^2 &= -4uv^2 -8uw^2  \\
(-2v)u^2 +(4v^2 +8w^2)u -2v(v^2+w^2) &= 0  \text{.}
\end{align*}
By the quadratic formula, $u = \frac{1}{v}\left( v^2 + 2w^2 \pm w\sqrt{3v^2+4w^2} \right)$.  The only constraint we haven't used is $b < 0$, so we substitute these into the expression for $b$ and simplify to $b = 3v^2 + 5w^2 \pm 2w\sqrt{3v^2 + 4w^2}$.  If we pick the positive root, each term is positive, so we must take the negative root and have $2w\sqrt{3v^2 + 4w^2} > 3v^2 + 5w^2$.  Both sides are positive, so squaring only risks introducing negative solutions (of no interest to us), giving \begin{align*}
12v^2w^2 + 16 w^4 &> 9v^4 + 30 v^2w^2 + 25w^4  \\
0 &> 9v^4 + 18 v^2w^2 + 9w^4  \text{,}
\end{align*}
an impossibility.  Therefore, it is not the case that $f$ has a conjugate pair of roots.
Therefore, there are three distinct roots, all of which are real.