If the cubic equation $x^3+px+q$ has roots $\alpha , \beta , \gamma $ then we know that $\alpha + \beta + \gamma =0 $, $\alpha \beta + \alpha \gamma + \beta \gamma =p $ and $\alpha \beta \gamma =-q $.
The discriminant is $\Delta = (\alpha - \beta )^2 (\alpha - \gamma )^2 (\beta - \gamma ) ^2 $.
I know the answer should be $\Delta = -4p^3 -27q^2 $ and when I substitute expressions involving roots instead of $ p$ and $q$ in the expression for $\Delta $ and try to verify it, it basically just comes out with a big mess and I haven’t been able to verify it yet. Is there a better way to show the value of the discriminant in terms of $p$ and $q$ ?