Algebra 1 · Grade 9

Multiplying Polynomials: The Box Method and FOIL

Quick answer

Multiplying polynomials is the distributive property applied until every term of the first has met every term of the second. A box with one row per term and one column per term makes that automatic. FOIL is the same box drawn for two binomials, which is why it stops working the moment a set of parentheses has three terms.

What you'll learn

  • Multiply polynomials using the distributive property
  • Lay a product out in a box so no term is missed
  • Recognize the difference of squares and the perfect square trinomial

Every term meets every term

Multiplying polynomials is one rule applied repeatedly: the distributive property.

a(b+c)=ab+aca(b + c) = ab + ac

With a single term outside, it is one pass:

3x(x2−4x+5)=3x3−12x2+15x3x(x^2 - 4x + 5) = 3x^3 - 12x^2 + 15x

Each term inside was multiplied by 3x3x. Nothing outside the parentheses was left undistributed, and nothing inside was skipped.

When both sets of parentheses hold several terms, the same thing happens on a larger scale. Every term of the first set of parentheses must meet every term of the second. That is the whole job, and the only difficulty is keeping track.

The box method

Draw a box with one row per term of the first polynomial and one column per term of the second. Fill each cell with the product of its row and column.

(x+3)(x+5)(x + 3)(x + 5)
×\timesxx+5+5
xxx2x^25x5x
+3+33x3x1515

Add the cells and collect like terms:

x2+5x+3x+15=x2+8x+15x^2 + 5x + 3x + 15 = x^2 + 8x + 15

The box is worth using because the number of cells is fixed before you start. Two terms times two terms is four cells; if you have not filled four cells, you have not finished.

This is the same picture as splitting a rectangle to find its area, with letters where the numbers were. A rectangle x+3x + 3 by x+5x + 5 divides into four smaller rectangles, and its area is their total.

FOIL is the box, named

For two binomials, the four cells have traditional names:

LetterMeansIn (x+3)(x+5)(x + 3)(x + 5)
FFirst termsx⋅x=x2x \cdot x = x^2
OOuter termsx⋅5=5xx \cdot 5 = 5x
IInner terms3⋅x=3x3 \cdot x = 3x
LLast terms3⋅5=153 \cdot 5 = 15

Same four products, same answer. FOIL is a way of remembering the order.

Its limit is built in. FOIL names exactly four products, so it fits exactly the 2×22 \times 2 case. A binomial times a trinomial has six products, and the name runs out after four.

The box does not have that problem, so it is the one worth making a habit.

Bigger products

(x+2)(x2−3x+4)(x + 2)(x^2 - 3x + 4)

Two rows, three columns, six cells:

×\timesx2x^2−3x-3x+4+4
xxx3x^3−3x2-3x^24x4x
+2+22x22x^2−6x-6x88
x3−3x2+2x2+4x−6x+8=x3−x2−2x+8x^3 - 3x^2 + 2x^2 + 4x - 6x + 8 = x^3 - x^2 - 2x + 8

Collect down the diagonals — cells on the same diagonal hold the same power, which is why the box lines them up for you.

Why the degree adds

Multiplying xmx^m by xnx^n gives xm+nx^{m+n}, so the highest power of the product comes from the two leading terms multiplied together.

deg⁡(fg)=deg⁡f+deg⁡g\deg(fg) = \deg f + \deg g

A quadratic times a cubic is degree 55. Nothing else in the box can reach that high, and the two leading coefficients cannot cancel each other, so the leading term always survives.

This is a fast check. If your answer to (x+2)(x2−3x+4)(x+2)(x^2-3x+4) has no x3x^3 term, something was dropped.

Two products worth knowing on sight

Difference of squares.

(a−b)(a+b)=a2−b2(a - b)(a + b) = a^2 - b^2

The box shows why the middle vanishes: the outer product is +ab+ab and the inner is −ab-ab, so they cancel.

(x−7)(x+7)=x2−49(x - 7)(x + 7) = x^2 - 49

Perfect square trinomial.

(a+b)2=a2+2ab+b2(a + b)^2 = a^2 + 2ab + b^2

Squaring means multiplying the binomial by itself, so the outer and inner products are both abab — and two of them make 2ab2ab.

(x+5)2=x2+10x+25(x + 5)^2 = x^2 + 10x + 25

(a+b)2(a+b)^2 is not a2+b2a^2 + b^2. Test it with numbers: (3+4)2=49(3+4)^2 = 49, while 9+16=259 + 16 = 25. The missing 2424 is the 2ab2ab.

Recognizing these two saves work now and is what makes factoring fast later, because factoring is this read backwards.

Worked examples

Common mistakes

Practice problems

  1. Expand 3(x+4)3(x + 4).

    Answer

    3x+123x + 12

    Full solution

    Distribute the 33 to both terms.

  2. Expand x(x−7)x(x - 7).

    Answer

    x2−7xx^2 - 7x

    Full solution

    x⋅x=x2x \cdot x = x^2 and x⋅(−7)=−7xx \cdot (-7) = -7x.

  3. Expand (x+2)(x+3)(x + 2)(x + 3).

    Answer

    x2+5x+6x^2 + 5x + 6

    Full solution

    x2+3x+2x+6x^2 + 3x + 2x + 6.

  4. Expand (x−5)(x+5)(x - 5)(x + 5).

    Answer

    x2−25x^2 - 25

    Full solution

    A difference of squares, so the middle terms cancel.

  5. Expand (x+3)2(x + 3)^2.

    Answer

    x2+6x+9x^2 + 6x + 9

    Full solution

    a2+2ab+b2a^2 + 2ab + b^2 with a=xa = x and b=3b = 3.

  6. Expand (2x+1)(x+4)(2x + 1)(x + 4).

    Answer

    2x2+9x+42x^2 + 9x + 4

    Full solution

    2x2+8x+x+42x^2 + 8x + x + 4.

  7. Expand (x−4)(x−2)(x - 4)(x - 2).

    Answer

    x2−6x+8x^2 - 6x + 8

    Full solution

    Two negatives multiply to +8+8, and the middle is −2x−4x-2x - 4x.

  8. Expand (x+1)(x2+2x+3)(x + 1)(x^2 + 2x + 3).

    Hint

    Two rows and three columns: six products.

    Answer

    x3+3x2+5x+3x^3 + 3x^2 + 5x + 3

    Full solution

    Row xx: x3+2x2+3xx^3 + 2x^2 + 3x.

    Row 11: x2+2x+3x^2 + 2x + 3.

    Collecting: x3x^3, then 2x2+x2=3x22x^2 + x^2 = 3x^2, then 3x+2x=5x3x + 2x = 5x, then 33.

  9. What is the degree of (x2+1)(x3−x)(x^2 + 1)(x^3 - x)?

    Answer

    55

    Full solution

    The degrees add: 2+3=52 + 3 = 5.

    The leading terms give x2⋅x3=x5x^2 \cdot x^3 = x^5, and nothing cancels it.

  10. Asked to expand (x+6)2(x + 6)^2, Dan answers x2+36x^2 + 36. Find his error.

    Hint

    How many products does a two-by-two box hold?

    Answer

    He kept only two of the four products. The answer is x2+12x+36x^2 + 12x + 36.

    Full solution

    (x+6)2(x + 6)^2 means (x+6)(x+6)(x + 6)(x + 6), which is a two-by-two box and therefore four products.

    Dan wrote down the First and Last products and lost the Outer and Inner ones, which are 6x6x each.

    x2+6x+6x+36=x2+12x+36x^2 + 6x + 6x + 36 = x^2 + 12x + 36.

    Numbers settle it. At x=1x = 1 the expression is 72=497^2 = 49. His answer gives 1+36=371 + 36 = 37; the correct one gives 1+12+36=491 + 12 + 36 = 49.

    Squaring never distributes across a sum. That is what the 2ab2ab term is there to record.

Frequently asked questions

What does FOIL stand for?

First, Outer, Inner, Last — the four products when two binomials are multiplied. It is the distributive property with the four pairs named.

Why does FOIL fail on three terms?

Because it names exactly four products. A binomial times a trinomial has six, so two get left out. The box method handles any size.

What is the difference of squares?

(a − b)(a + b) = a² − b². The two middle terms cancel because one is +ab and the other is −ab.

What is (a + b)² equal to?

a² + 2ab + b², not a² + b². Squaring a sum produces a middle term of 2ab.

What degree does the product have?

The sum of the two degrees. A quadratic times a cubic gives degree 5.

What to learn next

Standards alignment

This lesson covers the following Common Core State Standards for Mathematics.

  • CCSS.MATH.CONTENT.HSA.APR.A.1Arithmetic with Polynomials and Rational ExpressionsUnderstand that polynomials form a system analogous to the integers, namely, they are closed under the operations of addition, subtraction, and multiplication; add, subtract, and multiply polynomials.
  • CCSS.MATH.CONTENT.HSA.SSE.A.2Seeing Structure in ExpressionsUse the structure of an expression to identify ways to rewrite it.