Mathematics calculator

Reverse FOIL Calculator

Rewrite ax² + bx + c as a product of real linear factors using its quadratic roots.

Calculator inputs

Enter your values

Undo multiplication
Calculated output

Result summary

Your result will appear here

Complete the required fields and select the calculate button.

What Is Reverse FOIL?

FOIL expands the First, Outer, Inner and Last products of two binomials. Reverse FOIL works backward from a quadratic expression to factors that multiply to it. For example, factoring a quadratic reverses the expansion of two linear terms.

This reverse FOIL calculator takes the coefficients of ax² + bx + c and constructs real factors from its quadratic roots. It is a numeric root-based method, not an integer factor-pair search. Negative discriminants return a no-real-factor message; the form does not output complex factors.

How to Enter a Quadratic for Reverse FOIL

  1. Write the expression as ax² + bx + c. Combine like terms before entry.
  2. Enter a in Quadratic coefficient a, b in Linear coefficient b and c in Constant c, retaining signs. The leading coefficient cannot be zero.
  3. Select Calculate. Read the real factor form and the two root references when they exist.
  4. Multiply the displayed factors back out to check the coefficients, allowing for six-decimal root and leading-coefficient formatting.

Enter numeric coefficients, not a full typed equation. For an absent linear or constant term, enter zero. A nonzero a is required even if a lower-degree expression could be simplified another way.

The factor form is a(x−r₁)(x−r₂), so the root signs are reversed inside the binomials. A positive root of 3 gives (x−3); a negative root of −2 gives (x+2). Irrational roots become rounded decimals, making the displayed product approximate.

Reverse FOIL and Root-Based Factor Formulas

Discriminant D = b² − 4ac

Roots r₁,₂ = (−b ± √D)/(2a), for D ≥ 0

Factor form: ax² + bx + c = a(x−r₁)(x−r₂)

Expansion check: a[x² − (r₁+r₂)x + r₁r₂]

The roots sum to −b/a and multiply to c/a. Keeping the leading a outside the brackets restores the original squared-term coefficient. Dropping it produces a different polynomial whenever a is not 1.

D > 0 gives two distinct real factors, D = 0 gives a repeated factor and D < 0 gives no real linear factorization. The last statement concerns the number system, not whether a quadratic can be described at all.

OpenStax: Quadratic Equations provides the underlying mathematical relationship. Input limits and display precision above describe this calculator’s implementation.

Quadratic Coefficients, Factors and Roots

Quadratic coefficient a
Nonzero signed multiplier of x².
Linear coefficient b
Signed multiplier of x; use 0 if absent.
Constant c
Signed term independent of x.
Real factor form
Featured leading coefficient times two monic binomials, or a no-real-factor message.
First and second roots
Numerical roots rounded to six places. They are not the signed constants as printed inside the factors.
Display precision
The leading coefficient is also formatted to six places in this tool. Sensitive or tiny coefficients need an independent check.

Reverse FOIL Worked Example

Illustrative example. For 3x²−7x−6, enter a = 3, b = −7 and c = −6. The discriminant is 49 + 72 = 121, so the roots are (7 ± 11)/6: 3 and −2/3.

The calculator displays 3(x − 3)(x + 0.666667). Before rounding, the exact form is 3(x−3)(x+2/3), or (3x+2)(x−3). Expand the latter to check: 3x²−9x+2x−6 = 3x²−7x−6. The displayed decimal factor is an approximation to 2/3.

Calculation check. These illustrative values were checked independently against the formula and calculator response. Retain unrounded intermediate values when checking approximations.

Reverse FOIL Worked Example
StageValue
Coefficientsa = 3; b = −7; c = −6
Discriminant121
Exact roots3 and −2/3
Displayed factors3(x − 3)(x + 0.666667)
Exact alternative(3x + 2)(x − 3)

What the Discriminant Means for Reverse FOIL

The sign of D = b²−4ac determines whether real linear factors exist. A real factorization need not have integer or rational coefficients.

What the Discriminant Means for Reverse FOIL
DiscriminantRootsFactor result
D > 0Two distinct real rootsa(x−r₁)(x−r₂)
D = 0Repeated real roota(x−r)²
D < 0No real rootsNo real linear factors in this form

How to Check the Displayed Factors

Equivalent factor forms can look different. A(x−r₁)(x−r₂) may place fractional constants inside monic brackets, while a classroom answer distributes the leading coefficient to obtain integer binomials. Multiplying both forms out checks equivalence.

A repeated root produces two identical factors. A no-real-factor message means the discriminant is negative; complex linear factors exist in a broader number system but are outside this output. Root cards clear when the new expression has no real roots.

Finite precision limits the quadratic formula, especially when subtracting nearly equal numbers. Root rounding and six-place coefficient formatting can change the reconstructed polynomial; a very small leading coefficient can even display as zero. Use this result as a numeric factorization and verify sensitive expressions independently.

Common Reverse FOIL Mistakes

  • Entering a full expression into a coefficient field.
  • Dropping the leading a outside the factors.
  • Using a root’s sign unchanged inside (x−r).
  • Confusing numerical real factors with an exact integer-factor search.
  • Calling a negative-discriminant expression impossible rather than lacking real linear factors.
  • Treating six-place factors as exact symbolic identities in every case.

Frequently Asked Questions

What is reverse FOIL?

It means factoring an expanded quadratic back into binomial factors, reversing the First, Outer, Inner and Last products used to expand two binomials.

Does this calculator search for integer factor pairs?

No. It computes quadratic roots and constructs a leading coefficient times two real linear factors. The displayed brackets can contain decimals.

Why is there a coefficient outside the brackets?

For ax² + bx + c, the root-based form is a(x−r₁)(x−r₂). Keeping a preserves the original coefficient of x².

What does a negative discriminant mean?

It means there are no real roots and therefore no real linear factors. Complex factors still exist, but this form does not display them.

Can reverse FOIL give a repeated factor?

Yes. A zero discriminant gives one repeated real root, so a(x−r)(x−r) can be written as a(x−r)².

Why do a root and its bracket have opposite signs?

A root r gives the factor x−r. Thus a root of −3 gives x+3, while a root of 3 gives x−3.

Why does expanding the displayed decimal form differ slightly?

Roots and the leading factor are formatted to six decimal places. Repeating or irrational values lose precision in that display; use an exact derivation when an identity must remain exact.

Can I enter a linear expression with a = 0?

No. This tool applies the quadratic formula and requires a nonzero quadratic coefficient. Use an appropriate linear-equation method instead.

Sources and References