The Reverse FOIL Calculator provided by Hesapstan factors quadratic trinomials of the form ax² + bx + c by using the AC method and showing the middle-term split, grouping, and final factored form when possible.
What does this calculator do?
This calculator takes the coefficients a, b, and c from ax² + bx + c and checks whether the trinomial can be factored over the integers. When a suitable factor pair exists, it splits the middle term, groups the expression, and shows the factored form.
If no integer factor pair works, the calculator does not force a fake factorization. It shows the discriminant and, when appropriate, a quadratic-formula fallback so you can see why ordinary integer factoring is not available.
This is not a complete polynomial factoring system. It is scoped to quadratic trinomials in the form ax² + bx + c, and a cannot be 0.
What are FOIL and reverse FOIL?
FOIL is a shortcut for multiplying two binomials: First, Outer, Inner, Last. For example, expanding (x + 2)(x + 3) gives x² + 5x + 6.
Reverse FOIL goes in the opposite direction. It starts from an expanded trinomial such as x² + 5x + 6 and tries to recover the binomial product (x + 2)(x + 3).
Many textbooks describe the same work as factoring a quadratic trinomial, factoring by grouping, or using the AC method. Reverse FOIL is a student-friendly way to describe the direction of the process.
How does the AC method work?
The AC method multiplies a and c, then looks for two integers whose product is a×c and whose sum is b. If those two numbers exist, the middle term can be split and the expression can be factored by grouping.
- Compute a×c.
- Find integers p and q such that p×q = a×c and p+q = b.
- Rewrite the middle term as px + qx: ax² + px + qx + c.
- Group the expression into two parts.
- Factor each group, then take the common binomial factor.
For 2x² + 7x + 3, a×c = 6. The numbers 1 and 6 multiply to 6 and add to 7. Splitting 7x into x + 6x leads to the factorization (2x + 1)(x + 3).
Why is a = 1 easier?
When a = 1, the trinomial has the form x² + bx + c, so you usually only need two numbers that multiply to c and add to b. This is the simplest version of the AC idea.
For x² + 5x + 6, the numbers 2 and 3 multiply to 6 and add to 5. Therefore the trinomial factors as (x + 2)(x + 3).
If c is negative, one factor must be negative. If b is negative, the sum must be negative. Sign mistakes are among the most common errors in reverse FOIL problems.
Why is a ≠ 1 more careful?
When a is not 1, looking only at the factors of c may miss the correct structure. The coefficient of x² affects how the binomial factors must be arranged.
For 3x² − 10x − 8, a×c = -24. The pair 2 and -12 multiplies to -24 and adds to -10. The middle term becomes 2x − 12x, and the final result is (3x + 2)(x − 4).
What if it is not factorable over the integers?
Not every quadratic trinomial can be written as a product of two binomials with integer coefficients. If no p and q pair satisfies the AC conditions, integer factoring is not available for that trinomial.
In that case, the calculator may show the discriminant and a quadratic-formula result. This helps explain the root structure, but it is not the same as producing an integer factorization.
For example, x² + x + 1 is not factorable over the integers. A discriminant or quadratic-formula result can still be useful, but it does not mean the expression has an integer binomial factorization.
How to use the calculator
Enter the coefficients a, b, and c in the order they appear in ax² + bx + c. The calculator reads them as the coefficient of x², the coefficient of x, and the constant term.
- Enter the x² coefficient in the a field. a cannot be 0.
- Enter the x coefficient in the b field, including the sign if it is negative.
- Enter the constant term in the c field.
- Read the ac product, factor-pair search, middle-term split, grouping, and final factored form.
This content is written for integer coefficients. Fractional-coefficient support is not claimed because it was not confirmed in the content contract.
Reverse FOIL examples
These examples show both successful integer factoring and a case where no integer factor pair exists.
- x² + 5x + 6: a×c = 6, pair 2 and 3, result (x + 2)(x + 3).
- 2x² + 7x + 3: a×c = 6, pair 1 and 6, result (2x + 1)(x + 3).
- 3x² − 10x − 8: a×c = -24, pair 2 and -12, result (3x + 2)(x − 4).
- x² + x + 1: no suitable integer pair; it is not factorable over the integers.
Limitations of this tool
This calculator is designed to teach and apply reverse FOIL / the AC method. It is not a full symbolic algebra system for every type of polynomial.
- It focuses on quadratic trinomials of the form ax² + bx + c.
- a = 0 is rejected because the expression is not quadratic.
- Integer coefficients are the documented scope.
- Factoring over complex numbers is not promised.
- A greatest-common-factor step may not appear as a separate first step in every case.
Related calculators
Reverse FOIL uses multiplication patterns, partial products, and algebraic expression skills. Related tools can help you review those supporting steps.
- Multiplication Calculator helps with basic products and sign checks.
- Partial Products Calculator is useful for understanding expansion structure.
- Rationalize Denominator Calculator is a complementary algebra tool for working with expressions involving radicals.
Frequently Asked Questions
What is FOIL?
FOIL is a mnemonic for multiplying two binomials: First, Outer, Inner, Last.
What is reverse FOIL?
Reverse FOIL means starting with an expanded quadratic trinomial and rewriting it as a product of two binomials when possible.
What is the AC method?
The AC method looks for two integers whose product is a×c and whose sum is b. Those numbers are used to split the middle term and factor by grouping.
Can every trinomial be factored?
No. Some trinomials cannot be factored over the integers. The calculator may then show the discriminant and a quadratic-formula fallback.
What changes when a = 1?
When a = 1, the task is usually simpler: find two numbers that multiply to c and add to b.
What is the discriminant?
The discriminant is b² − 4ac. It helps describe the root structure of a quadratic equation.
Can this factor cubic polynomials?
No. This calculator is scoped to quadratic trinomials in the form ax² + bx + c.