Algebra · Step-by-step guide

Difference of Squares

Recognize and factor the difference-of-squares pattern, including expressions with common factors.

By Tyler Blovat··9 min read
The short answer

Start with the central idea

A difference of squares has two perfect-square terms separated by subtraction: a2b2=(ab)(a+b)\displaystyle a^2-b^2=(a-b)(a+b). The pattern does not apply to a sum of squares over the real numbers.

a2b2=(ab)(a+b)\displaystyle a^2-b^2=(a-b)(a+b)
01

How it works

Build the method from meaning before memorizing the moves.

These are the decisions that make the procedure reliable. Read them once, then look for each idea in the worked examples below.

1

Check all three conditions

There must be two terms, subtraction between them, and each term must be a perfect square.

2

Remove a GCF first

Factoring out the greatest common factor may reveal a difference of squares inside.

3

Factor completely

After applying the pattern, inspect the factors again for another difference of squares.

02

See the structure

A picture makes the relationships easier to remember.

−22vertex (0, −1)
The coordinate graph marks the vertex and the two x-intercepts of a representative quadratic.
03

Worked examples

Follow the reason for each line, then try to reproduce it without looking.

Example 1Basic pattern

Factor x249\displaystyle x^2-49.

  1. Recognize x2\displaystyle x^2 and 72\displaystyle 7^2.
  2. Apply a2b2\displaystyle a^2-b^2.
  3. Use conjugate binomials.
Answer(x7)(x+7)\displaystyle (x-7)(x+7)
Example 2With coefficients

Factor 9y216\displaystyle 9y^2-16.

  1. Write 9y2=(3y)2\displaystyle 9y^2=(3y)^2.
  2. Write 16=42\displaystyle 16=4^2.
  3. Apply the pattern.
Answer(3y4)(3y+4)\displaystyle (3y-4)(3y+4)
Example 3Factor completely

Factor 2x432\displaystyle 2x^4-32.

  1. Take out 2: 2(x416)\displaystyle 2(x^4-16).
  2. Factor x416=(x24)(x2+4)\displaystyle x^4-16=(x^2-4)(x^2+4).
  3. Factor x24\displaystyle x^2-4 again.
Answer2(x2)(x+2)(x2+4)\displaystyle 2(x-2)(x+2)(x^2+4)
04

Common mistakes—and how to avoid them

Accuracy improves fastest when you know what to check.

  • Trying to factor a² + b² with this real-number pattern.

  • Forgetting to take out the GCF.

  • Stopping while a factor is still a difference of squares.

05

Turn the explanation into a skill

Reading creates recognition. Independent practice creates recall.

Free printable worksheet · Answer key included

Difference of Squares

Recognize the pattern and practice factoring completely.

Preview the worksheet

A strong practice loop: solve one example with the guide open, solve a similar problem without it, explain the method aloud, and return the next day for a short mixed review.

06

Practice problems with worked solutions

Solve each problem on paper, use the hint only if needed, then compare every step.

1

Factor x281\displaystyle x^2-81.

Show hint

Write 81 as a square.

Show worked solution
  1. 81=92\displaystyle 81=9^2.
  2. Apply a2b2=(ab)(a+b)\displaystyle a^2-b^2=(a-b)(a+b).

Answer: (x9)(x+9)\displaystyle (x-9)(x+9)

2

Factor 25y24\displaystyle 25y^2-4.

Show hint

Identify both square roots.

Show worked solution
  1. 25y2=(5y)2\displaystyle 25y^2=(5y)^2 and 4=22\displaystyle 4=2^2.
  2. Use conjugate factors.

Answer: (5y2)(5y+2)\displaystyle (5y-2)(5y+2)

3

Factor completely: 3x248\displaystyle 3x^2-48.

Show hint

Take out the GCF first.

Show worked solution
  1. 3x248=3(x216)\displaystyle 3x^2-48=3(x^2-16).
  2. x216=(x4)(x+4)\displaystyle x^2-16=(x-4)(x+4).

Answer: 3(x4)(x+4)\displaystyle 3(x-4)(x+4)

4

Factor completely: x416\displaystyle x^4-16.

Show hint

Treat x4\displaystyle x^4 as (x2)2\displaystyle (x^2)^2.

Show worked solution
  1. x416=(x24)(x2+4)\displaystyle x^4-16=(x^2-4)(x^2+4).
  2. Factor x24\displaystyle x^2-4 again.

Answer: (x2)(x+2)(x2+4)\displaystyle (x-2)(x+2)(x^2+4)

5

Can x2+36\displaystyle x^2+36 be factored by the difference-of-squares rule?

Show hint

Check the operation between terms.

Show worked solution
  1. Both terms are squares, but they are added.
  2. The real-number difference-of-squares pattern requires subtraction.

Answer: No; it is a sum of squares.

07

Frequently asked questions

Quick answers before you move on.

What should I remember first?

A difference of squares has two perfect-square terms separated by subtraction: a2b2=(ab)(a+b)\displaystyle a^2-b^2=(a-b)(a+b). The pattern does not apply to a sum of squares over the real numbers.

How do I know whether I understand this topic?

You should be able to name the method, explain why each step is valid, complete a new example without copying, and check whether your answer is reasonable.

What should I do if I keep making the same mistake?

Write the error as a specific checkpoint—for example, “I will identify the hypotenuse before substituting.” Then use that checkpoint on three short problems rather than repeating a full page without feedback.