A topic in the Open Knowledge Graph — a free, open map of 15,290 topics and the order to learn them in.

Factoring Difference of Squares

Middle & High School Depth 62 in the knowledge graph ☐ I know this ☆ Set as goal
6,479topics build on this
275prerequisites beneath it
See this on the map →
Multiplying Binomials (FOIL)Introduction to Square Roots→→Factoring Completely
factoring difference-of-squares special-products polynomials

Core Idea

The difference of two perfect squares factors as a² − b² = (a + b)(a − b). This pattern comes from FOIL: (a + b)(a − b) = a² − ab + ab − b² = a² − b², where the middle terms cancel. For example, x² − 25 = (x + 5)(x − 5), and 4x² − 9 = (2x + 3)(2x − 3). This is one of the most recognizable and useful factoring patterns. It appears in simplifying rational expressions, solving equations, and even in mental math (e.g., 52 × 48 = (50 + 2)(50 − 2) = 2500 − 4 = 2496).

How It's Best Learned

Start by having students FOIL (a + b)(a − b) to discover the pattern themselves. Then practice recognizing when an expression fits the pattern — both terms must be perfect squares separated by subtraction. Include expressions where a and b involve coefficients or higher powers (e.g., 16x⁴ − 1). Emphasize that a sum of squares (a² + b²) does not factor over the real numbers.

Common Misconceptions

Explainer

The difference of squares pattern is a direct reversal of the FOIL process you already know. When you multiply (a + b)(a − b) using FOIL, the outer term is −ab and the inner term is +ab — and those two middle terms cancel completely, leaving a² − b². Factoring a² − b² just runs this in reverse: you recognize that some expression is a perfect square minus another perfect square, and you split it into the two binomials whose middle terms will cancel.

The first skill is recognizing perfect squares. A perfect square is any expression you can write as something squared: 25 is 5², x² is x², 4x² is (2x)², 9y⁶ is (3y³)². When you see a two-term expression connected by subtraction, ask yourself: "Is each term a perfect square?" If yes, name the square roots — call them a and b — and write (a + b)(a − b). For x² − 16, we have a = x and b = 4, giving (x + 4)(x − 4). For 9x² − 25, we have a = 3x and b = 5, giving (3x + 5)(3x − 5). You can always verify by re-FOILing.

A crucial boundary: a sum of squares does not factor over the real numbers. The expression x² + 25 cannot be written as a product of two real binomials — try (x + 5)(x + 5) = x² + 10x + 25 (wrong), or (x + 5)(x − 5) = x² − 25 (also wrong). The cancellation of middle terms in FOIL requires one factor to have a plus and the other to have a minus, which produces a difference, not a sum. This is why the pattern is specifically called the "difference" of squares.

Finally, watch for nested applications: some expressions can be factored using the pattern more than once. Consider x⁴ − 1. This is (x²)² − 1² = (x² + 1)(x² − 1). The first factor is a sum of squares and cannot be factored further; the second factor, x² − 1, is itself a difference of squares: (x + 1)(x − 1). So the complete factorization is (x² + 1)(x + 1)(x − 1). Always check whether any factor you produce can be factored again — complete factoring means no factor can be broken down further.

Practice Questions 5 questions

Prerequisite Chain

Understanding Zero → The Number Zero → Counting to Five → Counting to 10 → Counting to 20 → Counting a Set of Objects Up to 20 → Cardinality: The Last Number Counted → Matching Numerals to Quantities → Subitizing Small Quantities → Addition Within 10 → Making 10 as an Addition Strategy → Addition Within 20 → Doubles and Near Doubles → Doubles Facts Within 10 → Near Doubles Facts Within 20 → Mental Math Strategies for Addition → Mental Math: Adding and Subtracting Tens → Addition Within 100 → Repeated Addition as Multiplication → Multiplication as Equal Groups → Multiplication: Arrays → Basic Multiplication Facts Through 10 → Multiplication Facts Within 100 → Division as Equal Sharing → Division as Grouping (Measurement Division) → Division: Grouping (Repeated Subtraction) Model → Division: Fair Sharing Model → Division as Equal Sharing → Division as Grouping → Basic Division Facts → Division Facts Within 100 → Multiplication and Division Fact Families → Relationship Between Multiplication and Division → Division Facts as Inverse of Multiplication → Remainders and Quotients in Division → Division Word Problems → Multi-Step Word Problems → Solving Multi-Step Word Problems → Multiplication Word Problems → Division Word Problems → Introduction to Long Division → Factors and Multiples → Prime and Composite Numbers → Equivalent Fractions → Relating Fractions and Decimals → Decimal Place Value → Integers and the Number Line → Opposites and Additive Inverses → Absolute Value → Adding Integers → Subtracting Integers → Multiplying Integers → Introduction to Exponents → Order of Operations → Integer Order of Operations → Variable Expressions → The Distributive Property → Variables and Expressions Review → Introduction to Polynomials → Adding and Subtracting Polynomials → Multiplying Polynomials → Multiplying Binomials (FOIL) → Factoring Difference of Squares

Longest path: 63 steps · 275 total prerequisite topics

Prerequisites (2)

Leads To (1)