The quadratic equation $x^2-5x+7=0$ has roots $\alpha$ and $\beta$. Find the quadratic equation with integer coefficents that has roots $\alpha^3$ and $\beta^3$.
I know how to get the answer by considering sums/products of roots but I'm also aware that you can get the answer by use of a substitution $u=x^{\frac{1}{3}}$. This leads to
$u^{\frac{2}{3}}-5u^{\frac{1}{3}}+7=0$
How can you get from here to a quadratic equation?
From
$$u^{\frac{2}{3}}-5u^{\frac{1}{3}}+7=0 \iff (u^{\frac{2}{3}}-5u^{\frac{1}{3}})^3=(-7)^3\iff u^2-125u+343-15u^\frac53+75u^\frac43=0$$
and
$$u^{\frac{2}{3}}=5u^{\frac{1}{3}}-7\implies u^\frac53=5u^\frac43-7u\implies -15u^\frac53=-75u^\frac43+105u$$
then
$$u^2-20u+343=0$$