Skip to ContentGo to accessibility page
Algebra 1

6.6.3 Factoring the Difference of Squares

Algebra 16.6.3 Factoring the Difference of Squares

6.6.3 Factoring the Difference of Squares

6.6.3 • Factoring the Difference of Squares

Activity

Remember that ( a − b ) ( a − b ) and ( a + b ) ( a + b ) are a conjugate pair. When you multiply them together, you end up with the difference of squares, a 2 − b 2 a 2 − b 2 .

Let’s look at the pattern used to factor a difference of squares:

a 2 − b 2 = ( a − b ) ( a + b ) a 2 − b 2 = ( a − b ) ( a + b )

Work with a partner to factor using the difference of squares.

As you factor each binomial, take turns with your partner, alternating the completion of each step one at a time. If you do not know the next step, ask your partner for help.

1. 81 y 2 − 1 81 y 2 − 1

2. 196 m 2 − 25 n 2 196 m 2 − 25 n 2

3. 6 p 2 q 2 − 54 p 2 6 p 2 q 2 − 54 p 2

4. 7 a 4 c 2 − 7 b 4 c 2 7 a 4 c 2 − 7 b 4 c 2

5. a 2 + 6 a + 9 − 9 b 2 a 2 + 6 a + 9 − 9 b 2

6. x 2 + 6 x + 9 − 4 y 2 x 2 + 6 x + 9 − 4 y 2

7. Can a binomial with an addition operation be factored using the difference of squares? Explain.

Video: Factoring the Difference of Squares

Watch the following video to learn more about how to factor the difference of squares when there is also a greatest common factor.

Factoring the Difference of Squares

Self Check

Factor using the difference of squares: 121 p 2 − 9 q 2 .
  1. ( 11 p + 3 q ) 2
  2. ( 11 p − 3 q ) 2
  3. ( 11 q − 3 p ) ( 11 q + 3 p )
  4. ( 11 p − 3 q ) ( 11 p + 3 q )

Additional Resources

Factoring the Difference of Squares

The other special product you saw in the previous chapter was the Product of Conjugates pattern. You used this to multiply two binomials that were conjugates. Here’s an example:

( a − b ) ( a + b ) ( 3 x − 4 ) ( 3 x + 4 ) ( a − b ) ( a + b ) ( 3 x − 4 ) ( 3 x + 4 )

( a ) 2 − ( b ) 2 ( 3 x ) 2 − ( 4 ) 2 ( a ) 2 − ( b ) 2 ( 3 x ) 2 − ( 4 ) 2

9 x 2 − 16 9 x 2 − 16

A difference of squares pattern factors to a product of conjugates.

DIFFERENCE OF SQUARES PATTERN

If a a and b b are real numbers,

Remember, “difference” refers to subtraction. So, to use this pattern, you must make sure you have a binomial in which two squares are being subtracted.

How to factor the difference of squares:

Step 1 - Does the binomial fit the pattern?

Is this a difference?

Are the first and last terms perfect squares?

a 2 − b 2 _ _ _ − _ _ _ a 2 − b 2 _ _ _ − _ _ _

Step 2 - Write them as squares.

( a ) 2 − ( b ) 2 ( a ) 2 − ( b ) 2

Step 3 - Write the product of conjugates.

( a − b ) ( a + b ) ( a − b ) ( a + b )

Step 4 - Check by multiplying.

Example 1

Factor: 64 y 2 − 1 64 y 2 − 1 .

Step 1 - Does the binomial fit the pattern?

  • Is this a difference?
    Yes.
  • Are the first and last terms perfect squares?
    Yes.

Step 2 - Write them as the difference of squares.

a 2 − b 2 ( 8 y ) 2 − 1 2 a 2 − b 2 ( 8 y ) 2 − 1 2

Step 3 - Write the product of conjugates.

( a − b ) ( a + b ) ( 8 y − 1 ) ( 8 y + 1 ) ( a − b ) ( a + b ) ( 8 y − 1 ) ( 8 y + 1 )

Step 4 - Check by multiplying.

( 8 y − 1 ) ( 8 y + 1 ) ( 8 y − 1 ) ( 8 y + 1 )

64 y 2 − 1 ✓ 64 y 2 − 1 ✓

It is important to remember that sums of squares do not factor into a product of binomials. There are no binomial factors that multiply together to get a sum of squares. After removing any GCF, the expression a 2 + b 2 a 2 + b 2 is prime!

The next example shows variables in both terms.

Example 2

Factor: 144 x 2 − 49 y 2 144 x 2 − 49 y 2 .

Step 1 - Is this a difference of squares?

144 x 2 − 49 y 2 144 x 2 − 49 y 2

Yes.

( 12 x ) 2 − ( 7 y ) 2 ( 12 x ) 2 − ( 7 y ) 2

Step 2 - Factor as the product of conjugates.

( 12 x − 7 y ) ( 12 x + 7 y ) ( 12 x − 7 y ) ( 12 x + 7 y )

Step 3 - Check by multiplying.

( 12 x − 7 y ) ( 12 x + 7 y ) ( 12 x − 7 y ) ( 12 x + 7 y )

44 x 2 − 49 y 2 ✓ 44 x 2 − 49 y 2 ✓

As always, you should look for a common factor first whenever you have an expression to factor. Sometimes a common factor may “disguise” the difference of squares, and you won’t recognize the perfect squares until you factor out the GCF.

Also, to completely factor the binomial in the next example, we’ll factor a difference of squares twice!

Example 3

Factor: 48 x 4 y 2 − 243 y 2 48 x 4 y 2 − 243 y 2 .

Step 1 - Is there a GCF?

48 x 4 y 2 − 243 y 2 48 x 4 y 2 − 243 y 2

Yes, 3 y 2 3 y 2 —factor it out!

3 y 2 ( 16 x 4 − 81 ) 3 y 2 ( 16 x 4 − 81 )

Step 2 - Is the binomial a difference of squares? Yes.

3 y 2 [ ( 4 x 2 ) 2 − ( 9 ) 2 ] 3 y 2 [ ( 4 x 2 ) 2 − ( 9 ) 2 ]

Step 3 - Factor as a product of conjugates.

3 y 2 ( 4 x 2 − 9 ) ( 4 x 2 + 9 ) 3 y 2 ( 4 x 2 − 9 ) ( 4 x 2 + 9 )

Step 4 - Notice the first binomial is also a difference of squares!

3 y 2 [ ( 2 x ) 2 − ( 3 ) 2 ] ( 4 x 2 + 9 ) 3 y 2 [ ( 2 x ) 2 − ( 3 ) 2 ] ( 4 x 2 + 9 )

Step 5 - Factor it as the product of conjugates.

3 y 2 ( 2 x − 3 ) ( 2 x + 3 ) ( 4 x 2 + 9 ) 3 y 2 ( 2 x − 3 ) ( 2 x + 3 ) ( 4 x 2 + 9 )

The last factor, the sum of squares, cannot be factored.

Step 6 - Check by multiplying.

3 y 2 ( 2 x − 3 ) ( 2 x + 3 ) ( 4 x 2 + 9 ) 3 y 2 ( 2 x − 3 ) ( 2 x + 3 ) ( 4 x 2 + 9 )

3 y 2 ( 4 x 2 − 9 ) ( 4 x 2 + 9 ) 3 y 2 ( 4 x 2 − 9 ) ( 4 x 2 + 9 )

3 y 2 ( 16 x 4 − 81 ) 3 y 2 ( 16 x 4 − 81 )

48 x 4 y 2 − 243 y 2 ✓ 48 x 4 y 2 − 243 y 2 ✓

Example 4

Factor: x 2 − 6 x + 9 − y 2 x 2 − 6 x + 9 − y 2 .

Step 1 - Factor by grouping the first three terms.

Step 2 - Use the perfect square trinomial pattern.

( x − 3 ) 2 − y 2 ( x − 3 ) 2 − y 2

Step 3 - Is there a difference of squares?

Yes—write them as squares.

a 2 − b 2 ( x − 3 ) 2 − y 2 a 2 − b 2 ( x − 3 ) 2 − y 2

Step 4 - Factor as the product of conjugates.

( a − b ) ( a + b ) ( ( x − 3 ) − y ) ( ( x − 3 ) + y ) ( a − b ) ( a + b ) ( ( x − 3 ) − y ) ( ( x − 3 ) + y )

( x − 3 − y ) ( x − 3 + y ) ( x − 3 − y ) ( x − 3 + y )

You may want to rewrite the solution as ( x − y − 3 ) ( x + y − 3 ) ( x − y − 3 ) ( x + y − 3 ) .

Try it

Factoring the Difference of Squares

Factor using the difference of squares.

1. 121 m 2 − 1 121 m 2 − 1

2. 2 x 4 y 2 − 32 y 2 2 x 4 y 2 − 32 y 2

3. x 2 − 10 x + 25 − y 2 x 2 − 10 x + 25 − y 2

Citation/Attribution
Reuse and redistribution of this content in digital or print format:
  • This book may not be used in the training of large language models or otherwise be ingested into large language models or generative AI offerings without OpenStax's prior written permission.
  • This book uses the Creative Commons Attribution-NonCommercial-ShareAlike License, which means that you can reuse and modify the material only for noncommercial purposes, must attribute OpenStax, and must distribute any derivative works under the same license.
  • Any commercial printing of this textbook, including using a local or custom printer, must be approved by OpenStax, and proper citation provided.
  • OpenStax-copyrighted images, activities, assessments, and similar components of this book are subject to the same licensing – CC-BY-NC-SA. They can be used for noncommercial purposes with attribution. Commercial use requires permission.
  • Permission requests: Anyone who intends to incorporate this content (including text, images, and other components) into large language models, use it in AI offerings, use it commercially (including in print), and/or has questions about another use case is welcome to complete our reuse request form.
Attribution information
  • If you are redistributing all or part of this book in a noncommercial print format, then you must include on every physical page the following attribution:

    Access for free at https://openstax.org/books/algebra-1/pages/about-this-course

  • If you are redistributing all or part of this book in a noncommercial digital format, then for every page that includes OpenStax content, you must license the derivative work under the same CC-BY-NC-SA license as the original, and include on every digital page view the following attribution:

    Access for free at https://openstax.org/books/algebra-1/pages/about-this-course

Citation information

The information below includes the information needed to generate citations in most major styles (APA, MLA, etc.); you must reformat and organize the information as needed to fit the requirements of the style. Use the information below to generate a citation. We recommend using a citation tool such as this one.

© Apr 23, 2026 OpenStax. Textbook content produced by OpenStax is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike License. The OpenStax name, OpenStax logo, OpenStax book covers, OpenStax CNX name, and OpenStax CNX logo, and Rice University name, and Rice University logo trademarks, or wordmarks are not subject to the Creative Commons license and may not be reproduced without the prior and express written consent of Rice University.