The question is to find out the values of $a$ for which the function $f(x)=(a+2)x^3-3ax^2+9ax-1$ decreases for all real values of $x.$
What i have tried:
I know that for a function to be decreasing, $f'(x) < 0$, So,$$f'(x)=3(a+2)x^2-6ax+9a <0$$But what to do after this because its an inequality with two variables ?
First, the derivative must be a downwards parabola, so $\;a+2<0\;$ , and second: it must have at most one single root, so
$$\Delta:=(6a)^2-108a(a+2)\le0$$
Solve now the above two inequalities