Skip to main content

Difference of two squares

Let's learn about the difference of two squares rule. Recognising and applying this pattern allows you to factorise expressions quickly and solve equations more efficiently.

Video tutorial – factorisation: difference of two squares

Watch this video to learn about the difference of two squares rule.

Hi, this is Martin Lindsay from the Study and Learning Centre at RMIT University. This is a short movie on factorisation, the difference of two squares or dots.

Let’s first of all review our knowledge of removing brackets, X plus five X minus five in this example. And if you go down three lines we end up with an answer of X squared minus 25. Notice that is the same as X squared minus five squared, in other words what we have here is terms in brackets differ only in the sign in each bracket, on the left hand side, and the expansion on the right hand side is the difference of two terms both of which are perfect squares, eight squared and five squared. So in general we can state that the dots rule says A plus B times A minus B is the same as A squared minus B squared, so the terms in brackets on the left hand side differ only in the sign, plus or minus, in each bracket and the expansion on the right hand side is the difference of two terms, both of which are perfect squares.

Let’s look at an example. Here we have X squared minus 36, and the first thing to do is to see if both these terms are perfect squares. Well they are because X squared is the same as X times X, X squared, and 36 is the same as six times six which is 36. So we can now go on and state the rule which says that X squared minus 36 is the same as X plus six X minus six, the only difference is the sign in each brackets.

Let’s look at another one. Four A squared minus Y squared. The first question are each of the terms perfect squares, well they are, four A squared is the same as two A all squared or two A times two A and Y squared is the same as Y times Y, so the expression is the difference of two squared or dots. So we can use the rule which says that four A squared minus Y squared is the same as two A minus Y two A plus Y, the only difference is the sign in each brackets.

Now let’s look at a slightly more difficult question. We have three X squared minus 48. So the first question is, is the expression a dots, well it’s not because neither of those terms are perfect squares, however when we factorise this expression by taking three out of the brackets we have three brackets X squared minus 16, but notice this time that X squared minus 16 is a perfect square, X times X and 16 is four times four, in other words three X squared minus 48 is three, open up big sets of brackets in blue, then we have X squared in red minus four squared in red which gives us three brackets X plus four X minus four.

Now, in this final example we have X plus two all squared minus nine. First question is are these two terms perfect squares. Well the first term must be because it’s X plus two all squared, so that is. Nine is a perfect square because nine is three times three, so we now have the expression X plus two all squared minus three all squared. And the rule, that gives us X plus two plus three, notice the blue plus, minus X plus two minus three, notice the blue minus, which simplifies to X plus five brackets X minus one and that’s our answer.

Now try some problems for yourself. The answers to these questions are on the next slide. Thanks for watching this short movie.

Difference of two squares (DOTS) rule

The difference of two squares (or DOTS) rule states that:

\[(a+b)(a-b)=a^{2}-b^{2}\]

If you have a perfect square subtracted from another perfect square, you can factorise them quickly according to the DOTS rule. The terms in the brackets differ only in the sign of the second term. It will save you a lot of time if you memorise this.

We can prove this rule by expanding the expression:

\[\begin{align*}(a+b)(a-b) & = a^{2}-ab+ab-b^{2}\\
& = a^{2}-b^{2}
\end{align*}\]

Example 1 – factorising using DOTS

Factorise \(a^{2}-36\).

\[\begin{align*} a^{2}-36 & = a^{2}-(6)^{2})\quad\textrm{recognise both terms are perfect squares}\\
& = (a+6)(a-6)
\end{align*}\]

\((a+6)(a-6)\) is the same as \((a-6)(a+b)\); the order in which they are written does not matter.

Factorise \(4^{2}-y^{2}\).
\[\begin{align*} 4^{2}-y^{2} & = (2)^{2}-y^{2}\quad\textrm{recognise both terms are perfect squares}\\
& = (2+y)(2-y)
\end{align*}\]

Factorise \(3x^{2}-48\).

At first sight, we cannot use DOTS, but we can factorise out a common factor of \(3\):

\[3(x^{2}-16)\]

The term in the brackets can be factorised using DOTS.

\[\begin{align*} 3(x^{2}-16 & = 3(x^{2}-(4)^{2})\quad\textrm{recognise both terms are perfect squares}\\
& = 3(x+4)(x-4)
\end{align*}\]

Factorise \((x+2)^{2}-9\).
\[\begin{align*} (x+2)^{2}-9 & = (x+2)^{2}-(3)^{2}\quad\textrm{recognise both terms are perfect squares}\\
& = (x+2+3)(x+2-3)\\
& = (x+5)(x-1)
\end{align*}\]

Factorise \(y^{2}+36\).

This expression is the sum of two squares, not the difference hence the DOTS rule cannot be applied. There are no real factors for this expression.

Your turn – factorising using DOTS

  1. Factorise the following.
    1. \(x^{2}-4\)
    2. \(a^{2}-100\)
    3. \(49-x^{2}\)
    4. \(64x^{2}-1\)
    5. \(121x^{2}-49y^{2}\)
    6. \(a^{2}b^{2}-25\)
    7. \(5x^{2}-20\)
    8. \(a^{2}+100\)
    9. \(x^{2}y^{2}-36y\)
    10. \((x+2)^{2}-y^{2}\)
    11. \((x-5)^{2}-36\)
    12. \((a+1)^{2}-(b-2)^{2}\)

    1. \((x+2)(x-2)\)
    2. \((a+10)(a-10)\)
    3. \((7+x)(7-x)\)
    4. \((8x+1)(8x-1)\)
    5. \((11x+7y)(11x-7y)\)
    6. \((ab+5)(ab-5)\)
    7. \(5(x+2)(x-2)\)
    8. No real linear factors
    9. \(y(x+6)(x-6)\)
    10. \(x+2+y)(x+2-y)\)
    11. \((x+1)(x-11)\)
    12. \((a+b-1)(a-b+3)\)