Cubic Equation

Revision as of 16:25, 9 December 2020 by Vincentwant (talk | contribs) (Cubic formula)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

A cubic equation is an equation of the form:

$ax^3 + bx^2 + cx + d = 0$.

A cubic equation has 3 roots, either all real OR one real, two complex.

Solving Cubic Equations

You start with the equation $ax^3 + bx^2 + cx + d = 0$.

Divide both sides by a: $x^3 + \frac{b}{a}x^2 + \frac{c}{a}x + \frac{d}{a}$.

Now we change the coefficient of $x^2$ to $0$ (e.g. change it to a depressed cubic). We do this by substituting $y = x + \frac{b}{3a}$ or $y - \frac{b}{3a} = x$, giving:

$\left(y - \frac{b}{3a}\right)^3 + \frac{b}{a}\left(y - \frac{b}{3a}\right)^2 + \frac{c}{a}\left(y - \frac{b}{3a}\right) + \frac{d}{a} = 0$

$y^3 - \left(\frac{b}{a}\right)y^2 + \left(\frac{b^2}{3a^2}\right)y - \left(\frac{b^3}{27a^3}\right) + \left(\frac{b}{a}\right)y^2 - \left(\frac{2b^2}{3a^2}\right)y + \left(\frac{b^3}{9a^3}\right) + \left(\frac{c}{a}\right)y - \left(\frac{9abc}{27a^3}\right) + \left(\frac{27a^2d}{27a^3}\right)$

$y^3 + \left(\frac{3ac - b^2}{3a^2}\right)y + \left(\frac{2b^3 - 9abc + 27a^2d}{27a^3}\right) = 0$.

$\left(\frac{3ac - b^2}{3a^2}\right)$ is $p$ and $\left(\frac{2b^3 - 9abc + 27a^2d}{27a^3}\right)$ is $q$, so now we have $y^3 + py + q = 0$.

Now here comes the smart part. Substitute $y = \sqrt[3]{u} - \sqrt[3]{v}$.

The equation becomes $u - 3\sqrt[3]{u^2v} + 3\sqrt[3]{uv^2} - v + p\sqrt[3]{u} - p\sqrt[3]{v} + q = 0$. Simplification:

$u - v + 3\sqrt[3]{uv^2} - 3\sqrt[3]{u^2v} + p\sqrt[3]{u} - p\sqrt[3]{v} + q = 0$

$u - v - (3\sqrt[3]{uv} - p)(\sqrt[3]{u} - \sqrt[3]{v}) = -q$

We want that last term to equal $0$, so we can set $3\sqrt[3]{uv} - p = 0$. (We can't use $\sqrt[3]{u} - \sqrt[3]{v} = 0$, because then $y = 0$, which is not necessarily true.) Solving this equation gives us $uv = \frac{p^3}{27}$. If $uv = \frac{p^3}{27}$, then $v - u = q$. We now have a system of equations:

$\begin{cases} uv = \frac{p^3}{27} \\ v - u = q \end{cases}$.

We can solve this via the quadratic formula. After $u$ and $v$ are obtained, we have $y = \sqrt[3]{u} - \sqrt[3]{v}$ and $x = \sqrt[3]{u} - \sqrt[3]{v} - \frac{b}{3a}$. (Note: "$\sqrt[3]{ }$" means any cube root.