Euler Hall — free maths guides

Factor a quadratic trinomial with leading coefficient 1

Find the integer pair multiplying to the constant and adding to the middle coefficient. The idea in plain words, a worked example, and a check with the answers shown — part of the free Algebra I guides.

Two numbers do the whole job

Every trinomialx2+bx+cx^{2} + bx + c that factors over the integers factors as(x+s)(x+t)(x + s)(x + t) for two integersss andtt. Multiplying that out,

(x+s)(x+t)=x2+(s+t)x+st,(x+s)(x+t) = x^{2} + (s+t)x + st,

soss andtt must satisfy two conditions at once:

s⋅t=cands+t=b.s \cdot t = c \qquad\text{and}\qquad s + t = b.

Forx2+7x+12x^{2} + 7x + 12: the pair33 and44 multiplies to1212 and adds to77, so the answer is(x+3)(x+4)(x+3)(x+4).

Why the two conditions are enough

Multiplying(x+s)(x+t)(x+s)(x+t) gives exactlyx2+(s+t)x+stx^{2} + (s+t)x + st. Two polynomials are equal only when their coefficients match, so the constant must bestst and the middle coefficient must bes+ts+t.

That also tells you there is nothing else to find. Once you have a pair satisfying both conditions, the factorisation is forced — there is no third condition hiding, and no need to check the bracket further.

When no integer pair satisfies both, the trinomial is prime over the integers. That is a real answer, not a failure.

Worked example, with negative numbers

Factorx2−9x+20x^{2} - 9x + 20.

Step 1. The constant is positive, the middle negative. So both numbers are negative: their product is positive and their sum negative.

Step 2. List the pairs multiplying to2020. They are1⋅201\cdot 20,2⋅102 \cdot 10,4⋅54\cdot 5, and their negations.

Step 3. Check the sums.−1+(−20)=−21-1 + (-20) = -21;−2+(−10)=−12-2 + (-10) = -12;−4+(−5)=−9-4 + (-5) = -9. The last pair works.

Step 4. Write the answer.x2−9x+20=(x−4)(x−5)x^{2} - 9x + 20 = (x - 4)(x - 5).

Step 5. Check.x2−5x−4x+20=x2−9x+20x^{2} - 5x - 4x + 20 = x^{2} - 9x + 20. Correct.

By the end you can
  • Find the integer pair multiplying to the constant and adding to the middle coefficient
  • Read the signs of the pair from the trinomial's own signs
  • Complete a factorisation when one bracket is given
Check yourself

(a) Factorx2+8x+15x^{2} + 8x + 15.

(b) Factorx2−x−12x^{2} - x - 12.

(c) Isx2+4x+7x^{2} + 4x + 7 factorable over the integers?

Answers

(a)33 and55 give1515 and88, so(x+3)(x+5)(x+3)(x+5).

(b) The constant is negative, so the signs differ.44 and−3-3 give−12-12 and11 — wrong sum.33 and−4-4 give−12-12 and−1-1. So the answer is(x+3)(x−4)(x+3)(x-4).

(c) No. The pairs multiplying to77 add to88 or−8-8, and the pairs multiplying to−7-7 add to66 or−6-6. None gives44, so the trinomial is prime.

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