- FOIL rule
The FOIL rule, also sometimes known as the "double distributive property" or more colloquially as "foiling", is commonly taught to U.S.
high school students learningalgebra , as amnemonic for remembering how to multiply twobinomial s (polynomial s with two terms). It is quite possibly one of the most popular mnemonic devices in the world of early high school–junior high mathematics,fact|date=March 2008 along withSOH-CAH-TOA for remembering elementary trigonometric identities.The name "FOIL" comes from the order in which one multiplies the terms of the binomials:
* First ("first" terms of each binomial are multiplied together)
* Outer ("outside" terms are multiplied—that is, the first term of the first binomial and the second term of the second)
* Inner ("inside" terms are multiplied—second term of the first binomial and first term of the second)
* Last ("last" terms of each binomial are multiplied)The answer is then the sum of the terms obtained. Thus the general form is:: a+b)(c+d) = underbrace{ac}_mathrm{first} + underbrace{ad}_mathrm{outside} + underbrace{bc}_mathrm{inside} + underbrace{bd}_mathrm{last}Note that a is both a "first" term and an "outer" term; b is both a "last" and "inner" term, and so forth.Proof
The FOIL rule can be shown to be equivalent to two applications of the distributive property.
: egin{align}(a+b)(c+d) &{} = a(c+d) + b(c+d) \&{}= ac + ad + bc + bd.end{align}
Examples
: x+1)(x-1) = x^2-1
:2x-3)(3x-4) = 6x^2 - 17x +12
Tableau as an alternative to FOIL
A visual memory tool can replace the FOIL mnemonic for a pair of 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. The table equivalent to the FOIL rule looks like this.:egin{matrix} imes & c & d \a & ac & ad \b & bc & bdend{matrix}To multiply ("a"+"b"+"c")("w"+"x"+"y"+"z"), the table would be as follows.:egin{matrix} imes & w & x & y & z \a & aw & ax & ay & az \b & bw & bx & by & bz \c & cw & cx & cy & czend{matrix}The sum of the table entries is the product of the polynomials. Thus:egin{align} (a+b+c)(w+x+y+z) = {} & aw + ax + ay + az \ & {} + bw + bx + by + bz \ & {} + cw + cx + cy + cz .end{align}
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 and recursion allows one to expand such products. For instance,:egin{align}(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{align}
References
*
*Sho Minamimoto, a character fromThe World Ends With You , uses the phrase.ee also
*
Binomial theorem
*Factorization
Wikimedia Foundation. 2010.