Stage 8 · Factoring

8.4  Cross-Multiplication: Factoring x2 + px + q

Find two numbers that add to the middle and multiply to the end.

For ages 13–15 · Intuition before notation
Knowledge point page

Point 2 of 5 in this lesson: 8.4.2 Find the magic pair: sum p, product q

8.4.2 Find the magic pair: sum p, product q

So factoring x2 + px + q boils down to one search: find two integers m and n with m + n = p and m · n = q. The smart way to search is to list the factor pairs of the product q and check which pair adds to p. Always start from the product — it has only a handful of pairs — then test the sum.

Take x2 + 5x + 6. The product is 6, whose positive factor pairs are 1·6 and 2·3. Their sums are 7 and 5. We want 5, so the pair is 2 and 3: x2 + 5x + 6 = (x + 2)(x + 3). For x2 + 7x + 12, the pairs of 12 are 1·12, 2·6, 3·4 with sums 13, 8, 7 — so the pair is 3 and 4, giving (x + 3)(x + 4).

Negatives come along for the ride. For x2 − 5x + 6 we need a product of +6 but a sum of −5; that forces both numbers negative: −2 and −3, so (x − 2)(x − 3). For x2 + x − 6 the product is −6 (opposite signs) and the sum is +1: the pair is +3 and −2, giving (x + 3)(x − 2).

Worked example — list, then pick

Factor x2 + 8x + 15.
Product is 15: pairs 1·15 (sum 16) and 3·5 (sum 8). The sum we want is 8, so the pair is 3 and 5.
Answer: (x + 3)(x + 5). Check by expanding: x2 + 5x + 3x + 15 = x2 + 8x + 15 ✓.

🎮 Try itFind the pair: sum p, product q

Set the middle coefficient p and the constant q. The machine lists every integer factor pair of q, marks the one that adds to p, and writes the factored form.

p (middle)
q (constant)
eastmath.com · 8.4 Cross-Multiplication: Factoring x2 + px + q · 8.4.2 Find the magic pair: sum p, product q