Canadian flagMath101 · Independent Ontario learning libraryCreated and edited by Kamran
Math101
Printable cheat sheet
AlgebraGrades 9–12

Difference of Squares

A difference of squares is a binomial $a^2-b^2$ that factors as $(a-b)(a+b)$. The identity follows because the middle terms cancel during expansion.

Open the full lesson →
This pattern makes factoring fast, explains conjugates, and supports equation solving, rational-expression simplification, and algebraic identities.

Intuition and core definition

A difference of squares is a binomial $a^2-b^2$ that factors as $(a-b)(a+b)$. The identity follows because the middle terms cancel during expansion. Both terms must be perfect squares and the operation between them must be subtraction; a sum of squares does not factor this way over the real numbers.

Notation, language, and conditions

$a$ and $b$ may themselves be monomials or expressions. For example, $9x^4-25=(3x^2)^2-5^2$. Factoring should continue: $x^4-16=(x^2-4)(x^2+4)=(x-2)(x+2)(x^2+4)$ over the reals.

Why this idea matters

A difference of squares factors through conjugate binomials because the opposite middle terms cancel during multiplication.

A dependable method

  1. Remove any greatest common factor first.
  2. Verify that exactly two terms remain with a subtraction sign.
  3. Write each term as a square, identifying $a$ and $b$.
  4. Form conjugate factors $(a-b)(a+b)$.
  5. Factor again if a factor is another difference of squares, then expand to check.

Worked example

Common mistakes

Search 464 published lessons, 123 answer guides, courses, and learning tools.
Your experience

Settings

Ontario math tutoringWork with KamranBook ↗