Tutorials › Calculus I › Deriving Special Product Identities for Factoring

Algebraic Function Structures · Tutorial 41 of 1495

Deriving Special Product Identities for Factoring

Learn why these identities hold and how to recognize when a polynomial matches one of their factorization patterns.

Beginner 9 min read

What You'll Learn

  • Expand squares of sums and differences using the distributive law.
  • Derive the difference-of-squares identity and explain why its middle terms cancel.
  • Recognize perfect-square trinomials from their first and last terms.
  • Factor differences of squares and verify each result by expansion.
  • Distinguish valid identity patterns from similar-looking expressions that do not match.

Why Special Product Identities Help with Factoring

A polynomial can sometimes be written as a product more quickly by recognizing a familiar pattern than by trying possible factors. Three useful patterns come from expanding products of two binomials: the square of a sum, the square of a difference, and the product of a sum and a difference.

These patterns are not separate rules that must be memorized without explanation. Each follows directly from the distributive law. Deriving them makes clear where every term comes from, and reversing the expansions gives precise ways to recognize certain factorizations.

Deriving the Square of a Sum

The square of a quantity means that quantity multiplied by itself. Thus \((a+b)^2\) means \((a+b)(a+b)\), not \(a^2+b^2\). Apply the distributive law to multiply each term in the first factor by each term in the second:

$$ \begin{aligned} (a+b)^2 &=(a+b)(a+b)\\ &=a\cdot a+a\cdot b+b\cdot a+b\cdot b\\ &=a^2+ab+ab+b^2\\ &=a^2+2ab+b^2. \end{aligned} $$

The two middle products are both \(ab\), so together they contribute \(2ab\). This gives the first identity.

Identity: For any \(a\) and \(b\), the square of a sum expands as \((a+b)^2=a^2+2ab+b^2\).

Reversing the identity gives a pattern for factoring: if the first and last terms are squares, and the middle term is twice the product of their square roots, the trinomial may be the square of a sum. The signs and coefficients must match exactly.

Worked Example: Expand and Check a Square of a Sum

Expand \((3x+2)^2\). First rewrite the square as a product, then multiply each term:

$$ \begin{aligned} (3x+2)^2 &=(3x+2)(3x+2)\\ &=(3x)(3x)+(3x)(2)+2(3x)+2(2)\\ &=9x^2+6x+6x+4\\ &=9x^2+12x+4. \end{aligned} $$

Check by applying the identity with \(a=3x\) and \(b=2\): \(a^2=9x^2\), \(2ab=2(3x)(2)=12x\), and \(b^2=4\). These terms reproduce \(9x^2+12x+4\), so the expansion is verified.

Deriving the Square of a Difference

For a difference, write the square as \((a-b)(a-b)\) and again multiply every term in the first factor by every term in the second. Keeping the negative signs visible helps prevent errors:

$$ \begin{aligned} (a-b)^2 &=(a-b)(a-b)\\ &=a\cdot a+a\cdot(-b)+(-b)\cdot a+(-b)\cdot(-b)\\ &=a^2-ab-ab+b^2\\ &=a^2-2ab+b^2. \end{aligned} $$

The last term is positive because the product of two negative terms is positive. The two middle products are both \(-ab\), so their sum is \(-2ab\).

Identity: For any \(a\) and \(b\), the square of a difference expands as \((a-b)^2=a^2-2ab+b^2\).

The square-of-a-sum and square-of-a-difference identities share the same first and last terms. They differ in the sign of the middle term. A positive middle term points to a square of a sum; a negative middle term points to a square of a difference, provided the other terms also match.

Worked Example: Recognize a Square of a Difference

Factor \(x^2-10x+25\), if it matches a square pattern. The first term is \(x^2\), the square of \(x\), and the last term is \(25\), the square of \(5\). The middle term required for \((x-5)^2\) is \(-2(x)(5)=-10x\), which matches. Therefore, the factorization is:

$$ \begin{aligned} x^2-10x+25 &=x^2-2(x)(5)+5^2\\ &=(x-5)^2. \end{aligned} $$

Check by multiplying the factors: \((x-5)^2=(x-5)(x-5)=x^2-5x-5x+25=x^2-10x+25\). The product equals the original trinomial.

Deriving the Difference of Squares

Now multiply a sum by its corresponding difference. The first and last terms are products of matching quantities, while the two cross-products have opposite signs:

$$ \begin{aligned} (a+b)(a-b) &=a\cdot a+a\cdot(-b)+b\cdot a+b\cdot(-b)\\ &=a^2-ab+ab-b^2\\ &=a^2-b^2. \end{aligned} $$

The middle terms cancel because \(-ab+ab=0\). This cancellation is why a difference of squares factors into a sum times a difference.

Identity: For any \(a\) and \(b\), the product of a sum and its corresponding difference is \((a+b)(a-b)=a^2-b^2\). Reversing the equality gives \(a^2-b^2=(a+b)(a-b)\).

To recognize this pattern, check that the expression has exactly two terms, that each term is a square, and that they are being subtracted. A sum of two squares does not match this identity: the cancellation depends on using opposite signs in the binomial factors.

Worked Example: Factor a Difference of Squares

Factor \(25y^2-49\). The first term is \((5y)^2\), and the second is \(7^2\). Since one square is subtracted from the other, use \(a^2-b^2=(a+b)(a-b)\) with \(a=5y\) and \(b=7\):

$$ \begin{aligned} 25y^2-49 &=(5y)^2-7^2\\ &=(5y+7)(5y-7). \end{aligned} $$

Check by multiplication: \((5y+7)(5y-7)=25y^2-35y+35y-49=25y^2-49\). The cross-products cancel, leaving the original expression.

A Reliable Recognition Process

When one of these patterns seems possible, match every part of the expression rather than relying on its general appearance. The order below separates the checks and makes sign errors easier to catch.

1
Identify the form.
Decide whether the expression has three terms, as a square trinomial does, or two terms, as a difference of squares does.
2
Check the square terms.
For a square trinomial, check whether its first and last terms are squares. For a difference of squares, check whether both terms are squares and whether they are subtracted.
3
Match the remaining details.
For a square trinomial, compute twice the product of the candidate square roots and compare it with the middle term, including its sign.
4
Write the factors and verify.
Use the matching identity in reverse, then expand the proposed factors to confirm that their product is the original expression.

For example, \(x^2+8x+16\) matches \((x+4)^2\): the end terms are \(x^2\) and \(4^2\), and the middle term is \(2(x)(4)=8x\). In contrast, \(x^2+7x+16\) does not match either square pattern with end terms \(x^2\) and \(16\), because the required middle term would be \(8x\) or \(-8x\), not \(7x\). A resemblance to a pattern is not enough; the coefficient must agree.

Common Mistake: Squaring Each Term Separately

A frequent error is to treat the square of a sum as the sum of the squares. For instance, the incorrect calculation \((x+3)^2=x^2+9\) omits both cross-products. It is wrong because \((x+3)^2\) means \((x+3)(x+3)\), which includes \(x\cdot3\) and \(3\cdot x\).

$$ \begin{aligned} (x+3)^2 &=(x+3)(x+3)\\ &=x^2+3x+3x+9\\ &=x^2+6x+9. \end{aligned} $$

A numerical check also exposes the incorrect result: at \(x=1\), the left side is \((1+3)^2=16\), while the mistaken expression gives \(1^2+9=10\). The corrected expansion gives \(1+6+9=16\). The cross-term is essential, not optional.

Why the Identities Matter

These identities connect multiplication and factoring. Expanding turns products into sums of terms; recognizing a pattern lets us reverse that process for certain expressions. The derivations explain exactly which features to look for: two equal cross-products in a squared binomial, or opposite cross-products in a product of a sum and a difference.

Factoring also provides a direct check on an answer: multiply the proposed factors and compare the result term by term with the original polynomial. If any coefficient or sign differs, the proposed factorization is not correct. These three identities cover specific patterns; they do not imply that every trinomial is a perfect square or that every two-term expression is a difference of squares.

Takeaway: The identities are \((a+b)^2=a^2+2ab+b^2\), \((a-b)^2=a^2-2ab+b^2\), and \(a^2-b^2=(a+b)(a-b)\). For a proposed factorization, match the terms and signs, then verify by expansion.

Check Your Understanding

Use the identities and the distributive law to answer these questions. Check each proposed factorization by expanding it.

  1. Expand \((2x+5)^2\). Which two products combine to form the middle term?
  2. Factor \(x^2+14x+49\), or explain which square-pattern check would fail.
  3. Factor \(36t^2-1\) using the difference-of-squares identity, then multiply the factors to check.
  4. Does \(x^2+25\) match the difference-of-squares identity as written? Explain the role of the sign between its terms.
  5. What middle term must appear if \(x^2+cx+16\) is the square of \(x+4\)? Give the value of \(c\) and verify the expansion.

Test yourself: Calculus I final exam practice

Ready to check what you know? Work a full-length practice final, then open the complete worked solutions.

Want all 1,114 practice problems?

This tutorial covers one topic. Calc Pass covers the full Calculus AB & BC curriculum (the core of Calculus I and II): full review, every practice question, and step-by-step solutions to each one.

QR code to download the Calc Pass app

Get the Calc Pass App

Scan to download and practice on the go, with instant scoring.

Calc Pass Volume 1: 1,114 Practice Questions book cover

Vol. 1: 1,114 Questions

The complete practice question bank, organized by AB & BC topic.

View on Amazon
Calc Pass Volume 2: Solutions Manual book cover

Vol. 2: Solutions Manual

Fully worked solutions to every question in Volume 1.

View on Amazon