Multiplying polynomials without losing a term

Every term in one factor multiplies every term in the other. Organize the products, then combine like terms once.

LaTeX article Updated July 13, 2026

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

Distribution scales to any number of terms

For each term in the first polynomial, distribute across the entire second polynomial. A grid or vertical layout can make the pairings visible.

FOIL is only the two-by-two case. Relying on the acronym becomes fragile as soon as a trinomial appears.

(x+2)(x23x+4)(x+2)(x^2-3x+4)

Multiply coefficients and add exponents

Within each product, multiply the numerical coefficients and use the product rule for matching variable bases.

Carry signs with their coefficients. Writing negative terms explicitly reduces accidental sign changes.

(3x2)(2x4)=6x6(-3x^2)(2x^4)=-6x^6

Combine only after all products exist

Premature combining makes it easy to omit a pairing. List the products first, then group identical powers.

A degree check helps: the product degree should usually equal the sum of factor degrees when leading coefficients are nonzero.

deg(fg)=degf+degg\deg(fg)=\deg f+\deg g

Worked example

Common mistakes

  • Multiplying only the first and last terms.
  • Adding rather than multiplying coefficients.
  • Combining unlike powers of x.

Keep these ideas

  • Every term pairs with every term.
  • Signs belong to coefficients.
  • Combine like terms at the end.
Vocab
Polynomial
Math glossaryPolynomial
anxn++a1x+a0a_nx^n+\cdots+a_1x+a_0

A finite sum of terms with nonnegative integer variable exponents.

Learn more
Factoring
Math glossaryFactoring
x29=(x3)(x+3)x^2-9=(x-3)(x+3)

Rewrites a sum or difference as an equivalent product.

Learn more
Factor
Math glossaryFactor
(x2)(x+3)(x-2)(x+3)

A quantity multiplied as part of a product.

Learn more
Quadratic
Math glossaryQuadratic
ax2+bx+cax^2+bx+c

A degree-two polynomial equation or function.

Learn more
Zero-product property
Math glossaryZero-product property
ab=0a=0 or b=0ab=0\Rightarrow a=0\ \text{or}\ b=0

A product is zero only when at least one factor is zero.

Learn more
Math glossary