Chapter 4: Factorising algebraic expressions
In previous years you learnt that we can use the distributive law to expand an algebraic expression. This is when we multiply the number or variable before a bracket with all the terms inside the bracket. We can represent the distributive law as follows:
expand We expand an algebraic expression by using the distributive law to remove brackets and then collecting like terms.
distributive law The distributive law states that the multiplying factor or coefficient of a bracket can be distributed across each of the terms inside the bracket, for example .
Last year you learnt that we can write an algebraic expression as a product of factors. Suppose we start with the expression . To write the expression as a product of factors, we have to factorise it. This means we have to identify the factors that can be multiplied to give the expression. The variable is a common factor of the two terms. We therefore know that it is one of the factors of the expression. If we divide each term by , we are left with . Therefore .
factorise We factorise an algebraic expression by writing it as a product of factors that can be multiplied to give the original expression.
Factorising an algebraic expression is the reverse of expanding it. We can represent the two processes as follows:
This year you will learn more ways to factorise algebraic expressions.
4.1 Revision of common factors
Last year you learnt how to factorise an algebraic expression using a common factor. The terms in an algebraic expression have a common factor if the same number or variable is a factor of each term. For example, the number 5 divides into both and without a remainder. Therefore, 5 is a common factor of the terms in the expression .
common factor When an algebraic expression has the same factor in two or more terms, this is called a common factor.
Worked example 4.1: Factorising an algebraic expression using a common factor
Factorise the following expression.

Step 1: Find the HCF of the numbers.
Write the two numbers as a product of their prime factors in index form.
and
Identify the prime factors that are contained in both numbers, to the lowest index.

Step 2: Find the HCF of the variables.
Apply the same principles you used in Step 1. Identify the variables that are contained in both terms, to the lowest index.
We have and .

Step 3: Combine the answers from Step 1 and 2 to find the HCF for the full expression. This is the first factor.

Step 4: To find the second factor, divide each term by the first factor.
\[ \begin{align} \require{cancel} &\frac{20x^2y}{5x^2}\frac{15x^3}{5x^2} \\ =&\frac{20 \times x \times x \times y}{5\times x \times x}\frac{15\times x \times x \times x}{5\times x \times x} \\ =&\frac{\cancel{20}^4 \times \cancel x \times \cancel x \times y}{\cancel{5}^1 \times \cancel x \times \cancel x}\frac{\cancel{15}^3 \times \cancel x \times \cancel x \times x}{\cancel{5}^1 \times \cancel x \times \cancel x} \\ =&4y3x \end{align}\] 
Step 5: Write down the two factors from Steps 3 and 4.
Exercise 4.1: Factorise algebraic expressions using a common factor
Factorise each of the following algebraic expressions.

\begin{align} & \, 10p+20q^230rs \\ =& \, 10(p+2q^23rs) \end{align}

\begin{align} & \, 4x20y+16z \\ =& \, 4(x5y+4z) \end{align}

\begin{align} & \, b^23ab^2 \\ =& \, b^2(13a) \end{align}

\begin{align} & \, 4ab8abc+2a^2 \\ =& \, 2a(2b4bc+a) \end{align}

\begin{align} & \, 18mn^2+24m^3n \\ =& \, 6mn(3n+4m^2) \end{align}

\begin{align} & \, 3a^3+15a^26a \\ =& \, 3a(a^25a+2) \end{align}
If the first term is negative, your common factor should also be negative. Be careful with the signs in the bracket. Remember:

\begin{align} & \, b^33b^4+2ab^3 \\ =& \, b^3(1+3b2a) \end{align}

\begin{align} & \, 16x^2yz40x^2y+32x^3y^2 \\ =& \, 8x^2y(2z+54xy) \end{align}

\begin{align} & \, 2p(q4)+3q(q4) \\ =& \, (q4)(2p+3q) \end{align}
A bracket can also be a common factor.

\begin{align} & \, 2y(xy)x^2(xy) \\ =& \, (xy)(2yx^2) \end{align}
4.2 Grouping terms
For some algebraic expressions, there is no common factor for all the terms. We can, however, factorise such expressions by grouping terms together and then identifying a common factor for each group. Algebraic expressions where grouping can be used normally have four terms.
Worked example 4.2: Factorising an algebraic expression using grouping
Factorise:

Step 1: Always try to factorise using a common factor first.
There is no number or variable that is a factor of all four terms.

Step 2: Group the terms in pairs so that there is a common factor in each pair. Rewrite the expression.
Number the terms from 1 to 4:
\begin{array}{cccc} \;^1 & \;^2 & \;^3 & \;^4 \\ 2a^2 & +\;ab & \;2a & \;b \end{array}Try grouping terms 1 and 2 in one pair:
This pair has a common factor.Check that terms 3 and 4 also have a common factor:
This pair does not have a common factor, so this grouping does not work.Now try grouping terms 1 and 3 in one pair:
This pair has a common factor.Check that terms 2 and 4 also have a common factor:
This pair also has a common factor, so this grouping works.Rewrite the expression so that the terms in a pair are next to each other:

Step 3: Factorise each group.
\begin{align} & \, 2a^22a+abb \\ =& \, 2a(a1)+b(a1) \\ \end{align}Remember, and .

Step 4: If the resulting terms have a bracket that is a common factor, factorise further.
\begin{align} & \, 2a^22a+abb \\ =& \, 2a(a1)+b(a1) \\ =& \, (a1)(2a+b) \end{align}
Exercise 4.2: Factorise algebraic expressions using grouping
Factorise each of the following algebraic expressions.

\begin{align} & \, ac+bc+ad+bd \\ =& \, c(a+b)+d(a+b) \\ =& \, (a+b)(c+d) \end{align}

\begin{align} & \, 3ax+3bx+by+ay \\ =& \, 3x(a+b)+y(b+a) \\ =& \, 3x(a+b)+y(a+b) \\ =& \, (a+b)(3x+y) \end{align}
Remember that .

\begin{align} & \, 2n+6+3m+mn \\ =& \, 2(n+3)+m(3+n) \\ =& \, 2(n+3)+m(n+3) \\ =& \, (n+3)(2+m) \end{align}

\begin{align} & \, 2xz+yz+2x^2+yx \\ =& \, z(2x+y)+x(2x+y) \\ =& \, (2x+y)(z+x) \\ \end{align}

\begin{align} & \, abb2a+2 \\ =& \, b(a1)2(a1) \\ =& \, (a1)(b2) \\ \end{align}

\begin{align} & \, x^23x+2xy6y \\ =& \, x(x3)+2y(x3) \\ =& \, (x3)(x+2) \\ \end{align}

\begin{align} & \, a^23aba+3b \\ =& \, a(a3)b(a3) \\ =& \, (a3)(ab) \\ \end{align}

\begin{align} & \, psqsptqt \\ =& \, s(p+q)t(p+q) \\ =& \, (p+q)(st) \\ =& \, (p+q)(1)(s+t) \\ =& \, (p+q)(s+t) \end{align}
If you end with a bracket where both terms inside the bracket are negative, take 1 out as a common factor.

\begin{align} & \, 9xy+9yz+3ax+3az \\ =& \, 3(3xy+3yz+ax+az) \\ =& \, 3\Big( 3y(x+z)+a(x+z) \Big) \\ =& \, 3\Big((x+z)(3y+a) \Big) \\ =& \, 3(x+z)(3y+a) \\ \end{align}
Remember that you must factorise using a common factor first.

\begin{align} & \, 20x^3+5x^2+20xy^35y^3 \\ =& \, 5(4x^3x^24xy^3+y^3) \\ =& \, 5\Big( x^2(4x1)y^3(4x1) \Big) \\ =& \, 5\Big((4x1)(x^2y^3) \Big) \\ =& \, 5(4x1)(x^2y^3) \\ \end{align}
Remember that you must factorise using a common factor first.
4.3 Difference of two squares
Last year you learnt a short method to expand two similar brackets that have opposite signs:
 Square the term that stands first in each bracket.
 Square the term that stands last in each bracket.
 Put a minus sign between the two squares.
Here are some examples from last year:
Because you have squared both terms, and then put a minus sign between the two squares, we can call this expression the difference of two squares.
Factorising an algebraic expression that is the difference of two squares is the reverse of expanding two similar brackets that have opposite signs.
Worked example 4.3: Factorising the difference of two squares
Factorise:

Step 1: Write down two empty brackets.

Step 2: Determine the square root of the first term and put it in the first position of each bracket.

Step 3: Determine the square root of the last term and put it in the last position of each bracket.

Step 4: Put a plus sign in one bracket and a minus sign in the other bracket.
Exercise 4.3: Factorise the difference of two squares
Factorise each of the following algebraic expressions.





\begin{align} & \, 45x^25y^2 \\ =& \, 5(9x^2y^2) \\ =& \, 5(3x+y)(3xy) \end{align}
If an expression looks like the difference of two squares, but one or both of the terms do not have a square root, try to factorise using a common factor first.
4.4 Quadratic trinomials
A polynomial is an algebraic expression with two or more terms. In a polynomial, one term can be a constant, and the other terms each consist of coefficients with variables raised to positive powers. A binomial has two terms, for example . A trinomial has three terms, for example .
A quadratic trinomial is a trinomial of which the highest power of any variable is two. Here are some examples of quadratic trinomials:
trinomial A trinomial is an algebraic expression with three terms of which at least two terms consist of coefficients with variables raised to positive powers.
quadratic trinomial A quadratic trinomial is a trinomial of which the highest power of any variable is two.
There are different methods to factorise quadratic trinomials. We will only consider one such method. Keep in mind that not all quadratic trinomials can be factorised.
Worked example 4.4: Factorising quadratic trinomials using the box method
Factorise:

Step 1: Draw a grid.
\begin{array}{cc} \hline \phantom{0}&\phantom{0} \\ \hline \phantom{0}&\phantom{0} \\ \hline \end{array} 
Step 2: Put the first term of the trinomial in the top left corner. Then put the last term of the trinomial in the bottom right corner.
The minus sign is part of the last term.
\begin{array}{cc} \hline 6x^2&\phantom{0} \\ \hline \phantom{0}&2y^2 \\ \hline \end{array} 
Step 3: Multiply the coefficients of the terms in the corners of the box.

Step 4: Write down all the factors of 12 that could give an answer of .
\begin{align} 1 & \times 12 \\ 2 & \times 6 \\ 3 & \times 4 \\ 4 & \times 3 \\ 6 & \times 2 \\ 12 & \times 1 \end{align} 
Step 5: Look at the middle term of the trinomial. Determine which combination in Step 4 will give this term when added. Include the variables of the middle term.
The middle term is .
From the combinations in Step 4:

Step 6: Put the two terms identified in Step 5 in the empty corners of the box. It does not matter which term goes in what corner.
\begin{array}{cc} \hline 6x^2&3xy \\ \hline 4xy&2y^2 \\ \hline \end{array} 
Step 7: Add another column and another row to the box.
\begin{array}{ccc} \hline 6x^2&3xy & \phantom{000} \\ \hline 4xy&2y^2 & \phantom{000} \\ \hline \phantom{0}&\phantom{000} \\ \end{array} 
Step 8: Find the HCF of each row and each column and enter it in the added spaces.
\begin{array}{ccc} \hline 6x^2&3xy & \color{red}{3x} \\ \hline 4xy&2y^2 & \color{red}{2y} \\ \hline \color{green}{2x} & \color{green}{y} \\ \end{array}Only include a minus sign in the common factor of a row or column if both terms in that row or column are negative.

Step 9: Write down the column and row you completed in Step 8 as two brackets. Include the signs of the terms. The brackets are the factors of the trinomial.
The column forms the bracket .
The row forms the bracket .Therefore:

Step 10: Use the distributive law to test your answer.
You learnt the distributive law last year:
\begin{align} & \, (3x2y)(2x+y) \\ =& \, 6x^2+3xy4xy2y^2 \\ =& \, 6x^2xy2y^2 \end{align}The factors in Step 9 are correct.
Exercise 4.4: Factorise quadratic trinomials
Factorise each of the following algebraic expressions.

If you multiply the coefficients of the first two terms you put in the corners, you get 6.
The common factors of 6 that you can add to get the middle term, , which is the same as , are and 2, so the terms in the other two corners are and .
Then you need to find the HCF of each row and each column.
\begin{array}{ccc} \hline x^2 & 3x & x \\ \hline 2x & 6 & 2 \\ \hline x & 3 \\ \end{array} 
\begin{array}{ccc} \hline a^2 & 5a & a \\ \hline 3a & 15 & 3 \\ \hline a & 5 \\ \end{array}

\begin{array}{ccc} \hline 2p^2 & 4p & 2p \\ \hline 3p & 6 & 3 \\ \hline p & 2 \\ \end{array}

\begin{array}{ccc} \hline x^2 & 11x & x \\ \hline 2x & 22 & 2 \\ \hline x & 11 \\ \end{array}

\begin{array}{ccc} \hline b^2 & 4bc & b \\ \hline 2bc & 8c^2 & 2c \\ \hline b & 4c \\ \end{array}

\begin{array}{ccc} \hline x^2 & 7x & x \\ \hline 4x & 28 & 4 \\ \hline x & 7 \\ \end{array}
Note that we have an exception here: . In the grid, look at the diagonals. Both top right and bottom left are negative, while both top left and bottom right are positive. In this case the signs in the brackets change from plus to minus.

\begin{array}{ccc} \hline 4y^2 & 12y & 4y \\ \hline y & 3 & 1 \\ \hline y & 3 \\ \end{array}
The only HCF of and in the bottom row is 1.

\begin{array}{ccc} \hline a^2 & 3ab & a \\ \hline 2ab & 6b^2 & 2b \\ \hline a & 3b \\ \end{array}

\begin{array}{ccc} \hline x^2 & 5xy & x \\ \hline 4xy & 20y^2 & 4y \\ \hline x & 5y \\ \end{array}
Look at the diagonals of the grid. In one, both blocks are positive. In the other, both blocks are negative. So the signs in the brackets change from plus to minus.

\begin{array}{ccc} \hline 6a^2 & 9ab & 3a \\ \hline 4ab & 6b^2 & 2b \\ \hline 2a & 3b \\ \end{array}
4.5 Practical applications
In previous years you learnt that algebraic expressions can be very useful to solve problems. Now you can also use factorisation for everyday problems.
Exercise 4.5: Use factorisation to solve problems

The area of a rectangle is . If the breadth of the rectangle is , determine its length.
For a rectangle:
\begin{align} l \times b&=x^2+7x+10 \\ \text{But }x^2+7x+10 &=(x+2)(x+5) \\ \therefore l \times b&=(x+2)(x+5)\\ l \times (x+2)&=(x+2)(x+5) \\ \therefore l&=x+5 \end{align} 
The product of your age years ago and your age in years' time is . Determine the value of .
Suppose your current age is .
\begin{align} (x+t)(xt)&=x^29 \\ \text{But }x^29 &=(x+3)(x3) \\ \therefore (x+t)(xt)&=(x+3)(x3)\\ \therefore t&=3 \end{align}
Then your age years ago was .
Your age in years' time is . 
The perimeter of a rectangle is . If the breadth of the rectangle is , determine its length.
For a rectangle:
\begin{align} 2(l+b)&=4x+20 \\ \text{But }4x+20 &=2(2x+10) \\ \therefore 2(l+b)&=2(2x+10)\\ 2(l+x)&=2(x+10+x) \\ \therefore l&=x+10 \end{align} 
The area of a square is . Determine the perimeter of the square.
For a square:
\begin{align} s^2&=4x^2+12x+9 \\ \text{But }4x^2+12x+9 &=(2x+3)(2x+3) \\ \therefore s^2&=(2x+3)^2\\ \therefore s&=2x+3 \end{align}For a square:
\begin{align} P &= 4s \\ P&=4(2x+3) \\ &=8x+12 \end{align} 
Write the expression as the product of two factors.
\begin{align} & \,2x+ax+ay+2y \\ =& \,x(2+a)+y(a+2)\\ =& \,(2+a)(x+y) \end{align}
4.6 Summary
 We factorise an algebraic expression by writing it as a product of factors that can be multiplied to give the original expression.
 A common factor is a factor of two or more terms in an algebraic expression. For example, .
 For some algebraic expressions, there is no common factor for all the terms. We can, however, factorise such expressions by grouping terms together and then identifying a common factor for each group. For example, .
 The factors of the difference of two squares are two similar brackets that have opposite signs. For example, .
 A trinomial is an algebraic expression with three terms of which at least two terms consist of coefficients with variables raised to positive powers.
 A quadratic trinomial is a trinomial of which the highest power of any variable is two.
 We can use the box method to factorise a quadratic trinomial. For example, the box for
is:
\begin{array}{ccc} \hline x^2 & 3x & x \\ \hline 2x & 6 & 2 \\ \hline x & 3 \\ \end{array}
Therefore  We can use factorisation to solve problems.