Reverse FOIL Calculator

Form

Results

0

1

What is Reverse FOIL?

Reverse FOIL means moving from a quadratic expression back to multiplied factors. This calculator takes coefficients a, b, and c from ax² + bx + c, finds the real roots with the quadratic formula, and writes the expression as a(x − r₁)(x − r₂).

It works with numeric coefficients and real roots, including repeated and noninteger roots. When the discriminant is negative, the quadratic cannot be written as real linear factors; complex factors would require a different display.

2

How to Use This Calculator

  1. Enter the nonzero coefficient a of x².
  2. Enter b, the coefficient of x, including its sign.
  3. Enter c, the constant term, including its sign.
  4. Select Calculate. The page evaluates the discriminant, finds two real roots when available, and builds the factored form.
  5. Multiply the factors back out to verify a, b, and c.

The expression shown uses decimal root values rounded to six places when needed. Exact radical form may be more appropriate for symbolic work involving irrational roots.

3

Formula Used

For ax² + bx + c, the discriminant is Δ = b² − 4ac.

r₁ = (−b + √Δ) ÷ (2a) and r₂ = (−b − √Δ) ÷ (2a).

When Δ ≥ 0, ax² + bx + c = a(x − r₁)(x − r₂). If Δ = 0, both roots are equal and the factor is repeated.

4

Variables Explained

Symbol or resultMeaning
aThe nonzero leading coefficient multiplying x².
bThe signed coefficient multiplying x.
cThe signed constant term.
ΔThe discriminant, which determines the number of real roots.
r₁ and r₂The real zeros used in the linear factors.
Factored formThe leading coefficient followed by the two root factors.
5

Worked Example

For x² + 5x + 6, enter a = 1, b = 5, and c = 6. The discriminant is 5² − 4(1)(6) = 1. The roots are (−5 + 1)/2 = −2 and (−5 − 1)/2 = −3.

The factored result is 1(x + 2)(x + 3). Multiplying gives x² + 3x + 2x + 6 = x² + 5x + 6, confirming all three original coefficients.

6

Why Use This Calculator?

Two different real roots produce two different linear factors. A zero discriminant produces one repeated root, such as (x − 2)². A negative discriminant means there is no factorization into real linear factors, though the expression can be factored over complex numbers.

Decimal factors are approximations when roots are irrational. Multiplying rounded factors may produce coefficients close to, rather than exactly equal to, the originals. For formal algebra, preserve exact fractions or radicals. The leading coefficient must remain outside or be distributed correctly; omitting it changes the expression whenever a is not 1.

The roots also connect factorization with the graph. They are the x-coordinates where the parabola meets the horizontal axis. Two roots mean two crossings, one repeated root means the graph just touches, and no real roots means it does not meet that axis. This gives a visual check on the discriminant result.

When coefficients are integers but roots are fractions, the displayed form may use decimal root factors. An equivalent integer-factor form can often be obtained by moving denominators into coefficients. For example, 2x² − 5x + 2 has roots 2 and 0.5, so 2(x − 2)(x − 0.5) is equivalent to (2x − 1)(x − 2). Both expand to the same quadratic.

Reverse FOIL is most useful as a check rather than a substitute for algebraic reasoning. Look first for a common factor in all terms. Factoring out that common value can leave smaller coefficients and make an exact form easier to recognize. Write each intermediate sign clearly when checking.

7

Common Mistakes

  • Forgetting the signs: a root of −2 creates the factor (x + 2).
  • Leaving out the leading coefficient when a is not 1.
  • Entering zero for a, which makes the expression linear rather than quadratic.
  • Claiming real factors when the discriminant is negative.
  • Rounding roots too early and expecting exact expansion.
  • Confusing factorization with solving; factors describe the expression, while roots solve the zero equation.
8

Frequently Asked Questions

What does FOIL stand for?

It refers to multiplying First, Outer, Inner, and Last terms of two binomials. Reverse FOIL seeks factors that expand to the original quadratic.

Why must the first coefficient be nonzero?

With a equal to zero there is no x-squared term, so the expression is not quadratic and the quadratic formula does not apply.

What does a negative discriminant mean?

It means the quadratic has no real roots and therefore no pair of real linear factors. Complex-number factors still exist.

What happens when the discriminant is zero?

Both roots are equal, giving a repeated linear factor. The graph touches the x-axis at that root.

Why is there a number before the parentheses?

That is the leading coefficient a. It is required so expansion reproduces the original x-squared coefficient.

Are decimal factors exact?

Only when the shown decimals fully represent the roots. Irrational roots are rounded, so use exact radical notation when exact symbolic work is required.

How do I check the factorization?

Multiply the factors and leading coefficient. The expanded coefficients of x-squared, x, and the constant should match a, b, and c.

9

Sources & References