Mathematics Topic
Difference of Two Squares and Perfect Squares
- Read notes
- Flashcards
- Quiz
- Confident
Study focus - 3 things
- Spot a difference of two squares and factorise it: a^2 - b^2 = (a + b)(a - b)
- Spot a perfect square trinomial and factorise it: a^2 + 2ab + b^2 = (a + b)^2 and a^2 - 2ab + b^2 = (a - b)^2
- Take out any common factor first, then check that no bracket can be factorised again
Section 1Spotting a difference of two squares
A difference of two squares has exactly two terms, one positive and one negative, and each term is a perfect square. A number is a perfect square when it is the square of a whole number (1, 4, 9, 16, 25, 36, 49, 64, 81, 100, 121, 144 and so on). A letter term is a perfect square when its power is even. To find the square root of a term, take the square root of the number and halve the power of the letter, so the square root of 81y^2 is 9y. The expressions x^2 - 144 and 36m^2 - 25 qualify. The expression x^2 + 144 is a sum, x^2 - 140 fails because 140 is not a perfect square, and x^3 - 144 fails because the power 3 is odd.
Section 2The rule a^2 - b^2 = (a + b)(a - b)
Find the square root of each term and call them a and b, where a belongs to the positive term. Then a^2 - b^2 = (a + b)(a - b), and the order of the two brackets does not matter. For x^2 - 144 the roots are x and 12, so x^2 - 144 = (x + 12)(x - 12). For 36m^2 - 25 the roots are 6m and 5, so the answer is (6m + 5)(6m - 5). The rule is expanding backwards: (x + 12)(x - 12) = x^2 - 12x + 12x - 144, and the two middle terms cancel. That is why the expression has no x term and why a difference of squares never has a middle term.
Section 3When the terms come in a different order
Always decide which term is positive before writing the brackets. In 100 - t^2 the positive term is 100, with root 10, and the negative term is t^2, with root t, so 100 - t^2 = (10 + t)(10 - t). Writing (t + 10)(t - 10) would give t^2 - 100, which is the opposite sign. In -169 + k^2 the positive term is k^2, so it is k^2 - 169 = (k + 13)(k - 13). With two letters the same idea works: 49a^2 - 9b^2 has roots 7a and 3b, so it is (7a + 3b)(7a - 3b).
Section 4Perfect square trinomials
A perfect square trinomial has three terms and comes from squaring a bracket: a^2 + 2ab + b^2 = (a + b)^2 and a^2 - 2ab + b^2 = (a - b)^2. To test an expression, take the roots of the first and last terms (both must be perfect squares with a positive sign) and check that the middle term is twice the product of the two roots. The bracket then holds the two roots, joined by the sign of the middle term. For x^2 + 18x + 81 the roots are x and 9, 2 × x × 9 = 18x matches, so it is (x + 9)^2. For 49p^2 - 28p + 4 the roots are 7p and 2, 2 × 7p × 2 = 28p matches, and the middle term is negative, so it is (7p - 2)^2.
Section 5When the middle term does not match
If the middle term is not twice the product of the roots, the expression is not a perfect square. In x^2 + 17x + 16 the roots are x and 4, but 2 × x × 4 = 8x, not 17x. Such an expression may still factorise in another way (here (x + 1)(x + 16), which you meet in the next topic), but it is not a perfect square. A sum of two squares such as x^2 + 225 has no middle term and cannot be factorised into brackets with real numbers at all. The tempting answers (x + 15)(x - 15), (x + 15)^2 and (x - 15)^2 expand to x^2 - 225, x^2 + 30x + 225 and x^2 - 30x + 225, so none of them works.
Section 6Common factors first, and fully factorised
Always look for a common factor before using a special product. For 7x^2 - 28 take out 7 to get 7(x^2 - 4), and then x^2 - 4 = (x + 2)(x - 2), so 7x^2 - 28 = 7(x + 2)(x - 2). For 5x^2 + 30x + 45 take out 5 to get 5(x^2 + 6x + 9) = 5(x + 3)^2. An answer is fully factorised only when no bracket can be factorised again and no number or letter is still common to every term inside a bracket. So 7(x^2 - 4) is not finished, and neither is (5x + 15)(x + 3), because 5x + 15 still has the factor 5.
Section 7Checking, and a shortcut for arithmetic
Check any factorisation by expanding it. You must get the original expression back. The difference of squares rule is also a calculator-free shortcut for numbers: 91^2 - 9^2 = (91 + 9)(91 - 9) = 100 × 82 = 8200. The brackets can also contain a whole expression. For (x + 3)^2 - 25 the first root is the bracket x + 3 and the second is 5, so the factors are (x + 3 + 5)(x + 3 - 5) = (x + 8)(x - 2).
Examples
Factorise fully 2m^2 - 98.
First look for a common factor. Both terms divide by 2, so 2m^2 - 98 = 2(m^2 - 49). The bracket m^2 - 49 is a difference of two squares with square roots m and 7, so it factorises as (m + 7)(m - 7). The fully factorised answer is 2(m + 7)(m - 7). Check by expanding: (m + 7)(m - 7) = m^2 - 49, and multiplying by 2 gives 2m^2 - 98, which is the original. Stopping at 2(m^2 - 49) would not be finished, because the bracket can still be factorised.
(a) Factorise fully 12x^2 + 36x + 27. (b) Without a calculator, use factorising to work out 83^2 - 17^2.
(a) The numbers 12, 36 and 27 share the factor 3, so 12x^2 + 36x + 27 = 3(4x^2 + 12x + 9). In the bracket the first term 4x^2 = (2x)^2 and the last term 9 = 3^2 are perfect squares. Twice the product of the roots is 2 × 2x × 3 = 12x, which equals the middle term, so the bracket is a perfect square: 4x^2 + 12x + 9 = (2x + 3)^2. The fully factorised answer is 3(2x + 3)^2. Check by expanding: (2x + 3)^2 = 4x^2 + 12x + 9, and 3 times this is 12x^2 + 36x + 27. (b) The expression 83^2 - 17^2 is a difference of two squares with a = 83 and b = 17. So 83^2 - 17^2 = (83 + 17)(83 - 17) = 100 × 66 = 6600.
Now let's water it
Session runs notes to flashcards to quiz back-to-back.
Where this comes from
- CSEC Mathematics Syllabus (CXC 05/G/SYLL 16, revised 2016; registry URL names an Oct 2025 amendment) · Caribbean Examinations Council (CXC) · Section 6, Specific Objective 6.14 · Syllabus scope
- Beginning and Intermediate Algebra (2nd ed.) · Tyler Wallace (wallace.ccfaculty.org) · Section 6.5, Factor Special Products, checked against (https://www.wallace.ccfaculty.org/book/6.5%20Factor%20Special%20Products.pdf) · Facts
- Siyavula Mathematics, CAPS Grades 8 to 11 (online textbooks) · Siyavula Education · Chapter 1, Factorisation, checked against (https://www.siyavula.com/read/za/mathematics/grade-10/algebraic-expressions/01-algebraic-expressions-06) · Facts