Algebra · real student question

Factor x^2 - 7x + 12.

Question

Factor

x27x+12x^2-7x+12

Step-by-step solution

  1. Set up the search. For a monic quadratic x2+bx+cx^2+bx+c, factoring means finding two numbers whose product is c=12c=12 and whose sum is b=7b=-7. Then x2+bx+c=(x+m)(x+n)x^2+bx+c=(x+m)(x+n) with those two numbers as mm and nn.

  2. Use the signs to narrow the search before listing anything. The product +12+12 is positive, so the two numbers share a sign; the sum 7-7 is negative, so that shared sign is negative. Only negative pairs need checking — which halves the work.

  3. List the negative factor pairs of 12 and their sums.

    (1,12)13,(2,6)8,(3,4)7 (-1,-12)\to-13,\qquad(-2,-6)\to-8,\qquad(-3,-4)\to-7\ \checkmark

    The pair 3-3 and 4-4 works: (3)(4)=12(-3)(-4)=12 and 3+(4)=7-3+(-4)=-7.

  4. Write the factorisation.

    x27x+12=(x3)(x4)x^2-7x+12=(x-3)(x-4)

  5. Check by expanding. (x3)(x4)=x24x3x+12=x27x+12(x-3)(x-4)=x^2-4x-3x+12=x^2-7x+12 ✓. The middle coefficient is the sum and the constant is the product, exactly as designed.

  6. Read off the roots and verify. The expression is zero at x=3x=3 and x=4x=4. Comparing the original with the factored form at every integer from 30-30 to 2929 gives exact agreement ✓, and the discriminant 4948=149-48=1 is a perfect square — the guarantee that integer factors had to exist.

Answer

x27x+12=(x3)(x4)x^2-7x+12=(x-3)(x-4)

Need to solve a different problem like this? Open the solver →