Skip to main content
The new Teacher Workspace is here. Your first 3 assignments are free. Try it →

Difference of Squares

Difference of squares is the factoring pattern a² - b² = (a + b)(a - b). In College Algebra, you use it to factor polynomials, simplify rational expressions, and solve equations faster.

Last updated July 2026

What is Difference of Squares?

Difference of squares is a factoring pattern in College Algebra that shows up when you have one perfect square minus another perfect square, like x² - 16 or 9y² - 25. When you spot that shape, you can rewrite it as (a + b)(a - b), where a² and b² are the original square terms.

The reason it works is simple multiplication. If you expand (a + b)(a - b), the middle terms cancel: a² - ab + ab - b² = a² - b². That cancellation is what makes this pattern so useful. You are not just memorizing a trick, you are using a structure that always expands back to the original expression.

A term only counts as a difference of squares if both pieces are perfect squares and the expression is subtraction, not addition. So x² + 16 is not a difference of squares, and x² - 18 is not one either, because 18 is not a perfect square. The pattern can also hide inside bigger expressions, such as 4x² - 81, which factors as (2x + 9)(2x - 9).

In College Algebra, this pattern often appears after you first check for a greatest common factor. For example, 3x² - 27 should be factored as 3(x² - 9), and then x² - 9 becomes (x + 3)(x - 3). That order matters because many problems expect you to factor completely.

You will also see difference of squares when expressions have a minus sign between two squared quantities, especially in factoring, rational expressions, and quadratic equations. A quick visual check helps: if you can match the form a² - b², you can usually factor it immediately instead of using a longer method.

Why Difference of Squares matters in College Algebra

Difference of squares matters in College Algebra because it turns an expression that looks finished into one that can be simplified, solved, or analyzed. That shows up constantly in factoring problems, where the goal is to rewrite a polynomial in product form. Once an expression is factored, you can often find zeros, simplify fractions, or solve an equation by setting each factor equal to zero.

It also shows up in rational expressions. If the numerator or denominator is a difference of squares, factoring may let you cancel a common factor, but only after you factor completely and check for excluded values. That is a big reason teachers keep returning to this pattern. It is not just about getting the right answer, it is about getting the expression into the form that reveals what it can and cannot do.

The pattern connects directly to quadratic equations too. A lot of problems become easier when a quadratic is written as a difference of squares, especially if the equation has no middle term. Instead of forcing the quadratic formula every time, you can sometimes factor in one step and finish faster.

This idea also supports graphing and function work. When a polynomial is factored, you can read x-intercepts more easily and see how the factors relate to the graph. Difference of squares is one of the cleanest examples of how algebraic structure leads to better graph interpretation.

Keep studying College Algebra Unit 2

Official unit cheatsheet

open one-pager

How Difference of Squares connects across the course

Perfect Square

Difference of squares only works when each term is a perfect square. That means you need to recognize numbers like 9, 16, 25, and expressions like x² or 4y² as square terms. If either side is not a square, the pattern does not apply, even if the expression still looks close.

Factoring

This is one of the special factoring patterns you want to spot quickly. In many College Algebra problems, you first look for a GCF, then check whether what remains fits a special pattern like difference of squares. That habit keeps you from missing easier factorization steps.

Quadratic Equation

Some quadratics can be solved by factoring once they are rewritten as a difference of squares. That gives you a fast route to the solutions without using the quadratic formula. It is especially useful when the equation has no linear term, like x² - 49 = 0.

Rational Expressions

Factoring a numerator or denominator as a difference of squares is often the first step in simplifying a rational expression. It can expose common factors you can cancel, but you still have to keep the original restrictions on the denominator. That makes this pattern a tool for both simplifying and checking domain.

Is Difference of Squares on the College Algebra exam?

A quiz or problem-set question will usually ask you to factor an expression, simplify a rational expression, or solve an equation by recognizing the pattern fast. The move is to check whether both terms are perfect squares and whether the expression is subtraction, then write it as (a + b)(a - b). If the expression has a GCF, factor that out first. If it appears in a denominator, remember to state any excluded values before simplifying. In graphing or function questions, factoring a difference of squares can reveal zeros more quickly, which helps you identify x-intercepts and interpret the shape of the polynomial.

Difference of Squares vs Perfect Square

A perfect square is a single term or expression that comes from squaring something, like x² or 25. Difference of squares is a two-term expression written as a subtraction of two perfect squares, like x² - 25. One is the building block, the other is the pattern made from two of those blocks.

Key things to remember about Difference of Squares

  • Difference of squares follows the pattern a² - b² = (a + b)(a - b).

  • Both terms must be perfect squares, and the sign between them must be subtraction.

  • Check for a greatest common factor first, because the pattern may appear only after factoring that out.

  • This pattern is useful for factoring polynomials, simplifying rational expressions, and solving equations.

  • When you factor a difference of squares in a denominator, remember that the original denominator can still make the expression undefined.

Frequently asked questions about Difference of Squares

What is difference of squares in College Algebra?

It is a factoring pattern for expressions shaped like a² - b². You rewrite it as (a + b)(a - b), which is useful in factoring, simplifying fractions, and solving equations. The key is that both terms have to be perfect squares.

How do you factor a difference of squares?

First make sure both terms are perfect squares and the expression is subtraction. Then write the answer as the sum and difference of the square roots: a² - b² becomes (a + b)(a - b). For example, x² - 49 becomes (x + 7)(x - 7).

Is x² + 16 a difference of squares?

No. Difference of squares needs subtraction, not addition. x² + 16 is a sum of squares, and that does not factor over the real numbers the same way. Students often mix these up because both terms are squares, but the sign changes everything.

Why does factoring a difference of squares help with rational expressions?

Factoring can reveal common factors that can be canceled. For example, if a numerator and denominator both contain a factor from a difference of squares, you may be able to simplify the expression. You still have to keep track of values that make the original denominator zero.

Difference of Squares | College Algebra | Fiveable