Factoring Difference of Squares Examples in Math

Worked examples of Factoring Difference of Squares to try before you open each solution, then practice problems with answers.

Worked Examples

Example 1

easy
Factor x2−49.
Show solution

Answer

(x+7)(x−7)

First step

1.
Step 1: Recognize the form a2−b2 where a=x and b=7.

Full solution

  1. 2.
    Step 2: Apply the formula: (a+b)(a−b)=(x+7)(x−7).
  2. 3.
    Step 3: Verify: (x+7)(x−7)=x2−7x+7x−49=x2−49 ✓
The difference of squares pattern a2−b2=(a+b)(a−b) works because the middle terms cancel. Both terms must be perfect squares separated by subtraction.

Example 2

medium
Factor 16x2−25y2.

Example 3

medium
Factor 49x2−100y2.

Example 4

medium
Factor completely x4−16.

Example 5

medium
Factor x6−64 as a difference of two squares.

Example 6

medium
Factor (x+1)2−9.

Example 7

hard
Factor a2−(b+c)2.

Example 8

hard
Use difference of squares to compute (2025)2−(2024)2.

Example 9

hard
Factor x2−6x+9−y2 by grouping.

Example 10

hard
Factor (2x+1)2−(x−3)2.

Example 11

challenge
Factor x8−1 completely over the reals.

Practice Problems

Try each one, then open the solution to compare your method.

Example 1

easy
Factor x2−1.

Example 2

hard
Factor x4−81 completely.

Example 3

easy
Factor x2−9.

Example 4

easy
Factor x2−25.

Example 5

easy
Factor 4x2−1.

Example 6

easy
Factor x2−49.

Example 7

easy
Factor 9−x2.

Example 8

easy
Factor x2−100.

Example 9

easy
Factor 16−y2.

Example 10

easy
Factor 25x2−36.

Example 11

medium
Factor completely: x4−16.

Example 12

medium
Factor completely: 2x2−50.

Example 13

medium
Factor completely: 48−3y2.

Example 14

medium
Factor x2−14.

Example 15

medium
Factor 49a2−64b2.

Example 16

medium
Factor completely: x4−81.

Example 17

medium
Use difference of squares to compute 532−472 mentally.

Example 18

medium
Factor (x+1)2−9.

Example 19

medium
Factor 100x2−49.

Example 20

challenge
Factor completely: x4−13x2+36.

Example 21

challenge
Factor x4+x2+1 completely over the integers.

Example 22

challenge
Factor completely: a4−b4.

Example 23

easy
Factor x2−16.

Example 24

easy
Factor 4−x2.

Example 25

easy
Factor x2−64.

Example 26

easy
Factor 9x2−25.

Example 27

easy
Factor 1−49y2.

Example 28

medium
Factor 50x2−8.

Example 29

medium
Factor x2−14.

Example 30

medium
Factor 25x2−1.

Example 31

medium
Factor 36x2−49y2.

Example 32

medium
Solve x2−49=0 by factoring.

Example 33

hard
Factor 16x4−81y4 completely.

Example 34

hard
Factor x29−y225.

Example 35

hard
Solve 4x2−25=0 by factoring.

What to focus on

Core idea: When two perfect squares are subtracted, the expression factors into the conjugate pair (a+b)(a−b).

Common stuck point: The procedure for factoring difference of squares is the easy part; the trap is trying to factor a2+b2 the same way. Asking "Are both terms perfect squares with a minus sign between them and nothing in the middle?" first is what keeps a correct-looking calculation from being attached to the wrong concept.

Ask yourself: Are both terms perfect squares with a minus sign between them and nothing in the middle?

Concept recap

Recognizing and factoring expressions of the form a2−b2 into the product (a+b)(a−b).

Reshape a square garden into a rectangle with the same perimeter, b metres longer and b metres narrower, and you always lose exactly a b-by-b patch: (a+b)(a−b)=a2−b2. Run that backward and any square minus a square becomes such a rectangle. The trick depends on that missing patch, so it says nothing about a2+b2.

Read the full lesson on Factoring Difference of Squares

Factoring Difference of Squares is covered with related ideas in the guide Factoring Polynomials: All Methods Explained with Step-by-Step Examples.

Background knowledge

These ideas may be useful before you work through the harder examples.

factoringpolynomials