Can someone please explain Wolfram Alpha's response to the equation $x^3-3x-1=0$? The roots are real and graphic Wolfram itself shows them (they are approximately equal to $-1.5321, -0.3473$ and $1.8794$). However the roots explicitly given by Wolfram seem not to be real.
2026-03-27 07:50:33.1774597833
On
On
Why does Wolfram Alpha say the roots of a cubic involve square roots of negative numbers, when all three roots are real?
5.1k Views Asked by Bumbble Comm https://math.techqa.club/user/bumbble-comm/detail At
3
There are 3 best solutions below
1
On
This is an example of the casus irreducibilis: the formulas for solving cubics need complex numbers when the cubic has three real roots.
5
On
For your interest, the real representation of the roots is given by
$$x_k=2\cos\left(\frac\pi9+\frac{2\pi k}3\right)\qquad k=0,1,2$$
I always find these trigonometric representations nicer.
This comes directly from the following identity:
$$\cos(3a)=4\cos^3(a)-3\cos(a)$$
$$\cos(3\arccos(a))=4a^3-3a$$
And lastly the fact that cosine is periodic.

When the discriminant of the equation is negative, there are $3$ real roots. It's precisely in this case that Cardano's formulæ do not work, because the radicands are negative.
It is even historically the reason why square roots of negative numbers were introduced: the formulae become valid in all cases.