If $x^3+px+r$ and $3x^2+p$ have a common factor, prove that $\dfrac{p^3}{27}+\dfrac{r^2}{4}=0$
So if there is a common factor, let the common root be $t$, and then $t^3+pt+r=3t^2+p$
$\Rightarrow t^3-3t^2+pt=p-r$
Then I'm stuck. I don't know how to derive the value of $t$ in terms of $p$ and $r$ in this third-order equation. Thanks for the help.
HINT
Eliminate $t^3$ from $t^3+pt+r=0$ and $3t^2+p=0$. (First multiply the first equation by $3$ and multiply the second equation by $t$.)
You will obtain a simple expression for $t$ and then substitute this into $3t^2+p=0$.