# FOIL method

> Mediated Wiki article. Canonical URL: https://mediated.wiki/source/FOIL_method
> Markdown URL: https://mediated.wiki/source/FOIL_method.md
> Source: https://en.wikipedia.org/wiki/FOIL_method
> Source revision: 1347772615
> License: Creative Commons Attribution-ShareAlike 4.0 International (https://creativecommons.org/licenses/by-sa/4.0/)

Mnemonic for finding the product of two binomial functions

This article needs more citations. Please help improve this article by adding citations to reliable sources. Unsourced material may be challenged and removed. Find sources: "FOIL method" – news · newspapers · books · scholar · JSTOR (April 2016) (Learn how and when to remove this message)

FOIL method A visual representation of the FOIL rule. Each colored line represents two terms that must be multiplied. Type Method Field Elementary algebra, elementary arithmetic Statement A technique for multiplying two binomials in an algebraic expression using distributive law. First stated by William Betz First stated in 1929; 97 years ago (1929)

In [elementary algebra](/source/Elementary_algebra), ***FOIL*** is a [mnemonic](/source/Mnemonic) for the standard method of multiplying two [binomials](/source/Binomial_(polynomial))[1]—hence the method may be referred to as the **FOIL method**. The word *FOIL* is an [acronym](/source/Acronym) for the four terms of the product:

- **F**irst ("first" terms of each binomial are multiplied together)

- **O**uter ("outside" terms are multiplied—that is, the first term of the first binomial and the second term of the second)

- **I**nner ("inside" terms are multiplied—second term of the first binomial and first term of the second)

- **L**ast ("last" terms of each binomial are multiplied)

The general form is

- ( a + b ) ( c + d ) = a c ⏟ first + a d ⏟ outside + b c ⏟ inside + b d ⏟ last . {\displaystyle (a+b)(c+d)=\underbrace {ac} _{\text{first}}+\underbrace {ad} _{\text{outside}}+\underbrace {bc} _{\text{inside}}+\underbrace {bd} _{\text{last}}.}

Note that a is both a "first" term and an "outer" term; b is both a "last" and "inner" term, and so forth. The order of the four terms in the sum is not important and need not match the order of the letters in the word FOIL.

## History

The FOIL method is a special case of a more general method for multiplying algebraic expressions using the [distributive law](/source/Distributive_law). The word *FOIL* was originally intended solely as a [mnemonic](/source/Mnemonic) for high-school students learning algebra. The term appears in William Betz's 1929 text *Algebra for Today*, where he states:[2]

... first terms, outer terms, inner terms, last terms. (The rule stated above may also be remembered by the word FOIL, suggested by the first letters of the words first, outer, inner, last.)

William Betz was active in the movement to [reform mathematics](/source/Reform_mathematics) in the United States at that time, had written many texts on [elementary mathematics](/source/Elementary_mathematics) topics and had "devoted his life to the improvement of mathematics education".[3]

Many students and educators in the US now use the word "FOIL" as a verb meaning "to expand the product of two binomials".[4]

## Examples

The method is most commonly used to multiply [linear](/source/Linear_function) binomials. For example,

- ( x + 3 ) ( x + 5 ) = x ⋅ x + x ⋅ 5 + 3 ⋅ x + 3 ⋅ 5 = x 2 + 5 x + 3 x + 15 = x 2 + 8 x + 15. {\displaystyle {\begin{aligned}(x+3)(x+5)&=x\cdot x+x\cdot 5+3\cdot x+3\cdot 5\\&=x^{2}+5x+3x+15\\&=x^{2}+8x+15.\end{aligned}}}

If either binomial involves [subtraction](/source/Subtraction), the corresponding terms must be [negated](/source/Negated). For example,

- ( 2 x − 3 ) ( 3 x − 4 ) = ( 2 x ) ( 3 x ) + ( 2 x ) ( − 4 ) + ( − 3 ) ( 3 x ) + ( − 3 ) ( − 4 ) = 6 x 2 − 8 x − 9 x + 12 = 6 x 2 − 17 x + 12. {\displaystyle {\begin{aligned}(2x-3)(3x-4)&=(2x)(3x)+(2x)(-4)+(-3)(3x)+(-3)(-4)\\&=6x^{2}-8x-9x+12\\&=6x^{2}-17x+12.\end{aligned}}}

## The distributive law

See also: [Distributive law](/source/Distributive_law)

The FOIL method is equivalent to a two-step process involving the distributive law:[5]

- ( a + b ) ( c + d ) = a ( c + d ) + b ( c + d ) = a c + a d + b c + b d . {\displaystyle {\begin{aligned}(a+b)(c+d)&=a(c+d)+b(c+d)\\&=ac+ad+bc+bd.\end{aligned}}}

In the first step, the (*c* + *d*) is distributed over the addition in first binomial. In the second step, the distributive law is used to simplify each of the two terms. Note that this process involves a total of three applications of the distributive property. In contrast to the FOIL method, the method using distributivity can be applied easily to products with more terms such as [trinomials](/source/Trinomials) and higher.

## Reverse FOIL

The FOIL rule converts a product of two binomials into a sum of four (or fewer, if [like terms](/source/Like_terms) are then combined) [monomials](/source/Monomial).[6] The reverse process is called *factoring* or *[factorization](/source/Factorization)*. In particular, if the proof above is read in reverse it illustrates the technique called [factoring by grouping](/source/Factorization#Factoring_by_grouping).

## Table as an alternative to FOIL

A visual memory tool can replace the FOIL mnemonic for a pair of [polynomials](/source/Polynomials) with any number of terms. Make a table with the terms of the first polynomial on the left edge and the terms of the second on the top edge, then fill in the table with products of multiplication. The table equivalent to the FOIL rule looks like this:

- × c d a a c a d b b c b d {\displaystyle {\begin{array}{c|cc}\times &c&d\\\hline a&ac&ad\\b&bc&bd\end{array}}}

In the case that these are polynomials, (*ax* + *b*)(*cx* + *d*), the terms of a given degree are found by adding along the [antidiagonals](/source/Antidiagonal):

- × c x d a x a c x 2 a d x b b c x b d {\displaystyle {\begin{array}{c|cc}\times &cx&d\\\hline ax&acx^{2}&adx\\b&bcx&bd\end{array}}}

so ( a x + b ) ( c x + d ) = a c x 2 + ( a d + b c ) x + b d . {\displaystyle (ax+b)(cx+d)=acx^{2}+(ad+bc)x+bd.}

To multiply (*a* + *b* + *c*)(*w* + *x* + *y* + *z*), the table would be as follows:

- × w x y z a a w a x a y a z b b w b x b y b z c c w c x c y c z {\displaystyle {\begin{array}{c|cccc}\times &w&x&y&z\\\hline a&aw&ax&ay&az\\b&bw&bx&by&bz\\c&cw&cx&cy&cz\end{array}}}

The sum of the table entries is the product of the polynomials. Thus:

- ( a + b + c ) ( w + x + y + z ) = ( a w + a x + a y + a z ) + ( b w + b x + b y + b z ) + ( c w + c x + c y + c z ) . {\displaystyle {\begin{aligned}(a+b+c)(w+x+y+z)&=(aw+ax+ay+az)\\&+(bw+bx+by+bz)\\&+(cw+cx+cy+cz).\end{aligned}}}

Similarly, to multiply (*ax*2 + *bx* + *c*)(*dx*3 + *ex*2 + *fx* + *g*), one writes the same table:

- × d x 3 e x 2 f x g a x 2 a d x 5 a e x 4 a f x 3 a g x 2 b x b d x 4 b e x 3 b f x 2 b g x c c d x 3 c e x 2 c f x c g {\displaystyle {\begin{array}{c|cccc}\times &dx^{3}&ex^{2}&fx&g\\\hline ax^{2}&adx^{5}&aex^{4}&afx^{3}&agx^{2}\\bx&bdx^{4}&bex^{3}&bfx^{2}&bgx\\c&cdx^{3}&cex^{2}&cfx&cg\end{array}}}

and sums along antidiagonals:

- ( a x 2 + b x + c ) ( d x 3 + e x 2 + f x + g ) = a d x 5 + ( a e + b d ) x 4 + ( a f + b e + c d ) x 3 + ( a g + b f + c e ) x 2 + ( b g + c f ) x + c g . {\displaystyle {\begin{aligned}(ax^{2}&+bx+c)(dx^{3}+ex^{2}+fx+g)\\&=adx^{5}+(ae+bd)x^{4}+(af+be+cd)x^{3}+(ag+bf+ce)x^{2}+(bg+cf)x+cg.\end{aligned}}}

## Generalizations

The FOIL rule cannot be directly applied to expanding products with more than two multiplicands or multiplicands with more than two summands. However, applying the [associative law](/source/Associativity) and recursive foiling allows one to expand such products. For instance:

- ( a + b + c + d ) ( x + y + z + w ) = ( ( a + b ) + ( c + d ) ) ( ( x + y ) + ( z + w ) ) = ( a + b ) ( x + y ) + ( a + b ) ( z + w ) + ( c + d ) ( x + y ) + ( c + d ) ( z + w ) = a x + a y + b x + b y + a z + a w + b z + b w + c x + c y + d x + d y + c z + c w + d z + d w . {\displaystyle {\begin{aligned}(a+b+c+d)(x+y+z+w)&=((a+b)+(c+d))((x+y)+(z+w))\\&=(a+b)(x+y)+(a+b)(z+w)\\&+(c+d)(x+y)+(c+d)(z+w)\\&=ax+ay+bx+by+az+aw+bz+bw\\&+cx+cy+dx+dy+cz+cw+dz+dw.\end{aligned}}}

Alternate methods based on distributing forgo the use of the FOIL rule, but may be easier to remember and apply. For example:

- ( a + b + c + d ) ( x + y + z + w ) = ( a + ( b + c + d ) ) ( x + y + z + w ) = a ( x + y + z + w ) + ( b + c + d ) ( x + y + z + w ) = a ( x + y + z + w ) + ( b + ( c + d ) ) ( x + y + z + w ) = a ( x + y + z + w ) + b ( x + y + z + w ) + ( c + d ) ( x + y + z + w ) = a ( x + y + z + w ) + b ( x + y + z + w ) + c ( x + y + z + w ) + d ( x + y + z + w ) = a x + a y + a z + a w + b x + b y + b z + b w + c x + c y + c z + c w + d x + d y + d z + d w . {\displaystyle {\begin{aligned}(a+b+c+d)(x+y+z+w)&=(a+(b+c+d))(x+y+z+w)\\&=a(x+y+z+w)+(b+c+d)(x+y+z+w)\\&=a(x+y+z+w)+(b+(c+d))(x+y+z+w)\\&=a(x+y+z+w)+b(x+y+z+w)\\&\qquad +(c+d)(x+y+z+w)\\&=a(x+y+z+w)+b(x+y+z+w)\\&\qquad +c(x+y+z+w)+d(x+y+z+w)\\&=ax+ay+az+aw+bx+by+bz+bw\\&\qquad +cx+cy+cz+cw+dx+dy+dz+dw.\end{aligned}}}

## See also

- [Binomial theorem](/source/Binomial_theorem)

- [Factorization](/source/Factorization)

## References

1. **[^](#cite_ref-1)** ["Simplifying using the FOIL Method Lessons"](https://www.wyzant.com/resources/lessons/math/algebra/foil). 19 September 2013. Retrieved 10 May 2018.

1. **[^](#cite_ref-2)** Betz, William (1929), *Algebra for Today (vol. 1)*, Ginn and Company, p. 291.

1. **[^](#cite_ref-3)** W. D. R. (November 1937), "Review of Algebra for Today : First Year", *The Mathematics Teacher*, **30** (7), National Council for the Teaching of Mathematics: 348.

1. **[^](#cite_ref-4)** McCrea, Emma (2019-05-01). [*Making Every Maths Lesson Count: Six principles to support great maths teaching (Making Every Lesson Count series)*](https://books.google.com/books?id=IA-TDwAAQBAJ&dq=%22to+expand+the+product+of+two+binomials%22&pg=PT70). Crown House Publishing Ltd. [ISBN](/source/ISBN_(identifier)) [978-1-78583-421-9](https://en.wikipedia.org/wiki/Special:BookSources/978-1-78583-421-9).

1. **[^](#cite_ref-5)** Khare, Apoorva; Lachowska, Anna (2015). [*Beautiful, Simple, Exact, Crazy: Mathematics in the Real World*](https://books.google.com/books?id=6jFOCgAAQBAJ&dq=FOIL+method++distributive+law:&pg=PA3). Yale University Press. p. 3. [ISBN](/source/ISBN_(identifier)) [978-0-300-19089-2](https://en.wikipedia.org/wiki/Special:BookSources/978-0-300-19089-2). This is sometimes called the "FOIL" method – essentially, it is simply the distributive law applied twice.

1. **[^](#cite_ref-6)** Kirkland, Carla C.; Cleveland, Chan (2020-01-29). [*Praxis Core For Dummies with Online Practice Tests*](https://books.google.com/books?id=Om_NDwAAQBAJ&dq=Reverse+FOIL&pg=PA78). John Wiley & Sons. p. 78. [ISBN](/source/ISBN_(identifier)) [978-1-119-62047-1](https://en.wikipedia.org/wiki/Special:BookSources/978-1-119-62047-1). ...reverse FOIL can take you in the opposite direction from one expression to two-term expressions times each other. It's a form of factoring.

## Further reading

- Steege, Ray; Bailey, Kerry (1997). *Schaum's Outline of Theory and Problems of Intermediate Algebra*. Schaum's Outline Series. New York: McGraw–Hill. [ISBN](/source/ISBN_(identifier)) [978-0-07-060839-9](https://en.wikipedia.org/wiki/Special:BookSources/978-0-07-060839-9).

v t e Science mnemonics Physics FBI Left-hand rule Right-hand rule OBAFGKM Planetary mnemonic SUVAT Thermodynamic square Biology CHON/CHNOPS ESCAPPM Four Fs Taxonomy mnemonic List of biochemistry mnemonics Mathematics FOIL Mnemonics in trigonometry PEMDAS Piphilology Xyzzy Other Clorpt SCORPAN List of chemistry mnemonics

---
Adapted from the Wikipedia article [FOIL method](https://en.wikipedia.org/wiki/FOIL_method) by Wikipedia contributors ([contributor history](https://en.wikipedia.org/wiki/FOIL_method?action=history)). Available under [Creative Commons Attribution-ShareAlike 4.0 International](https://creativecommons.org/licenses/by-sa/4.0/). Changes may have been made.
