Visual Tools
Calculators
Tables
Mathematical Keyboard
Converters
Other Tools


Operations on Polynomials






The Arithmetic of Polynomials

Numbers have addition, subtraction, multiplication, and division — and so do polynomials. The same four operations that govern ordinary arithmetic extend naturally to polynomial expressions, each with its own set of rules governing how terms interact, how degrees change, and what form the result takes.

Some of these operations are simple: adding polynomials amounts to collecting like terms. Others demand more care — polynomial long division mirrors its numerical counterpart but requires tracking multiple terms across multiple steps. Together, these operations provide the machinery behind factoring, solving polynomial equations, and simplifying complex algebraic expressions.

Key Terms

Addition and Subtraction

Like Terms— terms sharing the same variable and exponent; the basis of addition and subtraction
Term (of a Polynomial)— each unit has a coefficient and a degree

Multiplication

Degree (of a Polynomial)— degree of a product equals the sum of the input degrees
Binomial— multiplying two binomials is the most common multiplication task

Division

Polynomial Long Division— systematic division producing quotient and remainder
Synthetic Division— shortcut for dividing by (x−c)(x - c) using only coefficients
Remainder Theorem— remainder equals P(c)P(c)

Formulas Used on This Page

Square of a Sum— (a+b)2=a2+2ab+b2(a + b)^2 = a^2 + 2ab + b^2
Square of a Difference— (a−b)2=a2−2ab+b2(a - b)^2 = a^2 - 2ab + b^2
Cube of a Sum— (a+b)3=a3+3a2b+3ab2+b3(a + b)^3 = a^3 + 3a^2b + 3ab^2 + b^3
Cube of a Difference— (a−b)3=a3−3a2b+3ab2−b3(a - b)^3 = a^3 - 3a^2b + 3ab^2 - b^3

See All Algebra Definitions →

See All Algebra Formulas →


Adding Polynomials

Adding polynomials looks like adding numbers: add everything up into one term.
Test that on two sums by putting x=2x = 2 into both the sum and the merged term.
3x² + 5x² really is 8x², but 3x² + 5x³ is not 8x⁵.
summerged into one termsum at x = 2merged term at x = 2
3x² + 5x²8x²12 + 20 = 328 · 4 = 32
3x² + 5x³8x⁵12 + 40 = 528 · 32 = 256
Only terms with the same power of xx can be merged; 3x23x^2 and 5x35x^3 have to stay separate.
Combine like terms; every other term passes through unchanged.
The process works identically for any number of terms and any degree. Align terms by matching exponents, add their coefficients, and write the result. Terms with no counterpart in the other polynomial pass through unchanged — adding x3+2xx^3 + 2x and 3x2−x+53x^2 - x + 5 produces x3+3x2+x+5x^3 + 3x^2 + x + 5, where x3x^3 and 3x23x^2 each carried over directly.
The definition
The sum of two polynomials is found by adding the coefficients of like terms, terms with the same variable raised to the same exponent.
Adding two polynomials reduces to a single principle: combine like terms. Two terms are like terms when they share the same variable raised to the same exponent — 3x23x^2 and 5x25x^2 are like terms, while 3x23x^2 and 5x35x^3 are not.
So (2x2+3x−1)+(x2−5x+4)=3x2−2x+3(2x^2 + 3x - 1) + (x^2 - 5x + 4) = 3x^2 - 2x + 3.
Grouping the terms by degree makes any sum routine.
Example
Given (2x2+3x−1)+(x2−5x+4)(2x^2 + 3x - 1) + (x^2 - 5x + 4), group the terms by degree: the x2x^2 terms are 2x22x^2 and x2x^2, the xx terms are 3x3x and −5x-5x, and the constants are −1-1 and 44. Adding each group gives 3x2−2x+33x^2 - 2x + 3.
THEOREM
The sum of two polynomials is always a polynomial. Its degree is at most the larger of the two input degrees — and in rare cases it can be less, if the leading terms cancel.
The degree can drop when the leading terms cancel.
Adding 2x3+x−12x^3 + x - 1 and −2x3+4x+7-2x^3 + 4x + 7 eliminates the cubic terms entirely, leaving 5x+65x + 6, a polynomial of degree 11.
The rest of the page covers subtraction, multiplication, special products, the FOIL method, long and synthetic division, how degree behaves under the operations, a summary and common pitfalls.

Subtracting Polynomials

Subtraction follows the same logic as addition, with one extra step: distribute the negative sign across every term of the polynomial being subtracted before combining like terms.

Example
For (2x2+3x−1)−(x2−5x+4)(2x^2 + 3x - 1) - (x^2 - 5x + 4), first negate the second polynomial: −x2+5x−4-x^2 + 5x - 4. Then add: (2x2+3x−1)+(−x2+5x−4)=x2+8x−5(2x^2 + 3x - 1) + (-x^2 + 5x - 4) = x^2 + 8x - 5. Every term inside the parentheses changes sign — including terms that were already negative. The −5x-5x becomes +5x+5x and the +4+4 becomes −4-4.

This is where most errors occur. Negating only the first term of the subtracted polynomial while leaving the rest untouched is the single most common mistake in polynomial subtraction. The expression (5x2+2x−3)−(x2−4x+1)(5x^2 + 2x - 3) - (x^2 - 4x + 1) is sometimes incorrectly computed as 4x2−2x−24x^2 - 2x - 2 when only x2x^2 gets negated. The correct result is 4x2+6x−44x^2 + 6x - 4.

Like addition, subtraction always produces a polynomial. The degree of the result is at most the larger of the two input degrees, with the same possibility of cancellation reducing it further.

Multiplying Polynomials

Multiplication requires every term of one polynomial to be multiplied by every term of the other. For each pair, multiply the coefficients and add the exponents on matching variables, then combine like terms in the resulting expression.

Example
For (x+2)(x2−3x+1)(x + 2)(x^2 - 3x + 1), distribute each term of the binomial across the trinomial. The term xx produces x⋅x2=x3x \cdot x^2 = x^3, x⋅(−3x)=−3x2x \cdot (-3x) = -3x^2, and x⋅1=xx \cdot 1 = x. The term 22 produces 2⋅x2=2x22 \cdot x^2 = 2x^2, 2⋅(−3x)=−6x2 \cdot (-3x) = -6x, and 2⋅1=22 \cdot 1 = 2. Collecting everything: x3−3x2+x+2x2−6x+2x^3 - 3x^2 + x + 2x^2 - 6x + 2. Combining like terms gives x3−x2−5x+2x^3 - x^2 - 5x + 2.

THEOREM
The degree of a product equals the sum of the degrees of the factors — always, without exception.

Pitfall: Multiplying the exponents
Multiplying the exponents as well as the coefficients turns 2x2⋅3x32x^2 \cdot 3x^3 into 6x66x^6; at x=2x = 2 that is 384384, but the product is 8⋅24=1928 \cdot 24 = 192. Exponents add: 2x2⋅3x3=6x52x^2 \cdot 3x^3 = 6x^5.

A degree-22 polynomial times a degree-33 polynomial produces a degree-55 polynomial. This follows from the fact that the highest-degree terms in each factor multiply to produce the highest-degree term in the product, and no other pair of terms can reach that degree.

The number of terms before combining can grow quickly. Multiplying an mm-term polynomial by an nn-term polynomial generates m×nm \times n individual products. A binomial times a trinomial produces 66 terms before simplification; two four-term polynomials produce 1616. Careful bookkeeping — and a systematic approach to distributing — prevents missed terms.
(x² − 3x + 2)(2x + 5), all six cells delivered2x5x²2x³5x²−3x−6x²−15x24x10LIKE-TERM BUCKETSx³ terms 2sum: 2x³x² terms 5 − 6sum: −x²x terms− 15 + 4sum: −11xconstants 10sum: 10P(x) · Q(x) = 2x³ − x² − 11x + 10
(x² − 3x + 2)(2x + 5): six cells, four buckets

Three terms times two terms fill a 3 × 2 grid of six products, and the like-term buckets sort them by degree: 2x³, then 5x² − 6x², then −15x + 4x, then 10. Multiplying coefficients and adding exponents happens once per cell; combining like terms happens once per bucket. Fill a grid of any size on the polynomial multiplication visualizer.

Long division, treated next, runs this grid backwards one cell at a time.
Multiplying polynomials is every term times every term: degrees add, and mm terms by nn terms give mnmn products.

Special Products

Certain multiplication patterns appear so frequently that recognizing them on sight saves significant work. Each is a direct consequence of distribution, but memorizing the results avoids repeating the same steps every time.

Squaring a binomial produces a trinomial:

Square of a Sum
(a+b)2=a2+2ab+b2(a + b)^2 = a^2 + 2ab + b^2
Learn more about this formula: Square of a Sum →

Square of a Difference
(a−b)2=a2−2ab+b2(a - b)^2 = a^2 - 2ab + b^2
Learn more about this formula: Square of a Difference →


Pitfall: Dropping the middle term
Squaring each term on its own gives (x+3)2=x2+9(x + 3)^2 = x^2 + 9; at x=1x = 1 that is 1010, but (1+3)2=16(1 + 3)^2 = 16. The square keeps its middle term: (x+3)2=x2+6x+9(x + 3)^2 = x^2 + 6x + 9.

Squaring a binomial means multiplying it by itself: (a+b)2=(a+b)(a+b)(a + b)^2 = (a + b)(a + b). Distributing produces four products, a2a^2, abab, baba and b2b^2, and the two middle ones are equal, so they combine into a single term.

The middle term is always twice the product of the two original terms — a detail that connects directly to identifying perfect square trinomials when factoring.

Cubing a binomial follows the same pattern with four terms in the expansion:

Cube of a Sum
(a+b)3=a3+3a2b+3ab2+b3(a + b)^3 = a^3 + 3a^2b + 3ab^2 + b^3
Learn more about this formula: Cube of a Sum →

Cube of a Difference
(a−b)3=a3−3a2b+3ab2−b3(a - b)^3 = a^3 - 3a^2b + 3ab^2 - b^3
Learn more about this formula: Cube of a Difference →


The coefficients 1,3,3,11, 3, 3, 1 are the fourth row of Pascal's triangle — a pattern that generalizes through the binomial theorem covered in identities.

RULE
Multiplying conjugate binomials — a sum and a difference of the same two terms — eliminates the middle term entirely. The product (a+b)(a−b)(a + b)(a - b) equals a2−b2a^2 - b^2, a clean difference of squares.

No linear term survives because the outer and inner products cancel.

The cubic identities extend the same logic one degree further:

Special Products
(a+b)(a2−ab+b2)=a3+b3(a + b)(a^2 - ab + b^2) = a^3 + b^3

Special Products
(a−b)(a2+ab+b2)=a3−b3(a - b)(a^2 + ab + b^2) = a^3 - b^3

Each pairs a linear factor with a quadratic factor to produce a two-term cubic. These patterns are the multiplication side of the sum and difference of cubes formulas used in factoring — the same identities read in the opposite direction.
DownloadPNG2×PDF
PatternExpansion
Square of a sum(a+b)2=a2+2ab+b2(a + b)^2 = a^2 + 2ab + b^2
Square of a difference(a−b)2=a2−2ab+b2(a - b)^2 = a^2 - 2ab + b^2
Conjugate binomials (difference of squares)(a+b)(a−b)=a2−b2(a + b)(a - b) = a^2 - b^2
Sum of cubes(a+b)(a2−ab+b2)=a3+b3(a + b)(a^2 - ab + b^2) = a^3 + b^3
Difference of cubes(a−b)(a2+ab+b2)=a3−b3(a - b)(a^2 + ab + b^2) = a^3 - b^3
Special ProductsLearn Math Class
The sum of cubes is the least obvious of the five, because four of the six products never show up in the answer. The grid below shows where they go.
(x + 1)(x² − x + 1), all six cells deliveredx²−x1xx³−x²x1x²−x1LIKE-TERM BUCKETSx³ terms 1sum: x³x² terms− 1 + 1sum: 0x terms 1 − 1sum: 0constants 1sum: 1P(x) · Q(x) = x³ + 1
(x + 1)(x² − x + 1): the middle buckets cancel

The six cells deliver x³, −x² + x², x − x and 1, and the two middle buckets sum to zero, leaving x³ + 1: the sum-of-cubes pattern is a grid whose cross terms cancel. Every special product is a grid with a memorable cancellation. Watch the buckets empty on the polynomial multiplication visualizer.

Recognising the pattern saves filling the grid, but the grid is why the pattern holds.

FOIL Method

FOIL is a mnemonic for multiplying two binomials: First, Outer, Inner, Last. It names the four products that arise when each term of one binomial is distributed across the other.

Example
For (2x+3)(x−4)(2x + 3)(x - 4), the four steps produce: First 2x⋅x=2x22x \cdot x = 2x^2, Outer 2x⋅(−4)=−8x2x \cdot (-4) = -8x, Inner 3⋅x=3x3 \cdot x = 3x, Last 3⋅(−4)=−123 \cdot (-4) = -12. Combining the middle terms gives 2x2−5x−122x^2 - 5x - 12.

Fact: Three products are enough
FOIL makes four products, but in (ax+b)(cx+d)(ax + b)(cx + d) the middle coefficient ad+bcad + bc equals (a+b)(c+d)−ac−bd(a + b)(c + d) - ac - bd, so three multiplications suffice. Applied over and over, this trick (Karatsuba, 1960) multiplies huge numbers faster than school long multiplication.

FOIL is nothing more than a structured way to ensure all four products are accounted for — it is a special case of the general distribution used in multiplying any two polynomials. Its value lies in speed and reliability for the specific case of two binomials, where exactly four products always arise.

The method does not extend beyond binomials. Attempting to apply FOIL to a binomial times a trinomial, or to two trinomials, misses terms. A binomial times a trinomial requires six products, not four. For anything beyond two binomials, the full term-by-term distribution described in the previous section is the correct approach.
The four products in order, then the middle terms combined. Press Next to carry out one step at a time.
DownloadPNG2×PDF
(2x+3)(x−4)(2x + 3)(x - 4)Step 1 of 5
Step
(2x+3)(x−4)(2x + 3)(x - 4)
1
First: multiply the first terms
2x⋅x=2x22x \cdot x = 2x^2
2
Outer: multiply the outer terms
2x⋅(−4)=−8x2x \cdot (-4) = -8x
3
Inner: multiply the inner terms
3⋅x=3x3 \cdot x = 3x
4
Last: multiply the last terms
3⋅(−4)=−123 \cdot (-4) = -12
5
Combine the middle terms
2x2−5x−122x^2 - 5x - 12
FOIL, one product at a time·/algebra/polynomials/operationsLearn Math Class
(x + 2)(x + 3), all four cells deliveredx3xx²3x22x6LIKE-TERM BUCKETSx² terms 1sum: x²x terms 3 + 2sum: 5xconstants 6sum: 6P(x) · Q(x) = x² + 5x + 6
First, Outer, Inner, Last: the four cells of (x + 2)(x + 3)

The mnemonic names the four cells of a 2 × 2 grid in a fixed order: First is the top-left x², Outer and Inner are the two x-cells that combine to 5x, Last is the constant 6. FOIL is the grid method for binomials, and it does not extend to longer factors, while the grid does. Compare FOIL with a 3 × 2 grid on the polynomial multiplication visualizer.

For anything larger than two binomials, return to the grid.

Polynomial Long Division

Dividing one polynomial by another follows a process that mirrors numerical long division. The idea is to find a quotient and a remainder that satisfy:

Polynomial Long Division
dividend=(divisor×quotient)+remainder\text{dividend} = (\text{divisor} \times \text{quotient}) + \text{remainder}

Example
To divide x3−2x2+5x−3x^3 - 2x^2 + 5x - 3 by x−1x - 1, begin by dividing the leading term of the dividend by the leading term of the divisor: x3÷x=x2x^3 \div x = x^2. Multiply x2x^2 by the entire divisor: x2(x−1)=x3−x2x^2(x - 1) = x^3 - x^2. Subtract this from the dividend to get −x2+5x−3-x^2 + 5x - 3. Repeat: −x2÷x=−x-x^2 \div x = -x, multiply −x(x−1)=−x2+x-x(x - 1) = -x^2 + x, subtract to get 4x−34x - 3. One more pass: 4x÷x=44x \div x = 4, multiply 4(x−1)=4x−44(x - 1) = 4x - 4, subtract to get 11. The quotient is x2−x+4x^2 - x + 4 with remainder 11.

The process terminates when the degree of what remains is less than the degree of the divisor.

RULE
If the remainder is zero, the divisor divides the dividend evenly — meaning the divisor is a factor of the dividend.

Missing powers in the dividend require placeholder terms. Dividing x3+4x^3 + 4 by x+1x + 1 requires writing the dividend as x3+0x2+0x+4x^3 + 0x^2 + 0x + 4 to keep terms aligned through each subtraction step.

To divide your own polynomials by long or synthetic division with each step shown, use the polynomial calculator.
x^3 - 2x^2 + 5x - 3 = (x - 1)(x^2 - x + 4) + 1xy−1123−8−7−6−5−4−3−2−11234567891011121314P(x)P(1) = 1: the remainderx³ − 2x² + 5x − 3 = (x − 1)(x² − x + 4) + 1dashed: (x − 1)(x² − x + 4)Dividend = divisor × quotient + remainder: the gap is 1 everywhere
The remainder on the graph

The section's division of x³ − 2x² + 5x − 3 by x − 1 gives quotient x² − x + 4 and remainder 1. The dashed curve is divisor times quotient, (x − 1)(x² − x + 4); the solid curve is the dividend. They differ by exactly 1 at every x, and at x = 1, where the divisor is zero, the dividend's value P(1) = 1 is the remainder itself.

The remainder theorem is this picture: dividing by x − c leaves P(c).
The example of this section, one pass at a time. Press Next to carry out each step.
DownloadPNG2×PDF
(x3−2x2+5x−3)÷(x−1)(x^3 - 2x^2 + 5x - 3) \div (x - 1)Step 1 of 14
Values now
quotient =–remains =x3−2x2+5x−3x^3 - 2x^2 + 5x - 3
This step
The dividend is x3−2x2+5x−3x^3 - 2x^2 + 5x - 3 and the divisor is x−1x - 1.
Long division
1Write the dividend and the divisor
2Divide the leading term of what remains by the leading term of the divisor
3Multiply the result by the entire divisor
4Subtract
5Stop when the degree of what remains is less than the degree of the divisor
6Read off the quotient and the remainder
One row per pass
Quotient termMultiplyRemains
1x2x^2x3−x2x^3 - x^2−x2+5x−3-x^2 + 5x - 3
2−x-x−x2+x-x^2 + x4x−34x - 3
3444x−44x - 411
Result
Long division, pass by passLearn Math Class

Synthetic Division

When the divisor is a linear binomial of the form (x−c)(x - c), synthetic division offers a streamlined alternative to long division. It uses only the coefficients of the dividend and the value cc, reducing the process to a compact sequence of multiplications and additions.

Fact: No method uses fewer multiplications
Each step of synthetic division is one multiplication and one addition, so a polynomial of degree nn is evaluated with only nn of each. For coefficients not known in advance, V. Pan proved in 1966 that no method can use fewer multiplications.

Example
To divide x3−2x2+5x−3x^3 - 2x^2 + 5x - 3 by (x−1)(x - 1), write the coefficients 1,−2,5,−31, -2, 5, -3 in a row and place c=1c = 1 to the left. Bring down the first coefficient: 11. Multiply by cc: 1⋅1=11 \cdot 1 = 1. Add to the next coefficient: −2+1=−1-2 + 1 = -1. Multiply by cc: −1⋅1=−1-1 \cdot 1 = -1. Add: 5+(−1)=45 + (-1) = 4. Multiply: 4⋅1=44 \cdot 1 = 4. Add: −3+4=1-3 + 4 = 1. The bottom row reads 1,−1,4,11, -1, 4, 1 — giving a quotient of x2−x+4x^2 - x + 4 with remainder 11, matching the long division result exactly.

The connection to polynomial evaluation is immediate.

THEOREMRemainder Theorem
The remainder produced by synthetic division equals P(c)P(c), the value of the dividend evaluated at x=cx = c.

Pitfall: Using the wrong sign for c
Dividing x3−2x2+5x−3x^3 - 2x^2 + 5x - 3 by x+1x + 1 with c=1c = 1 actually divides by x−1x - 1 and returns remainder 1=P(1)1 = P(1). Since x+1=x−(−1)x + 1 = x - (-1), use c=−1c = -1: quotient x2−3x+8x^2 - 3x + 8, remainder −11-11.

This is the Remainder Theorem in action, and it means synthetic division doubles as a fast way to compute P(c)P(c) without substituting into every term. If P(c)=0P(c) = 0, then (x−c)(x - c) divides the polynomial evenly and cc is a root.

The limitation is strict: synthetic division works only for divisors of the form (x−c)(x - c). Dividing by x2+1x^2 + 1, or by any polynomial of degree two or higher, requires the full long division procedure. A divisor like 2x−32x - 3 is usually handled by long division too, though synthetic division with c=32c = \frac{3}{2} also works once its quotient is divided by 22.
DownloadPNG2×PDF
Layout
MethodDivisor allowedProcessSide benefit
Polynomial long divisionany polynomial divisordivide leading term, multiply, subtract; repeat until remainder degree < divisor degreeuniversal — works on every division problem
Synthetic divisionlinear divisors of the form (x − c) onlybring down, multiply by c, add — using only coefficientsremainder equals P(c); doubles as evaluation and root testing
Synthetic DivisionLearn Math Class
Synthetic division is long division by x−cx - c reduced to its coefficients, and its final number is always P(c)P(c).

Degree and Operations

Each arithmetic operation affects the degree of the result in a specific, predictable way. These rules serve as both a guide during computation and a check after it.

For addition and subtraction, the degree of the result is at most the maximum of the two input degrees. If P(x)P(x) has degree 44 and Q(x)Q(x) has degree 33, then P(x)+Q(x)P(x) + Q(x) has degree at most 44. The "at most" matters — when the leading terms cancel, the degree drops. Adding 2x3+x2x^3 + x and −2x3+5x2-2x^3 + 5x^2 produces 5x2+x5x^2 + x, a degree-22 result from two degree-33 inputs.

For multiplication, the degree of the product equals the sum of the degrees of the factors, with no exceptions. A degree-22 polynomial times a degree-33 polynomial always produces a degree-55 polynomial. Leading coefficients multiply but never cancel, since neither is zero.

For division, the degree of the quotient equals the degree of the dividend minus the degree of the divisor. Dividing a degree-55 polynomial by a degree-22 polynomial produces a degree-33 quotient. The remainder, if nonzero, has degree strictly less than the divisor.

These relationships provide a quick sanity check. If multiplying two quadratics yields a degree-33 result, something went wrong. If dividing a cubic by a linear polynomial produces a cubic quotient, a step was missed.
(2x^3 + x) + (-2x^3 + 5x^2) = 5x^2 + x: the cubic terms cancelxf(1) = 3+ g(1) = 3(f + g)(1) = 62x³ + x−2x³ + 5x²sum: 5x² + xTwo cubics add up to a quadratic: the x³ terms cancel
When leading terms cancel

The section's 2x³ + x and −2x³ + 5x² are both cubics, but their sum is 5x² + x, a parabola: the leading terms 2x³ and −2x³ cancel. At x = 1 the bars show the sum point by point, 3 + 3 = 6. This is why the degree of a sum is only at most the larger degree.

Products never lose degree this way: the leading terms multiply and cannot cancel.

Summary: The Four Operations at a Glance

The four operations on polynomials — addition, subtraction, multiplication, and division — each follow a distinct procedure and affect the degree of the result in a predictable way. The table below collects every operation with its core technique, its degree effect, and the typical pitfall to watch for.
DownloadPNG2×PDF
Layout
OperationCore techniqueEffect on degreeWatch out for
Additioncombine like termsat most max(deg P, deg Q); less if leading terms cancelaligning terms by matching exponent
Subtractiondistribute the negative across every term, then combinesame as additionnegating ONLY the first term — the classic error
Multiplicationevery term × every term, then combine like terms (FOIL for binomial × binomial)exactly deg P + deg Qmissing one of m × n products in big multiplications
Divisionlong division (general) or synthetic division (linear divisors only)deg quotient = deg P − deg Q; remainder has degree < deg Qmissing-power placeholders; remainder may be nonzero
Summary: The Four Operations at a GlanceLearn Math Class
DownloadPNG2×PDF
Before you read
Four operations on polynomials
Each operation has its own rule, and each tells you something about the degree of the result.
Polynomial operations4 operations
Add
Rulecombine like terms
Degreeat most the larger degree
Subtract
Ruledistribute the negative over every term
Multiply
Ruleevery term times every term
Degreethe sum of the degrees
Divide
Rulelong or synthetic division
Remainderdegree below the divisor
Takeaway
Degree is the bookkeeping
Sums keep the degree at most the larger one, products add the degrees, and division leaves a remainder of lower degree than the divisor.
The four polynomial operations·/algebra/polynomials/operationsLearn Math Class

Formula Summary

This summary collects the formulas of the page by family, with the plus form of each pair on the left and the minus form on the right. Every family carries a line on where its formulas come from, linked to the section, and every formula a short note on what to watch for. The buttons above the cards show one family at a time.

The squares and cubes of a binomial expand into fixed patterns of terms. The third family runs the other way, multiplying out to a plain sum or difference of two cubes. The last card is the relation that long division of polynomials produces: divisor times quotient, plus the remainder, gives back the dividend.
DownloadPNG2×PDF
Squares2 formulas
A binomial times itself, from special products.
(a+b)2=a2+2ab+b2(a + b)^2 = a^2 + 2ab + b^2
The middle term is twice the product of the two terms.
(a−b)2=a2−2ab+b2(a - b)^2 = a^2 - 2ab + b^2
The same, with a minus sign on the middle term only.
Cubes2 formulas
A binomial raised to the third power, also in special products.
(a+b)3=a3+3a2b+3ab2+b3(a + b)^3 = a^3 + 3a^2b + 3ab^2 + b^3
Four terms with coefficients 1,3,3,11, 3, 3, 1.
(a−b)3=a3−3a2b+3ab2−b3(a - b)^3 = a^3 - 3a^2b + 3ab^2 - b^3
The signs alternate, starting with plus.
Sum and difference of cubes2 formulas
Products that collapse to two cubes, the reverse of the cube factorings in special products.
(a+b)(a2−ab+b2)=a3+b3(a + b)(a^2 - ab + b^2) = a^3 + b^3
Every middle term cancels, leaving a sum of cubes.
(a−b)(a2+ab+b2)=a3−b3(a - b)(a^2 + ab + b^2) = a^3 - b^3
The same cancellation, leaving a difference of cubes.
Division1 formula
The relation polynomial long division is built to satisfy.
dividend=(divisor×quotient)+remainder\text{dividend} = (\text{divisor} \times \text{quotient}) + \text{remainder}
The division stops when the remainder has a lower degree than the divisor.
Special products and division·All algebra formulasLearn Math Class
Knowing these patterns by sight saves a full expansion every time they appear, and read backwards they become factoring formulas. The division relation doubles as a check: multiplying the quotient by the divisor and adding the remainder must give back the original polynomial.

Common Pitfalls

Four mistakes account for most wrong answers in polynomial arithmetic. Each one is marked where it happens in the sections above; here each is worked through in full, with the wrong and the right working side by side.
DownloadPNG2×PDF
1Negating only the first term
In a subtraction, the minus sign in front of the parentheses is applied to the first term of the subtracted polynomial only, and the remaining terms are copied with their original signs.
Start
(2x2+3x−1)−(x2−5x+4)(2x^2 + 3x - 1) - (x^2 - 5x + 4)
Wrong turn
Error here
=2x2+3x−1−x2−5x+4= 2x^2 + 3x - 1 - x^2 - 5x + 4

=x2−2x+3= x^2 - 2x + 3
Right path
Every term of the second polynomial changes sign, so it becomes −x2+5x−4-x^2 + 5x - 4.
(2x2+3x−1)+(−x2+5x−4)(2x^2 + 3x - 1) + (-x^2 + 5x - 4)

=x2+8x−5= x^2 + 8x - 5
Why it happensRemoving parentheses after a plus sign changes nothing, and the same habit is carried over to a minus sign, which then seems to belong only to the term written next to it.
How to checkSubstitute a value. At x=1x = 1 the original is (2+3−1)−(1−5+4)=4−0=4(2 + 3 - 1) - (1 - 5 + 4) = 4 - 0 = 4. The wrong result gives 1−2+3=21 - 2 + 3 = 2; the right one gives 1+8−5=41 + 8 - 5 = 4.
2Multiplying the exponents
When two terms are multiplied, the exponents of the variable are multiplied too, in the same way as the coefficients.
Start
2x2⋅3x32x^2 \cdot 3x^3
Wrong turn
Error here
=6x6= 6x^6
Right path
The coefficients multiply and the exponents add, because x2⋅x3x^2 \cdot x^3 is (x⋅x)(x⋅x⋅x)(x \cdot x)(x \cdot x \cdot x), five factors of xx.
=(2⋅3)x2+3=6x5= (2 \cdot 3)x^{2 + 3} = 6x^5
Why it happensThe coefficients really are multiplied, and the exponents sit right beside them, so the same operation gets applied to both.
How to checkSubstitute x=2x = 2. The product is 2⋅22⋅3⋅23=8⋅24=1922 \cdot 2^2 \cdot 3 \cdot 2^3 = 8 \cdot 24 = 192, which matches 6⋅25=1926 \cdot 2^5 = 192 but not 6⋅26=3846 \cdot 2^6 = 384. The degree rule gives the same signal: terms of degree 22 and 33 multiply to a term of degree 55.
3Dropping the middle term
A binomial is squared by squaring each of its two terms, as if the exponent could be handed out over the sum.
Start
(x+3)2(x + 3)^2
Wrong turn
Error here
=x2+32=x2+9= x^2 + 3^2 = x^2 + 9
Right path
Write the square as a product and distribute.
=(x+3)(x+3)=x2+3x+3x+9= (x + 3)(x + 3) = x^2 + 3x + 3x + 9

=x2+6x+9= x^2 + 6x + 9
Why it happensAn exponent does distribute over a product, (ab)2=a2b2(ab)^2 = a^2b^2, and the same move is carried over to a sum, where it does not hold.
How to checkSubstitute x=1x = 1. The original gives (1+3)2=16(1 + 3)^2 = 16; the wrong form gives 1+9=101 + 9 = 10, the right one 1+6+9=161 + 6 + 9 = 16. Counting products works too: a binomial times a binomial makes four products, and x2+9x^2 + 9 accounts for only two of them.
4Using the wrong sign for c
Synthetic division needs the divisor in the form x−cx - c. For a divisor such as x+1x + 1, the number 11 is read off directly and used as cc.
Wrong turn
Error here
Dividing x3−2x2+5x−3x^3 - 2x^2 + 5x - 3 by x+1x + 1 with c=1c = 1 gives the bottom row 1,−1,4,11, -1, 4, 1, that is, quotient x2−x+4x^2 - x + 4 and remainder 11. This is the division by x−1x - 1 from the section above.
Right path
x+1=x−(−1)x + 1 = x - (-1), so c=−1c = -1. Bring down 11; then 1⋅(−1)=−11 \cdot (-1) = -1 and −2+(−1)=−3-2 + (-1) = -3; then −3⋅(−1)=3-3 \cdot (-1) = 3 and 5+3=85 + 3 = 8; then 8⋅(−1)=−88 \cdot (-1) = -8 and −3+(−8)=−11-3 + (-8) = -11. The bottom row 1,−3,8,−111, -3, 8, -11 gives quotient x2−3x+8x^2 - 3x + 8 and remainder −11-11.
Why it happensThe divisor shows +1+1, and the number placed to the left of the row is copied from it without first rewriting the divisor as x−cx - c.
How to checkBy the Remainder Theorem, the remainder must equal the dividend evaluated where the divisor is zero. Here P(−1)=−1−2−5−3=−11P(-1) = -1 - 2 - 5 - 3 = -11. Multiplying back also works: (x+1)(x2−3x+8)−11=x3−2x2+5x−3(x + 1)(x^2 - 3x + 8) - 11 = x^3 - 2x^2 + 5x - 3.
Common pitfalls in polynomial operations·/algebra/polynomials/operationsLearn Math Class
Three of the four checks are the same move: substitute a small value such as x=1x = 1 or x=2x = 2 into the original expression and into the result, and compare. Two expressions that are equal as polynomials agree at every value, so a single mismatch proves the working wrong. For division, the Remainder Theorem gives the same kind of test: the remainder must equal the dividend evaluated where the divisor is zero.

Skills You Should Learn

Each skill opens its step-by-step method page. Skills marked "On this page" are taught above.
Taught on this page
More polynomial methods
  • Add or subtract polynomialsSingle ruleTwo polynomials joined by ++ or −-: (3x2−2x+5)+(x2+4x−1)(3x^2 - 2x + 5) + (x^2 + 4x - 1), (3x2−2x+5)−(x2+4x−1)(3x^2 - 2x + 5) - (x^2 + 4x - 1).
  • Multiply polynomialsSingle ruleTwo polynomials multiplied: (x+2)(x2−3x+1)(x + 2)(x^2 - 3x + 1), (2x−1)(x+4)(2x - 1)(x + 4).
  • Expand a special productSingle ruleA binomial squared, or a sum times the matching difference: (2x+3)2(2x + 3)^2, (x−5)2(x - 5)^2, (3x+2)(3x−2)(3x + 2)(3x - 2).
  • Use the rational root testList ±(factors of the constant)/(factors of the leading coefficient), then test them.
  • Use the remainder and factor theoremsThe remainder of f(x)÷(x−r)f(x) \div (x - r) is f(r)f(r); remainder 0 means (x−r)(x - r) is a factor.
  • Find all roots of a polynomialRational roots first, divide them out, finish with the quadratic formula; count multiplicities.
Equation methods
Limit methods

Polynomial Operations FAQ

Why isn't (5x2+2x−3)−(x2−4x+1)(5x^2 + 2x - 3) - (x^2 - 4x + 1) equal to 4x2−2x−24x^2 - 2x - 2?

+
Because the minus sign has to reach every term in the second bracket, not just the first. Negating fully gives −x2+4x−1-x^2 + 4x - 1, so the sum is 4x2+6x−44x^2 + 6x - 4. Terms that were already negative flip too: the −4x-4x becomes +4x+4x. Negating only the leading term is the single most common error in polynomial subtraction.Read more →

Can adding two cubics produce a quadratic?

+
Yes, when the leading terms cancel. Adding 2x3+x2x^3 + x to −2x3+5x2-2x^3 + 5x^2 gives 5x2+x5x^2 + x, a degree-two result from two degree-three inputs. That is why the rule for sums says the degree is at most the larger input degree. Multiplication never behaves this way: degrees add exactly, since neither leading coefficient is zero.Read more →

How do you handle missing terms in polynomial long division?

+
Write them in with zero coefficients so the columns line up. Dividing x3+4x^3 + 4 by x+1x + 1 means treating the dividend as x3+0x2+0x+4x^3 + 0x^2 + 0x + 4. A missing power is a zero coefficient rather than an absent slot, and leaving the gap open causes terms to misalign during the subtraction steps and corrupts the quotient.Read more →

Does FOIL work for a binomial times a trinomial?

+
No, FOIL only names the four products of two binomials. A binomial times a trinomial needs six products, so FOIL misses two of them. For (x+2)(x2−3x+1)(x + 2)(x^2 - 3x + 1), distribute each term of the binomial across all three terms of the trinomial, then combine like terms to get x3−x2−5x+2x^3 - x^2 - 5x + 2. In general an mm-term polynomial times an nn-term one gives m×nm \times n products.Read more →

Can two binomials be multiplied with fewer than four multiplications?

+
Yes, three are enough. In (ax+b)(cx+d)(ax + b)(cx + d) the middle coefficient ad+bcad + bc equals (a+b)(c+d)−ac−bd(a + b)(c + d) - ac - bd, and acac and bdbd are needed anyway for the first and last terms. For (2x+3)(x−4)(2x + 3)(x - 4) that is (2+3)(1−4)−2−(−12)=−5(2 + 3)(1 - 4) - 2 - (-12) = -5, the middle coefficient of 2x2−5x−122x^2 - 5x - 12. Applied over and over, this trick (Karatsuba, 1960) multiplies huge numbers faster than school long multiplication.Read more →

How many multiplications does it take to evaluate a polynomial?

+
Only nn for a polynomial of degree nn, using synthetic division. Each step is one multiplication by cc and one addition, and by the Remainder Theorem the last number is P(c)P(c): for x3−2x2+5x−3x^3 - 2x^2 + 5x - 3 at c=1c = 1, three of each give 11. V. Pan proved in 1966 that, for coefficients not known in advance, no method can use fewer multiplications. The same scheme is often called Horner's method.Read more →