Perfect Square Trinomials
A perfect square trinomial is a trinomial that equals a binomial squared. It fits a^2 + 2ab + b^2 = (a + b)^2 or a^2 - 2ab + b^2 = (a - b)^2. The first and last terms are perfect squares, and the middle term is 2 times their roots. For example, x^2 + 10x + 25 = (x + 5)^2.
Before this lesson: You should know special products of binomials, factoring trinomials and factoring the difference of squares.
What Is a Perfect Square Trinomial?
A trinomial is a polynomial with three terms. Some trinomials come from squaring a binomial. For example, (x + 5)^2 = x^2 + 10x + 25. Those are perfect square trinomials.
You saw this pattern in Special Products of Binomials. Now you run it backward. Look at the first and last terms, then check the middle term.
Perfect Square Trinomial Formulas
\begin{aligned} a^2 + 2ab + b^2 &= (a + b)^2 \\ a^2 - 2ab + b^2 &= (a - b)^2 \end{aligned}The sign of the middle term tells you the sign in the binomial. The last term is always positive, because it is a square.
Steps for factoring a perfect square trinomial
- Factor out the GCF, if there is one.
- Check that the first and last terms are perfect squares. The last term must be positive.
- Find a and b, the square roots of the first and last terms.
- Check that the middle term is 2ab. Ignore its sign for now.
- Write (a + b)^2 if the middle term is plus. Write (a - b)^2 if it is minus.
- If the middle term doesn’t match, it is not a perfect square. Factor another way.
Worked Examples
Example 1: A plus sign in the middle
Factor x^2 + 10x + 25.
The first term is x^2, so a = x. The last term is 25 = 5^2, so b = 5. The middle should be 2 \cdot x \cdot 5 = 10x. It is.
x^2 + 10x + 25 = (x + 5)^2
Example 2: A minus sign in the middle
Factor y^2 - 14y + 49.
Here a = y and b = 7. Check: 2 \cdot y \cdot 7 = 14y. The middle term is minus, so the binomial has a minus.
y^2 - 14y + 49 = (y - 7)^2
Check: (y - 7)^2 = y^2 - 7y - 7y + 49 = y^2 - 14y + 49.
Example 3: A coefficient on the first term
Factor 4x^2 + 12x + 9.
4x^2 = (2x)^2, so a = 2x. 9 = 3^2, so b = 3. The middle should be 2 \cdot 2x \cdot 3 = 12x. It matches.
4x^2 + 12x + 9 = (2x + 3)^2
Example 4: Factor out the GCF first
Factor 2x^2 - 24x + 72.
Every term is even, so take out 2. Then x^2 - 12x + 36 has a = x and b = 6, and 2 \cdot x \cdot 6 = 12x.
\begin{aligned} 2x^2 - 24x + 72 &= 2(x^2 - 12x + 36) \\ &= 2(x - 6)^2 \end{aligned}Example 5: Word problem
A square rug has an area of 9x^2 + 12x + 4 square feet. Find the length of one side. Then find the side and the area when x = 2.
9x^2 = (3x)^2 and 4 = 2^2. The middle should be 2 \cdot 3x \cdot 2 = 12x. It matches, so the area is (3x + 2)^2.
9x^2 + 12x + 4 = (3x + 2)^2
Each side is 3x + 2 feet. When x = 2, a side is 3(2) + 2 = 8 feet, and the area is 8^2 = 64 square feet. Check: 9(4) + 12(2) + 4 = 64.
Common Mistakes
| Mistake | Example of the error | Fix |
|---|---|---|
| Using the wrong sign | y^2 - 14y + 49 = (y + 7)^2 | A minus middle term gives a minus: (y - 7)^2. |
| Not checking the middle term | x^2 + 13x + 36 = (x + 6)^2 | 2 \cdot x \cdot 6 = 12x, not 13x. Factor it another way: (x + 4)(x + 9). |
| Missing that the last term is negative | x^2 - 6x - 9 = (x - 3)^2 | (x - 3)^2 = x^2 - 6x + 9. A negative last term is never a perfect square. |
| Not taking the root of the coefficient | 4x^2 + 12x + 9 = (4x + 3)^2 | The root of 4x^2 is 2x. The answer is (2x + 3)^2. |
| Mixing it up with a difference of squares | x^2 + 10x + 25 = (x + 5)(x - 5) | (x + 5)(x - 5) = x^2 - 25. Three terms means (x + 5)^2. |
How to Tell If a Trinomial Is a Perfect Square
| Trinomial | Ends are squares? | Middle is 2ab? | Perfect square? |
|---|---|---|---|
| x^2 + 6x + 9 | Yes: x and 3 | Yes: 6x | Yes, (x + 3)^2 |
| x^2 + 13x + 36 | Yes: x and 6 | No: 12x is needed | No |
| x^2 + 6x - 9 | No: the last term is negative | — | No |
| 9x^2 - 30xy + 25y^2 | Yes: 3x and 5y | Yes: 30xy | Yes, (3x - 5y)^2 |
If a trinomial is not a perfect square, use the methods in Factoring Trinomials or Factoring Trinomials When a Is Not 1.
Finding the missing last term
Sometimes you need to make a perfect square. For x^2 + 8x + c, take half of 8 and square it: 4^2 = 16. So x^2 + 8x + 16 = (x + 4)^2. This idea is the start of completing the square, which comes in the quadratics unit.
Practice Problems
- Factor x^2 + 6x + 9.
- Factor x^2 - 16x + 64.
- Factor m^2 + 2m + 1.
- Factor 25x^2 + 20x + 4.
- Factor 16x^2 - 24x + 9.
- Factor a^2 + 10ab + 25b^2.
- Is x^2 + 10x + 16 a perfect square trinomial? Factor it.
- Factor 3x^2 + 30x + 75 completely.
- Find c so that x^2 - 18x + c is a perfect square trinomial. Then factor it.
- A square photo has an area of 4x^2 + 28x + 49 square inches. Find the length of one side. Then find the side and the area when x = 3.
Show answers
- (x + 3)^2
- (x - 8)^2
- (m + 1)^2
- (5x + 2)^2. Check: 2 \cdot 5x \cdot 2 = 20x.
- (4x - 3)^2. Check: 2 \cdot 4x \cdot 3 = 24x.
- (a + 5b)^2
- No. The ends are squares of x and 4, but 2 \cdot x \cdot 4 = 8x, not 10x. It factors as (x + 2)(x + 8).
- 3(x^2 + 10x + 25) = 3(x + 5)^2
- Half of 18 is 9, and 9^2 = 81. So c = 81, and x^2 - 18x + 81 = (x - 9)^2.
- (2x + 7)^2, so each side is 2x + 7 inches. When x = 3: the side is 13 inches and the area is 169 square inches.
FAQ
How do you know if a trinomial is a perfect square?
The first and last terms must be perfect squares, and the last term must be positive. Then the middle term must equal 2ab, where a and b are the square roots of the ends.
What is the perfect square trinomial formula?
a^2 + 2ab + b^2 = (a + b)^2 and a^2 - 2ab + b^2 = (a - b)^2. The sign in the binomial matches the sign of the middle term.
Is a perfect square trinomial the same as a difference of squares?
No. A perfect square trinomial has three terms and factors into two equal binomials. A difference of squares has two terms and factors into a sum times a difference.
Can a perfect square trinomial have a negative last term?
No. The last term is b^2, and a square is never negative. So a trinomial like x^2 - 4x - 4 is not a perfect square.
Summary
- A perfect square trinomial equals a binomial squared, like x^2 + 10x + 25 = (x + 5)^2.
- Check that the first and last terms are squares and the last term is positive.
- Check that the middle term is 2ab.
- Use the sign of the middle term as the sign in the binomial.
- Take out the GCF first. If the middle term doesn’t match, factor another way.
Previous lesson: Factoring the Difference of Squares
Next lesson: Factoring Completely
Back to the Algebra 1 Index
