Difference between revisions of "Cubic Equation"
Vincentwant (talk | contribs) |
Vincentwant (talk | contribs) |
||
Line 6: | Line 6: | ||
==Solving Cubic Equations== | ==Solving Cubic Equations== | ||
+ | |||
+ | If you're too lazy to follow, look at subsection "TLDR" for each section. | ||
===Converting to a Depressed Equation=== | ===Converting to a Depressed Equation=== | ||
You start with the equation <math>ax^3 + bx^2 + cx + d = 0</math>. | You start with the equation <math>ax^3 + bx^2 + cx + d = 0</math>. | ||
Line 20: | Line 22: | ||
<math>\left(\frac{3ac - b^2}{3a^2}\right)</math> is <math>p</math> and <math>\left(\frac{2b^3 - 9abc + 27a^2d}{27a^3}\right)</math> is <math>q</math>, so now we have <math>y^3 + py + q = 0</math>. | <math>\left(\frac{3ac - b^2}{3a^2}\right)</math> is <math>p</math> and <math>\left(\frac{2b^3 - 9abc + 27a^2d}{27a^3}\right)</math> is <math>q</math>, so now we have <math>y^3 + py + q = 0</math>. | ||
+ | |||
+ | ====TLDR?==== | ||
+ | |||
+ | The equation is <math>y^3 + py + q = 0</math> where <math>p = \left(\frac{3ac - b^2}{3a^2}\right)</math> and <math>q = \left(\frac{2b^3 - 9abc + 27a^2d}{27a^3}\right)</math>. | ||
===Solving the Depressed Equation=== | ===Solving the Depressed Equation=== |
Revision as of 16:11, 9 December 2020
A cubic equation is an equation of the form:
.
A cubic equation has 3 roots, either all real OR one real, two complex.
Contents
Solving Cubic Equations
If you're too lazy to follow, look at subsection "TLDR" for each section.
Converting to a Depressed Equation
You start with the equation .
Divide both sides by a: .
Now we change the coefficient of to (e.g. change it to a depressed cubic). We do this by substituting or , giving:
.
is and is , so now we have .
TLDR?
The equation is where and .
Solving the Depressed Equation
Now here comes the smart part. Substitute .
The equation becomes . Simplification:
We want that last term to equal , so we can set . (We can't use , because then , which is not necessarily true.) Solving this equation gives us . If , then . We now have a system of equations:
.
We can solve this via the quadratic formula. After and are obtained, we have and . (Note: "" means any cube root.
TLDR?
where u and v are roots of the system .
The Cubic Formula
The cubic formula can be obtained by using the above method. These are the steps:
The depressed cubic is of the form .
and are the roots of the system of equations . We can solve this by substitution:
(We are still using p and q because they might get a little messy if we use p and q in terms of a, b, c, and d.)
(comes from )
(See? I told you it would be messy.)