Multiplying Polynomials

Learning goals

  • Multiply coefficients and add exponents for two terms
  • Distribute a single term across every term
  • Pair every term of one factor with every term of the other
  • Treat FOIL as the two-binomial case, not the rule
  • Add the degrees of two nonzero polynomials to find their product's degree

Multiplying one term by one term

Start with one term times one term. Multiplying in a different order gives the same result, so rearrange the factors to put the coefficients together and the powers together:

(3x2)(4x3)=(3⋅4)(x2⋅x3).(3x^2)(4x^3) = (3 \cdot 4)(x^2 \cdot x^3).

Multiply the coefficients, 3⋅4=123\cdot4=12. For the powers, the product rule xm⋅xn=xm+nx^m\cdot x^n=x^{m+n} adds the exponents:

(3x2)(4x3)=12 x2+3=12x5.(3x^2)(4x^3) = 12\,x^{2+3} = 12x^5.

Multiply the coefficients, add the exponents. You add rather than multiply the exponents because x2⋅x3x^2 \cdot x^3 is two xx‘s times three more xx‘s. That is five xx‘s multiplied in a row, not six. When a term carries a negative sign, fold the sign into the coefficient and proceed exactly the same way:

(−5x4)(2x)=(−5⋅2)(x4⋅x1)=−10x5.(-5x^4)(2x) = (-5 \cdot 2)(x^4 \cdot x^1) = -10x^5.

Every larger product uses this calculation for its individual terms.

Multiplying a polynomial by a single term

By the distributive property, a single factor multiplies every term of a sum:

a(b+c+d)=ab+ac+ad.a(b+c+d)=ab+ac+ad.

It reaches all three terms, including their signs. If the factors are terms in xx, calculate each small product by multiplying coefficients and adding exponents.

Worked example 1 Multiply 2x3(4x2−3x+5)2x^3(4x^2 - 3x + 5)

Distribute 2x32x^3 across all three terms, keeping each sign with its term:

2x3(4x2−3x+5)=(2x3)(4x2)+(2x3)(−3x)+(2x3)(5).2x^3(4x^2 - 3x + 5) = (2x^3)(4x^2) + (2x^3)(-3x) + (2x^3)(5).

Now do each piece by multiplying coefficients and adding exponents:

(2x3)(4x2)=8x5,(2x3)(−3x)=−6x4,(2x3)(5)=10x3.\begin{aligned} (2x^3)(4x^2)&=8x^5,\\ (2x^3)(-3x)&=-6x^4,\\ (2x^3)(5)&=10x^3. \end{aligned}

The three powers differ, so no like terms combine:

2x3(4x2−3x+5)=8x5−6x4+10x3.2x^3(4x^2 - 3x + 5) = 8x^5 - 6x^4 + 10x^3.

Check your understanding

Expand −3x2(2x3−x+4)-3x^2(2x^3 - x + 4).

Answer choices

Multiplying two binomials

Now both factors are sums, and you still need only the distributive property. Return to the opening rectangle for (x+2)(x+3)(x+2)(x+3), with xx a positive length. Splitting each side into its two parts gives four smaller rectangles, one for each partial product.

Area model for (x + 2)(x + 3)A large rectangle partitioned into a two-by-two grid of areas: top-left x squared, top-right 3x, bottom-left 2x, bottom-right 6.x3x2x²3x2x6
An area model for the product (x + 2)(x + 3), with lengths labeled rather than drawn to scale. The whole rectangle is x + 3 wide and x + 2 tall, so its area is the product. Splitting each side gives four smaller rectangles whose areas are the four partial products, and together they add to x squared plus 5x plus 6.

The two rectangles labeled 3x3x and 2x2x pair the xx from one factor with the number from the other. These are the cross products. They carry the same power of xx, so they combine into the middle term, and this is the pair that is so easy to forget.

Worked example 2 Expand (x+2)(x+3)(x + 2)(x + 3)

Multiply each term of the first binomial by each term of the second, four products in all:

(x+2)(x+3)=x⋅x+x⋅3+2⋅x+2⋅3=x2+3x+2x+6.(x + 2)(x + 3) = x \cdot x + x \cdot 3 + 2 \cdot x + 2 \cdot 3 = x^2 + 3x + 2x + 6.

The two middle products are like terms, so combine them:

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

These are the four areas from the figure, x2x^2, 3x3x, 2x2x, and 66, added together. Leaving the answer as x2+3x+2x+6x^2 + 3x + 2x + 6 is correct, but it is not finished until you combine like terms to put it in standard form.

The area picture uses positive lengths. The distributive property gives the same identity for all real values, including zero and negatives. Keep the second factor together, then distribute twice.

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

First run both distributions on numbers. Keep the second sum together for the first step:

(2+3)(4+5)=2(4+5)+3(4+5)=8+10+12+15=45.\begin{aligned} (2+3)(4+5)&=2(4+5)+3(4+5)\\ &=8+10+12+15=45. \end{aligned}

The first distribution makes two groups; the second makes four products. With any four real numbers, the same steps give

(a+b)(c+d)=a(c+d)+b(c+d)=ac+ad+bc+bd.\begin{aligned} (a+b)(c+d)&=a(c+d)+b(c+d)\\ &=ac+ad+bc+bd. \end{aligned}

Each of the two terms in the first factor has been multiplied by each of the two terms in the second. The general rule below works the same way.

FOIL names the four products: First (acac), Outer (adad), Inner (bcbc), and Last (bdbd). Use it to remember the four pairings for two binomials. A binomial times a trinomial needs six pairings, so the general rule remains each term times each term.

For negative terms, keep the sign attached to the coefficient throughout each product.

Worked example 3 Expand (2x−3)(x+4)(2x - 3)(x + 4)

The four products, with signs kept in place, are

(2x)(x)+(2x)(4)+(−3)(x)+(−3)(4)=2x2+8x−3x−12.(2x)(x) + (2x)(4) + (-3)(x) + (-3)(4) = 2x^2 + 8x - 3x - 12.

Combine the two middle terms, 8x−3x=5x8x - 3x = 5x:

(2x−3)(x+4)=2x2+5x−12.(2x - 3)(x + 4) = 2x^2 + 5x - 12.

The term (−3)(x)(-3)(x) is −3x-3x and (−3)(4)(-3)(4) is −12-12. Dropping either minus sign changes a whole term, so check both negative products before combining.

Check your understanding

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

Answer choices

The general rule: every term times every term

The same distribution works for any two polynomials:

Multiply every term of the first factor by every term of the second. Then combine like terms and write standard form.

With mm terms in one factor and nn in the other, there are m×nm\times n partial products. Two binomials give 2×2=42\times2=4; a binomial and a trinomial give 2×3=62\times3=6.

The special products from the factorizations chapter are this same rule, just with the like terms already collected. Expanding the square (a+b)2=(a+b)(a+b)(a+b)^2=(a+b)(a+b) gives four products that combine to a2+2ab+b2a^2+2ab+b^2, and the difference of squares (a+b)(a−b)(a + b)(a - b) has its two cross terms cancel to leave a2−b2a^2 - b^2. So you can get either one from the general rule instead of memorizing it separately.

With more than four products to track, a grid keeps every one of them in its own cell so none can be lost. Put the terms of one factor along the top and the terms of the other down the side. Then fill each cell with the product of its row and column headers.

Grid method for (x + 3)(x squared + 2x + 5)A two-by-three grid. Row headers are x and 3; column headers are x squared, 2x, and 5. The cells are x cubed, 2x squared, 5x, 3x squared, 6x, and 15.×x²2x5x3x³2x²5x3x²6x15
The product (x + 3)(x^2 + 2x + 5) laid out as a grid, one row per term of x + 3 and one column per term of x squared + 2x + 5. Each of the six cells holds a single partial product, so none can be dropped. Adding the cells and combining like terms gives x cubed plus 5x squared plus 11x plus 15.

Worked example 4 Expand (x+3)(x2+2x+5)(x + 3)(x^2 + 2x + 5)

The binomial has two terms and the trinomial has three, so expect 2×3=62 \times 3 = 6 products. Distribute xx across the trinomial, then 33 across it:

x(x2+2x+5)=x3+2x2+5x,x(x^2 + 2x + 5) = x^3 + 2x^2 + 5x,3(x2+2x+5)=3x2+6x+15.3(x^2 + 2x + 5) = 3x^2 + 6x + 15.

These are the six cells of the grid. Add them and group like powers:

x3+2x2+5x+3x2+6x+15=x3+(2x2+3x2)+(5x+6x)+15.x^3 + 2x^2 + 5x + 3x^2 + 6x + 15 = x^3 + (2x^2 + 3x^2) + (5x + 6x) + 15.

Combine each group, 2x2+3x2=5x22x^2 + 3x^2 = 5x^2 and 5x+6x=11x5x + 6x = 11x:

(x+3)(x2+2x+5)=x3+5x2+11x+15.(x + 3)(x^2 + 2x + 5) = x^3 + 5x^2 + 11x + 15.

Worked example 5 Expand (2x−1)(3x2−4x+2)(2x - 1)(3x^2 - 4x + 2)

Distribute 2x2x across the trinomial, then −1-1 across it, carrying every sign:

2x(3x2−4x+2)=6x3−8x2+4x,2x(3x^2 - 4x + 2) = 6x^3 - 8x^2 + 4x,−1(3x2−4x+2)=−3x2+4x−2.-1(3x^2 - 4x + 2) = -3x^2 + 4x - 2.

Notice that −1-1 times −4x-4x is +4x+4x: multiplying two negatives gives a positive. Add the two rows and combine like terms:

6x3−8x2+4x−3x2+4x−2=6x3−11x2+8x−2.6x^3 - 8x^2 + 4x - 3x^2 + 4x - 2 = 6x^3 - 11x^2 + 8x - 2.

The x2x^2 column gives −8x2−3x2=−11x2-8x^2 - 3x^2 = -11x^2, and the xx column gives 4x+4x=8x4x + 4x = 8x. The result is in standard form.

Check your understanding

Expand (x+1)(x2−2x+3)(x + 1)(x^2 - 2x + 3).

Answer choices

The degree of a product

A sum can lose its leading term when leading coefficients cancel. A product of two nonzero polynomials cannot. In Worked Example 5, the leading terms 2x2x and 3x23x^2 produce 6x36x^3. All other pairings have degree at most 22, so none can cancel that cubic term.

Why the top term always survives

Write each polynomial in standard form. Let their leading terms be axmax^m and bxnbx^n, with a≠0a\ne0 and b≠0b\ne0, so mm and nn are their degrees. Their product is

(axm)(bxn)=ab xm+n.(ax^m)(bx^n)=ab\,x^{m+n}.

Every other pairing uses powers at most mm and nn, with at least one strictly smaller. Its degree is therefore less than m+nm+n. Only the leading-term pairing reaches m+nm+n, so there is no other term of that degree to cancel it. Also ab≠0ab\ne0, since both coefficients are nonzero. Thus the degree of the product is the sum of the degrees. A zero factor is excluded: its product is the zero polynomial, which has no degree here: no nonzero term remains to supply an exponent.

Polynomials are closed under multiplication

Multiplying real coefficients gives a real coefficient, and adding nonnegative-integer exponents gives another nonnegative integer. So each partial product has the form a polynomial allows. There are only finitely many pairings, and combining like terms adds real coefficients without changing the powers. The result is therefore a polynomial, including when it is zero. We say polynomials are closed under multiplication, just as whole numbers are closed under multiplication.

Check your understanding

What is the degree of the product (4x3−x+2)(x2+5x−1)(4x^3 - x + 2)(x^2 + 5x - 1)?

Answer choices

Common mistakes

Practice

Multiple Choice Questions (MCQ)

Progressively harder sets of questions. Each opens on its own page.

Core practice

Practice problems at the level of the course, to be worked out on paper. Hints one at a time, then the answer or the full worked solution, with your progress kept in this browser.

Core practice Work it out on paper 10 problems Start →
More practice (optional)

Extra sets, as hard as the Challenge set. Each one opens on its own page.

More resources (optional)

Other explanations of this lesson, if you want a second take.

A bit of history (optional)

Forgetting the middle products turns (x+2)(x+3)(x+2)(x+3) into the wrong answer x2+6x^2+6. The mnemonic First, Outer, Inner, Last is a reminder to include all four pairings. It is documented in the 1929 edition of William Betz’s Algebra for Today, Book I, and may also appear in its 1928 edition. Betz listed the four groups of terms, then suggested remembering their first letters as the word FOIL. A short word could keep track of all four products, including the two middle ones.

The word follows the order of Betz’s list. It works for two binomials, but a binomial times a trinomial has six pairings, more than FOIL names.

Source: Jeff Miller’s documented early use of FOIL, hosted by MacTutor.

Your progress

See all your progress →