Cubic Equation Formula

Third Degree Polynomial Formula

The cubic formula is the closed-form solution for a cubic equation, i.e., it solves for the roots of a cubic polynomial equation. A general cubic equation is of the form ax3 + bx2 + cx + d = 0 (third degree polynomial equation). The roots of this equation can be solved using the below cubic equation formula. The third degree polynomial equation formula displays the equation to solve three real roots (x1, x2 and x3) of the cubic equation.

Cubic Equation Formula:

x1=(- term1 + r13*cos(q3/3) )
x2=(- term1 + r13*cos(q3+(2*Π)/3) )
x3=(- term1 + r13*cos(q3+(4*Π)/3) )


Where,

discriminant(Δ) = q3 + r2
term1 = √(3.0)*((-t + s)/2)
r13= 2 * √(q)
q = (3c- b2)/9
r = -27d + b(9c-2b2)
s = r + √(discriminant)
t = r – √(discriminant)