Good Day
Today, I was trying to solve this problem below:
Find the values real number $m$ can take if $x^3 - mx^2 - 4 = 0$ and $x^3 + mx + 2 =0$ have a common root.
Here's what I did:
Assume the common root to be $a$. Substituting:
$$(1)\ a^3 - ma^2 - 4 = 0$$
$$(2)\ a^3 + ma + 2 = 0$$
Subtracting $(1)$ from $(2)$ gives:
$$ma^2 + ma + 6 = 0$$
Using this as a quadratic in $a$, we use the fact that $D \geq 0$ because $a$ is real.
Thus, $$-4(m)(6) + (m)^2 \geq 0$$
So, $$m(m - 24) \geq 0$$
which is true precisely when $m \in (-\infty, 0]$ $\cup$ $[24, \infty)$
However, the answer given to me is only $m = -3$. Where am I going wrong?
Thanks!

Hint: $\;a \ne 0\,$, then $\,m=\dfrac{a^3-4}{a^2}=- \dfrac{a^3+2}{a}\,$. The latter equality gives $\,a^4+a^3+2a-4=0\,$ (n.b. edited to fix typo).