Multiplying two binomials is one of the first skills of algebra, and the FOIL method turns it into four small products. This FOIL method calculator takes the numbers a, b, c and d of (ax + b)(cx + d) and gives the first, outer, inner and last products, the expanded quadratic, its value at x and the discriminant.
How the calculation works
- First × first: a × c, the coefficient of x².
- Outer × outer: a × d. Inner × inner: b × c. These two give the x terms, and the coefficient of x is a × d + b × c.
- Last × last: b × d, the constant term. The product is ac x² + (ad + bc) x + bd.
- Value at x: (ax + b)(cx + d) with your x. It equals the expanded form, which is a good check of the expansion.
- Discriminant = (ad + bc)² − 4 × ac × bd. It is positive for two real roots, zero for one repeated root and negative for none. When a or c is zero, the product is not a quadratic and has one root.
Example
Multiply (2x + 3)(x − 4). First: 2 × 1 = 2. Outer: 2 × (−4) = −8. Inner: 3 × 1 = 3. Last: 3 × (−4) = −12. The product is 2x² − 5x − 12. At x = 2 it is (7)(−2) = −14, and 2 × 4 − 10 − 12 gives the same. The discriminant is 25 + 96 = 121, so there are two real roots, 4 and −1.5.
Why it matters
Expanding products is the first step of solving quadratic equations, simplifying expressions and graphing parabolas. Seeing the four products separately helps to avoid the usual sign mistakes, and the check at a chosen x catches errors before you hand in a homework.
Good to know
Watch the signs. A negative number inside a binomial gives negative products, and two negatives multiply to a positive. The outer and inner products are added into one x term, and if they cancel, the middle term disappears, as in (x + 3)(x − 3) = x² − 9. The method needs two binomials and does not apply to a binomial times a trinomial, which has six products.
Related tools
The binomial expansion calculator handles powers of a binomial and the quadratic calculator solves the equation that comes from the product.