Most trinomials you meet factor through the slow grind of the ac method — split the middle term, group, pull out common factors, hope it works. But some trinomials are special. They are perfect squares in disguise, and once you learn to spot them, you can factor them in about five seconds without writing a single intermediate step.
Look at x² + 6x + 9. You could split 6x into 3x and 3x, group, factor — and eventually arrive at (x+3)(x+3) = (x+3)². Or you could recognise the pattern instantly and write (x+3)² straight away. The shortcut is worth learning, because under exam pressure the seconds you save here free you up for the harder problem on the next page.
Here is how to spot a perfect square trinomial at a glance.
The three-check recognition
A trinomial Ax² + Bx + C is a perfect square if and only if all three of the following are true:
-
The first term is a perfect square. Things like
x²,4a²,25y²,9m²qualify. You can take a clean square root:√(x²) = x,√(4a²) = 2a, and so on. -
The last term is a perfect square. Things like 9, 16, 25, 49,
b²,16b²,25c²qualify. Again, you can take a clean square root. -
The middle term equals 2 × (square root of first) × (square root of last). This is the binding condition. The first two checks set up the candidates for
aandb; the third confirms that the cross-product2abis actually present.
If all three pass, the trinomial factors as (√first ± √last)², where the sign matches the sign of the middle term.
That is the entire algorithm. Three checks. Then factor.
Worked example 1 — x² + 6x + 9
- First term:
x². Square root: x. - Last term: 9. Square root: 3.
- Expected middle: 2 × x × 3 = 6x. Actual middle: 6x. Match.
All three checks pass. The middle sign is positive, so this is (a + b)² shape.
Factor: (x + 3)².
Verify by expanding: (x+3)² = x² + 6x + 9. Done.
Worked example 2 — x² − 10x + 25
- First term:
x². Square root: x. - Last term: 25. Square root: 5.
- Expected middle (in size): 2 × x × 5 = 10x. Actual middle: −10x. Match in size; the sign tells you which version of the formula to use.
The middle sign is negative, so this is (a − b)² shape.
Factor: (x − 5)².
Notice: the last term is still positive (25), because squaring kills the sign. The middle term is the sign-carrier in this pattern.
Worked example 3 — 4x² + 12x + 9
- First term:
4x². Square root: 2x. (Don't forget the coefficient —√(4x²) = 2x, not x.) - Last term: 9. Square root: 3.
- Expected middle: 2 × 2x × 3 = 12x. Actual: 12x. Match.
Factor: (2x + 3)².
This one trips students who only check x²-style first terms. The leading coefficient must be a perfect square too.
Worked example 4 — NOT a perfect square — x² + 5x + 6
- First term:
x². Square root: x. Pass. - Last term: 6. Square root:
√6, irrational. Fail.
Already check 2 fails. This trinomial is not a perfect square. Factor it the regular way: (x + 2)(x + 3).
This is the most common kind of trinomial — the one the ac method is designed for. Do not force a perfect square pattern where none exists.
Worked example 5 — NOT a perfect square — x² + 7x + 9
This one is sneakier, because checks 1 and 2 both pass.
- First:
x². Square root: x. Pass. - Last: 9. Square root: 3. Pass.
- Expected middle: 2 × x × 3 = 6x. Actual middle: 7x. Mismatch.
Check 3 fails. Not a perfect square. The first two checks alone are not enough — you must verify the middle term. Otherwise x² + 7x + 9 would lie its way into (x+3)², which is wrong.
The reverse — going FROM (a ± b)² to a² ± 2ab + b²
Recognition runs both ways. If you start with a squared binomial and expand, you should land back in trinomial form:
(x + 5)² = x² + 10x + 25. (Middle: 2·x·5 = 10x.)(2x − 3)² = 4x² − 12x + 9. (Middle: 2·2x·3 = 12x; sign negative.)(a + b)² = a² + 2ab + b²— the master template. See/wiki/a-plus-b-squared-not-a-squared-plus-b-squared-tilesfor the geometric reason behind the 2ab.
If you can expand fluently, you can recognise. They are the same skill in two directions.
Why the middle term is 2ab
Walk through the multiplication:
(a + b)(a + b) = a·a + a·b + b·a + b·b = a² + ab + ba + b² = a² + 2ab + b².
The two cross terms ab and ba are the same number, and they add. That is where the 2 comes from. Forgetting this is the classic blunder: writing (a + b)² = a² + b² and missing the 2ab. If that mistake feels familiar, the sibling article /wiki/a-plus-b-squared-not-a-squared-plus-b-squared-tiles shows it visually with squares-and-rectangles tiles.
When the middle coefficient looks right but the first/last are not perfect squares — still not a perfect square
The three checks must all pass. Examples that look close but fail:
x² + 2x + 3: first term isx²(good), but 3 is not a perfect square. Fail check 2.2x² + 6x + 4.5: 4.5 is not a perfect square; also2x²has no clean integer square root. Fail checks 1 and 2.x² + 2x + 1: this one passes — first isx², last is1 = 1², middle is 2·x·1 = 2x. Factors as(x + 1)².
A pattern is a pattern only when every condition is met.
With non-obvious variables — x⁴ + 8x² + 16
The pattern works for any expressions, not just x and constants.
- First term:
x⁴ = (x²)². Square root:x². - Last term:
16 = 4². Square root: 4. - Expected middle: 2 × x² × 4 = 8x². Actual middle: 8x². Match.
Factor: (x² + 4)².
The "first" and "last" can be any expressions whose squares you recognise. Treat x² as a single block, just like you would treat 2a or 3y.
Recognition drill
Run each through the three checks. Decide: perfect square or not? If yes, factor.
x² + 4x + 4: firstx²(root x), last 4 (root 2), middle 2·x·2 = 4x. Match. Yes:(x + 2)².x² + 4x + 3: firstx²(root x), last 3 (root √3, irrational). No.9y² − 6y + 1: first9y²(root 3y), last 1 (root 1), middle 2·3y·1 = 6y; sign negative. Match. Yes:(3y − 1)².16a² + 24ab + 9b²: first16a²(root 4a), last9b²(root 3b), middle 2·4a·3b = 24ab. Match. Yes:(4a + 3b)².x² − 2xy + y² + z²: four terms — not a trinomial at all. No.a² + ab + b²: middle isab, but expected is2ab. Mismatch. No. (This expression does not factor over the reals at all.)
If you can run this drill in under a minute total, you have the recognition.
Why this recognition saves time
Without it, you reach for the ac method on x² + 6x + 9. You compute ac = 9, look for two numbers that multiply to 9 and add to 6, find 3 and 3, split the middle, group, factor — and write (x+3)(x+3). Then realise it is (x+3)². That took twenty or thirty seconds and four lines of working.
With recognition, you read x² + 6x + 9, mentally check x², 9, and 6x = 2·x·3, and write (x + 3)². Five seconds, one line.
In a 90-minute exam with thirty problems, this kind of speed compounds. Recognition is not laziness; it is fluency.
Sum vs difference of squares — don't confuse
Two patterns sit close to each other. Keep them straight:
- Perfect square trinomial: three terms.
a² ± 2ab + b² = (a ± b)². Middle term2abis what makes it work. - Difference of squares: two terms.
a² − b² = (a − b)(a + b). No middle term at all.
Both are pattern-factorings. Both let you skip the ac method. But they are not the same pattern, and you cannot apply one to the other. If you see three terms, check perfect square. If you see two terms with a minus sign, check difference of squares.
Closing
Three checks, five seconds:
- Is the first term a perfect square?
- Is the last term a perfect square?
- Is the middle term equal to 2 × √first × √last?
If all three match, you have spotted a perfect square trinomial. Factor it directly as (√first ± √last)², where the sign mirrors the middle term. Skip the ac method. Move on to the next problem.
Recognition turns slow factoring into instant factoring. Train your eye on the pattern, and the algebra speeds up on its own.