Multiplying Polynomials

To multiply two polynomials, apply the distributive property by multiplying each term of the first polynomial by each term of the second. Then use the exponent rule a x n b x m = a b   x m + n , add the resulting products and collect any like terms.

The Product of Two Monomials

To multiply two monomials, multiply the coefficients and add the exponents. For example:

( 4 y 3 ) ( 5 y 6 ) = 20 y 9 .

The Product of a Monomial and a Polynomial

Use the distributive property to multiply a monomial by each term of a polynomial. For example:

3 x 2 ( 2 x 3 4 x + 5 ) = 6 x 5 12 x 3 + 15 x 2 .

Multiplying Two Polynomials

When multiplying two polynomials, distribute each term of the first polynomial across all terms of the second. For example:

( 3 x 2 ) ( 2 x 2 3 x + 4 ) .

Distribute 3 x across the trinomial:

3 x ( 2 x 2 3 x + 4 ) = 6 x 3 9 x 2 + 12 x .

Distribute 2 across the trinomial:

2 ( 2 x 2 3 x + 4 ) = 4 x 2 + 6 x 8.

Combine like terms:

6 x 3 13 x 2 + 18 x 8.
Example 1.


Multiply: ( 4 x 2 3 x + 5 ) ( 2 x 3 x )

Solution\begin{aligned} (4x^{2}-3x+5)(2x^{3}-x) & =4x^{2}(2x^{3}-x)-3x(2x^{3}-x)+5(2x^{3}-x)\\ & =8x^{5}-4x^{3}-6x^{4}+3x^{2}+10x^{3}-5x\\ & =8x^{5}-6x^{4}+(10-4)x^{3}+3x^{2}-5x\\ & =8x^{5}-6x^{4}+6x^{3}+3x^{2}-5x \end{aligned}

It is clear that if A is a polynomial of degree n and B is a polynomial of degree m , then the product A B is a polynomial of degree n + m .

deg ( A B ) = deg ( A ) + deg ( B )

In the above example, the first one is a polynomial of degree 2 and the second one is a polynomial of degree 3, and the product is a polynomial of 5 = 2 + 3 .

Long Multiplication

When dealing with polynomials that have three or more terms, using a structured approach similar to long multiplication for numbers is often simpler and more reliable. Here is how to proceed:

  1. Select a Polynomial: Start with one of the polynomials (preferably the longer one) as your main reference.
  2. Multiply by Each Term
    • Multiply the first term of the second polynomial by every term in the first polynomial, and write the results in a row.
    • Move to the second term of the second polynomial, repeat the process, and write the new results directly beneath the first row, aligning terms by their degree.
  3. Repeat for All Terms: Continue this process for all terms in the second polynomial.
  4. Add the Results: Once all the rows are written, add them together by combining like terms.

Key Tip: Keeping your work neatly aligned in columns based on the degree of the terms makes it easier to combine like terms and reduces mistakes.

Example 2.

Multiply 2 x 3 x 2 + 5 by x 3 + x 2 .

Solution

We arrange the given polynomials in descending (or ascending) powers of x and place the multiplier under multiplicand.

We then write in separate rows the "partial products" corresponding to the several terms of the multiplier, placing them so that like terms, that is, terms of the same degree, are in the same column.

\begin{aligned} \phantom{2x^5-3x^4-3x^3+}2x^3-x^2+\phantom{x}+5&\\\times \phantom{2x^5-3x^4-3x^3-2x^2}(x^2+x-3)&\\[-6pt] \rule{5cm}{0.4pt}\\ -6x^3-3x^2\phantom{+3x}-15& &&{\color{blue}\leftarrow -3(2x^3-x^2+5)}\\ \phantom{-}2x^4-\phantom{2}x^3+\phantom{2x^2}+5x\phantom{+15}& &&{\color{blue}\leftarrow x(2x^3-x^2+5)}\\ 2x^5-\phantom{2}x^4~\phantom{-6x^3}+5x^2\phantom{+5x-15}& &&{\color{blue}\leftarrow x^2(2x^3-x^2+5)}\\ \end{aligned}

Finally, add these like terms by columns:

\begin{aligned} \phantom{2x^5-3x^4-3x^3+}2x^3-x^2+\phantom{x}+5&\\\times \phantom{2x^5-3x^4-3x^3-2x^2}(x^2+x-3)&\\[-6pt] \rule{5cm}{0.4pt}\\[-2pt] -6x^3-3x^2\phantom{+3x}-15& &&{\color{blue}\leftarrow -3(2x^3-x^2+5)}\\ \phantom{-}2x^4-\phantom{2}x^3+\phantom{2x^2}+5x\phantom{+15}& &&{\color{blue}\leftarrow x(2x^3-x^2+5)}\\ 2x^5-\phantom{2}x^4~\phantom{-6x^3}+5x^2\phantom{+5x-15}& &&{\color{blue}\leftarrow x^2(2x^3-x^2+5)}\\[-6pt] \rule{5cm}{0.4pt}\\ 2x^5-3x^4-7x^3+2x^2+5x-15& &&{\color{blue}\leftarrow \text{combine like terms}} \end{aligned}

Therefore,

( 2 x 3 x 2 + 5 ) ( x 3 + x 2 ) = 2 x 5 3 x 4 7 x 3 + 2 x 2 + 5 x 15.
Example 3.

Multiply ( 4 x 2 3 x + 5 ) by ( 2 x 3 x ) .

Solution\begin{aligned} & &4x^2&-3x&+5\\ \times\qquad &(2x^3&&-x)\\ \hline &-4x^3&-3x^2&-15x\\ -8x^5-6x^4&-5x^3\\ \hline -8x^5-6x^4&-9x &-3x^2&-15x \end{aligned}

Therefore,

( 4 x 2 3 x + 5 ) ( 2 x 3 x ) = 8 x 5 6 x 4 9 x 3 x 2 15 x ,

as before.

FOIL Method for Multiplying Binomials

When multiplying two binomials, we can use a helpful mnemonic device called FOIL to remember the distributive property. FOIL stands for First, Outer, Inner, Last. It outlines the steps to ensure we multiply each term in the first binomial by each term in the second binomial.

Let's consider two binomials: ( a + b ) and ( c + d ) . To multiply them using the FOIL method, we follow these steps:

Illustration for Multiplying Polynomials
  1. F (First): Multiply the first terms of each binomial: a × c = a c .
  2. O (Outer): Multiply the outer terms of the binomials: a × d = a d .
  3. I (Inner): Multiply the inner terms of the binomials: b × c = b c .
  4. L (Last): Multiply the last terms of each binomial: b × d = b d .

Finally, we add the results of these four multiplications: a c + a d + b c + b d . So, ( a + b ) ( c + d ) = a c + a d + b c + b d .

Example 4.

Multiply ( x + 2 ) ( x 3 ) using the FOIL method.

Solution
  1. F: x × x = x 2
  2. O: x × ( 3 ) = 3 x
  3. I: 2 × x = 2 x
  4. L: 2 × ( 3 ) = 6

Adding these terms together, we get: x 2 3 x + 2 x 6 .

Simplifying by combining like terms, we have:

x 2 x 6.
Example 5.

Multiply ( 2 y 5 ) ( 3 y + 1 ) using the FOIL method.

Solution
  1. F: ( 2 y ) × ( 3 y ) = 6 y 2
  2. O: ( 2 y ) × 1 = 2 y
  3. I: ( 5 ) × ( 3 y ) = 15 y
  4. L: ( 5 ) × 1 = 5

Adding these terms together: 6 y 2 + 2 y 15 y 5 .

Simplifying by combining like terms:

6 y 2 13 y 5.

While FOIL is a useful mnemonic for multiplying binomials, remember that it is simply a way to visualize the distributive property. The core principle is to multiply every term in the first polynomial by every term in the second polynomial. This principle extends to multiplying polynomials with more terms as well, though the FOIL acronym no longer directly applies. You can think of it as applying the distributive property repeatedly.

Determining Coefficients in the Product of Polynomials

Consider the product:

\begin{aligned} (a_3 x^3+a_2 x^2&+a_1 x+a_0)(b_2 x^2+b_1 x+b_0)\\ =a_3b_2 x^5&+(a_3b_1+a_2b_2)x^4+(a_3b_0+a_2b_1+a_1b_2)x^3\\ &+(a_2b_0+a_1b_1+a_0b_2)x^2+(a_1b_0+a_0b_1)x+a_0b_0 \end{aligned}

The product is a polynomial in x whose degree is the sum of the degrees of the factors. The coefficient of each term can be obtained by the following rule:

For a term x i , consider all possible products a j b k where a j is the coefficient of x j in the first polynomial and b k is the coefficient of x k in the second polynomial. The coefficient of x i is the sum of all such products a j b k where j + k = i .

Thus, to obtain the coefficient of x 3 , we find all products a j b k where j + k = 3 . These are a 3 b 0 , a 2 b 1 , and a 1 b 2 . The coefficient of x³ is then a 3 b 0 + a 2 b 1 + a 1 b 2 .

This rule applies to the product of any two polynomials in x of the form

a m x m + a 1 x m 1 + + a 0 and b n x n + b n 1 x n 1 + + b 0

It also indicates how to obtain any particular coefficient of the product when the factors have numerical coefficients.

Example 6.

Find the coefficient of x 100 in the product

( a 75 x 75 + a 74 x 74 + + a 0 ) ( b 60 x 60 + b 59 x 59 + + b 0 )
Solution

The degree of the product is 75 + 60 = 135 . For the term x 100 , we need j + k = 100 . Since the powers in the first polynomial range from 0 to 75 and the powers in the second range from 0 to 60, the possible combinations for j + k = 100 are: j = 75 and k = 25 , j = 74 and k = 26 ,..., j = 40 and k = 60 . Hence, the coefficient of x 1 00 is

a 75 b 25 + a 74 b 26 + + a 40 b 60 .

Similarly, the coefficient of x 135 is a 75 b 60 .

Example 7.

Find the coefficient of x 3 in the product

( 3 x 4 2 x 3 + x 2 8 x + 7 ) ( 2 x 3 + 5 x 2 + 6 x 3 ) .
Solution

We look for j ( 0 j 4 ) and k ( 0 k 3 ) such that j + k = 3 . We have

j k a j b k
3 0 a 3 b 0 = ( 2 ) ( 3 ) = 6
2 1 a 2 b 1 = ( 1 ) ( 6 ) = 6
1 2 a 1 b 2 = ( 8 ) ( 5 ) = 40
0 3 a 0 b 3 = ( 7 ) ( 2 ) = 14

The required coefficient is thus

( 2 ) ( 3 ) + ( 1 ) ( 6 ) + ( 8 ) ( 5 ) + ( 7 ) ( 2 ) = 14.

Exercises

Exercise 1.

Multiply.

(a) ( 3 a 4 ) ( 2 a 5 )    (b) ( x 2 ) ( 7 x 3 )    (c) ( 2 2 x ) ( 2 x 4 )

Answer

(a) 6 a 9    (b) 7 x 5    (c) 4 x 5

Solution

This section gives the rule for multiplying two monomials: multiply the coefficients and add the exponents,

a x n b x m = a b x n + m .

The exponents are added rather than multiplied because of the Product Rule for exponents from the earlier section: x n x m = x n + m .

(a) ( 3 a 4 ) ( 2 a 5 ) .

Coefficients: 3 × ( 2 ) = 6 . A positive times a negative is negative.

Exponents: 4 + 5 = 9 .

( 3 a 4 ) ( 2 a 5 ) = 6 a 9 .

(b) ( x 2 ) ( 7 x 3 ) .

First recover the hidden coefficient: x 2 means 1 x 2 , so the coefficient is 1 .

Coefficients: ( 1 ) × ( 7 ) = 7 . A negative times a negative is positive.

Exponents: 2 + 3 = 5 .

( x 2 ) ( 7 x 3 ) = 7 x 5 .

The invisible 1 is the thing most often mishandled here. It is easy to see the two minus signs and forget that one of them carries a factor of 1 , not nothing.

(c) ( 2 2 x ) ( 2 x 4 ) .

Coefficients: 2 2 × 2 . Group the numbers so that the two roots meet:

2 2 × 2 = 2 ( 2 2 ) = 2 2 = 4 ,

since 2 2 = 2 by the definition of a square root from the earlier section on exponents.

Exponents: 1 + 4 = 5 , remembering that a bare x means x 1 .

( 2 2 x ) ( 2 x 4 ) = 4 x 5 .

Note how a pair of irrational coefficients has produced a perfectly ordinary whole-number coefficient. Always look for such simplifications before assuming the answer must stay messy.

Exercise 2.

Multiply 4 x 2 ( 3 x 3 2 x + 6 ) .

Answer

12 x 5 8 x 3 + 24 x 2

Solution

This section says to use the distributive property, multiplying the monomial by each term of the polynomial. There are three terms inside, so there will be three products.

Product with the first term.

4 x 2 3 x 3 = ( 4 3 ) x 2 + 3 = 12 x 5 .

Product with the second term. Keep the minus sign attached to the term it belongs to:

4 x 2 ( 2 x ) = ( 4 ( 2 ) ) x 2 + 1 = 8 x 3 .

Product with the third term. The constant 6 is 6 x 0 , so the exponents add as 2 + 0 = 2 :

4 x 2 6 = 24 x 2 .

Adding the three products.

4 x 2 ( 3 x 3 2 x + 6 ) = 12 x 5 8 x 3 + 24 x 2 .

There are no like terms to collect, since the three powers 5 , 3 and 2 are all different, so this is the final answer.

Check with a number. Substitute x = 1 into the original:

4 1 ( 3 2 + 6 ) = 4 7 = 28 ,

and into the answer:

12 8 + 24 = 28.

The two commonest errors. The first is multiplying only the leading term, writing 12 x 5 2 x + 6 ; the distributive property reaches every term inside the bracket. The second is multiplying the exponents instead of adding them, writing 4 x 2 3 x 3 = 12 x 6 . Exponents are multiplied only when a power is raised to a power, which is not what is happening here.

Exercise 3.

Use the FOIL method to multiply.

(a) ( x + 5 ) ( x 2 )    (b) ( 3 y 4 ) ( 2 y + 1 )

Answer

(a) x 2 + 3 x 10    (b) 6 y 2 5 y 4

Solution

FOIL, as this section explains, is a way of remembering the four products that arise when two binomials are multiplied: First, Outer, Inner, Last. Each term of the first bracket must meet each term of the second, and 2 × 2 = 4 products result.

TikZ figure

(a) ( x + 5 ) ( x 2 ) . Read the second bracket as x + ( 2 ) , so that the "last" term is 2 and its sign travels with it.

  • First: x × x = x 2
  • Outer: x × ( 2 ) = 2 x
  • Inner: 5 × x = 5 x
  • Last: 5 × ( 2 ) = 10

Add the four results:

x 2 2 x + 5 x 10.

The middle two are like terms, so collect them: 2 x + 5 x = 3 x . Hence

( x + 5 ) ( x 2 ) = x 2 + 3 x 10.

Check at x = 1 : the original gives ( 6 ) ( 1 ) = 6 , and the answer gives 1 + 3 10 = 6 . ✓

(b) ( 3 y 4 ) ( 2 y + 1 ) .

  • First: 3 y × 2 y = 6 y 2
  • Outer: 3 y × 1 = 3 y
  • Inner: ( 4 ) × 2 y = 8 y
  • Last: ( 4 ) × 1 = 4

Add them:

6 y 2 + 3 y 8 y 4.

Collect the middle terms: 3 y 8 y = 5 y . Hence

( 3 y 4 ) ( 2 y + 1 ) = 6 y 2 5 y 4.

Check at y = 1 : the original gives ( 1 ) ( 3 ) = 3 , and the answer gives 6 5 4 = 3 . ✓

A warning about FOIL. As this section stresses, FOIL is only a mnemonic for the distributive property, and it applies only when both factors are binomials. With three terms in a bracket there are six products, not four, and the acronym gives no help.

Exercise 4.

Multiply ( 2 x 2 x + 3 ) ( x 2 + 4 ) .

Answer

2 x 4 x 3 + 11 x 2 4 x + 12

Solution

Follow the method of the worked example in this section: distribute each term of the first polynomial across the whole of the second.

Step 1: split the first polynomial into its three terms.

( 2 x 2 x + 3 ) ( x 2 + 4 ) = 2 x 2 ( x 2 + 4 ) x ( x 2 + 4 ) + 3 ( x 2 + 4 ) .

Note that the middle term carries its minus sign with it.

Step 2: expand each piece.

2 x 2 ( x 2 + 4 ) = 2 x 4 + 8 x 2 , x ( x 2 + 4 ) = x 3 4 x , 3 ( x 2 + 4 ) = 3 x 2 + 12.

Step 3: write all six products together.

2 x 4 + 8 x 2 x 3 4 x + 3 x 2 + 12.

Step 4: collect like terms, power by power.

  • x 4 : only 2 x 4 .
  • x 3 : only x 3 .
  • x 2 : 8 x 2 + 3 x 2 = 11 x 2 .
  • x : only 4 x .
  • constant: only 12 .
( 2 x 2 x + 3 ) ( x 2 + 4 ) = 2 x 4 x 3 + 11 x 2 4 x + 12.

Two checks.

Degree. This section states deg ( A B ) = deg ( A ) + deg ( B ) . Here 2 + 2 = 4 , and our answer has degree 4 . ✓

Value. At x = 1 the original gives ( 2 1 + 3 ) ( 1 + 4 ) = 4 5 = 20 , and the answer gives 2 1 + 11 4 + 12 = 20 . ✓

How many products should there be? Three terms times two terms gives 3 × 2 = 6 products, and six is exactly what Step 3 shows. Counting them before you start is a good way to be sure none has been dropped.

Exercise 5.

Without multiplying anything out, state the degree of each product.

(a) ( x 5 2 x + 1 ) ( 3 x 4 + x )    (b) ( 7 x 2 ) ( x 9 x )    (c) ( x 3 + 1 ) ( x 3 + 1 )

Answer

(a) 9    (b) 11    (c) 6

Solution

This section records the rule

deg ( A B ) = deg ( A ) + deg ( B ) ,

so all we need is the degree of each factor, which is its largest exponent.

(a) The first factor has largest exponent 5 , so its degree is 5 . The second has largest exponent 4 , so its degree is 4 . The product therefore has degree

5 + 4 = 9.

(b) The first factor 7 x 2 is a monomial of degree 2 . The second has largest exponent 9 , so degree 9 . The product has degree

2 + 9 = 11.

(c) Both factors have degree 3 , so the product has degree

3 + 3 = 6.

Why the rule works. The highest power in the product can only come from multiplying the highest power of one factor by the highest power of the other, and by the Product Rule for exponents those exponents add. In (a), the term of highest degree is x 5 3 x 4 = 3 x 9 , and no other pairing can reach as high.

Why no cancellation can spoil it. In the earlier section on adding polynomials we saw that degrees can drop when leading terms cancel. That cannot happen here, because there is only one way to produce the top power — a single product of the two leading terms — so it has nothing to cancel against. Its coefficient is the product of the two leading coefficients, and a product of two non-zero numbers is never zero, by the Zero-Product Property.

So for multiplication the degree rule is exact, with no "at most" needed, unlike the rule for addition.

Exercise 6.

Find the coefficient of x 2 in

( x 3 2 x 2 + 4 x 1 ) ( 3 x 2 + x 5 )

without expanding the whole product.

Answer

11

Solution

This section gives the rule: the coefficient of x i in a product is the sum of all products a j b k for which j + k = i , where a j is the coefficient of x j in the first polynomial and b k that of x k in the second.

Step 1: list the coefficients.

From the first polynomial x 3 2 x 2 + 4 x 1 :

a 3 = 1 , a 2 = 2 , a 1 = 4 , a 0 = 1.

From the second polynomial 3 x 2 + x 5 :

b 2 = 3 , b 1 = 1 , b 0 = 5.

Take the signs from the polynomial exactly as written, and remember that x 3 has coefficient 1 , not none.

Step 2: find all pairs with j + k = 2 . The available values are j = 0 , 1 , 2 , 3 and k = 0 , 1 , 2 . The pairs adding to 2 are

( j , k ) = ( 2 , 0 ) , ( 1 , 1 ) , ( 0 , 2 ) .

The pair ( 3 , 1 ) is impossible, since there is no k = 1 .

Step 3: work out each product.

a 2 b 0 = ( 2 ) ( 5 ) = 10 , a 1 b 1 = ( 4 ) ( 1 ) = 4 , a 0 b 2 = ( 1 ) ( 3 ) = 3.

Step 4: add them.

10 + 4 + ( 3 ) = 11.

So the coefficient of x 2 is 11 .

Why the rule is true. A term x 2 can only arise from multiplying some a j x j by some b k x k where the exponents add to 2 , since the Product Rule for exponents adds them. Every such pairing contributes, and they are like terms, so their coefficients are added.

Why this is worth doing. The full product here has degree 3 + 2 = 5 and six terms. Expanding it all to read off one coefficient means twelve multiplications; the method above needs three. On the section's own example with degrees 75 and 60 , full expansion is out of the question and this is the only practical route.

A caution. Be systematic when listing the pairs. Missing one, such as ( 0 , 2 ) , changes the answer, and nothing in the arithmetic afterwards would reveal the omission.

Exercise 7.

Find the value of a for which

( x + a ) ( x + 3 ) = x 2 + 7 x + 12.
Answer

a = 4

Solution

Step 1: expand the left side, keeping a as a letter. Using FOIL:

  • First: x x = x 2
  • Outer: x 3 = 3 x
  • Inner: a x = a x
  • Last: a 3 = 3 a

Adding,

x 2 + 3 x + a x + 3 a .

The two middle terms are like terms — both are multiples of x — so they combine. By the distributive property,

3 x + a x = ( 3 + a ) x .

Hence

( x + a ) ( x + 3 ) = x 2 + ( 3 + a ) x + 3 a .

Step 2: compare with the required answer. We want this to be the same expression as

x 2 + 7 x + 12

for every x , that is, an identity in the sense of the earlier section. Two polynomials agree for all x exactly when their matching coefficients agree, so we compare power by power:

  • coefficient of x 2 : 1 = 1 , which is automatic;
  • coefficient of x : 3 + a = 7 ;
  • constant term: 3 a = 12 .

Step 3: solve. From the constant terms, 3 a = 12 , so dividing both sides by 3 gives

a = 4.

Step 4: confirm with the other equation. The middle coefficients require 3 + a = 7 , and with a = 4 this reads 3 + 4 = 7 . ✓ Both conditions are met by the same value, which is a good sign that no error has crept in. Had the two disagreed, no value of a would have worked.

Full check. Substituting a = 4 into the original left side and expanding:

( x + 4 ) ( x + 3 ) = x 2 + 3 x + 4 x + 12 = x 2 + 7 x + 12.

The technique. Matching coefficients of like powers is a powerful method that will be used repeatedly. It converts a single statement about polynomials into several simple statements about numbers.

Exercise 8.

A rectangular garden measures ( 2 x + 1 ) metres by ( x + 4 ) metres.

(a) Find a polynomial for its area.   (b) Find the area when x = 3 .   (c) What is the degree of the area polynomial, and why should you have expected it?

Answer

(a) 2 x 2 + 9 x + 4    (b) 49 square metres    (c) Degree 2

Solution

(a) The area of a rectangle is length times width:

Area = ( 2 x + 1 ) ( x + 4 ) .

Both factors are binomials, so FOIL applies:

  • First: 2 x x = 2 x 2
  • Outer: 2 x 4 = 8 x
  • Inner: 1 x = x
  • Last: 1 4 = 4

Adding,

2 x 2 + 8 x + x + 4 ,

and collecting the like terms 8 x + x = 9 x :

Area = 2 x 2 + 9 x + 4   square metres .

(b) Substitute x = 3 , applying the exponent before the multiplication:

3 2 = 9 , 2 9 = 18 , 9 3 = 27 , 18 + 27 + 4 = 49.

The area is 49 square metres.

Check against the dimensions directly: the sides are 2 3 + 1 = 7 metres and 3 + 4 = 7 metres, and 7 × 7 = 49 . ✓ The garden happens to be square at this value of x .

(c) Each side is a polynomial of degree 1 , and this section states that degrees add under multiplication:

deg ( Area ) = 1 + 1 = 2.

That matches the answer, whose largest exponent is 2 .

This is exactly what one should expect on physical grounds too. Length is a one-dimensional quantity and area is two-dimensional, so multiplying two lengths must produce something that grows like the square of the scale. If the answer had come out with degree 3 , it would have been describing a volume, and something would have gone wrong.

A remark on the constant term. The 4 says that when x = 0 the area is 4 square metres — the garden would then measure 1 by 4 metres. Note that x = 0 is geometrically acceptable here, but x could not be very negative, since a side length cannot be negative.

Exercise 9.

(a) Expand ( x 4 ) ( x + 4 ) using FOIL.   (b) Compare your answer with the formula ( a b ) ( a + b ) = a 2 b 2 from the first section of this chapter. What happens to the middle terms?

Answer

(a) x 2 16

Solution

(a) Expanding by FOIL.

  • First: x x = x 2
  • Outer: x 4 = 4 x
  • Inner: ( 4 ) x = 4 x
  • Last: ( 4 ) 4 = 16

Adding the four products:

x 2 + 4 x 4 x 16.

The two middle terms are like terms, and they are exact opposites:

4 x 4 x = 0.

They cancel completely, leaving

( x 4 ) ( x + 4 ) = x 2 16.

(b) Comparison with the formula. The formula from the first section of this chapter,

( a b ) ( a + b ) = a 2 b 2 ,

with a = x and b = 4 gives

( x 4 ) ( x + 4 ) = x 2 4 2 = x 2 16 ,

the same answer. So the general formula and the FOIL expansion agree, as they must.

What happens to the middle terms. FOIL produces four terms, and in the general case the Outer and Inner products are

a b = a b and ( b ) a = a b .

These are opposites, so they add to zero and vanish. That is precisely why the answer has only two terms instead of the usual three — and it is why the formula is worth remembering as a shortcut.

When does this happen? Only when the two binomials are identical apart from the sign between the terms, as in ( x 4 ) and ( x + 4 ) . Change one number and the cancellation fails: for instance ( x 4 ) ( x + 5 ) gives Outer 5 x and Inner 4 x , which combine to x rather than disappearing, leaving x 2 + x 20 .

Using it in reverse. Since the formula is an equality, it can also be read backwards to turn a difference of two squares into a product. That will be useful whenever a quantity such as x 2 16 needs to be written as a product.

Exercise 10.

Use the long multiplication layout described in this section to multiply

( x 2 + 2 x 1 ) ( 2 x 2 x + 3 ) .
Answer

2 x 4 + 3 x 3 x 2 + 7 x 3

Solution

The long multiplication method takes each term of one polynomial in turn, multiplies it across the whole of the other, and writes the partial products in rows with like powers lined up in columns. With three terms in each factor this is far less error-prone than working in a single line.

Row 1: multiply by x 2 .

x 2 ( 2 x 2 x + 3 ) = 2 x 4 x 3 + 3 x 2 .

Row 2: multiply by 2 x .

2 x ( 2 x 2 x + 3 ) = 4 x 3 2 x 2 + 6 x .

Row 3: multiply by 1 . Every sign inside flips:

1 ( 2 x 2 x + 3 ) = 2 x 2 + x 3.

Adding the columns. Line the three rows up by power and add each column separately.

  • x 4 : only Row 1 contributes, giving 2 x 4 .
  • x 3 : Rows 1 and 2 give 1 and 4 , so ( 1 + 4 ) x 3 = 3 x 3 .
  • x 2 : Rows 1, 2 and 3 give 3 , 2 and 2 , so ( 3 2 2 ) x 2 = x 2 .
  • x : Rows 2 and 3 give 6 and 1 , so ( 6 + 1 ) x = 7 x .
  • constant: only Row 3 contributes, giving 3 .

The result.

( x 2 + 2 x 1 ) ( 2 x 2 x + 3 ) = 2 x 4 + 3 x 3 x 2 + 7 x 3.

Two checks.

Degree. Both factors have degree 2 , so the product should have degree 2 + 2 = 4 . It does. ✓

Value. At x = 1 the original gives ( 1 + 2 1 ) ( 2 1 + 3 ) = 2 4 = 8 , and the answer gives 2 + 3 1 + 7 3 = 8 . ✓

Why the layout helps. Three terms times three terms produces 3 × 3 = 9 products, and nine separate terms strung along one line are easy to miscount or misalign. Arranging them in three rows of three, with columns by power, turns the final stage into ordinary column addition — exactly as with long multiplication of numbers, which is where the method gets its name.

Exercise 11.

A student expands ( x + 2 ) ( x 2 + 3 x + 1 ) by FOIL, computing only four products, and obtains x 3 + 3 x 2 + 2 x 2 + 6 x . Explain what went wrong and give the correct expansion.

Answer

The correct expansion is x 3 + 5 x 2 + 7 x + 2 .

Solution

What went wrong. FOIL names exactly four products — First, Outer, Inner, Last — because it was designed for two binomials, where 2 × 2 = 4 products arise. Here the second factor is a trinomial, so the correct count is

2 × 3 = 6   products ,

and the student produced only four. Two products were never formed at all: the ones involving the final term 1 of the trinomial.

This section warns about exactly this, noting that FOIL is only a way of visualising the distributive property, and that once there are more terms the acronym no longer applies. The principle that always applies is: multiply every term of the first polynomial by every term of the second.

The correct expansion. Distribute each term of ( x + 2 ) across the whole trinomial.

x ( x 2 + 3 x + 1 ) = x 3 + 3 x 2 + x , 2 ( x 2 + 3 x + 1 ) = 2 x 2 + 6 x + 2.

That is six products in all. Now add them:

x 3 + 3 x 2 + x + 2 x 2 + 6 x + 2.

Collect like terms:

  • x 3 : only one, giving x 3 .
  • x 2 : 3 x 2 + 2 x 2 = 5 x 2 .
  • x : x + 6 x = 7 x .
  • constant: 2 .
( x + 2 ) ( x 2 + 3 x + 1 ) = x 3 + 5 x 2 + 7 x + 2.

Check at x = 1 . The original gives ( 3 ) ( 1 + 3 + 1 ) = 3 5 = 15 , and the answer gives 1 + 5 + 7 + 2 = 15 . ✓ Note that the student's expression gives 1 + 3 + 2 + 6 = 12 , which fails the check — so the error would have been caught at once.

A reliable habit. Before starting, multiply the number of terms in each factor to find how many products to expect, then count them when finished. Two by three means six; three by three means nine. Any shortfall signals a missing product.

Exercise 12.

A student writes ( x + 3 ) 2 = x 2 + 9 . Show that this is wrong by expanding properly, and identify the term that was lost.

Answer

The correct expansion is x 2 + 6 x + 9 ; the lost term is 6 x .

Solution

The correct expansion. The notation ( x + 3 ) 2 means ( x + 3 ) multiplied by itself:

( x + 3 ) 2 = ( x + 3 ) ( x + 3 ) .

That is a product of two binomials, so FOIL applies:

  • First: x x = x 2
  • Outer: x 3 = 3 x
  • Inner: 3 x = 3 x
  • Last: 3 3 = 9

Adding,

x 2 + 3 x + 3 x + 9 ,

and collecting the like terms 3 x + 3 x = 6 x :

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

The lost term. The student's answer keeps only the First and Last products and throws away the Outer and Inner ones. Those two are what produce the middle term 6 x , and it is exactly this term that has been lost.

A numerical demonstration. Substitute x = 1 :

correct:  ( 1 + 3 ) 2 = 4 2 = 16 , \text{student's: }1^{2}+9=1+9=10.

Since 16 10 , the student's rule is false. Our expansion gives 1 + 6 + 9 = 16 ✓, matching the correct value.

The underlying mistake. The student has treated the exponent as though it could be applied to each part of the sum separately. As the earlier section on exponents established, an exponent may never be distributed over a sum: the rule ( b c ) n = b n c n concerns a product, and there is no corresponding rule for ( b + c ) n .

A useful mental picture. Think of a square of side x + 3 . It splits into a square of side x (area x 2 ), a square of side 3 (area 9 ), and two rectangles measuring x by 3 (area 3 x each). The student's answer accounts for the two squares but forgets the two rectangles, and those rectangles are the missing 6 x .

TikZ figure
Exercise 13.

Is the statement "the product of two binomials is a trinomial" always, sometimes, or never true? Justify your answer.

Answer

Sometimes true.

Solution

The answer is sometimes.

A case where it holds. Take ( x + 1 ) ( x + 2 ) . By FOIL,

x 2 + 2 x + x + 2 = x 2 + 3 x + 2 ,

which has three terms and so is a trinomial. Here the statement is true.

A case where it fails. Take ( x + 2 ) ( x 2 ) . By FOIL,

x 2 2 x + 2 x 4.

The Outer and Inner products are exact opposites, so they cancel, leaving

x 2 4 ,

which has only two terms and so is a binomial, not a trinomial. Here the statement is false.

Since both outcomes occur, the statement is sometimes true.

What decides it. FOIL always produces four products, and the Outer and Inner ones are like terms, so they combine into a single middle term. The count of terms in the answer therefore depends on whether that middle term survives:

  • if the Outer and Inner products do not cancel, three terms remain and the result is a trinomial;
  • if they cancel exactly, only two remain and the result is a binomial.

Cancellation happens precisely in the case of the difference of two squares, ( a b ) ( a + b ) = a 2 b 2 , met in the first section of this chapter.

Can the count fall to one? Not for binomials of the kind met here. The First product and the Last product are each a product of two non-zero coefficients, so by the Zero-Product Property neither can be zero, and they involve different powers of x , so they cannot combine with each other. At least two terms therefore always survive.

The lesson. Never predict the shape of an answer before doing the algebra. Carry out the expansion, collect the like terms, and count what is actually left.

Exercise 14.

Find the coefficient of x 10 in the product

( a 8 x 8 + a 7 x 7 + + a 0 ) ( b 6 x 6 + b 5 x 5 + + b 0 ) .
Answer

a 8 b 2 + a 7 b 3 + a 6 b 4 + a 5 b 5 + a 4 b 6

Solution

By the rule stated in this section, the coefficient of x 10 is the sum of all products a j b k with

j + k = 10.

The work lies in finding which pairs are actually available, since j and k cannot take any values we please.

The permitted ranges. In the first polynomial the powers run from 0 up to 8 , so

0 j 8.

In the second they run from 0 up to 6 , so

0 k 6.

Finding the pairs. Since k = 10 j , the condition 0 k 6 becomes

0 10 j 6.

The right-hand inequality 10 j 6 gives j 4 , and the left-hand one 10 j 0 gives j 10 . Combined with j 8 from the first polynomial, we get

4 j 8.

So the permitted pairs are

( 8 , 2 ) , ( 7 , 3 ) , ( 6 , 4 ) , ( 5 , 5 ) , ( 4 , 6 ) ,

five in all.

The coefficient.

a 8 b 2 + a 7 b 3 + a 6 b 4 + a 5 b 5 + a 4 b 6 .

Why the obvious pairs are excluded. One might start with j = 10 , k = 0 or j = 9 , k = 1 , but the first polynomial has no x 10 or x 9 term, so a 10 and a 9 do not exist. At the other end, j = 3 , k = 7 fails because the second polynomial stops at x 6 . Checking both ranges is the whole difficulty of this type of problem.

A check on the count. As j runs from 4 to 8 there are 8 4 + 1 = 5 values, matching the five terms listed.

A related question. The product has degree 8 + 6 = 14 , and the coefficient of the top power x 14 comes from the single pair ( 8 , 6 ) , so it is simply a 8 b 6 . There is only one way to reach the highest power, which is why no cancellation can reduce the degree.

Exercise 15.

(a) Show that ( x + 1 ) ( x 2 x + 1 ) = x 3 + 1 .

(b) Use the same idea to expand ( x + 2 ) ( x 2 2 x + 4 ) , and state what you notice.

Answer

(b) x 3 + 8

Solution

Part (a). Distribute each term of ( x + 1 ) across the trinomial. Two terms times three terms gives 2 × 3 = 6 products.

x ( x 2 x + 1 ) = x 3 x 2 + x , 1 ( x 2 x + 1 ) = x 2 x + 1.

Adding all six terms:

x 3 x 2 + x + x 2 x + 1.

Now collect like terms:

  • x 3 : only x 3 .
  • x 2 : x 2 + x 2 = 0 . These cancel.
  • x : x x = 0 . These cancel too.
  • constant: 1 .

Everything in the middle disappears, leaving

( x + 1 ) ( x 2 x + 1 ) = x 3 + 1.

Check at x = 2 : the original gives ( 3 ) ( 4 2 + 1 ) = 3 3 = 9 , and the answer gives 8 + 1 = 9 . ✓

Part (b). Now distribute ( x + 2 ) across x 2 2 x + 4 .

x ( x 2 2 x + 4 ) = x 3 2 x 2 + 4 x , 2 ( x 2 2 x + 4 ) = 2 x 2 4 x + 8.

Adding and collecting:

  • x 3 : only x 3 .
  • x 2 : 2 x 2 + 2 x 2 = 0 .
  • x : 4 x 4 x = 0 .
  • constant: 8 .

Again the middle vanishes:

( x + 2 ) ( x 2 2 x + 4 ) = x 3 + 8.

Check at x = 1 : the original gives ( 3 ) ( 1 2 + 4 ) = 3 3 = 9 , and the answer gives 1 + 8 = 9 . ✓

What to notice. Both products collapse to just two terms, and in each case the answer is x 3 plus a cube: 1 = 1 3 in part (a) and 8 = 2 3 in part (b). The pattern is

( x + b ) ( x 2 b x + b 2 ) = x 3 + b 3 ,

with b = 1 and b = 2 in the two parts.

Why the middle terms die. Expanding the general form, the x 2 terms are b x 2 and + b x 2 , and the x terms are b 2 x and b 2 x . Each pair consists of exact opposites, so each pair sums to zero. The trinomial is built precisely so that this happens — which is why its middle sign is negative and its last term is b 2 .

A test of the pattern. Predict ( x + 3 ) ( x 2 3 x + 9 ) . The rule says it should be x 3 + 27 . Verifying at x = 1 : the product is ( 4 ) ( 1 3 + 9 ) = 4 7 = 28 , and 1 + 27 = 28 . ✓