We will solve (for X) the polynomial of the form:
aX3 + bX2 + cX + d = 0.
First input the rational coefficients for a, b, c, d.
(Click 'Next' when you're finished) Next
By dividing the coefficients by the value of 'a' we get,
Next
We now transform the cubic by making the substitution Y=X+b/3 to put the polynomial in the form of Y3+pY+q = 0. Giving us Next
We can now calculate the discriminant
D = q2/4 + p3/27
or
Next
We can now calculate the real root of Y3+pY+q = 0 by thus