# Multiplying Binomials (FOIL)

## Related Calculators: Polynomial Calculator , FOIL Calculator

Binomials can be multiplied very easy by using FOIL.

FOIL method is derived by applying distributive property of multiplication three times.

Indeed, suppose we want to find (a+b)(c+d).

If we treat (a+b) as a single symbol, then, according to distributive property (a+b)(c+d)=(a+b)c+(a+b)d.

Finally, apply distributive property two more times: (a+b)c+(a+b)d=ac+bc+ad+bd.

FOIL(First, Outer, Inner, Last)

$$\huge{(\color{red}{a}+\color{cyan}{b})(\color{green}{c}+\color{blue}{d})=\underbrace{\color{red}{a}\color{green}{c}}_{\text{First}}+\underbrace{\color{red}{a}\color{blue}{d}}_{\text{Outer}}+\underbrace{\color{cyan}{b}\color{green}{c}}_{\text{Inner}}+\underbrace{\color{cyan}{b}\color{blue}{d}}_{\text{Last}}}$$$After applying FOIL, you need to multiply monomials and, if possible, combine like terms. Warning. FOIL can be applied ONLY to the product of binomials. It means, that you can't multiply polynomials, using FOIL. For example, you can't use FOIL for multiplying (4x+5y)(2x^2+5x-7), because, although first factor is binomial, the second factor is polynomial, not binomial. Let's go through a couple of examples. Example 1. Multiply (2x+3y)(5x+4y). Here a=2x, b=3y, c=5x and d=4y. Now, apply FOIL: $$(\color{red}{2x}+\color{cyan}{3y})(\color{green}{5x}+\color{blue}{4y})=\underbrace{\color{red}{2x}\cdot\color{green}{5x}}_{\text{First}}+\underbrace{\color{red}{2x}\cdot\color{blue}{4y}}_{\text{Outer}}+\underbrace{\color{cyan}{3y}\cdot\color{green}{5x}}_{\text{Inner}}+\underbrace{\color{cyan}{3y}\cdot\color{blue}{4y}}_{\text{Last}}=$$$

=10x^2+8xy+15yx+12y^2= (multiply monomials)

=10x^2+8xy+color(red)(15xy)+12y^2= (commutative property of multiplication)

=10x^2+23xy+12y^2 (combine like terms)

Answer: (2x+3y)(5x+4y)=10x^2+23xy+12y^2.

Of course, FOIL also applicable if binomials contain minus sign. You just need to handle it carefully.

Example 2. Multiply (-4a+1/3b)(1/2b-2a).

Here a=-4a, b=1/3b, c=1/2b and d=-2a.

Next, Apply FOIL:

$$\left(\color{red}{(-4a)}+\color{cyan}{\frac{1}{3}b}\right)\left(\color{green}{\frac{1}{2}b}+\color{blue}{(-2a)}\right)=\underbrace{\color{red}{(-4a)}\cdot\color{green}{\left(\frac{1}{2}b\right)}}_{\text{First}}+\underbrace{\color{red}{(-4a)}\cdot\color{blue}{(-2a)}}_{\text{Outer}}+\underbrace{\color{cyan}{\left(\frac{1}{3}b\right)}\cdot\color{green}{\left(\frac{1}{2}b\right)}}_{\text{Inner}}+\underbrace{\color{cyan}{\left(\frac{1}{3}b\right)}\cdot\color{blue}{(-2a)}}_{\text{Last}}=$$$=-2ab+8a^2+1/6b^2-2/3ba= (multiply monomials) =-2ab+8a^2+1/6b^2color(red)(-2/3ab)= (commutative property of multiplication) =8a^2+1/6b^2-8/3ab (combine like terms) Answer: (-4a+1/3b)(1/2b-2a)=8a^2+1/6b^2-8/3ab. Of course, binomials can have more than one variable. Example 3. Multiply the following: (xy+3yz)(-5x^2y^2+4z^3). Here a=xy, b=3yz, c=-5x^2y^2 and d=4z^3. Next, apply FOIL: $$(\color{red}{xy}+\color{cyan}{3yz})\left(\color{green}{\left(-5x^2y^2\right)}+\color{blue}{4z^3}\right)=\underbrace{\color{red}{xy}\cdot\color{green}{\left(-5x^2y^2\right)}}_{\text{First}}+\underbrace{\color{red}{xy}\cdot\color{blue}{4z^3}}_{\text{Outer}}+\underbrace{\color{cyan}{3yz}\cdot\color{green}{\left(-5x^2y^2\right)}}_{\text{Inner}}+\underbrace{\color{cyan}{3yz}\cdot\color{blue}{4z^3}}_{\text{Last}}=$$$

=-5x^3y^3+4xyz^3-15x^2y^3z+12yz^4 (multiply monomials)

There are no like terms, so we are done.

Answer: (xy+3yz)(-5x^2y^2+4z^3)=-5x^3y^3+4xyz^3-15x^2y^3z+12yz^4.

Now, it is time to exercise.

Exercise 1. Multiply (5y+3z)(7y+z).

Answer: 35y^2+26yz+3z^2.

Exercise 2. Multiply the following: (7a-14b)(-2/7a-b).

Answer: -2a^2-3ab+14b^2.

Exercise 3. Multiply (-3xy^2z+5zy)(2x^3y^2-x^2z).

Answer: -6x^4y^4z+3x^3y^2z^2+10x^3y^3z-5x^2yz^2.