Category Archives: Solving

Deriving the Quadratic Equation formula

My year 10 students have been learning how to complete the square with the idea of then deriving the quadratic equation formula.

The general equation for a quadratic is y=ax^2+bx+c

Completing the square,

    \begin{equation*}ax^2+bx+c\end{equation}

Factorise out the leading coefficient (i.e. a)

    \begin{equation*}a(x^2+\frac{bx}{a}+\frac{c}{a})\end{equation}

Half the second term (i.e \frac{b}{a}) and subtract the square of the second term.

    \begin{equation*}a((x+\frac{b}{2a})^2-(\frac{b}{2a})^2+\frac{c}{a})\end{equation}

    \begin{equation*}a((x+\frac{b}{2a})^2-\frac{b^2}{4a^2}+\frac{c}{a})\end{equation}

Simplify

    \begin{equation*}a((x+\frac{b}{2a})^2-\frac{b^2}{4a^2}+\frac{4ac}{4a^2})\end{equation}

    \begin{equation*}a((x+\frac{b}{2a})^2+\frac{-b^2+4ac}{4a^2})\end{equation}

    \begin{equation*}a(x+\frac{b}{2a})^2+\frac{-b^2+4ac}{4a}\end{equation}

Now let’s solve

    \begin{equation*}a(x+\frac{b}{2a})^2+\frac{-b^2+4ac}{4a}=0\end{equation}

    \begin{equation*}a(x+\frac{b}{2a})^2=\frac{b^2-4ac}{4a}\end{equation}

    \begin{equation*}(x+\frac{b}{2a})^2=\frac{b^2-4ac}{4a^2}\end{equation}

    \begin{equation*}(x+\frac{b}{2a})=\pm \sqrt{\frac{b^2-4ac}{4a^2}}\end{equation}

    \begin{equation*}(x+\frac{b}{2a})=\frac{\pm \sqrt{b^2-4ac}}{2a}\end{equation}

    \begin{equation*}x=-\frac{b}{2a}\frac{\pm \sqrt{b^2-4ac}}{2a}\end{equation}

Which is the quadratic equation formula.

Leave a Comment

Filed under Algebra, Quadratic, Quadratics, Solving, Solving, Solving Equations

Solving Cubic Functions

I have been thinking about cubics a bit lately because some of my students are solving and then sketching cubics. Plus I am reading An Imaginary Tale by Paul Nahin, which talks about solving cubics and complex numbers.

Cubics must have at least one real root. If one of the roots is a rational number, then we can use the Factor and Remainder Theorem.

For example,

Solve 2x^3-3x^2-3x+2=0

We know the root(s) must be a factor of 2\times3=6.
I always start with 1 or -1
2(1)^3-3(1)^2-3(1)+2=2-3-3+2=-2 \therefore x\neq=1
Try -1
2(-1)^3-3(-1)^2-3(-1)+2=-2-3+3+2=0 \therefore x=-1 and (x+1) is a factor.
Then we can do polynomial long division.

Now we know that 2x^3-3x^2-3x+2=(x+1)(2x^2-5x+2)
And we can factorise the quadratic (or using the quadratic equation formula)
2x^2-5x+2=2x^2-4x-x+2
=2x(x-2)-1(x-2)
=(2x-1)(x-2)
\therefore x=-1, \frac{1}{2}, 2

But what if it is not factorisable?

For example,

Solve 2x^3+5x^2-2x+4=0

How many roots does this equation have?

We could find the derivative and find out how many stationary points the function has.

f'(x)=6x^2+10x-2

This is a quadratic function. Find the discriminant to determine the number of roots.

\Delta=b^2-4ac=100-4(6)(-2)=148

As \Delta>0, there are two stationary points, which means we could have 1, 2 (one root is repeated) or three roots, depending on if the function crosses the x-axis between stationary points. So not much use.

We could try the discriminant of a cubic.

\Delta=18abcd-4b^3d+b^2c^2-4ac^2-27a^2d^2

\Delta=18(2)(5)(-2)(4)-4(5^3)(4)+(5^2)(-2)^2-4(2)(-2)^2-27(2)^2(4)^2=-5100

The discriminant is negative so there is one real root.

From my reading, we need to turn the cubic into a depressed cubic (cubics of the form x^3+px+q=0).

We can do this by using a change of variable.

Let x=t-\frac{5}{6}
2(x^3+\frac{5}{2}x^2-x+2)=0
\therefore x^3+\frac{5}{2}x^2-x+2=0
Substitute t-\frac{5}{6} into the cubic.
(t-\frac{5}{6})^3+\frac{5}{2}(t-\frac{5}{6})^2-(t-\frac{5}{6})+2
(t^3-3(\frac{5}{6})t^2+3(\frac{5}{6})^2t-(\frac{5}{6})^3+\frac{5}{2}(t^2-2(\frac{5}{6})t+(\frac{5}{6})^2)-t+\frac{5}{6}+2
t^3-\frac{5}{2}t^2+\frac{25}{12}t-\frac{125}{216}+\frac{5}{2}t^2-\frac{25}{6}t+\frac{125}{72}-t+\frac{5}{6}+2
t^3-\frac{37}{12}t+\frac{431}{108}

We can then use Cardano’s formula

x=\sqrt[3]{-\frac{q}{2}+\sqrt{(-\frac{q}{2})^2+(\frac{p}{3})^3}}+\sqrt[3]{-\frac{q}{2}-\sqrt{(-\frac{q}{2})^2+(\frac{p}{3})^3}}

p=-\frac{37}{12} and q=\frac{431}{108}
\frac{p}{3}=\frac{-37}{36}
\frac{q}{2}=\frac{431}{216}
(\frac{431}{216})^2+(\frac{-37}{36})^3=\frac{139}{48}
t=\sqrt[3]{\frac{-431}{216}+\sqrt{\frac{139}{48}}}+\sqrt[3]{\frac{-431}{216}-\sqrt{\frac{139}{48}}}
t=-2.21095...
\therefore x=-2.21095...-\frac{5}{6}=-3.044

We can see from the sketch below that there is only one solution and it is about -3.

Leave a Comment

Filed under Cubics, Factorising, Polynomials, Solving