Algebra 1Polynomials and Factoring2 of 7
Polynomials and Factoring · 2

Multiplying Polynomials and Special Products

We need to multiply expressions with xx in them, and the rules come straight from how we multiply ordinary numbers.

1

Multiplying with a Rectangle

Suppose we want to multiply two two-digit numbers in our head:

13×12\displaystyle 13 \times 12

Instead of stacking the digits and carrying in our head, we can picture a 1313 by 1212 rectangle whose area is 13×1213 \times 12, and split the sides into easier pieces.

Multiplying with a Rectangle
13×1213 \times 12
1313
1212
Text solution
Split each side into tens and onesBreaking 1313 into 10+310 + 3 and 1212 into 10+210 + 2 divides the rectangle into four smaller rectangles.
13×12\displaystyle 13 \times 12 =(10+3)(10+2)\displaystyle = (10 + 3)(10 + 2)
Find the area of each smaller rectangleEach of the four pieces on the inside is a simple multiplication of a height by a width.
10×10=100,10×2=20,3×10=30,3×2=6\displaystyle \begin{aligned} 10 \times 10 &= \squarepart{100}, &\quad 10 \times 2 &= \sidepart{20}, \\ 3 \times 10 &= \sidepart{30}, &\quad 3 \times 2 &= \cornerpart{6} \end{aligned}
Add the four areas togetherThe total area of the 1313 by 1212 rectangle is the sum of its four parts.
100+20+30+6\displaystyle \squarepart{100} + \sidepart{20} + \sidepart{30} + \cornerpart{6} =156\displaystyle = 156

No matter how you split the 1313 and 1212 sides into two pairs of numbers, the four smaller areas inside always add up to 156156, and splitting them at 10+310 + 3 and 10+210 + 2 makes all four rectangles easy to multiply in your head.

However you split the sides of the 13 by 12 rectangle, the four smaller areas always add up to 156.
2

Multiplying by a Single Term

Before multiplying two split sides together, let's find the product when a single term outside parentheses multiplies several terms inside:

3(x+4)and2x(3x2−5x+4)\displaystyle 3(x + 4) \quad \text{and} \quad 2x(3x^2 - 5x + 4)
33
xx
44
3x\htmlClass{lc-pink}{3x}
12\htmlClass{lc-orange}{12}
Multiplying by a Single Term
3(x+4)=  ?2x(3x2−5x+4)=  ?\displaystyle \begin{aligned}3(x + 4) &= \;?\\2x(3x^2 - 5x + 4) &= \;?\end{aligned}

Just as the 33 outside 3(x+4)3(x + 4) multiplies both pieces inside to give 3x+12\sidepart{3x} + \cornerpart{12}, the outside term in 2x(3x2−5x+4)2x(3x^2 - 5x + 4) multiplies each of the three terms inside.

Text solution
Multiply 2x2x by the first termMultiply the numbers in front first, then use exponent rules to combine the xx outside with the two xx's in x2x^2.
2x⋅3x2\displaystyle 2x \cdot 3x^2 =6x3\displaystyle = \cubepart{6x^3}
Multiply 2x2x by the middle term with the minus sign glued to 5x5xTreating −5x-5x as a negative term lets us multiply 22 by −5-5 directly and xx by xx.
2x⋅(−5x)\displaystyle 2x \cdot (-5x) =−10x2\displaystyle = \squarepart{-10x^2}
Multiply 2x2x by the last term and put the pieces togetherMultiply 22 by 44 while keeping the xx; since x3\cubepart{x^3}, x2\squarepart{x^2}, and x\sidepart{x} are different powers, none of these are like terms and the answer is finished.
2x⋅4\displaystyle 2x \cdot 4 =8x  ⟹  6x3−10x2+8x\displaystyle = \sidepart{8x} \implies \cubepart{6x^3} \squarepart{{}- 10x^2} + \sidepart{8x}
3

Multiplying Two Binomials

Now let's return to the four-part rectangle by swapping 1010 for xx, and see how to multiply two two-term expressions on a single line without drawing the box:

(x+3)(x+2)and(2x−3)(4x+5)\displaystyle (x + 3)(x + 2) \quad \text{and} \quad (2x - 3)(4x + 5)
Multiplying Two Binomials
(x+3)(x+2)(x + 3)(x + 2)
xx
33
xx
22

For (x+3)(x+2)(x + 3)(x + 2), the four parts add up to x2+2x+3x+6=x2+5x+6\squarepart{x^2} + \sidepart{2x} + \sidepart{3x} + \cornerpart{6} = \squarepart{x^2} + \sidepart{5x} + \cornerpart{6} (which gives 100+50+6=156\squarepart{100} + \sidepart{50} + \cornerpart{6} = 156 when x=10x = 10, matching 13×1213 \times 12). Let's multiply (2x−3)(4x+5)(2x - 3)(4x + 5) the same way, by multiplying each term in the first parentheses by both terms in the second.

Text solution
Multiply the first term 2x2x by both terms in the second parenthesesMultiply 2x2x by 4x4x and then by 55 to get the first two terms.
2x⋅4x\displaystyle 2x \cdot 4x =8x2,2x⋅5\displaystyle = \squarepart{8x^2}, \quad 2x \cdot 5 =+10x\displaystyle = \sidepart{+10x}
Multiply the second term −3-3 by both terms in the second parenthesesKeep the negative sign glued to 33 as it multiplies 4x4x and 55.
−3⋅4x\displaystyle -3 \cdot 4x =−12x,−3⋅5\displaystyle = \sidepart{-12x}, \quad -3 \cdot 5 =−15\displaystyle = \cornerpart{-15}
Combine the two middle like termsWrite all four terms in a line and combine +10x\sidepart{+10x} and −12x\sidepart{-12x} into a single xx term.
8x2+10x−12x−15=8x2−2x−15\displaystyle \begin{aligned} &\squarepart{8x^2} + \sidepart{10x} \sidepart{{}- 12x} \cornerpart{{}- 15} \\ &= \squarepart{8x^2} \sidepart{{}- 2x} \cornerpart{{}- 15} \end{aligned}
4

Multiplying Larger Polynomials

Now suppose the second parentheses has three terms instead of two:

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

"FOIL" only has four letters, so it runs out here, but multiplying every term in the first parentheses by every term in the second still works and produces 2×3=62 \times 3 = 6 terms in all.

Multiplying Larger Polynomials
(x+2)(x2−3x+4)=  ?\displaystyle \begin{aligned}(x + 2)(x^2 - 3x + 4) &= \;?\end{aligned}
Text solution
Multiply xx by all three terms in the second parenthesesMultiplying each term inside the second parentheses by xx gives the first three terms in a row.
x(x2−3x+4)\displaystyle x(x^2 - 3x + 4) =x3−3x2+4x\displaystyle = \cubepart{x^3} \squarepart{{}- 3x^2} + \sidepart{4x}
Multiply +2+2 by all three terms and stack matching powersMultiplying each term by +2+2 gives +2x2−6x+8\squarepart{+2x^2} \sidepart{{}- 6x} + \cornerpart{8}, which we place directly underneath the matching x2\squarepart{x^2} and x\sidepart{x} terms from the first row.
x3−3x2+4x+2x2−6x+8\displaystyle \begin{alignedat}{4} \cubepart{x^3} &\squarepart{{}-{} 3x^2} &\sidepart{{}+{} 4x} & \\ &\squarepart{{}+{} 2x^2} &\sidepart{{}-{} 6x} &\cornerpart{{}+{} 8} \end{alignedat}
Combine like terms straight down the columnsAdding each column combines −3x2+2x2\squarepart{-3x^2} + \squarepart{2x^2} into −1x2=−x2\squarepart{-1x^2} = \squarepart{-x^2} and +4x−6x\sidepart{+4x} \sidepart{{}- 6x} into −2x\sidepart{-2x}.
x3−x2−2x+8\displaystyle \cubepart{x^3} \squarepart{{}- x^2} \sidepart{{}- 2x} + \cornerpart{8}
5

Squaring a Binomial

Now let's see what happens when we square a two-term expression (a binomial), multiplying it by itself:

(x+3)2and(x−5)2\displaystyle (x + 3)^2 \quad \text{and} \quad (x - 5)^2
Squaring a Binomial
(x+3)2(x + 3)^2
xx
33
xx
33

Writing (x+3)2(x + 3)^2 as just x2+9\squarepart{x^2} + \cornerpart{9} misses the two matching 3x\sidepart{3x} side rectangles in the (x+3)(x + 3) by (x+3)(x + 3) square:

(x+3)2=(x+3)(x+3)=x2+3x+3x⏟two matching rectangles+9=x2+6x+9\displaystyle \begin{aligned} (x + 3)^2 &= (x + 3)(x + 3) \\ &= \squarepart{x^2} + \underbrace{\sidepart{3x} + \sidepart{3x}}_{\text{two matching rectangles}} + \cornerpart{9} \\ &= \squarepart{x^2} + \sidepart{6x} + \cornerpart{9} \end{aligned}

Let's use that same square pattern to expand (x−5)2(x - 5)^2 in three steps.

Text solution
Square the first termMultiplying the first term xx by itself gives x2\squarepart{x^2}.
x⋅x\displaystyle x \cdot x =x2\displaystyle = \squarepart{x^2}
Multiply the two terms together and double itThe product x⋅(−5)x \cdot (-5) is −5x\sidepart{-5x} and appears twice when we multiply (x−5)(x−5)(x - 5)(x - 5), so double −5x\sidepart{-5x} to get the middle term.
2⋅(−5x)\displaystyle 2 \cdot (\sidepart{-5x}) =−10x\displaystyle = \sidepart{-10x}
Square the last term and combineMultiplying −5-5 by −5-5 gives +25\cornerpart{+25}.
(−5)⋅(−5)\displaystyle (-5) \cdot (-5) =+25  ⟹  x2−10x+25\displaystyle = \cornerpart{+25} \implies \squarepart{x^2} \sidepart{{}- 10x} + \cornerpart{25}
Extending both sides of a square by the same length always creates two matching side rectangles along with a new corner square, and those two rectangles combine into the middle term.
6

Multiplying a Sum and a Difference

What if the two parentheses have the exact same terms, except one is a sum and the other is a difference?

(x+3)(x−3)and(2x+7)(2x−7)\displaystyle (x + 3)(x - 3) \quad \text{and} \quad (2x + 7)(2x - 7)
Multiplying a Sum and a Difference
(x+3)(x−3)=  ?(2x+7)(2x−7)=  ?\displaystyle \begin{aligned}(x + 3)(x - 3) &= \;?\\(2x + 7)(2x - 7) &= \;?\end{aligned}

When we multiply out (x+3)(x−3)(x + 3)(x - 3) term by term, the two middle terms have the exact same size with opposite signs, so they cancel out completely to leave a Difference of Squares:

(x+3)(x−3)=x2−3x+3x⏟0−9=x2−9\displaystyle \begin{aligned} (x + 3)(x - 3) &= \squarepart{x^2} \underbrace{\sidepart{{}- 3x} + \sidepart{3x}}_{0} \cornerpart{{}- 9} \\ &= \squarepart{x^2} \cornerpart{{}- 9} \end{aligned}

Recognizing that pattern lets us multiply (2x+7)(2x−7)(2x + 7)(2x - 7) without computing the middle terms at all.

Text solution
Check that both parentheses have the same terms with opposite signsBecause both use 2x2x and 77 with one plus and one minus, the two middle terms will be opposites and cancel to 00.
(2x+7)(2x−7)\displaystyle (2x + 7)(2x - 7)
Multiply the first termsMultiply 2x2x by 2x2x to get the first square.
2x⋅2x\displaystyle 2x \cdot 2x =4x2\displaystyle = \squarepart{4x^2}
Multiply the last terms and combineMultiply +7+7 by −7-7 to get the subtracted square at the end.
7⋅(−7)\displaystyle 7 \cdot (-7) =−49  ⟹  4x2−49\displaystyle = \cornerpart{-49} \implies \squarepart{4x^2} \cornerpart{{}- 49}
7

Mental Math with Special Products

Those same special product shortcuts let us calculate awkward number products in our head when the numbers sit right next to a round number like 2020:

212,192,and18×22\displaystyle 21^2, \quad 19^2, \quad \text{and} \quad 18 \times 22
Mental Math with Special Products
212=  ?192=  ?18×22=  ?\displaystyle \begin{aligned}21^2 &= \;?\\19^2 &= \;?\\18 \times 22 &= \;?\end{aligned}
Text solution
Rewrite 21221^2 as the square of a sum from 2020Splitting 2121 into 20+120 + 1 lets us square 2020, double 20×120 \times 1, and square 11 in our head.
212\displaystyle 21^2 =(20+1)2\displaystyle = (20 + 1)^2 =400+40+1\displaystyle = \squarepart{400} + \sidepart{40} + \cornerpart{1} =441\displaystyle = 441
Rewrite 19219^2 as the square of a difference from 2020Using 20−120 - 1 instead of 10+910 + 9 keeps the second number at 11, where 20×(−1)20 \times (-1) doubled is −40\sidepart{-40} and (−1)2(-1)^2 is +1\cornerpart{+1}.
192\displaystyle 19^2 =(20−1)2\displaystyle = (20 - 1)^2 =400−40+1\displaystyle = \squarepart{400} \sidepart{{}- 40} + \cornerpart{1} =361\displaystyle = 361
Rewrite 18×2218 \times 22 as a difference times a sum around 2020Since 1818 and 2222 are both a distance of 2\distance{2} from 2020, writing (20−2)(20+2)(20 - 2)(20 + 2) cancels the middle terms and leaves 202−22\squarepart{20^2} \cornerpart{{}- 2^2}.
18×22\displaystyle 18 \times 22 =(20−2)(20+2)\displaystyle = (20 - 2)(20 + 2) =400−4\displaystyle = \squarepart{400} \cornerpart{{}- 4} =396\displaystyle = 396
2\htmlClass{lc-orange}{2}
2\htmlClass{lc-orange}{2}
1818
2020
2222
20−220 - 2
20+220 + 2

Key concepts

Every polynomial multiplication comes from the same picture: splitting the sides of a rectangle so every term in the first parentheses multiplies every term in the second parentheses, with each minus sign kept glued to the term right after it.

When the terms in the two parentheses are different

multiply every term in the first parentheses by every term in the second, and then combine like terms. For two terms by two terms, FOIL checks off all four pairs; for larger polynomials, stack matching powers in columns:

(2x−3)(4x+5)=8x2+10x−12x−15=8x2−2x−15\displaystyle \begin{aligned} &(2x - 3)(4x + 5) \\ &\quad= \squarepart{8x^2} + \sidepart{10x} \sidepart{{}- 12x} \cornerpart{{}- 15} \\ &\quad= \squarepart{8x^2} \sidepart{{}- 2x} \cornerpart{{}- 15} \end{aligned}

When a two-term expression is squared

square the first term, double the product of the two terms, and square the last term:

(x+3)2=x2+6x+9,(x−5)2=x2−10x+25\displaystyle \begin{aligned} (x + 3)^2 &= \squarepart{x^2} + \sidepart{6x} + \cornerpart{9}, \\ (x - 5)^2 &= \squarepart{x^2} \sidepart{{}- 10x} + \cornerpart{25} \end{aligned}

When the two parentheses have the exact same terms with opposite signs

the two middle terms are opposites that cancel to zero, leaving a Difference of Squares (first squared minus last squared):

(x+3)(x−3)=x2−9,(2x+7)(2x−7)=4x2−49\displaystyle \begin{aligned} (x + 3)(x - 3) &= \squarepart{x^2} \cornerpart{{}- 9}, \\ (2x + 7)(2x - 7) &= \squarepart{4x^2} \cornerpart{{}- 49} \end{aligned}

8

Practice

1

Multiply: 3x(2x2−4x+5)3x(2x^2 - 4x + 5)

Multiply all three terms inside by 3x3x. What sign stays glued to 4x4x, and how many xx's are multiplied together in the first term?

Multiply 3x3x by each term inside one at a time:
3x⋅2x2\displaystyle 3x \cdot 2x^2 =6x3\displaystyle = \cubepart{6x^3}
(x⋅x2x \cdot x^2 is x3x^3, not x2x^2. Forgetting the xx in the outside term 3x3x and multiplying by 33 alone would give 6x2−12x+156x^2 - 12x + 15.) Keep the minus sign glued to 4x4x when multiplying the middle term (dropping the negative sign is the slip that gives 6x3+12x2+15x6x^3 + 12x^2 + 15x):
3x⋅(−4x)\displaystyle 3x \cdot (-4x) =−12x2\displaystyle = \squarepart{-12x^2}
Multiply the last term:
3x⋅5\displaystyle 3x \cdot 5 =+15x\displaystyle = \sidepart{+15x}
Answer: 6x3−12x2+15x6x^3 - 12x^2 + 15x
2

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

Multiply xx by both terms in the second parentheses, then multiply 44 by both terms. Which two terms combine in the middle?

Multiply each term in (x+4)(x + 4) by each term in (x+5)(x + 5):
x⋅x=x2,x⋅5=+5x,4⋅x=+4x,4⋅5=+20\displaystyle \begin{aligned} x \cdot x &= \squarepart{x^2}, &\quad x \cdot 5 &= \sidepart{+5x}, \\ 4 \cdot x &= \sidepart{+4x}, &\quad 4 \cdot 5 &= \cornerpart{+20} \end{aligned}
(Don't just multiply the first terms and the last terms to get x2+20\squarepart{x^2} + \cornerpart{20}. That leaves out the two middle rectangles 5x\sidepart{5x} and 4x\sidepart{4x}.) Combine the middle like terms +5x+4x=+9x\sidepart{+5x} + \sidepart{4x} = \sidepart{+9x}: Answer: x2+9x+20x^2 + 9x + 20
3

Multiply: (3x−2)(2x+5)(3x - 2)(2x + 5)

The terms in the two parentheses don't match, so multiply all four pairs and keep the minus sign glued to 22.

First multiply 3x3x by both terms in the second parentheses:
3x⋅2x\displaystyle 3x \cdot 2x =6x2,3x⋅5\displaystyle = \squarepart{6x^2}, \quad 3x \cdot 5 =+15x\displaystyle = \sidepart{+15x}
Next multiply −2-2 by both terms in the second parentheses (forgetting the negative sign on −2-2 in the first product gives +4x+4x instead of −4x\sidepart{-4x}, which leads to the wrong answer 6x2+19x−106x^2 + 19x - 10):
−2⋅2x\displaystyle -2 \cdot 2x =−4x,−2⋅5\displaystyle = \sidepart{-4x}, \quad -2 \cdot 5 =−10\displaystyle = \cornerpart{-10}
Combine the middle like terms +15x−4x=+11x\sidepart{+15x} \sidepart{{}- 4x} = \sidepart{+11x}: Answer: 6x2+11x−106x^2 + 11x - 10
4

Multiply: (x+6)2(x + 6)^2

Picture an (x+6)(x + 6) by (x+6)(x + 6) square. Besides the x2\squarepart{x^2} and 62\cornerpart{6^2} corners, what is the area of the two matching side rectangles?

Use the three-step square shortcut:
Square the first term: x2\squarepart{x^2}.
Multiply the two terms together (6x\sidepart{6x}) and double it for the two matching rectangles: +12x\sidepart{+12x}. (Squaring only the two terms and skipping the two side rectangles is the trap that gives x2+36\squarepart{x^2} + \cornerpart{36}.)
Square the last term: 62=+366^2 = \cornerpart{+36}.
Answer: x2+12x+36x^2 + 12x + 36
5

Multiply: (2x−5)2(2x - 5)^2

Use the three-step square shortcut with the minus sign glued to 55. Remember to square the entire first term 2x2x, and watch the sign when you multiply −5-5 by −5-5.

Square the first term: 2x⋅2x=4x22x \cdot 2x = \squarepart{4x^2}. (Squaring only the xx and not the 22 gives 2x2−20x+252x^2 - 20x + 25.)
Multiply the two terms together (2x⋅(−5)=−10x2x \cdot (-5) = \sidepart{-10x}) and double it: −20x\sidepart{-20x}.
Square the last term: (−5)⋅(−5)=+25(-5) \cdot (-5) = \cornerpart{+25}. (Writing −25-25 instead of +25\cornerpart{+25} when squaring −5-5 gives 4x2−20x−254x^2 - 20x - 25.)
Answer: 4x2−20x+254x^2 - 20x + 25
6

Multiply: (3x+4)(3x−4)(3x + 4)(3x - 4)

Compare the terms and signs in the two parentheses. What happens to the two middle terms?

Both parentheses have the exact same terms (3x3x and 44) with opposite signs, so the middle terms −12x\sidepart{-12x} and +12x\sidepart{+12x} cancel to 00 (doubling −12x\sidepart{-12x} instead of adding −12x+12x\sidepart{-12x} + \sidepart{12x} gives the wrong answer 9x2−24x−169x^2 - 24x - 16). Multiply the first terms:
3x⋅3x\displaystyle 3x \cdot 3x =9x2\displaystyle = \squarepart{9x^2}
(Remember to multiply 3⋅3=93 \cdot 3 = 9; leaving the 33 unsquared gives 3x2−163x^2 - 16.) Multiply the last terms:
4⋅(−4)\displaystyle 4 \cdot (-4) =−16\displaystyle = \cornerpart{-16}
Answer: 9x2−169x^2 - 16
7

Multiply: (x+3)(x2−2x+5)(x + 3)(x^2 - 2x + 5)

Multiply xx by all three terms in the second parentheses, then multiply +3+3 by all three terms and stack matching powers of xx in columns.

Multiply xx by all three terms in the second parentheses to get the first row:
x(x2−2x+5)\displaystyle x(x^2 - 2x + 5) =x3−2x2+5x\displaystyle = \cubepart{x^3} \squarepart{{}- 2x^2} + \sidepart{5x}
Multiply +3+3 by all three terms in the second parentheses to get +3x2−6x+15\squarepart{+3x^2} \sidepart{{}- 6x} + \cornerpart{15}, and align matching powers beneath the first row:
x3−2x2+5x+3x2−6x+15\displaystyle \begin{alignedat}{4} \cubepart{x^3} &\squarepart{{}-{} 2x^2} &\sidepart{{}+{} 5x} & \\ &\squarepart{{}+{} 3x^2} &\sidepart{{}-{} 6x} &\cornerpart{{}+{} 15} \end{alignedat}
Add straight down the columns, watching the signs on −2x2+3x2=+x2\squarepart{-2x^2} + \squarepart{3x^2} = \squarepart{+x^2} and +5x−6x=−x\sidepart{+5x} \sidepart{{}- 6x} = \sidepart{-x} (subtracting +5x−6x+5x - 6x in the wrong direction gives x3+x2+x+15x^3 + x^2 + x + 15): Answer: x3+x2−x+15x^3 + x^2 - x + 15
8

Evaluate 29229^2 by rewriting 2929 as 30−130 - 1.

Apply the three-step square shortcut to (30−1)2(30 - 1)^2. What is 30×(−1)30 \times (-1) doubled, and what is (−1)2(-1)^2?

Write 292=(30−1)229^2 = (30 - 1)^2 and run the three steps:
Square the first number: 302=90030^2 = \squarepart{900}.
Multiply the two numbers (30×(−1)=−3030 \times (-1) = \sidepart{-30}) and double it: −60\sidepart{-60}.
Square the last number: (−1)2=+1(-1)^2 = \cornerpart{+1}. (Subtracting 11 at the end instead of adding (−1)2=+1(-1)^2 = \cornerpart{+1} gives 900−60−1=839900 - 60 - 1 = 839.)
Combine the three parts: 900−60+1\squarepart{900} \sidepart{{}- 60} + \cornerpart{1}: Answer: 841841
9

Evaluate 17×2317 \times 23 by rewriting the factors around 2020.

How far are 1717 and 2323 from 2020? Write them as a difference and a sum from 2020.

Both 1717 and 2323 are a distance of 3\distance{3} from 2020, so rewrite the product as:
17×23\displaystyle 17 \times 23 =(20−3)(20+3)\displaystyle = (20 - 3)(20 + 3)
Because this has the same two numbers with opposite signs, the middle terms cancel out, leaving the first number squared minus the last number squared:
202−32\displaystyle \squarepart{20^2} \cornerpart{{}- 3^2} =400−9\displaystyle = \squarepart{400} \cornerpart{{}- 9}
(Be sure to square the 33 to subtract 9\cornerpart{9}; subtracting 33 without squaring it gives 400−3=397400 - 3 = 397.) Answer: 391391