Category Archives: Polynomials

Factorising Non-Monic Quadratics

The general equation of a quadratic is ax^2+bx+c

Let’s explore different methods of factorising a non-monic quadratic (the a term is not 1)

Factorise 6x^2+x-12

We need to find two numbers that add to 1 and multiply to -72 (i.e. add to b and multiply to a\times c)

The two numbers are 9 and -8

Method 1 – Splitting the middle term

This is the method I teach the most often

    \begin{equation*}6x^2+x-12\end{equation}

Split the middle term (the b term) into the two numbers

    \begin{equation*}6x^2-8x+9x-12\end{equation}

The order doesn’t matter.

Find a common factor for the first term terms, and then for the last two terms.

    \begin{equation*}2x(3x-4)+3(3x-4)\end{equation}

There is a common factor of (3x-4), factor it out.

    \begin{equation*}(3x-4)(2x+3)\end{equation}

Method two – Fraction

    \begin{equation*}6x^2+x-12\end{equation}

Put 6x into both factors and divide by 6

    \begin{equation*}\frac{(6x-8)(6x+9)}{6}\end{equation}

Factorise

    \begin{equation*}\frac{2(3x-4)3(2x+3)}{6}\end{equation}

    \begin{equation*}\frac{6(3x-4)(2x+3)}{6}\end{equation}

    \begin{equation*}(3x-4)(2x+3)\end{equation}

Method 3 – Monic to non-monic

    \begin{equation*}y=6x^2+x-12\end{equation}

Multiply both sides of the equation by a

    \begin{equation*}6y=6(6x^2+x-12)\end{equation}

    \begin{equation*}6y=6^2x^2+6x-72\end{equation}

    \begin{equation*}6y=(6x)^2+6x-72\end{equation}

Let A=6x

    \begin{equation*}6y=A^2+A-72\end{equation}

Factorise

    \begin{equation*}6y=(A+9)(A-8)\end{equation}

Replace the A with 6x

    \begin{equation*}6y=(6x+9)(6x-8)\end{equation}

    \begin{equation*}6y=3(2x+3)2(3x-4)\end{equation}

    \begin{equation*}6y=6(2x+3)(3x-4)\end{equation}

    \begin{equation*}y=(2x+3)(3x-4)\end{equation}

Method 4 – Cross Method

    \begin{equation*}6x^2+x-12\end{equation}

Place the two numbers in the cross

Place the two numbers that add to 1 and multiply to -72 in the other parts of the cross.

Divide these two numbers by 6 (i.e a)

Simplify

Hence,

    \begin{equation*}(x-\frac{4}{3})(x+\frac{3}{2})\end{equation}

Which is

    \begin{equation*}(3x-4)(2x+3)\end{equation}

Method 5 – By Inspection

This is my least favourite method – although students get better with practice

    \begin{equation*}6x^2+x-12\end{equation}

The factors of a are 1, 2, 3, and 6 and the factors of 12 are 1, 2, 3, 4, 6, 12

We know one number is positive and one number negative.

Which give us all of these possibilities

Possible factorisationsb term of expansion
(x-1)(6x+12)12x-6x=6xNo
(x-2)(6x+6)6x-12x=-6xNo
(x-3)(6x+4)4x-18x-14xNo
(2x-1)(3x+12)24x-3x=21xNo
(2x-2)(3x+6)12x-6x=6xNo
(2x-3)(3x+4)8x-9x=-1xAlmost, switch the signs
(2x+3)((3x-4)-8x+9x=1xYes

    \begin{equation*}(2x+3)(3x-4)\end{equation}

With a bit of practice you don’t need to check all of the possibilties, but I find students struggle with this method.

Method 6 – Grid

    \begin{equation*}6x^2+x-12\end{equation}

Create a grid like the one below

6x^2
-12

Find the two numbers that multiply to -72 and add to 1 and place them in the other grid spots (see below)

6x^2-8x
9x-12

Find the HCF (highest common factor) of each row and put in the first column.

Row 1 HCF=2x, Row 2 HCF=3

2x6x^2-8x
39x-12

For the columns, calculate what is required to multiple the HCF to get the table entry.

For example, what do you need to multiple 2x and 3 by to get 6x^2 and 9x? In this case it is 3x. It’s always going to be the same thing, so just use one value to calculate it,

3x-4
2x6x^2-8x
39x-12

The factors are column 1 and row 1
(2x+3)(3x-4)

The two methods I use the most are splitting the middle term, and the cross method, but I can see value in the grid method.

Leave a Comment

Filed under Algebra, Factorising, Factorising, Polynomials, Quadratic, Quadratics

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.

1 Comment

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

Infinite Product Expansion of cos (x)

Remember

(1)   \begin{equation*}cos(x)=1-\frac{1}{2!}x^2+\frac{1}{4!}x^4-\frac{1}{6!}x^6+...\end{equation*}

We know that cos(x)=0 for odd integer multiples of \frac{\pi}{2}, i.e. \frac{\pi}{2}, \frac{3\pi}{2}, ..., which is \frac{(2n-1)\pi}{2} for n\neq 0

Hence,

    \begin{equation*}0=1-\frac{1}{2!}x^2+\frac{1}{4!}x^4-\frac{1}{6!}x^6+...\end{equation}

for x=\frac{(2n-1)\pi}{2}, n>0

We can factorise our cos(x) expansion

    \begin{equation*}(1-\frac{x^2}{r_1})(1-\frac{x^2}{r_2})...\end{equation}

We know r_1=\frac{\pi}{2}, r_2=\frac{3\pi}{2}, ...

    \begin{equation*}cos(x)=(1-\frac{x^2}{(\frac{\pi}{2})^2})(1-\frac{x^2}{(\frac{3\pi}{2})^2})...(1-\frac{x^2}{(\frac{(2n-1)\pi}{2})^2})\end{equation}

    \begin{equation*}cos(x)=\Pi_{n=1}^{\infty}(1-\frac{x^2}{(\frac{(2n-1)\pi}{2})^2})\end{equation}

    \begin{equation*}cos(x)=\Pi_{n=1}^{\infty}(1-\frac{4x^2}{(2n-1)^2\pi^2})\end{equation}

1 Comment

Filed under Factorising, Identities, Infinite Product Expansion, Interesting Mathematics, Polynomials, Trigonometry

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

Sum and Product of the Roots of Polynomials

There is a relationship between the sum and product of the roots of a polynomial and the co-efficient of the polynomial.

Let’s start with a quadratic.

The general form for a quadratic (polynomial of degree 2) is

y=ax^2+bx+c

Use the quadratic equation formula to find the roots

x=\frac{-b\pm\sqrt{b^2-4ac}}{2a}

Hence the roots are

x_1=\frac{-b+\sqrt{b^2-4ac}}{2a} and x_2=\frac{-b-\sqrt{b^2-4ac}}{2a}

Sum of the roots:

\frac{-b+\sqrt{b^2-4ac}}{2a}+\frac{-b-\sqrt{b^2-4ac}}{2a}=\frac{-2b}{2a}=\frac{-b}{a}

Product of the roots:

\frac{-b+\sqrt{b^2-4ac}}{2a}\times\frac{-b-\sqrt{b^2-4ac}}{2a}

\frac{b^2}{4a^2}-\frac{b^2-4ac}{4a^2}

\frac{4ac}{4a^2}

\frac{a}{c}

Worked Example
The equation 4x^2+bx+c=0 has two distinct roots. The product of the roots is \frac{3}{4} and the sum is 2. Find b and c.
\frac{-b}{a}=2
a=4
\frac{-b}{4}=2
b=-8

\frac{c}{a}=\frac{3}{4}
\frac{c}{4}=\frac{3}{3}
c=3
The equations is 4x^2-8x+3

Solve the equation to prove the roots do in fact sum to 2 and multiply to \frac{3}{4}
4x^2-8x+3
4x^2-6x-2x+3
2x(2x-3)-1(2x-3)
(2x-1)(2x-3)
x_1=\frac{1}{2} and x_2=\frac{3}{2}
\frac{1}{2}+\frac{3}{2}=2 and \frac{1}{2}\times\frac{3}{2}=\frac{3}{4}

Let’s move to a cubic function.

The general equation is f(x)=ax^3+bx^2+cx+d

Let’s say the roots of this cubic are \alpha, \beta, \gamma

Then ax^3+bx^2+cx+d=a(x-\alpha)(x-\beta)(x-\gamma)

=a(x^2-\beta x - \alpha x+\alpha\beta)(x-\gamma)

=a(x^2-(\alpha+\beta)x+\alpha\beta)(x-\gamma)

=a(x^3-\gamma x^2-x^2(\alpha+\beta)+\gamma(\alpha+\beta)x-\alpha\beta\gamma)

=a(x^3-(\alpha+\beta+\gamma)x^2+(\alpha\beta+\alpha\gamma+\beta\gamma)x-\alpha\beta\gamma)

The sum of the roots

\alpha+\beta+\gamma=\frac{-b}{a}

The product of the roots

\alpha\beta\gamma=\frac{-d}{a}

Also, it can be handy to know

\alpha\beta+\alpha\gamma+\beta\gamma=\frac{c}{a}

Worked example
f(x)=x^3-6x^2+4x+12, the roots are \alpha, \beta and \gamma
Find
(a) \alpha+\beta+\gamma
(b) \alpha^2+\beta^2+\gamma^2
(c) \frac{1}{\alpha}+\frac{1}{\beta}+\frac{1}{\gamma}

(a) \alpha+\beta+\gamma=\frac{-b}{a}
\alpha+\beta+\gamma=\frac{6}{1}
\alpha+\beta+\gamma=6

(b)\alpha^2+\beta^2+\gamma^2=(\alpha+\beta+\gamma)^2-2\alpha\beta-2\alpha\gamma-2\beta\gamma
=6^2-2(4)
=28

(c)\frac{1}{\alpha}+\frac{1}{\beta}+\frac{1}{\gamma}=\frac{\beta\gamma}{\alpha\beta\gamma}+\frac{\alpha\gamma}{\alpha\beta\gamma}+\frac{\alpha\beta}{\alpha\beta\gamma}
=\frac{\beta\gamma+\alpha\gamma+\alpha\beta}{\alpha\beta\gamma}
=\frac{4}{-13}
=\frac{-1}{3}

We can extend the method we used for finding the sum and product of the roots of cubic to polynomials of greater degree.

If the four roots of a quartic are \alpha, \beta, \gamma and \delta, and the general equation is ax^4+bx^3+cx^2+dx+e, then

\alpha+\beta+\gamma+\delta=\frac{-b}{a}

\alpha\beta+\alpha\gamma+\alpha\delta+\beta\gamma+\beta\delta+\gamma\delta=\frac{c}{a}

\alpha\beta\gamma+\alpha\beta\delta+\alpha\gamma\delta+\beta\gamma\delta=\frac{-d}{a}

\alpha\beta\gamma\delta=\frac{e}{a}

Worked Example (just one more)
The roots of the cubic equation x^3-4x^2-3x-2 are \alpha, \beta and \gamma. Find the cubic equation whose roots are \alpha+\beta, \alpha+\gamma, and \beta+\gamma

\alpha+\beta+\gamma=4
\alpha\beta+\alpha\gamma+\beta\gamma=-3
\alpha\beta\gamma=2

\frac{-b}{a}=\alpha+\beta+\alpha+\gamma+\beta+\gamma
\frac{-b}{a}=2(\alpha+\beta+\gamma
\frac{-b}{a}=2(4)
\frac{-b}{a}=8

\frac{c}{a}=(\alpha+\beta)(\alpha+\gamma)+(\alpha+\beta)(\beta+\gamma)+(\alpha+\gamma)(\beta+\gamma)
=\alpha^2+\alpha\gamma+\beta\gamma+\gamma^2+\alpha\beta+\alpha\gamma+\beta^2+\beta\gamma+\alpha\beta+\alpha\gamma+\gamma\beta+\gamma^2
=\alpha^2+\beta^2+\gamma^2+3\alpha\gamma+3\beta\gamma+3\alpha\beta
=(\alpha+\beta+\gamma)^2-2\alpha\gamma-2\beta\gamma-2\alpha\beta+3\alpha\gamma+3\beta\gamma+3\alpha\beta
=(\alpha+\beta+\gamma)^2+\alpha\gamma+\alpha\beta+\beta\gamma
=4^2-3
\frac{c}{a}=13

\frac{-d}{a}=(\alpha+\beta)(\alpha+\gamma)(\beta+\gamma)
=(\alpha^2+\alpha\gamma+\beta\alpha+\beta\gamma)(\beta+\gamma)
=\alpha^2\beta+\alpha^2\gamma+\alpha\gamma\beta+\alpha\gamma^2+\beta^2\alpha+\beta\alpha\gamma+\beta^2\gamma+\beta\gamma^2
=2\alpha\beta\gamma+\alpha^2\beta+\beta^2\alpha+\alpha^2\gamma+\gamma^2\alpha+\beta^2\gamma+\gamma^2\beta
=2(2)+\alpha\beta(\alpha+\beta)+\alpha\gamma(\alpha+\gamma)+\beta\gamma(\beta+\gamma)
=-24+\alpha\beta(\alpha+\beta+\gamma)-\alpha\beta\gamma+\alpha\gamma(\alpha+\gamma+\beta)-\alpha\beta\gamma+\beta\gamma(\beta+\gamma+\alpha)-\beta\gamma\alpha
=4+(\alpha+\beta+\gamma)(\alpha\beta+\alpha\gamma+\beta\gamma)-3(2)
=-2+(4)(-3)
\frac{-d}{a}=-14

If a=1 then b=-8, c=13 and d=14
The cubic is x^3-8x^2+13x+14

Leave a Comment

Filed under Polynomials, Sum and Product of Roots

Australian Mathematics Competition – Polynomial Question

I came across this question from the 2010 Senior Australian Mathematics Competition:

A polynomial f is given. All we know about it is that all its coefficients are non-negative integers, f(1)=6 and f(7)=3438. What is the value of f(3)

Australian Mathematics Competition 2006-2012

I thought ‘excellent, a somewhat hard polynomial question for my students’ and then I tried it. Now I know why only 1% of students got it correct.

As we don’t know the order of the polynomial, let

f(x)=a_nx^n+a_{n-1}x^{n-1}+...+a_1x^1+a_0

We know all of the coefficients are greater than or equal to zero. We also know

f(1)=a_n+a_{n-1}+...+a+a_0=6

Which means that all of the coefficients are between zero and six

0\le{a_n}\le{6}

We have also been given f(7)

f(7)=7^na_n+7^{n-1}a_{n-1}+ ... +7a+1=3438

As all of the coefficients are between zero and six, this is 3438 written in base 7.

Let’s calculate a few powers of 7

Powers of 7
7^01
7^17
7^249
7^3343
7^42401
7^516807
As numbersAs Powers of 7
3438=1\times2401+10373438=1\times7^4+1037
1037=3\times343+81037=3\times7^3+8
8=1\times7+18=1\times7^1+1
1=1\times11=1\times7^0

Hence 3438 written in base 7 is 13011

Therefore f(x)=x^4+3x^3+x+1

f(3)=3^4+3\times3^3+3+1

f(3)=81+81+4

f(3)=166

I really like this question. I think it could work well as a class extension activity with a bit of scaffolding.

Leave a Comment

Filed under Number Bases, Polynomials