Polynomials & Factoring

Multiplying Polynomials: A Clear Method That Always Works

To multiply two polynomials, multiply every term of the first by every term of the second, then combine like terms:

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

The rule has no size limit. FOIL is this same rule written for two binomials, and the idea carries over unchanged to a two-term polynomial times a six-term one.

Why does every term multiply every term?

The rule comes from one idea, the distributive property: a(c+d)=ac+ada(c+d)=ac+ad. In (a+b)(c+d)(a+b)(c+d), treat the second factor as a single block and distribute over the first:

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

Every longer product is this step repeated. Each factor is a polynomial, a sum of terms, so each term in one factor takes a turn with each term in the other.

A picture makes it stick. Draw a rectangle with sides a+ba+b and c+dc+d and cut it into four smaller rectangles with areas acac, adad, bcbc and bdbd. The big area is the sum of the pieces. The same picture gives a count: a factor with mm terms times a factor with nn terms produces mnmn products before anything is combined. A binomial times a trinomial gives 6, and a trinomial times a trinomial gives 9.

That count is your best guard against a forgotten term. FOIL names exactly four products, so it quietly drops products as soon as a factor has three terms.

Quick check

How many products must be calculated before combining like terms in (x2+2x+5)(3x−1)(x^2+2x+5)(3x-1)?

How do you multiply a monomial by a polynomial?

Multiply the coefficients, add the exponents, and repeat for every term inside the parentheses. The exponent rule is xa⋅xb=xa+bx^a\cdot x^b=x^{a+b}, and it makes sense once you count factors: x2⋅x3x^2\cdot x^3 is (x⋅x)(x⋅x⋅x)(x\cdot x)(x\cdot x\cdot x), which is five copies of xx, so x5x^5. Students lose points by multiplying exponents and writing x6x^6.

Multiply and add are different

3x2⋅4x3=12x53x^2\cdot 4x^3=12x^5 works for any powers, but 3x2+4x33x^2+4x^3 cannot be combined at all. Addition needs identical powers, multiplication does not.

Take −3x2(2x3−4x+5)-3x^2(2x^3-4x+5). The negative sign belongs to the monomial and travels to every term:

−3x2⋅2x3=−6x5,−3x2⋅(−4x)=12x3,−3x2⋅5=−15x2-3x^2\cdot 2x^3=-6x^5,\qquad -3x^2\cdot(-4x)=12x^3,\qquad -3x^2\cdot 5=-15x^2

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

Here the middle product turned positive because a negative times a negative is positive. Running this process backward is exactly what factoring out the GCF does.

How do you multiply a binomial by a trinomial?

Distribute each term of the binomial across the whole trinomial, one row at a time, and keep each sign attached to its term. For (x−2)(x2+3x−4)(x-2)(x^2+3x-4), think of the first factor as xx and −2-2, with the minus sign glued to the 2.

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

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

Now add the two rows and group like powers, the same skill used in adding and subtracting polynomials:

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

Many students prefer the vertical layout from whole-number multiplication, with the longer polynomial on top and each row shifted so like powers stack in columns. The vertical layout is the same arithmetic, and it helps because it forces like terms to line up before you add.

Try this: Expand (x−5)(x2+2x−1)(x-5)(x^2+2x-1) on paper. You should get x3−3x2−11x+5x^3-3x^2-11x+5. Count your products first: you need six.

How does the grid method work for multiplying polynomials?

Grid multiplying 2x² − x + 3 by x² + 2x − 1 with colored diagonals of like terms
Each colored diagonal of the grid holds one power of x, and its sum is one term of the answer.

The grid method is the area picture turned into a table. Write one polynomial across the top and the other down the side, fill each cell with the product of its row and column, then add. Its real advantage is where the like terms land: if both polynomials are written in descending powers, like terms sit on the same diagonal.

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

x2x^2 2x2x −1-1
2x22x^2 2x42x^4 4x34x^3 −2x2-2x^2
−x-x −x3-x^3 −2x2-2x^2 xx
33 3x23x^2 6x6x −3-3

Read the diagonals from top left to bottom right. They hold 2x42x^4, then 4x3−x3=3x34x^3-x^3=3x^3, then −2x2−2x2+3x2=−x2-2x^2-2x^2+3x^2=-x^2, then x+6x=7xx+6x=7x, then −3-3:

(2x2−x+3)(x2+2x−1)=2x4+3x3−x2+7x−3(2x^2-x+3)(x^2+2x-1)=2x^4+3x^3-x^2+7x-3

One trap: a missing power breaks the diagonals. If a polynomial skips x2x^2, write it as 0x20x^2 in the grid so every diagonal stays in place.

How do you check a polynomial product quickly?

Substitute x=1x=1 into the original factors and into your answer. The two numbers must match, because an expanded product and the factored product are the same expression for every value of xx. At x=1x=1 the powers all become 1, so the check reduces to adding coefficients.

For the product above, the factors give (2−1+3)(1+2−1)=4⋅2=8(2-1+3)(1+2-1)=4\cdot 2=8, and the answer’s coefficients give 2+3−1+7−3=82+3-1+7-3=8. Match. Then test x=−1x=-1, which flips the sign of every odd power and so catches sign slips that x=1x=1 can miss. Here (2+1+3)(1−2−1)=6⋅(−2)=−12(2+1+3)(1-2-1)=6\cdot(-2)=-12, and 2−3−1−7−3=−122-3-1-7-3=-12.

A check is evidence, not proof. An error that happens to cancel at one value, such as swapping the exponents of two terms with the same coefficient, passes at x=1x=1. Two test values catch nearly everything in practice. A degree-nn answer is certain after n+1n+1 distinct values. The x=1x=1 trick also has a deeper meaning: P(1)P(1) is the remainder when you divide by x−1x-1, which is the heart of the remainder theorem.

Try this: Expand (x+4)(x2−x+2)(x+4)(x^2-x+2), then test your answer at x=1x=1 and x=−1x=-1. Both checks should agree with the factored form.

Quick check

If (x+3)(x2−2x+4)(x+3)(x^2-2x+4) is expanded correctly, what must the coefficients of the answer add up to?

What is the degree of a product of polynomials?

Degrees add. If PP has degree mm and QQ has degree nn, then PQPQ has degree m+nm+n. This holds because the highest power in the product always comes from multiplying the two highest-power terms, and those cannot cancel against anything. Addition is different: x2x^2 and −x2-x^2 can wipe each other out, but a product of nonzero leading terms never vanishes. You can read the degree of a polynomial from the largest exponent, so the answer’s degree is known before any work.

That gives three free checks you can run before doing any other arithmetic:

  • The answer’s degree equals the sum of the factor degrees.
  • The leading coefficient of the answer is the product of the two leading coefficients.
  • The constant term of the answer is the product of the two constant terms.

In the grid example, the degrees are 2+2=42+2=4, the leading coefficients give 2⋅1=22\cdot 1=2, and the constants give 3⋅(−1)=−33\cdot(-1)=-3. All three match 2x4+3x3−x2+7x−32x^4+3x^3-x^2+7x-3. The count of terms is only an upper bound: (x−1)(x+1)(x-1)(x+1) begins with four products but ends as x2−1x^2-1, because the middle terms cancel.

Why does squaring a binomial give three terms?

Squaring means multiplying the binomial by itself, so there are four products, and two of them are the same. In the area picture of a square with side a+ba+b, the two off-diagonal rectangles each have area abab:

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

This is why (a+b)2(a+b)^2 is never a2+b2a^2+b^2, the most common expansion error in algebra. The missing 2ab2ab is real area. Test with numbers: (3+4)2=49(3+4)^2=49, but 32+42=253^2+4^2=25.

When the cross terms cancel

(a+b)(a−b)(a+b)(a-b) has cross products −ab-ab and +ab+ab, which cancel, leaving a2−b2a^2-b^2. Conjugate pairs always lose their middle term.

For a worked case, expand (3x−2)2(3x-2)^2. Square the first term: 9x29x^2. Double the product of the two terms: 2⋅3x⋅(−2)=−12x2\cdot 3x\cdot(-2)=-12x. Square the last term: 44. So (3x−2)2=9x2−12x+4(3x-2)^2=9x^2-12x+4. Confirm by full multiplication: 9x2−6x−6x+49x^2-6x-6x+4. These patterns are collected in special products of binomials, and reading them backward gives perfect square trinomials. Higher powers such as (a+b)5(a+b)^5 follow the binomial theorem.

Quick check

Expand (x+6)2(x+6)^2. What is the middle term?

Multiplying polynomials with negatives and two variables

Two variables change nothing about the method. Only the like-terms rule gets stricter: x2x^2, xyxy and y2y^2 are three different kinds of term and never merge. Expand (2x−3y)(x+4y)(2x-3y)(x+4y):

2x⋅x=2x2,2x⋅4y=8xy,−3y⋅x=−3xy,−3y⋅4y=−12y22x\cdot x=2x^2,\quad 2x\cdot 4y=8xy,\quad -3y\cdot x=-3xy,\quad -3y\cdot 4y=-12y^2

(2x−3y)(x+4y)=2x2+8xy−3xy−12y2=2x2+5xy−12y2(2x-3y)(x+4y)=2x^2+8xy-3xy-12y^2=2x^2+5xy-12y^2

Check with x=1x=1, y=1y=1: the factors give (−1)(5)=−5(-1)(5)=-5, and the answer gives 2+5−12=−52+5-12=-5.

Three factors work by multiplying two, simplifying, then multiplying the third. For (x+1)(x+2)(x+3)(x+1)(x+2)(x+3), the first two give x2+3x+2x^2+3x+2, and then

(x2+3x+2)(x+3)=x3+3x2+3x2+9x+2x+6=x3+6x2+11x+6(x^2+3x+2)(x+3)=x^3+3x^2+3x^2+9x+2x+6=x^3+6x^2+11x+6

The check at x=1x=1 gives 2⋅3⋅4=242\cdot3\cdot4=24 and 1+6+11+6=241+6+11+6=24.

A lone minus sign in front of a product is the other trap. In −(x−3)(x+2)-(x-3)(x+2), the negative applies once, to the finished product, not to each factor. Since (x−3)(x+2)=x2−x−6(x-3)(x+2)=x^2-x-6, the answer is −x2+x+6-x^2+x+6. Distributing the minus into both factors would flip the sign twice and give the wrong result.

Where is multiplying polynomials used in real problems?

Anything built from lengths multiplied together becomes a polynomial. Cut a square of side xx from each corner of a 12 by 8 sheet and fold up the sides, and the open box has volume x(12−2x)(8−2x)x(12-2x)(8-2x). Expanding the last two factors gives 4x2−40x+964x^2-40x+96, so

V=4x3−40x2+96xV=4x^3-40x^2+96x

At x=1x=1 the box measures 1×10×61\times 10\times 6, so V=60V=60, and the formula gives 4−40+96=604-40+96=60. Having the expanded form lets you graph the volume and find the best cut.

Ordinary long multiplication is polynomial multiplication in disguise. Write 123123 as x2+2x+3x^2+2x+3 and 1414 as x+4x+4 with x=10x=10. The product is x3+6x2+11x+12x^3+6x^2+11x+12, and at x=10x=10 that is 1000+600+110+12=1722=123⋅141000+600+110+12=1722=123\cdot 14. The “carrying” in school arithmetic is only tidying coefficients that exceed 9. Computers exploit the same idea to multiply huge numbers quickly.

Finally, expanding is half of a two-way street. Multiplying builds a polynomial, factoring trinomials takes it apart, and polynomial long division undoes a multiplication by one factor. Every factoring answer you find can be verified by multiplying it back out, which is the check from earlier in this lesson.

Practice problems

0 of 5 solved

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

  2. Multiply: (x+7)(x−3)(x+7)(x-3)

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

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

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

Common questions

How do you multiply polynomials step by step?

Multiply every term of the first polynomial by every term of the second, writing each product with its sign. Then combine like terms and write the answer in descending powers. A factor with mm terms times a factor with nn terms gives mnmn products before combining.

Can you use FOIL to multiply polynomials with three or more terms?

No. FOIL lists exactly four products, which is right only for two binomials. For anything larger, use the distributive property or the grid method so that no product is skipped.

How many terms does the product of two polynomials have?

At most m×nm\times n terms for factors with mm and nn terms, and often fewer because like terms merge. For example, (x−1)(x+1)(x-1)(x+1) starts with four products but ends with the two-term answer x2−1x^2-1.

What happens to the exponents when you multiply polynomials?

Exponents add when the bases match: x2⋅x3=x5x^2\cdot x^3=x^5. They are never multiplied, and unlike powers such as x2x^2 and x3x^3 are not combined when you add.

How do you multiply three polynomials?

Multiply any two of them first, simplify, then multiply that result by the third. The order does not change the answer, so choose the pair that gives the simplest middle result.

How can you check a multiplied polynomial without a calculator?

Substitute a small number such as x=1x=1 into the original factors and into your answer. Both must give the same value. Repeat with x=−1x=-1 to catch sign errors.

Up next