Find the two values of $k$ for which $2x^3-9x^2+12x-k$ has a double real root.
I've found one method which is to equate $$2x^3-9x^2+12x-k=2(x-r)^2(x-c)$$
Expanding and equating coefficients I get the system of equations : \begin{array} \space 2(c+2r) &=9 \\ 2r(2c+r) &=12 \\ -2r^2c&=k \\ \end{array}
Solving this I've found the solutions $k=4,5$
However, I would like to know if there's some easier solution than the one I've already found, or in general, if there's any other solution to the problem.
Here is an easier way. If your polynomial $P_k(x) = 2x^3-9x^2+12x-k$ has a double real root $r$, then $P_k'(r) = 0$.
For such a root, you get $P_k'(r) = 6r^2-18r+12 = 0$, i.e. $r=1$ or $r=2$.
Then you solve $P_k(r)=0$ with respect to $k$. More precisely :