In elementary algebra, FOIL is a mnemonic for the standard method of multiplying two binomials—hence the method may be referred to as the FOIL method. The word FOIL is an acronym for the four terms of the product:
The general form is:
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.
The FOIL method is a special case of a more general method for multiplying algebraic expressions using the distributive law. The word FOIL was originally intended solely as a mnemonic for high-school students learning algebra. The term appears in William Betz's 1929 text, Algebra for Today, where he states:
... 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 mathematics reform movement in the United States at that time, had written many texts on elementary mathematics topics and had "devoted his life to the improvement of mathematics education."
Many students and educators in the United States now use the word "FOIL" as a verb meaning "to expand the product of two binomials". This neologism has not gained widespread acceptance in the mathematical community.
The method is most commonly used to multiply linear binomials. For example,
If either binomial involves subtraction, the corresponding terms must be negated. For example,
The FOIL method is equivalent to a two-step process involving the distributive law:
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 distributive can be applied easily to products with more terms such as trinomials and higher.