If you're seeing this message, it means we're having trouble loading external resources on our website.

If you're behind a web filter, please make sure that the domains *.kastatic.org and *.kasandbox.org are unblocked.

## Get ready for Algebra 2

### Course: Get ready for Algebra 2>Unit 1

Lesson 8: Factoring quadratics with difference of squares

# Factoring quadratics: Difference of squares

Learn how to factor quadratics that have the "difference of squares" form. For example, write x²-16 as (x+4)(x-4).
Factoring a polynomial involves writing it as a product of two or more polynomials. It reverses the process of polynomial multiplication.
In this article, we'll learn how to use the difference of squares pattern to factor certain polynomials. If you don't know the difference of squares pattern, please check out our video before proceeding.

## Intro: Difference of squares pattern

Every polynomial that is a difference of squares can be factored by applying the following formula:
start color #11accd, a, end color #11accd, squared, minus, start color #1fab54, b, end color #1fab54, squared, equals, left parenthesis, start color #11accd, a, end color #11accd, plus, start color #1fab54, b, end color #1fab54, right parenthesis, left parenthesis, start color #11accd, a, end color #11accd, minus, start color #1fab54, b, end color #1fab54, right parenthesis
Note that a and b in the pattern can be any algebraic expression. For example, for a, equals, x and b, equals, 2, we get the following:
\begin{aligned}\blueD{x}^2-\greenD{2}^2=(\blueD x+\greenD 2)(\blueD x-\greenD 2)\end{aligned}
The polynomial x, squared, minus, 4 is now expressed in factored form, left parenthesis, x, plus, 2, right parenthesis, left parenthesis, x, minus, 2, right parenthesis. We can expand the right-hand side of this equation to justify the factorization:
\begin{aligned}(x+2)(x-2)&=x(x-2)+2(x-2)\\\\&=x^2-2x+2x-4\\ \\ &=x^2-4\end{aligned}
Now that we understand the pattern, let's use it to factor a few more polynomials.

## Example 1: Factoring $x^2-16$x, squared, minus, 16

Both x, squared and 16 are perfect squares, since x, squared, equals, left parenthesis, start color #11accd, x, end color #11accd, right parenthesis, squared and 16, equals, left parenthesis, start color #1fab54, 4, end color #1fab54, right parenthesis, squared. In other words:
x, squared, minus, 16, equals, left parenthesis, start color #11accd, x, end color #11accd, right parenthesis, squared, minus, left parenthesis, start color #1fab54, 4, end color #1fab54, right parenthesis, squared
Since the two squares are being subtracted, we can see that this polynomial represents a difference of squares. We can use the difference of squares pattern to factor this expression:
start color #11accd, a, end color #11accd, squared, minus, start color #1fab54, b, end color #1fab54, squared, equals, left parenthesis, start color #11accd, a, end color #11accd, plus, start color #1fab54, b, end color #1fab54, right parenthesis, left parenthesis, start color #11accd, a, end color #11accd, minus, start color #1fab54, b, end color #1fab54, right parenthesis
In our case, start color #11accd, a, end color #11accd, equals, start color #11accd, x, end color #11accd and start color #1fab54, b, end color #1fab54, equals, start color #1fab54, 4, end color #1fab54. Therefore, our polynomial factors as follows:
left parenthesis, start color #11accd, x, end color #11accd, right parenthesis, squared, minus, left parenthesis, start color #1fab54, 4, end color #1fab54, right parenthesis, squared, equals, left parenthesis, start color #11accd, x, end color #11accd, plus, start color #1fab54, 4, end color #1fab54, right parenthesis, left parenthesis, start color #11accd, x, end color #11accd, minus, start color #1fab54, 4, end color #1fab54, right parenthesis
We can check our work by ensuring the product of these two factors is x, squared, minus, 16.

1) Factor x, squared, minus, 25.

2) Factor x, squared, minus, 100.

### Reflection question

3) Can we use the difference of squares pattern to factor x, squared, plus, 25?

## Example 2: Factoring $4x^2-9$4, x, squared, minus, 9

The leading coefficient does not have to equal to 1 in order to use the difference of squares pattern. In fact, the difference of squares pattern can be used here!
This is because 4, x, squared and 9 are perfect squares, since 4, x, squared, equals, left parenthesis, start color #11accd, 2, x, end color #11accd, right parenthesis, squared and 9, equals, left parenthesis, start color #1fab54, 3, end color #1fab54, right parenthesis, squared. We can use this information to factor the polynomial using the difference of squares pattern:
\begin{aligned}4x^2-9 &=(\blueD {2x})^2-(\greenD{3})^2\\ \\ &=(\blueD {2x}+\greenD 3)(\blueD {2x}-\greenD 3) \end{aligned}
A quick multiplication check verifies our answer.

4) Factor 25, x, squared, minus, 4.