MathPath
Grades 1–13 Math Hub
Grades 8–10 · Algebra I · Formula Deep Dive

Difference of Squares ($a^2 - b^2$): Visual Proof & Examples

The Difference of Squares identity factors any subtraction of two perfect squares into a conjugate pair $(a - b)(a + b)$—essential for fast factoring, simplifying fractions, and mental arithmetic.

$$a^2 - b^2 = (a - b)(a + b)$$

Variables: $a$ and $b$ can be numbers, variables, or algebraic expressions.

When to use: Fast factoring of binomials and simplifying rational expressions.

Geometric Area Dissection Proof

aab²a² − b²=a(a−b)b(a−b)a + ba−b

Cut a $b \times b$ square from an $a \times a$ square (leaving area $a^2 - b^2$). Slice the remaining L-shape and reassemble it into a single rectangle of width $(a + b)$ and height $(a - b)$.

Algebraic Proof by Expansion (FOIL)

Multiply $(a - b)(a + b)$ using the distributive property to see the middle terms cancel completely.

  1. Expand $(a - b)(a + b) = a(a + b) - b(a + b)$.
  2. Distribute both terms: $a^2 + ab - ab - b^2$.
  3. The opposite middle terms $+ab$ and $-ab$ cancel to $0$, leaving $a^2 - b^2$.

High-Value Patterns & Tricks

Factoring Out a GCF First

Always pull out a common factor first: $2x^2 - 50 = 2(x^2 - 25) = 2(x - 5)(x + 5)$.

Higher Even Powers

$x^4 - 16 = (x^2 - 4)(x^2 + 4) = (x - 2)(x + 2)(x^2 + 4)$—factor completely!

Mental Multiplication

$53 \times 47 = (50 + 3)(50 - 3) = 50^2 - 3^2 = 2500 - 9 = 2491$.

Rationalizing Denominators

Multiply by the conjugate $(\sqrt{a} + \sqrt{b})$ so $(\sqrt{a} - \sqrt{b})(\sqrt{a} + \sqrt{b}) = a - b$.

Step-by-Step Worked Examples

Example 1: Factoring with Leading Coefficients

Problem: Factor $9x^2 - 16y^2$ completely.
  1. Rewrite each term as a perfect square: $9x^2 = (3x)^2$ and $16y^2 = (4y)^2$.
  2. Set $a = 3x$ and $b = 4y$ in $a^2 - b^2 = (a - b)(a + b)$.
  3. Result: $(3x - 4y)(3x + 4y)$.

Example 2: Multi-Step Factoring with GCF and Fourth Power

Problem: Factor $3x^4 - 48$ completely over the integers.
  1. Factor out the GCF of $3$: $3(x^4 - 16)$.
  2. Apply difference of squares: $3(x^2 - 4)(x^2 + 4)$.
  3. Factor $x^2 - 4$ again: $3(x - 2)(x + 2)(x^2 + 4)$.

Common Mistakes to Avoid

Mistake 1: Trying to Factor a SUM of Squares

✗ Wrong: Factoring $x^2 + 9$ as $(x + 3)(x + 3)$ or $(x - 3)(x + 3)$.
✓ Correct: $x^2 + 9$ is prime over the real numbers—it CANNOT be factored using real numbers.

Why: $(x + 3)^2 = x^2 + 6x + 9$ (extra $6x$ term), and $(x - 3)(x + 3) = x^2 - 9$ (minus sign).

Mistake 2: Forgetting to Take the Square Root of the Coefficient

✗ Wrong: Factoring $4x^2 - 25$ as $(4x - 5)(4x + 5)$.
✓ Correct: Since $4x^2 = (2x)^2$, the correct factorization is $(2x - 5)(2x + 5)$.

Why: $(4x)(4x) = 16x^2$, not $4x^2$.

Frequently Asked Questions

Does $(a - b)(a + b)$ equal $(a + b)(a - b)$?

Yes, multiplication is commutative, so either order of the two binomials is completely equivalent.

Can I use Difference of Squares when a number isn't a perfect square?

Over irrational numbers, yes: $x^2 - 5 = (x - \sqrt{5})(x + \sqrt{5})$, which is useful when solving equations or factoring in Precalculus.

Why doesn't $a^2 + b^2$ factor over real numbers?

Because $a^2 + b^2 > 0$ for all nonzero real values, so it has no real roots to form linear factors.

Practice & Related Resources

Apply Difference of Squares on interactive problems, printable PDF worksheets, and calculators.

Perfect Square Trinomials →All Algebra Formulas →Open Algebra Calculator →Grade 9 Algebra Quizzes → ← Back to Algebra Formulas Cheat Sheet