Enter the three coefficients.
Integer Quadratic Factoring
Check the cross-products
Expand (2x + 3)(3x + 1). The first terms give 6x². The middle terms give 2x + 9x. The constants give 3. All three must match your input.
Check special cases first
In 4x² − 16, factor out 4 and use the difference of squares: 4(x − 2)(x + 2). A zero constant lets you factor out x. For x² + x + 1, there is no pair of integer linear factors.
Factor the example by hand
- For 6x² + 11x + 3, multiply the leading coefficient by the constant: 6 × 3 = 18. The pair 9 and 2 multiplies to 18 and adds to 11.
- Split the middle term: 6x² + 9x + 2x + 3. The first pair has a common factor of 3x; the second pair has a common factor of 1.
- After grouping, you have 3x(2x + 3) + 1(2x + 3). Pull out the matching bracket to get (3x + 1)(2x + 3).
Three test cases to try
| Enter a, b, c | Expected result | Quick check |
|---|---|---|
| 1, −6, 9 | (x − 3)² | The two middle products are both −3x. |
| 2, 6, 0 | 2x(x + 3) | The constant is zero, so x divides every term. |
| 1, 0, −2 | No integer linear factors | The roots ±√2 are real, but neither is an integer. |
Why can two correct answers look different?
Changing the order of the factors gives the same product. A repeated factor can also appear twice or with a squared exponent. Expand the expression before deciding the answers disagree.
