Factoring Difference of Squares Formula

Factoring difference of squares is recognizing and factoring expressions of the form a^2 - b^2 into the product (a + b)(a - b).

The Formula

a2−b2=(a+b)(a−b)

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

Quick example

x2−25=(x+5)(x−5)
4x2−9=(2x+3)(2x−3)

Notation

a2 and b2 are perfect squares. The minus sign between them is required. a and b can be any expression (e.g., a=2x, b=3).

What this formula means

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.

Formal view

∀a,b∈R:  a2−b2=(a+b)(a−b). This is an identity in R[a,b]. Note: a2+b2 is irreducible over R (factors only over C as (a+bi)(a−bi)).

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.

Common mistakes

  • Trying to factor a2+b2 the same way — a sum of squares does not factor over the reals; only the difference does.
  • Stopping after one step on x4−16 — refactor the new difference of squares: (x2−4)(x2+4)=(x−2)(x+2)(x2+4).
  • Forgetting a coefficient is a square too — 4x2−9 has a=2x, b=3, giving (2x+3)(2x−3), not (2x+9)(2x−1).

Why this formula matters

It factors in one line what would otherwise need a search for number pairs: x2−49=0 gives x=±7 at once, and x2−9x−3 simplifies to x+3 for x≠3. It powers mental math, 31×29=302−12=899, and it is the reason conjugates clear roots from denominators: (3+2)(3−2)=9−2=7.

Frequently asked questions

What is the Factoring Difference of Squares formula?

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

How do you use the Factoring Difference of Squares formula?

Use it when you see exactly two terms, each a perfect square (like x2, 49, 16x2, x4), joined by a minus sign. Check coefficients too: 25x2 is (5x)2. After factoring, look again, since a factor like x2−4 can split further. Pull out a GCF first: 2x2−18=2(x2−9). With three terms, try a perfect-square trinomial or trinomial factoring. With a plus sign, as in x2+16, it does not factor over the reals.

What do the symbols mean in the Factoring Difference of Squares formula?

a2 and b2 are perfect squares. The minus sign between them is required. a and b can be any expression (e.g., a=2x, b=3).

Why is the Factoring Difference of Squares formula important in Math?

It factors in one line what would otherwise need a search for number pairs: x2−49=0 gives x=±7 at once, and x2−9x−3 simplifies to x+3 for x≠3. It powers mental math, 31×29=302−12=899, and it is the reason conjugates clear roots from denominators: (3+2)(3−2)=9−2=7.

What do students get wrong about Factoring Difference of Squares?

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.

What should I learn before the Factoring Difference of Squares formula?

Before studying the Factoring Difference of Squares formula, you should understand: factoring, polynomials.

The full guide

This formula is covered in depth in Factoring Polynomials: All Methods Explained with Step-by-Step Examples.