College Algebra/FOIL and algebraic manipulation

FOIL is an abbreviation for the words first, outer, inner, and last. It is a mnemonic to help with polynomial multiplication.

Take a look at this example of multiplying two linear monomials:


 * $$(x + 3)(x + 4) \,\;$$

There are 4 distinct products which have to be computed. Here they are highlighted:
 * first - $$(\mathbf{x} + 3)(\mathbf{x} + 4) \,\;$$
 * outer - $$(\mathbf{x} + 3)(x + \mathbf{4}) \,\;$$
 * inner - $$(x + \mathbf{3})(\mathbf{x} + 4) \,\;$$
 * last - $$(x + \mathbf{3})(x + \mathbf{4}) \,\;$$

The product of the highlighted terms gives:
 * first - $$x^2 \,\;$$
 * outer - $$4x \,\;$$
 * inner - $$3x \,\;$$
 * last - $$12 \,\;$$

Adding everything up, we get
 * $$(x + 3)(x + 4) = x^2 + 7x + 12 \,\;$$

Note: The point of this is to remind you to multiply everything in one set of parenthesis exactly once with everything in the other set of parenthesis. As long as you understand that this is why you do this, it doesn't matter what order you do it in, as long as it all gets added in the end. And so, F+O+I+L is the same as O+L+I+F, L+I+F+O, F+L+O+I, etc.

Exercises:
 { $$(x + 1)(x + 6)=\,\;$${ x^2 + 7x + 6 (i)|x^2+7x+6 (i) _16 }
 * type="{}"}

{ $$(x + 2)(x + 4)=\,\;$${ x^2 + 6x + 8 (i)|x^2+6x+8 (i) _16 }
 * type="{}"}

{ $$(x + 3)(x + 7)=\,\;$${ x^2 + 10x + 21 (i)|x^2+10x+21 (i) _16 }
 * type="{}"}

{ $$(x - 2)(x + 5)=\,\;$${ x^2 + 3x - 10 (i)|x^2+3x-10 (i) _16 }
 * type="{}"}

{ $$(x + 3)(x - 2)=\,\;$${ x^2 + x - 6 (i)|x^2+x-6 (i) _16 }
 * type="{}"}

{ $$(x - 4)(x + 1)=\,\;$${ x^2 - 3x - 4 (i)|x^2-3x-4 (i) _16 }
 * type="{}"}

{ $$(x - 3)(8 - x)=\,\;$${ -x^2 + 11x - 24 (i)|-x^2+11x-24 (i) _16 }
 * type="{}"}

{ $$(x - 1)(x - 5)=\,\;$${ x^2 - 6x + 5 (i)|x^2-6x+5 (i) _16 }
 * type="{}"}

{ $$(4 - x)(x - 6)=\,\;$${ -x^2 + 10x - 24 (i)|-x^2+10x-24 (i) _16 }
 * type="{}"}

{ $$(2x + 3)(x + 5)=\,\;$${ 2x^2 + 13x + 15 (i)|2x^2+13x+15 (i) _16 }
 * type="{}"}

{ $$(x + 1)(3x - 2)=\,\;$${ 3x^2 + x - 2 (i)|3x^2+x-2 (i) _16 }
 * type="{}"}

{ $$(4x + 3)(x - 9)=\,\;$${ 4x^2 - 33x - 27 (i)|4x^2-33x-27 (i) _16 }
 * type="{}"}

{ $$(2x - 7)(3x + 5)=\,\;$${ 6x^2 - 11x - 35 (i)|6x^2-11x-35 (i) _16 }
 * type="{}"}

{ $$(4x + 8)(2x + 6)=\,\;$${ 8x^2 + 40x + 48 (i)|8x^2+40x+48 (i) _16 }
 * type="{}"}

{ $$(3 - 5x)(2x - 1)=\,\;$${ -10x^2 + 11x - 3 (i)|-10x^2+11x-3 (i) _16 }
 * type="{}"}

{ $$(a + b + c)(d + e + f)=\,\;$${ ad + ae + af + bd + be + bf + cd + ce + cf (i)|ad+ae+af+bd+be+bf+cd+ce+cf (i) _42 }
 * type="{}" coef="2"}