Multiply two binomials (ax + b)(cx + d) using the First-Outer-Inner-Last technique. See step-by-step algebra, combine like terms, and visualize with the rectangular area model
The FOIL method (First, Outer, Inner, Last) is a specific technique for multiplying two binomials. For any binomials (a x + b)(c x + d), the product expands to ac·x² + (ad + bc)·x + bd. This method leverages the distributive property and helps students organize terms efficiently. FOIL is a foundational skill in algebra, precalculus, and beyond.
Beyond memorization, the FOIL rule stems from the area of a rectangle: the total area equals sum of four smaller rectangles, representing each partial product. This intuitive link is visualized in our interactive box model above.
Given two binomials (a x + b) and (c x + d), the expansion follows these four operations:
Finally, combine like terms (the x terms). The result is a quadratic (or degenerate linear/constant) polynomial. The calculator displays each step, highlights coefficients, and automatically handles negative signs.
The FOIL mnemonic became popular in modern algebra education, but the underlying distributive property dates back to ancient Babylonian mathematics (c. 2000 BCE). Today, binomial multiplication appears in physics (kinematics formulas), finance (compound interest approximations), computer graphics (polynomial interpolation), and statistics (binomial expansions). Understanding FOIL is essential for factoring quadratics, solving quadratic equations, and working with complex numbers.
A small business sells products at price (20 − 0.5x) dollars per unit and expects to sell (300 + 25x) units, where x is hundreds of dollars spent on advertising. Total revenue R(x) = (20 − 0.5x)(300 + 25x). Using FOIL: First = 20·300 = 6000; Outer = 20·25x = 500x; Inner = (−0.5x)·300 = −150x; Last = (−0.5x)(25x) = −12.5x². Combining gives R(x) = −12.5x² + 350x + 6000. This quadratic model helps optimize ad spend — showing the power of binomial multiplication in real scenarios.
The rectangle on the right is partitioned into four regions corresponding to the four FOIL products. The total area (whole rectangle) equals the expanded polynomial. This geometric analogy grounds abstract algebra in visual intuition, making it easier to remember why FOIL works.
| Binomial Pair | Expanded Form | FOIL Insight |
|---|---|---|
| (x+2)(x+3) | x² + 5x + 6 | Constant = product of constants (2·3=6) |
| (2x-1)(3x+4) | 6x² + 5x -4 | Middle term = ad+bc = 8 + (-3) = 5 |
| (x-5)(x+5) | x² - 25 | Difference of squares: Outer+Inner cancel |
| (3x+2)(2x-7) | 6x² -17x -14 | First: 6x², Last: -14 |
For polynomials with more than two terms, the distributive property extends naturally. FOIL is a special case of the "double distribution". In higher mathematics, the convolution of sequences mirrors binomial multiplication. Our calculator can be used as a foundation for learning polynomial multiplication, preparing students for topics like Taylor series and generating functions.