Perfect Square Trinomial: Rewrite as a Squared Binomial

By Vegard Gjerde Based on Masterful Learning 8 min read
perfect-square-trinomial algebra math learning-strategies

Perfect Square Trinomial lets you rewrite a2+2ab+b2a^2 + 2ab + b^2 as (a+b)2(a + b)^2, or a22ab+b2a^2 - 2ab + b^2 as (ab)2(a - b)^2, producing an equivalent expression wherever the original is defined. To use it correctly, first run the pattern check: identify the square roots of the end terms and verify that the middle term is exactly ±2ab\pm 2ab. Recognizing that eligibility check quickly is a core factoring fluency skill in the Unisium Study System.

This guide sits inside the Algebra study map, where you can see the neighboring moves, models, and next-step guides that connect this principle to the rest of algebra.

Unisium hero image for Perfect Square Trinomial showing the equation a² ± 2ab + b² = (a ± b)².
The Perfect Square Trinomial identity a2±2ab+b2=(a±b)2a^2 \pm 2ab + b^2 = (a \pm b)^2. Before applying it, run the pattern check: identify the square roots of the end terms and verify the middle term is exactly ±2ab\pm 2ab.

On this page: The Principle | Conditions | Failure Modes | EE Questions | Retrieval Practice | Practice Ground | Solve a Problem | FAQ


The Principle

The move: Replace a three-term polynomial matching a2±2ab+b2a^2 \pm 2ab + b^2 with the squared binomial (a±b)2(a \pm b)^2.

The invariant: This produces an equivalent expression with the same value for every allowed variable assignment — the squared-binomial form and the expanded trinomial evaluate identically everywhere both are defined.

Pattern: a2±2ab+b2(a±b)2a^2 \pm 2ab + b^2 \quad \longrightarrow \quad (a \pm b)^2

Legal ✓Illegal ✗
x26x+9    (x3)2x^2 - 6x + 9 \;\longrightarrow\; (x - 3)^2x26x9  ⟶̸  (x3)2x^2 - 6x - 9 \;\not\longrightarrow\; (x - 3)^2

The illegal column shows the attempted rewrite applied to a near-miss: (x3)2(x - 3)^2 expands to x26x+9x^2 - 6x + 9, not x26x9x^2 - 6x - 9. The last slot has the wrong sign — Perfect Square Trinomial requires a final +b2+b^2 term, so a trinomial ending in subtraction does not match the pattern, regardless of the middle term.


Conditions of Applicability

Condition: Defined where expressions are defined

Before applying, check: the expression must match the pattern a2±2ab+b2a^2 \pm 2ab + b^2: identify the square roots of the first and third terms, then verify that the middle term is exactly ±2ab\pm 2ab.

  • A trinomial with a minus sign in the last slot — such as x26x9x^2 - 6x - 9 — does not match the pattern because the third position requires a +b2+b^2 term; a literal subtraction in that slot breaks the pattern immediately.
  • A trinomial such as x2+5x+4x^2 + 5x + 4 also fails the pattern check: the end terms suggest a=xa = x and b=2b = 2, but then 2ab=4x5x2ab = 4x \neq 5x; the middle coefficient conflict disqualifies it.

Want the complete framework behind this guide? Read Masterful Learning.

This pattern is easiest to spot after working with Distributive Property enough to recognize squared binomials. Compare it with Difference of Squares when deciding which special-product structure you have, and use it next in Completing the Square where the perfect-square form is built on purpose.


Common Failure Modes

Failure mode: confirm only that the first and last terms are perfect squares, then apply the pattern without checking the middle coefficient → incorrectly factor a near-miss such as x2+5x+4x^2 + 5x + 4 as (x+2)2(x + 2)^2, producing x2+4x+4x^2 + 4x + 4, which is not the original expression.

Debug: after identifying aa and bb from the end terms, compute 2ab2ab and compare it to the actual middle term; if they differ, Perfect Square Trinomial does not apply.


Elaborative Encoding

Use these questions to build deep understanding. (See Elaborative Encoding for the full method.)

Within the Principle

  • Why does the middle term of a perfect square trinomial always equal 2ab2ab and not just abab? (Expand (a+b)2(a + b)^2 step by step and trace where each term comes from.)
  • When the middle term has a negative sign, how does that determine the sign inside the binomial — and why?

For the Principle

  • You see a three-term polynomial. What three questions do you ask, in what order, before deciding whether Perfect Square Trinomial applies?
  • What goes wrong if you identify bb correctly from the last term but then skip verifying the middle coefficient?

Between Principles

  • How does Perfect Square Trinomial relate to Completing the Square? In which direction does each one run, and what is each one starting from?
  • How does this pattern compare to Difference of Squares — specifically, what is different about the eligibility check and the number of terms involved?

Generate an Example

  • Write a trinomial where the first and last terms are perfect squares but the middle coefficient is wrong, making it a near-miss. Then state exactly which condition fails.

Retrieval Practice

Answer from memory, then click to reveal and check. (See Retrieval Practice for the full method.)

State the Perfect Square Trinomial move in one sentence: _____Replace a² + 2ab + b² with (a + b)², or a² − 2ab + b² with (a − b)², producing an equivalent expression for every allowed variable assignment.
Write the canonical Perfect Square Trinomial pattern: _____a2±2ab+b2=(a±b)2a^2 \pm 2ab + b^2 = (a \pm b)^2
State the canonical condition: _____Defined where expressions are defined

Practice Ground

Use these exercises to build move-selection fluency. (See Self-Explanation for how to use worked examples effectively.)

Procedure Walkthrough

Starting from 1812x+2x218 - 12x + 2x^2, reach fully factored form.

StepExpressionOperation
01812x+2x218 - 12x + 2x^2
12(96x+x2)2(9 - 6x + x^2)Factor Common Term: GCF = 2
22(x26x+9)2(x^2 - 6x + 9)Reorder inner trinomial into descending powers — this is a genuine rewrite, not a shortcut
32(x3)22(x - 3)^2Perfect Square Trinomial: a=xa = x, b=3b = 3; verify (x)2=x2(x)^2 = x^2 ✓, 32=93^2 = 9 ✓, 2(x)(3)=6x2(x)(3) = 6x ✓; sign is -

Drills

Format A — Forward step: apply the principle once

Apply the principle once.

x2+4x+4x^2 + 4x + 4

Reveal

Perfect Square Trinomial: a=xa = x, b=2b = 2; verify 2ab=4x2ab = 4x ✓, b2=4b^2 = 4 ✓; sign is ++

(x+2)2(x + 2)^2


Apply the principle once.

x210x+25x^2 - 10x + 25

Reveal

Perfect Square Trinomial: a=xa = x, b=5b = 5; verify 2ab=10x2ab = 10x ✓, b2=25b^2 = 25 ✓; sign is -

(x5)2(x - 5)^2


Apply the principle once.

9x2+6x+19x^2 + 6x + 1

Reveal

Identify a=3xa = 3x (since (3x)2=9x2(3x)^2 = 9x^2) and b=1b = 1 (since 12=11^2 = 1); verify 2ab=23x1=6x2ab = 2 \cdot 3x \cdot 1 = 6x ✓; sign is ++

(3x+1)2(3x + 1)^2


Apply the principle once.

25a220ab+4b225a^2 - 20ab + 4b^2

Reveal

Identify p=5ap = 5a (since (5a)2=25a2(5a)^2 = 25a^2) and q=2bq = 2b (since (2b)2=4b2(2b)^2 = 4b^2); verify 2pq=25a2b=20ab2pq = 2 \cdot 5a \cdot 2b = 20ab ✓; sign is -

(5a2b)2(5a - 2b)^2


Is this expression eligible for the Perfect Square Trinomial move? Explain.

x2+6x+8x^2 + 6x + 8

Reveal

No. From the middle term 6x6x, we need a=xa = x and b=3b = 3, since 2ab=2(x)(3)=6x2ab = 2(x)(3) = 6x. But then the last term would have to be b2=9b^2 = 9, not 88. The middle and last slots cannot both be satisfied by the same bb, so the pattern does not apply.


Is this expression eligible for the Perfect Square Trinomial move? Explain.

4x2+6x+14x^2 + 6x + 1

Reveal

No. Identify a=2xa = 2x (since (2x)2=4x2(2x)^2 = 4x^2) and b=1b = 1 (since 12=11^2 = 1). Check the middle term: 2ab=22x1=4x6x2ab = 2 \cdot 2x \cdot 1 = 4x \neq 6x.

Both end terms are perfect squares and the last term is positive — this looks like a strong candidate — but the middle coefficient fails the 2ab2ab check. The pattern does not apply.


Apply the principle once. (The terms are not in descending order.)

110x+25x21 - 10x + 25x^2

Reveal

Reorder into descending powers: 25x210x+125x^2 - 10x + 1.

Identify a=5xa = 5x (since (5x)2=25x2(5x)^2 = 25x^2) and b=1b = 1 (since 12=11^2 = 1); verify 2ab=25x1=10x2ab = 2 \cdot 5x \cdot 1 = 10x ✓; sign is -

(5x1)2(5x - 1)^2

Note: encountering the pattern in non-standard order is common. Reordering is a genuine rewrite, not a shortcut, so it earns its own row in a chain.


Format E — Canonicalization: rewrite in fully factored form

Canonicalize: Rewrite x2+14x+49x^2 + 14x + 49 in fully factored form.

Reveal

a=xa = x, b=7b = 7: verify 2ab=14x2ab = 14x ✓, b2=49b^2 = 49 ✓; sign is ++

(x+7)2(x + 7)^2


Canonicalize: Rewrite 9x224xy+16y29x^2 - 24xy + 16y^2 in fully factored form.

Reveal

a=3xa = 3x (since (3x)2=9x2(3x)^2 = 9x^2), b=4yb = 4y (since (4y)2=16y2(4y)^2 = 16y^2); verify 2ab=24xy2ab = 24xy ✓; sign is -

(3x4y)2(3x - 4y)^2


Canonicalize: Rewrite x4+2x2+1x^4 + 2x^2 + 1 in fully factored form.

Reveal

Identify a=x2a = x^2 (since (x2)2=x4(x^2)^2 = x^4) and b=1b = 1; verify 2ab=2x22ab = 2x^2 ✓, b2=1b^2 = 1 ✓; sign is ++

(x2+1)2(x^2 + 1)^2


Canonicalize: Rewrite 3x212x+123x^2 - 12x + 12 in fully factored form.

Reveal

Factor out the GCF first: 3(x24x+4)3(x^2 - 4x + 4)

Now apply Perfect Square Trinomial: a=xa = x, b=2b = 2; verify 2ab=4x2ab = 4x ✓, b2=4b^2 = 4 ✓; sign is -

3(x2)23(x - 2)^2


Canonicalize: Determine whether x26x9x^2 - 6x - 9 is a perfect square trinomial. If not, explain why.

Reveal

No. The final slot in the pattern must be a +b2+b^2 term. Here the expression ends with 9-9 (subtraction in the last position), so it fails the pattern immediately — before you even examine the middle term.

Near-miss note: the first term is x2x^2 ✓ and the middle term 6x-6x matches b=3b = 3 ✓, but the last slot’s sign defeats the pattern.


Solve a Problem

Apply what you’ve learned with Problem Solving.

Problem: Starting from 8x416x2+88x^4 - 16x^2 + 8, reach fully factored form.

Full solution
StepExpressionMove
08x416x2+88x^4 - 16x^2 + 8
18(x42x2+1)8(x^4 - 2x^2 + 1)Factor Common Term: GCF = 8
28(x21)28(x^2 - 1)^2Perfect Square Trinomial: a=x2a = x^2, b=1b = 1; verify (x2)2=x4(x^2)^2 = x^4 ✓, 2(x2)(1)=2x22(x^2)(1) = 2x^2 ✓, 12=11^2 = 1 ✓; sign is -
38((x1)(x+1))28((x - 1)(x + 1))^2Difference of Squares on x21x^2 - 1: a=xa = x, b=1b = 1; sign is -
48(x1)2(x+1)28(x - 1)^2(x + 1)^2Distribute the outer square over the product

FAQ

What is Perfect Square Trinomial?

Perfect Square Trinomial is a factoring identity: a2+2ab+b2=(a+b)2a^2 + 2ab + b^2 = (a + b)^2 and a22ab+b2=(ab)2a^2 - 2ab + b^2 = (a - b)^2. It converts a three-term polynomial — when both end terms are perfect squares and the middle coefficient equals 2ab2ab — into the square of a binomial. The identity holds for any algebraic expressions aa and bb wherever those expressions are defined.

When is Perfect Square Trinomial valid?

The move is valid when the trinomial matches the pattern a2±2ab+b2a^2 \pm 2ab + b^2: identify the square roots of the end terms and verify the middle term equals exactly ±2ab\pm 2ab. The third slot must contain a +b2+b^2 term — a subtracting sign in the last position breaks the pattern immediately, before you even examine the middle coefficient.

What goes wrong if I skip the middle-term check?

You may factor a near-miss incorrectly. For example, x2+5x+4x^2 + 5x + 4 looks like a candidate (both end terms are perfect squares), but 2x2=4x5x2 \cdot x \cdot 2 = 4x \neq 5x, so (x+2)2=x2+4x+4(x + 2)^2 = x^2 + 4x + 4 is not the same expression. The error is invisible unless you verify the middle coefficient explicitly.

How is Perfect Square Trinomial different from Difference of Squares?

Difference of Squares applies to a two-term expression a2b2a^2 - b^2 and requires the sign to be subtraction. Perfect Square Trinomial applies to a three-term expression and works with either sign in the middle. They are often chained: factoring x42x2+1x^4 - 2x^2 + 1 produces (x21)2(x^2 - 1)^2, and then Difference of Squares factors each x21x^2 - 1.

How does Perfect Square Trinomial relate to Completing the Square?

Completing the Square deliberately constructs a perfect square trinomial from an arbitrary quadratic ax2+bx+cax^2 + bx + c by adding and subtracting a correction term. Once the trinomial is in the a2±2ab+b2a^2 \pm 2ab + b^2 form, the Perfect Square Trinomial identity names the equivalence that licenses the rewrite. The two techniques run in opposite directions: Completing the Square builds the pattern; Perfect Square Trinomial collapses it.

Can aa or bb be a compound expression?

Yes. The identity works as long as both end positions evaluate to perfect squares. For example, x4+2x2+1x^4 + 2x^2 + 1 has a=x2a = x^2 and b=1b = 1, giving (x2+1)2(x^2 + 1)^2. Similarly (x+3)2+2(x+3)+1=((x+3)+1)2=(x+4)2(x + 3)^2 + 2(x + 3) + 1 = ((x + 3) + 1)^2 = (x + 4)^2, with a=(x+3)a = (x + 3) and b=1b = 1.

Does Perfect Square Trinomial apply to equations or inequalities?

Perfect Square Trinomial is an expression-level rewrite, not a bilateral operation like “add the same value to both sides.” That means it can absolutely be used inside an equation or inequality — as a step that rewrites one expression into an equivalent product — but it does not act on both sides of the relation simultaneously. Combine it with equation-operation rules such as Factor Common Term or the Zero Product Property when the goal is to solve.


How This Fits in Unisium

Factoring fluency depends on rapid, reliable pattern recognition: identifying the form, running the three-part eligibility check, and applying the identity — all before the move is needed inside a larger problem. Perfect Square Trinomial appears constantly inside completing-the-square procedures, quadratic solving, and simplification chains, but only when the three-way check has become automatic. Unisium builds this automaticity through short state-transition drills that specifically target near-miss forms, so the middle-term verification becomes a reflex rather than an afterthought.

Explore further:

  • Difference of Squares — The two-term factoring pattern; often reached after Perfect Square Trinomial in chained factoring
  • Factor Common Term — The GCF step that often precedes Perfect Square Trinomial when coefficients are involved
  • Retrieval Practice — Make the three-part eligibility check and the canonical pattern instantly accessible

Ready to master Perfect Square Trinomial? Start practicing with Unisium or explore the full learning framework in Masterful Learning.

Masterful Learning book cover

Masterful Learning

The study system for physics, math, & programming that works: retrieval, connection, explanation, problem solving, and more.

Read the book (opens in new tab) ISBN 979-8-2652-9642-9

Ready to apply this strategy?

Join Unisium and start implementing these evidence-based learning techniques.

Start Learning with Unisium Read More Guides

Want the complete framework? This guide is from Masterful Learning.

Learn about the book →