Please note that the formula given in equation (4) can give 9 Possible Roots/Solution to the Cubic Equation.
However Only 3 of them are Valid Roots. Also, solutions provided by equation (4) May have the Same Root Repeated Multiple times although it actually occurs only once in the Cubic Equation.
Hence, Only One of the Roots is found using this formula.
After One of Roots is calculated using the Cubic Formula given in equation (4), the other 2 Roots are calculated by
finding out the Quadratic Factor of the Cubic Polynomial and Calculating its Roots using the Quadratic Formula. The Quadratic Factor of the Cubic Polynomial
can be found out by using the Root calculated using the Cubic Formula as follows
Let \(R_1\) be the Root of the Cubic Polynomial Equation calculated using the Cubic Formula
Let \(Kx^2 + Lx + M\) be the Quadratic Factor of the Cubic Polynomial given in equation (1)
Once the values of \(K, L, M\) i.e. the Coefficients and Constant of the Quaratic Factor of the Cubic Polynomial are calculated, the Quadratic Formula can be used to calculate the other 2 Roots of the Cubic Polynomial as follows
Let \(x=y-\frac{B}{3A}\). Substitute this value of \(x\) in the equation (8) above and simplify to remove the Square Term from the Cubic Polynomial as follows
Setting \(P=\frac{3AC\hspace{.1cm}-\hspace{.1cm}B^2}{3A^2}\) and \(Q=\frac{2B^3\hspace{.1cm}-\hspace{.1cm}9ABC\hspace{.1cm}+\hspace{.1cm}27A^2D}{27A^3}\) we get
\(y^3 + Py + Q =0\) ...(10)
Any Cubic Polynomial given in the format as represented in equations (9) and (10) above (without the Square Term) is called a Depressed Cubic Polynomial
Now, we know that for any 2 variables \(u\) and \(v\)
Since the equation (15) is Quadratic in terms of \(u^3\), the value of \(u^3\) (and hence the value of \(u\)) can be calculated using Quadratic Formula as follows
The term \({(\frac{Q}{2})}^2 + {(\frac{P}{3})}^3 \) given in the equation (16) above is called the Discriminant of the Cubic Polynomial Equation and is denoted by \(D_c\).
Therefore,
Please note that both variables \(u\) and \(v\) have identical set of values. Also, in case of Repeated Roots for \(u^3\) / \(v^3\), \(D_c=0\) and hence we have
The value of \(x\) for the Cubic Polynomial Equation given in equation (1) and (8) can be found out by Subtracting \(\frac{B}{3A}\) from the Value of \(y\)
calculated in equation (18) as follows
which is the Formula for Finding Roots/Solutions of Cubic Polynomial Equations.
The 3 Roots/Solutions of the Cubic Polynomial Equation in 1 Variable can be of following 13 types depending on the value of variables \(P\), \(Q\) and \(D_c\) as follows
If the Value of Both \(P\) and \(Q\) are Zero (i.e. \(P=Q=0\)) then All the 3 Roots are Same (either Real or Complex).
If the Value of either \(P\) or \(Q\) are Not Zero, then the Value of the Discriminant \(D_c\) determines the Type of Roots as given in the following steps.
If \(D_c\) is Real and \(D_c<0\) then All the 3 Roots are Real and Distinct.
If \(D_c\) is Real and \(D_c>0\) then One Root is Real and 2 Roots are Conjugate Complex.
If \(D_c=0\) then Atleast 2 Roots are Same. This can have the following subtypes
2 Same 1 Distinct Real Roots
2 Same 1 Distinct Complex Roots
2 Same 1 Conjugate Complex Roots
2 Same Real 1 Complex Roots
2 Same Complex 1 Real Roots
If \(D_c\) is Complex, following subtypes of Roots are possible
You can also download the file cubic-quartic.xlsx to calculate Roots/Solutions of Cubic Polynomial Equations (for Cubic Equation with Real Coefficients Only).