Euler Hall — free maths guides

Factor a perfect-square trinomial

Run the three tests: square first term, square last term, middle exactly 2ab. The idea in plain words, a worked example, and a check with the answers shown — part of the free Algebra I guides.

A trinomial that is one bracket squared

A perfect-square trinomial is what you get by squaring a binomial:

(a+b)2=a2+2ab+b2,(a−b)2=a2−2ab+b2.(a+b)^{2} = a^{2} + 2ab + b^{2},\qquad (a-b)^{2} = a^{2} - 2ab + b^{2}.

So9x2+12x+4=(3x)2+2(3x)(2)+22=(3x+2)29x^{2} + 12x + 4 = (3x)^{2} + 2(3x)(2) + 2^{2} = (3x + 2)^{2}.

There are three tests, in this order: is the first term a square? is the last term a square? is the middle term exactly twice the product of the two square roots?

Why the middle term is twice the product

Multiply(a+b)(a+b)(a+b)(a+b) out:

a2+ab+ab+b2=a2+2ab+b2.a^{2} + ab + ab + b^{2} = a^{2} + 2ab + b^{2}.

The two cross products are identical here, because both brackets are the same. That is the whole difference from a difference of squares, where the cross products were equal and opposite.

So the middle coefficient is forced to be2ab2ab. If a trinomial has square ends but a middle coefficient that is not2ab2ab, it is not a perfect square — and it will still factor, but by the number-pair method, into two different brackets.

The sign of the middle term then decides which square it is: plus gives(a+b)2(a+b)^{2}, minus gives(a−b)2(a-b)^{2}.

Worked example, where the test fails

Is25x2+20x+925x^{2} + 20x + 9 a perfect square?

Step 1. First term a square?25x2=(5x)225x^{2} = (5x)^{2}. Yes.

Step 2. Last term a square?9=329 = 3^{2}. Yes.

Step 3. Middle term twice the product?2⋅5x⋅3=30x2 \cdot 5x \cdot 3 = 30x, and the middle term is20x20x. No.

Step 4. Conclude. It is not a perfect square. The three tests are a package, and two out of three is a fail.

Step 5. What is it, then? The pair multiplying to25⋅9=22525 \cdot 9 = 225 and adding to2020 does not exist as integers, so this trinomial is prime. A near-miss perfect square is often prime.

By the end you can
  • Run the three tests: square first term, square last term, middle exactly 2ab
  • Write the answer as one bracket squared
  • Use the middle term's sign to choose plus or minus
Check yourself

(a) Factorx2+14x+49x^{2} + 14x + 49.

(b) Factor4x2−12x+94x^{2} - 12x + 9.

(c) Isx2+6x+4x^{2} + 6x + 4 a perfect square?

Answers

(a)(x)2(x)^{2},727^{2}, and2⋅x⋅7=14x2\cdot x\cdot 7 = 14x. So(x+7)2(x+7)^{2}.

(b)(2x)2(2x)^{2},323^{2}, and2⋅2x⋅3=12x2 \cdot 2x \cdot 3 = 12x with the minus. So(2x−3)2(2x-3)^{2}.

(c) No.4=224 = 2^{2} yes, but2⋅x⋅2=4x2 \cdot x \cdot 2 = 4x, not6x6x. It does not factor over the integers either.

Work out where to start — free, no accountAnswer six real questions — free, no account