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 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 looks like a subtraction between two perfect squares: a² - b². When you see that structure, you can rewrite it as (a + b)(a - b).

The pattern works because multiplying a sum and a difference gives the middle terms that cancel out. If you expand (a + b)(a - b), you get a² - ab + ab - b², and the two middle terms disappear. That leaves just a² - b², which is why this factorization is always true.

The biggest skill is recognizing the shape quickly. Both terms have to be squares, and there has to be subtraction between them. So x² - 16 works because it is x² - 4², but x² + 16 does not fit the pattern, and neither does 9x² - 25y² unless you notice that each term is itself a square, giving (3x + 5y)(3x - 5y).

This is more than a memorized formula, because it connects algebraic structure to multiplication. A lot of College Algebra problems are really asking you to spot patterns and rewrite expressions in a cleaner form. Difference of squares is one of the easiest patterns to learn once you notice the “square minus square” setup.

You will also see it inside larger problems. A polynomial may need a greatest common factor pulled out first, and then the remaining expression may become a difference of squares. That means factoring is often a two-step process, not just a one-shot recognition of the formula.

Why difference of squares matters in College Algebra

Difference of squares shows up all over College Algebra because factoring is one of the main tools for simplifying expressions and solving equations. If you can spot the pattern fast, you can turn a messy polynomial into two binomials, which is often the first step toward finding zeros, solving a quadratic, or simplifying a rational expression.

It also connects to several other topics in the course. In rational expressions, factoring a denominator can reveal values that make the expression undefined. In quadratic equations, a difference of squares may let you solve by factoring instead of using the quadratic formula. In polynomial graphs, those factored forms help you identify x-intercepts and see how the graph behaves near them.

A lot of students miss this pattern because they look only for decimals, fractions, or complicated coefficients. The real test is structural: is it a subtraction, and are both sides perfect squares? If yes, the factoring move is probably there.

Keep studying College Algebra Unit 2

How difference of squares connects across the course

Factoring

Difference of squares is one factoring pattern inside the larger factoring toolkit. Before you try more advanced methods, check whether the expression already fits a special form. If it does, the shortcut is faster than grouping or trial-and-error, and it often leads straight to solving an equation or simplifying an expression.

Perfect Square Trinomial

These two patterns are easy to mix up because they both involve squares, but they work differently. A perfect square trinomial has three terms and factors into a binomial squared, like (a + b)². Difference of squares has two terms and factors into a product of conjugates, like (a + b)(a - b).

Rational Expressions

Difference of squares is useful when you factor numerators or denominators in rational expressions. Once a denominator factors, you can see cancellation opportunities and identify restrictions on the domain. That is why this pattern often appears in simplification problems, especially when expressions look hard at first glance but break into clean factors.

Quadratic Equations

A quadratic equation may be solvable by factoring if it can be rewritten into a difference of squares. For example, x² - 49 = 0 becomes (x + 7)(x - 7) = 0, which is much quicker than other methods. This connection makes the pattern useful for both solving and checking answers.

Is difference of squares on the College Algebra exam?

A quiz or problem set may give you a polynomial like x² - 81 or 4y² - 25 and expect you to factor it immediately. The move is to check whether each term is a perfect square, then write the expression as a product of conjugates. If the equation is set equal to zero, you can use the factored form to find the solutions.

You may also need to combine this with another factoring step. For example, if there is a greatest common factor first, you factor that out before checking for a difference of squares. In simplification problems, factoring can help you cancel factors in a rational expression, but only after you notice the pattern correctly and keep track of restrictions on the denominator.

Difference of squares vs Perfect Square Trinomial

A difference of squares has two terms and factors into conjugates, while a perfect square trinomial has three terms and factors into a squared binomial. The giveaway is the sign pattern and the number of terms. If you see a middle term, you are probably not dealing with difference of squares.

Key things to remember about difference of squares

  • Difference of squares has the form a² - b², and it factors as (a + b)(a - b).

  • Both terms must be perfect squares, and the expression must be subtraction, not addition.

  • This pattern is one of the fastest factoring shortcuts in College Algebra.

  • You can use it to solve equations, simplify rational expressions, and rewrite polynomials in a cleaner form.

  • If the expression has a greatest common factor first, factor that out before checking for the difference of squares pattern.

Frequently asked questions about difference of squares

What is difference of squares in College Algebra?

It is the factoring pattern a² - b² = (a + b)(a - b). You use it when a polynomial has two squared terms separated by subtraction. In College Algebra, it shows up in factoring, solving equations, and simplifying rational expressions.

How do you know if an expression is a difference of squares?

Check two things: there must be exactly two terms, and both terms must be perfect squares. Then make sure they are being subtracted, not added. For example, x² - 9 fits because it is x² - 3².

Is x² + 16 a difference of squares?

No. Difference of squares requires subtraction, not addition. x² + 16 is a sum of squares, and that does not factor over the real numbers using the difference of squares pattern.

How is difference of squares used to solve equations?

If you have an equation like x² - 25 = 0, factor it as (x + 5)(x - 5) = 0 and set each factor equal to zero. That gives x = 5 or x = -5. This is often faster than other solving methods when the expression fits the pattern.