Quick Answer
The expression x^2 + 5x + 6 factors into (x + 2)(x + 3), with roots x = -2 and x = -3.
Enter integer coefficients for ax2 + bx + c
Common Examples
| Input | Result |
|---|---|
| a=1, b=5, c=6 | (x + 2)(x + 3) |
| a=1, b=-7, c=12 | (x - 3)(x - 4) |
| a=2, b=7, c=3 | (2x + 1)(x + 3) |
| a=1, b=-1, c=-12 | (x + 3)(x - 4) |
| a=3, b=12, c=12 | 3(x + 2)(x + 2) |
How It Works
The AC Method
The AC method (also called factoring by grouping) is the standard technique for factoring quadratic trinomials of the form ax^2 + bx + c:
- Compute the product a * c.
- Find two integers m and n such that m * n = a * c and m + n = b.
- Rewrite the middle term: ax^2 + mx + nx + c.
- Factor by grouping the first two terms and the last two terms.
- Extract the common binomial factor to get the final result.
If no such integer pair m, n exists, the quadratic is not factorable over the integers. It may still have irrational or complex roots, which can be found using the quadratic formula.
Special Cases
Difference of squares: a^2 - b^2 = (a + b)(a - b). For example, x^2 - 9 = (x + 3)(x - 3).
Perfect square trinomial: a^2 + 2ab + b^2 = (a + b)^2. For example, x^2 + 6x + 9 = (x + 3)^2.
GCF extraction: Always factor out the greatest common factor first. For example, 6x^2 + 12x + 6 = 6(x^2 + 2x + 1) = 6(x + 1)^2.
Worked Example
Factor 2x^2 + 7x + 3.
Compute a * c = 2 * 3 = 6. Find m and n where m * n = 6 and m + n = 7. The pair is m = 6, n = 1.
Rewrite: 2x^2 + 6x + 1x + 3. Group: (2x^2 + 6x) + (x + 3) = 2x(x + 3) + 1(x + 3) = (2x + 1)(x + 3).
Verification: (2x + 1)(x + 3) = 2x^2 + 6x + x + 3 = 2x^2 + 7x + 3. The factorization is correct.
The roots are x = -1/2 and x = -3. The discriminant is 7^2 - 4(2)(3) = 49 - 24 = 25, which is a perfect square, confirming rational roots.
CalculateY