Factoring Quadratic Trinomials

April 12, 2026

Problem

Factor x² + 7x + 12 = (x + 3)(x + 4). Show the rectangle area model.

Explanation

The factoring method for x2+bx+cx^2 + bx + c

Factoring a quadratic trinomial means writing it as a product of two binomials: x2+bx+c=(x+p)(x+q)x^2 + bx + c = (x + p)(x + q).

The key question: what two numbers multiply to cc and add to bb?

If you expand (x+p)(x+q)=x2+(p+q)x+pq(x + p)(x + q) = x^2 + (p+q)x + pq, you can see that p+q=bp + q = b and pq=cp \cdot q = c.

Step-by-step solution: Factor x2+7x+12x^2 + 7x + 12

Step 1 — Identify bb and cc. Here b=7b = 7 and c=12c = 12.

Step 2 — List all factor pairs of c=12c = 12:

  • 1×12=121 \times 12 = 12, and 1+12=131 + 12 = 13
  • 2×6=122 \times 6 = 12, and 2+6=82 + 6 = 8
  • 3×4=123 \times 4 = 12, and 3+4=73 + 4 = 7 ✓ ← This pair works!

Step 3 — Write the factored form.

x2+7x+12=(x+3)(x+4)x^2 + 7x + 12 = (x + 3)(x + 4)

Step 4 — Check by FOIL (First, Outer, Inner, Last):

(x+3)(x+4)=x2+4x+3x+12=x2+7x+12(x + 3)(x + 4) = x^2 + 4x + 3x + 12 = x^2 + 7x + 12 \checkmark

The area model

The rectangle area model makes this visual: the total area is x2+7x+12x^2 + 7x + 12. The rectangle has dimensions (x+3)(x + 3) by (x+4)(x + 4), and the four sub-rectangles (x2x^2, 3x3x, 4x4x, 1212) tile the whole rectangle perfectly.

When cc is negative

If c<0c < 0, the two numbers have opposite signs. For x2+2x15x^2 + 2x - 15: need numbers multiplying to 15-15 and adding to +2+2. The pair is +5+5 and 3-3: (x+5)(x3)(x + 5)(x - 3).

When the trinomial can't be factored

Not every trinomial factors with integers. If no factor pair of cc adds to bb, use the quadratic formula or completing the square instead.

Try it in the visualization

Adjust bb and cc. The factor pairs of cc are listed with their sums. The pair that adds to bb is highlighted. The area model builds a rectangle with matching dimensions. If no pair works, the visualization shows "not factorable over integers."

Interactive Visualization

Parameters

7.00
12.00
Your turn

Got your own math or physics problem?

Turn any problem into an interactive visualization like this one — powered by AI, generated in seconds. Free to try, no credit card required.

Sign Up Free to Try It30 free visualizations every day
Factoring Quadratic Trinomials | MathSpin