How to Factor Perfect Square Trinomials

••• Wavebreakmedia/iStock/GettyImages

Once you start solving algebraic equations that involve polynomials, the ability to recognize special, easily factored forms of polynomials becomes very useful. One of the most useful "easy-factor" polynomials to spot is the perfect square, or the trinomial that results from squaring a binomial. Once you've identified a perfect square, factoring it into its individual components is often a vital part of the problem-solving process.

Identifying Perfect Square Trinomials

Before you can factor a perfect square trinomial, you have to learn to recognize it. A perfect square can take on either of two forms

a^2 + 2ab + b^2 \text{, which is the product of } (a + b)(a + b) = (a + b)^2 \\ a^2 - 2ab + b^2 \text{, which is the product of } (a - b)(a - b) = (a - b)^2

Some examples of perfect squares that you might see in the "real world" of math problems include:

x^2 + 8x + 16

This is the product of (​x​ + 4)2.

y^2 - 2y + 1

This is the product of (​y​ - 1)2.

4x^2 + 12x + 9

This one is a little sneakier; it's the product of (2​x​ + 3)2.

What's the key to recognizing these perfect squares?

  1. Check the First and Third Terms

  2. Check the first and third terms of the trinomial. Are they both squares? If yes, figure out what they are squares of. For example, in the second "real world" example given above:

    y^2 - 2y + 1

    the term ​y2 is obviously the square of ​y.​ The term 1 is, perhaps less obviously, the square of 1, because 12 = 1.

  3. Multiply the Roots

  4. Multiply the roots of the first and third terms together. To continue the example, that's ​y​ and 1, which gives you ​y​ × 1 = 1​y​ or simply ​y​.

    Next, multiply your product by 2. Continuing the example, you have 2​y.

  5. Compare to the Middle Term

  6. Finally, compare the result of the last step to the middle term of the polynomial. Do they match? In the polynomial ​y2 – 2​y​ + 1, they do. (The sign is irrelevant; it'd also be a match if the middle term were +2​y​.)

    Because the answer in Step 1 was "yes" and your result from Step 2 matches the middle term of the polynomial, you know you're looking at a perfect square trinomial.

Factoring a Perfect Square Trinomial

Once you know you're looking at a perfect square trinomial, the process of factoring it is quite straightforward.

  1. Identify the Roots

  2. Identify the roots, or the numbers being squared, in the first and third terms of the trinomial. Consider another of your example trinomials that you already know is a perfect square:

    x^2 + 8x + 16

    Obviously the number being squared in the first term is ​x​. The number being squared in the third term is 4, because 42 = 16.

  3. Write out Your Terms

  4. Think back to the formulas for perfect square trinomials. You know your factors will take either the form (​a​ + ​b​)(​a​ + ​b​) or the form (​a​ – ​b​)(​a​ – ​b​), where ​a​ and ​b​ are the numbers being squared in the first and third terms. So you can write your factors out thusly, omitting the signs in the middle of each term for now:

    (a \,? \,b)(a \,? \,b) = a^2 \,?\, 2ab + b^2

    To continue the example by substituting the roots of your current trinomial, you have:

    (x \,?\, 4)(x \, ?\, 4) = x^2 + 8x + 16
  5. Examine the Middle Term

  6. Check the middle term of the trinomial. Does it have a positive sign or a negative sign (or, to put it another way, is it being added or subtracted)? If it has a positive sign (or is being added), then both factors of the trinomial have a plus sign in the middle. If it has a negative sign (or is being subtracted), both factors have a negative sign in the middle.

    The middle term of the current example trinomial is 8​x​ – it's positive – so you've now factored the perfect square trinomial:

    (x + 4)(x + 4) = x^2 + 8x + 16
  7. Check Your Work

  8. Check your work by multiplying the two factors together. Applying the FOIL or first, outer, inner, last method gives you:

    x^2 + 4x + 4x + 16

    Simplifying this gives the result ​x2 + 8​x​ + 16, which matches your trinomial. So the factors are correct.


About the Author

Lisa studied mathematics at the University of Alaska, Anchorage, and spent several years tutoring high school and university students through scary -- but fun! -- math subjects like algebra and calculus.