We've updated our
Privacy Policy effective December 15. Please read our updated Privacy Policy and tap

Study Guides > ALGEBRA / TRIG I

Special Cases - Squares

Learning Outcomes

  • Factor special products
Some people find it helpful to know when they can take a shortcut to avoid doing extra work. There are some polynomials that will always factor a certain way, and for those, we offer a shortcut. Most people find it helpful to memorize the factored form of a perfect square trinomial or a difference of squares. The most important skill you will use in this section will be recognizing when you can use the shortcuts.

Factoring a Perfect Square Trinomial

A perfect square trinomial is a trinomial that can be written as the square of a binomial. Recall that when a binomial is squared, the result is the square of the first term added to twice the product of the two terms and the square of the last term.
a2+2ab+b2=(a+b)2anda22ab+b2=(ab)2\begin{array}{ccc}\hfill {a}^{2}+2ab+{b}^{2}& =& {\left(a+b\right)}^{2}\hfill \\ & \text{and}& \\ \hfill {a}^{2}-2ab+{b}^{2}& =& {\left(a-b\right)}^{2}\hfill \end{array}
We can use these equations to factor any perfect square trinomial.

A General Note: Perfect Square Trinomials

A perfect square trinomial can be written as the square of a binomial:
a2+2ab+b2=(a+b)2{a}^{2}+2ab+{b}^{2}={\left(a+b\right)}^{2}
a22ab+b2=(ab)2{a}^{2}-2ab+{b}^{2}={\left(a-b\right)}^{2}
In the following example, we will show you how to define a and b so you can use the shortcut.

Example

Factor 25x2+20x+425{x}^{2}+20x+4.

Answer: First, notice that 25x225{x}^{2} and 44 are perfect squares because 25x2=(5x)225{x}^{2}={\left(5x\right)}^{2} and 4=224={2}^{2}. This means that a=5x and b=2a=5x\text{ and }b=2 Next, check to see if the middle term is equal to 2ab2ab, which it is:

2ab=2(5x)(2)=20x2ab = 2\left(5x\right)\left(2\right)=20x

  Therefore, the trinomial is a perfect square trinomial and can be written as (a+b)2=(5x+2)2{\left(a+b\right)}^{2}={\left(5x+2\right)}^{2}.

In the next example, we will show that we can use 1=121 = 1^2 to factor a polynomial with a term equal to 11.

Example

Factor 49x214x+149{x}^{2}-14x+1.

Answer: First, notice that 49x249{x}^{2} and 11 are perfect squares because 49x2=(7x)249{x}^{2}={\left(7x\right)}^{2} and 1=121={1}^{2}. This means that a=7xa=7x and b=1b=1. Next, check to see if the middle term is equal to 2ab2ab, which it is:

2ab=2(7x)(1)=14x2ab = 2\left(7x\right)\left(1\right)=14x

Therefore, the trinomial is a perfect square trinomial and can be written as (ab)2=(7x1)2{\left(a-b\right)}^{2}={\left(7x-1\right)}^{2}.

In the following video, we provide another short description of what a perfect square trinomial is and show how to factor them using a formula. https://youtu.be/UMCVGDTxxTI

Try It

[ohm_question]91970[/ohm_question]
We can summarize our process in the following way:

How To: Given a perfect square trinomial, factor it into the square of a binomial

  1. Confirm that the first and last term are perfect squares.
  2. Confirm that the middle term is twice the product of abab.
  3. Write the factored form as (a+b)2{\left(a+b\right)}^{2} or (ab)2{\left(a-b\right)}^{2}.

Factoring a Difference of Squares

A difference of squares is a perfect square subtracted from a perfect square. This type of polynomial is unique because it can be factored into two binomials but has only two terms.

Factor a Difference of Squares

Given a2b2a^2-b^2, its factored form will be (a+b)(ab)\left(a+b\right)\left(a-b\right).
You will want to become familiar with the special relationship between a difference of squares and its factorization as we can use this equation to factor any differences of squares. A difference of squares can be rewritten as factors containing the same terms but opposite signs because the middle terms cancel each other out when the two factors are multiplied.  Let's look at an example of difference of squares to help us understand how this works.  We will start from the product of two binomials to see the pattern. Given the product of two binomials: (x2)(x+2)\left(x-2\right)\left(x+2\right), if we multiply them together, we lose the middle term that we are used to seeing as a result.

Multiply:

(x2)(x+2)=x22x+2x22=x222=x24\begin{array}{l}\left(x-2\right)\left(x+2\right)\\\text{}\\=x^2-2x+2x-2^2\\\text{}\\=x^2-2^2\\\text{}\\=x^2-4\end{array}

 The polynomial x24x^2-4 is called a difference of squares because each term can be written as something squared.  A difference of squares will always factor in the following way: Let’s factor x24x^{2}–4 by writing it as a trinomial, x2+0x4x^{2}+0x–4.  This is similar in format to the trinomials we have been factoring so far, so let’s use the same method.

Find the factors of aca\cdot{c} whose sum is b, in this case, 0:

Factors of 4−4 Sum of the factors
14=41\cdot-4=−4 14=31-4=−3
22=42\cdot−2=−4 22=02-2=0
14=4-1\cdot4=−4 1+4=3-1+4=3
22, and 2-2 have a sum of 00. You can use these to factor x24x^{2}–4.

Example

Factor x24x^{2}–4.

Answer: Rewrite 0x0x as 2x+2x−2x+2x.

x2+0x4x22x+2x4\begin{array}{l}x^{2}+0x-4\\x^{2}-2x+2x-4\end{array}

Group pairs.

(x22x)+(2x4)\left(x^{2}–2x\right)+\left(2x–4\right)

Factor x out of the first group. Factor 22 out of the second group.

x(x2)+2(x2)x\left(x–2\right)+2\left(x–2\right)

Factor out (x2)\left(x–2\right).

(x2)(x+2)\left(x–2\right)\left(x+2\right)

Answer

(x2)(x+2)\left(x–2\right)\left(x+2\right)

Since order doesn't matter with multiplication, the answer can also be written as (x+2)(x2)\left(x+2\right)\left(x–2\right). You can check the answer by multiplying (x2)(x+2)=x2+2x2x4=x24\left(x–2\right)\left(x+2\right)=x^{2}+2x–2x–4=x^{2}–4.

A General Note: Differences of Squares

A difference of squares can be rewritten as two factors containing the same terms but opposite signs.
a2b2=(a+b)(ab){a}^{2}-{b}^{2}=\left(a+b\right)\left(a-b\right)
Now that we have seen how to factor a difference of squares with regrouping, let's try some examples using the short-cut.

Example

Factor 9x2259{x}^{2}-25.

Answer: Notice that 9x29{x}^{2} and 2525 are perfect squares because 9x2=(3x)29{x}^{2}={\left(3x\right)}^{2} and 25=5225={5}^{2}.This means that a=3x, and b=5a=3x,\text{ and }b=5 The polynomial represents a difference of squares and can be rewritten as (3x+5)(3x5)\left(3x+5\right)\left(3x - 5\right). Check that you are correct by multiplying. (3x+5)(3x5)=9x215x+15x25=9x225\left(3x+5\right)\left(3x - 5\right)=9x^2-15x+15x-25=9x^2-25

Try It

[ohm_question]161674[/ohm_question]
The most helpful thing for recognizing a difference of squares that can be factored with the shortcut is knowing which numbers are perfect squares, as you will see in the next example.

Example

Factor 81y214481{y}^{2}-144.

Answer: Notice that 81y281{y}^{2} and 144144 are perfect squares because 81y2=(9x)281{y}^{2}={\left(9x\right)}^{2} and 144=122144={12}^{2}. This means that a=9x, and b=12a=9x,\text{ and }b=12 The polynomial represents a difference of squares and can be rewritten as (9x+12)(9x12)\left(9x+12\right)\left(9x - 12\right). Check that you are correct by multiplying. (9x+12)(9x12)=81x2108x+108x144=81x2144\left(9x+12\right)\left(9x - 12\right)=81x^2-108x+108x-144=81x^2-144

 
TIP To help identify difference of squares factoring problems, make a list of perfect squares and become familiar with these values.  You will frequently see them in these types of factoring problems.  In addition, these problems must have a minus sign. For example, x^2 - 9 = (x+3)(x-3)
1^2 1
2^2 4
3^2 9
4^2 16
5^2 25

Try It

[ohm_question]7930[/ohm_question]
In the following video, we show another example of how to use the formula for factoring a difference of squares. https://youtu.be/Li9IBp5HrFA We can summarize the process for factoring a difference of squares with the shortcut this way:

How To: Given a difference of squares, factor it into binomials

  1. Confirm that the first and last term are perfect squares.
  2. Write the factored form as (a+b)(ab)\left(a+b\right)\left(a-b\right).

Think About It

Is there a formula to factor the sum of squares, a2+b2a^2+b^2, into a product of two binomials? Write down some ideas for how you would answer this in the box below before you look at the answer. [practice-area rows="1"][/practice-area]

Answer: There is no way to factor a sum of squares into a product of two binomials. This is because of addition - the middle term needs to "disappear" and the only way to do that is with opposite signs. To get a positive result, you must multiply two numbers with the same signs. The only time a sum of squares can be factored is if they share any common factors, as in the following case: 9x2+369x^2+36 The only way to factor this expression is by pulling out the GCF which is 9. 9x2+36=9(x2+4)9x^2+36=9(x^2+4)

Contribute!

Did you have an idea for improving this content? We’d love your input.

Licenses & Attributions