Solve the equation $x^3-11x^2+38x-40=0$, given that the ratio of two of its roots is $2:1$.
By hit and try, I can see that $x=2$ is a root.
Dividing the given cubic by $x-2$, I get a quadratic whose roots are $4,5$.
Can we solve this question without hit and try? Maybe by utilising the given ratio?
My Attempt:
Let $a,2a, b$ be the roots.
Thus, $2a^2b=40, 3a+b=11, 2a^2+3ab=38$.
Taking out $b$ from one equation and plugging in another isn't helping.
We have $$ f=(x-a)(x-2a)(x-b)=x^3 + x^2( - 3a - b) + xa(2a + 3b) - 2a^2b $$ Comparing coefficients with $x^3-11x^2+38x-40$ yields \begin{align*} 0 & = 3a+b-11,\\ 0 & = 2a^2+3ab-38,\\ 0 & = a^2b-20. \end{align*} It is not difficult to see that the solution is given by $(a,b)=(2,5)$. Indeed, let $b=11-3a$. Then the other two equations give $$ (7a - 19)(a - 2)=0,\; (3a^2 - 5a - 10)(a - 2)=0. $$ Since $7a=19$ contradicts the second equation, we need to have $a=2$.