How to multiply polynomials using FOIL and the distributive property

Multiplying polynomials uses the same distributive property we use to multiply a number across parentheses. When both factors have several terms, we just need a way to keep track of every product before we combine like terms.

Multiply each term in one factor by each term in the other

For two binomials, FOIL names the four pairs in order. Multiply the first terms, the outside terms, the inside terms, and the last terms. Include each term’s sign when you multiply.

(a+b)(c+d)=ac+ad+bc+bd

For example, if the second term of each binomial is negative, the four products give ac-ad-bc+bd. The last product is positive because it multiplies two negative terms.

Use FOIL or a table for two binomials

In (x+2)(x-7), pair x and 2 with both x and -7. Each cell of the table gives one of the four products.

Products for (x + 2)(x − 7)
Termx-7
xx2-7x
22x-14
x2-7x+2x-14=x2-5x-14

The square (x+3)2 means (x+3)(x+3). Each copy contributes a middle product, so the two 3x terms combine.

(x+3)2=x2+3x+3x+9=x2+6x+9

Multiply more than two factors in stages

To expand (x+3)3, first multiply two copies of (x+3). Then distribute the remaining (x+3) across the trinomial we found.

(x+3)3=(x2+6x+9)(x+3)=x3+3x2+6x2+18x+9x+27=x3+9x2+27x+27

Use the same table when a factor has three terms

Let’s expand 3x(x+4)(x+1)(x-2). Distribute 3x to get 3x2+12x, then multiply that result by x+1.

(3x2+12x)(x+1)=3x3+3x2+12x2+12x=3x3+15x2+12x

Multiply the trinomial by the last factor, x-2. Then add the entries in the table and combine the terms that have the same power of x.

Products with the final factor (x − 2)
Termx-2
3x33x4-6x3
15x215x3-30x2
12x12x2-24x
3x4+9x3-18x2-24x