In short

You can add, subtract, multiply, and divide polynomials using the same structural rules — commutativity, associativity, distributivity — that govern arithmetic on numbers. Addition and subtraction collect like terms. Multiplication distributes every term across every other term. Division uses a long-division algorithm that mirrors the one you learned for numbers in primary school. Two theorems — the Remainder Theorem and the Factor Theorem — then connect division to evaluation, letting you find remainders and factors without doing the full division at all.

Take the number 374 and break it into pieces: 3 \times 100 + 7 \times 10 + 4 \times 1. That is 3 \times 10^2 + 7 \times 10^1 + 4 \times 10^0. Now replace 10 with a letter — call it x — and you have 3x^2 + 7x + 4. A polynomial.

When you add two three-digit numbers, you line up the hundreds, tens, and units and combine matching columns. Polynomial addition does the same thing — you line up terms with matching powers of x and combine them. When you multiply two numbers using the long-multiplication grid, every digit of the first number multiplies every digit of the second. Polynomial multiplication works identically — every term of the first polynomial multiplies every term of the second.

The operations are not metaphorically similar. They are structurally the same. This article builds each one from that parallel, so the rules feel familiar rather than new.

Addition and subtraction

Adding two polynomials is a matter of collecting like terms — terms that have the same power of x. Take p(x) = 3x^3 + 5x^2 - 2x + 1 and q(x) = x^3 - 4x^2 + 7. To compute p(x) + q(x), align the terms by power:

p(x) + q(x) = (3x^3 + x^3) + (5x^2 + (-4x^2)) + (-2x + 0x) + (1 + 7)
= 4x^3 + x^2 - 2x + 8

Each power of x is an independent "column" — the x^3 terms combine with x^3 terms, the x^2 with x^2, and so on. If one polynomial is missing a power (here, q has no x term), you treat its coefficient as 0.

Subtraction works the same way, but you flip the signs of the second polynomial first. To compute p(x) - q(x):

p(x) - q(x) = (3x^3 - x^3) + (5x^2 - (-4x^2)) + (-2x - 0) + (1 - 7)
= 2x^3 + 9x^2 - 2x - 6

The sign flip is the only difference. Once you have flipped, you are adding again.

Adding two polynomials by aligning like terms in columnsA column-alignment diagram showing the addition of 3x cubed plus 5x squared minus 2x plus 1 and x cubed minus 4x squared plus 0x plus 7. Each power of x has its own column. The coefficients in each column are added to produce the result 4x cubed plus x squared minus 2x plus 8. xconstant p(x) 35−21 q(x) 1−407 + sum 41−28 each column is independent — just like adding multi-digit numbers 4x³ + x² − 2x + 8
Adding $p(x)$ and $q(x)$ by aligning like terms. Each column holds one power of $x$. The coefficients in each column add independently, exactly the way digits combine in ordinary addition. The result is $4x^3 + x^2 - 2x + 8$.

A key observation: the degree of the sum is at most the highest degree among the inputs. It could be less — if the leading terms cancel (like adding 2x^3 and -2x^3), the degree drops. But it can never be higher. Addition and subtraction never create new powers of x.

Multiplication

Multiplication does create new powers. When you multiply a term ax^m by a term bx^n, the result is abx^{m+n}. The coefficients multiply; the exponents add. This is just the exponent law x^m \cdot x^n = x^{m+n} applied to each pair of terms.

To multiply two polynomials, distribute every term of the first across every term of the second. Take p(x) = 2x + 3 and q(x) = x^2 - x + 4.

p(x) \cdot q(x) = 2x \cdot (x^2 - x + 4) + 3 \cdot (x^2 - x + 4)

Expand each part:

= 2x^3 - 2x^2 + 8x + 3x^2 - 3x + 12

Now collect like terms:

= 2x^3 + (-2 + 3)x^2 + (8 - 3)x + 12 = 2x^3 + x^2 + 5x + 12

The degree of the product is 1 + 2 = 3 — the sum of the degrees of the two factors. This always holds: if p has degree m and q has degree n, the product p \cdot q has degree m + n, because the highest-power terms a_m x^m and b_n x^n multiply to give a_m b_n x^{m+n}, and nothing else in the product reaches that power.

Multiplication grid for (2x + 3) times (x squared minus x plus 4)A grid showing each term of 2x plus 3 along the left and each term of x squared minus x plus 4 along the top. Each cell shows the product of the corresponding row and column terms. The bottom row sums the columns to produce the final result 2x cubed plus x squared plus 5x plus 12. −x +4 2x 2x³ −2x² 8x 3 3x² −3x 12 collect 2x³ + x² + 5x + 12 every term of the first polynomial multiplies every term of the second degree of product = 1 + 2 = 3
The multiplication grid for $(2x + 3)(x^2 - x + 4)$. Each cell is the product of its row heading and column heading. After filling every cell, collect like terms along the diagonals (each diagonal corresponds to one power of $x$) to get $2x^3 + x^2 + 5x + 12$.

Division: the long-division algorithm

Dividing a polynomial p(x) by a polynomial d(x) is like long division with numbers. You ask: "How many times does d(x) go into p(x)?" — and you get a quotient q(x) and a remainder r(x) such that

p(x) = d(x) \cdot q(x) + r(x)

with the degree of r(x) strictly less than the degree of d(x). If the remainder is zero, d(x) divides p(x) exactly.

The algorithm works by repeatedly removing the leading term. Here is the recipe:

  1. Look at the leading term of p(x) and the leading term of d(x). Divide them to get the first term of q(x).
  2. Multiply d(x) by that term and subtract the result from p(x).
  3. What remains is a new polynomial of lower degree. Repeat from step 1 with this new polynomial, until the remainder has degree less than d(x).

Take p(x) = 2x^3 + 3x^2 - 5x + 6 divided by d(x) = x - 2.

Round 1. Leading terms: 2x^3 \div x = 2x^2. Multiply: (x - 2)(2x^2) = 2x^3 - 4x^2. Subtract: (2x^3 + 3x^2 - 5x + 6) - (2x^3 - 4x^2) = 7x^2 - 5x + 6.

Round 2. Leading terms: 7x^2 \div x = 7x. Multiply: (x - 2)(7x) = 7x^2 - 14x. Subtract: (7x^2 - 5x + 6) - (7x^2 - 14x) = 9x + 6.

Round 3. Leading terms: 9x \div x = 9. Multiply: (x - 2)(9) = 9x - 18. Subtract: (9x + 6) - (9x - 18) = 24.

The remainder is 24 (degree 0, less than the degree of d(x) = x - 2). The quotient is 2x^2 + 7x + 9.

So: 2x^3 + 3x^2 - 5x + 6 = (x - 2)(2x^2 + 7x + 9) + 24.

You can verify by expanding the right side: (x - 2)(2x^2 + 7x + 9) = 2x^3 + 7x^2 + 9x - 4x^2 - 14x - 18 = 2x^3 + 3x^2 - 5x - 18, and -18 + 24 = 6. The original polynomial is recovered.

Polynomial long division of 2x cubed plus 3x squared minus 5x plus 6 by x minus 2A vertical step-by-step layout of polynomial long division. Each round shows the current dividend, the term produced for the quotient, the product that gets subtracted, and the new remainder. The three rounds produce quotient terms 2x squared, 7x, and 9, with final remainder 24. dividing 2x³ + 3x² − 5x + 6 by (x − 2) Round 1: 2x³ ÷ x = 2x²subtract → 7x² − 5x + 6 Round 2: 7x² ÷ x = 7xsubtract → 9x + 6 Round 3: 9x ÷ x = 9subtract → 24 Quotient:2x² + 7x + 9 Remainder:24 2x³ + 3x² − 5x + 6 = (x − 2)(2x² + 7x + 9) + 24
The three rounds of long division, each producing one term of the quotient. The degree drops by one at each step. After three rounds the remainder is $24$, a constant, so the division is complete. The result: $2x^3 + 3x^2 - 5x + 6 = (x - 2)(2x^2 + 7x + 9) + 24$.

The Remainder Theorem

Look at the division you just did. The remainder was 24. Now evaluate the dividend at x = 2 (the root of the divisor x - 2):

p(2) = 2(8) + 3(4) - 5(2) + 6 = 16 + 12 - 10 + 6 = 24

The remainder and the evaluation give the same number. This is not a coincidence.

Remainder Theorem

When a polynomial p(x) is divided by the linear divisor (x - a), the remainder is p(a).

The proof is one line. By the division identity, p(x) = (x - a) \cdot q(x) + r, where r is a constant (because the remainder's degree must be less than 1). Substitute x = a: p(a) = (a - a) \cdot q(a) + r = 0 + r = r. The remainder equals p(a).

This is a powerful shortcut. If someone asks "what is the remainder when x^{100} - 2x + 5 is divided by x - 1?", you do not need long division on a degree-100 polynomial. Just evaluate at x = 1: the remainder is 1 - 2 + 5 = 4.

The Factor Theorem

The Factor Theorem is the special case of the Remainder Theorem where the remainder is zero.

Factor Theorem

(x - a) is a factor of p(x) if and only if p(a) = 0.

The "if" direction: if p(a) = 0, then the Remainder Theorem says the remainder when dividing by (x - a) is 0, so (x - a) divides p(x) exactly.

The "only if" direction: if (x - a) divides p(x), then p(x) = (x - a) \cdot q(x), and substituting x = a gives p(a) = 0.

So testing whether (x - a) is a factor of p(x) reduces to a single evaluation. Take p(x) = x^3 - 6x^2 + 11x - 6. Is (x - 1) a factor? Check: p(1) = 1 - 6 + 11 - 6 = 0. Yes. Is (x - 4) a factor? Check: p(4) = 64 - 96 + 44 - 6 = 6 \neq 0. No.

The Factor Theorem is the bridge between polynomial operations and Polynomial Factorization. Once you know that p(a) = 0, you know (x - a) is a factor, and you can use long division to find the remaining quotient. Then repeat: test the quotient for more roots, and keep peeling off factors until the polynomial is fully broken down.

Interactive graph of x cubed minus 6x squared plus 11x minus 6 with a draggable pointA coordinate plane showing the cubic curve y equals x cubed minus 6x squared plus 11x minus 6. The curve crosses the x-axis at x equals 1, x equals 2, and x equals 3 — these are the three roots. A draggable red point on the curve shows the value of p of x as the reader moves it. The readout updates in real time. x y 1 2 3 4 ↔ drag the red point
The cubic $p(x) = x^3 - 6x^2 + 11x - 6$ crosses the $x$-axis at $x = 1$, $x = 2$, and $x = 3$. At each crossing, $p(a) = 0$, so the Factor Theorem guarantees that $(x - 1)$, $(x - 2)$, and $(x - 3)$ are all factors. Drag the red point along the curve to see $p(x)$ change sign at each root.

Two worked examples

Example 1: Multiply $(x^2 + 2x - 1)$ by $(3x - 4)$ and verify the degree

This is a degree-2 polynomial times a degree-1 polynomial. The result should have degree 2 + 1 = 3.

Step 1. Distribute 3x across every term of (x^2 + 2x - 1).

3x \cdot x^2 + 3x \cdot 2x + 3x \cdot (-1) = 3x^3 + 6x^2 - 3x

Why: each term of the first factor must multiply each term of the second. Starting with 3x across the whole trinomial gives the three products above.

Step 2. Distribute -4 across every term of (x^2 + 2x - 1).

(-4) \cdot x^2 + (-4) \cdot 2x + (-4) \cdot (-1) = -4x^2 - 8x + 4

Why: same distributive step, now with the second term -4. The sign of each product comes from ordinary sign rules.

Step 3. Add the two partial products and collect like terms.

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

Why: the x^2 terms are 6x^2 and -4x^2, combining to 2x^2. The x terms are -3x and -8x, combining to -11x. The constant is 4.

Step 4. Verify the degree. The leading term is 3x^3, so the degree is 3 = 2 + 1. Confirmed.

Result. (x^2 + 2x - 1)(3x - 4) = 3x^3 + 2x^2 - 11x + 4.

Multiplication grid for x squared plus 2x minus 1 times 3x minus 4A two-by-three grid. The column headers are x squared, 2x, and minus 1. The row headers are 3x and minus 4. Each cell shows the product of its row and column headers. Below the grid, the six products are collected into the final answer 3x cubed plus 2x squared minus 11x plus 4. 2x −1 3x 3x³ 6x² −3x −4 −4x² −8x 4 3x³ + 2x² − 11x + 4 degree 2 + degree 1 = degree 3 ✓ 6 individual products collected into 4 terms
The six cells of the multiplication grid give three pairs of like terms. Collecting them yields $3x^3 + 2x^2 - 11x + 4$, a degree-3 polynomial — exactly as the degree rule predicts.

You can spot-check at a convenient value: set x = 1. The first factor gives 1 + 2 - 1 = 2, the second gives 3 - 4 = -1, and the product should be -2. The result gives 3 + 2 - 11 + 4 = -2. The grid and the spot-check agree.

Example 2: Divide $x^3 + 2x^2 - 7x - 2$ by $(x + 4)$ using long division, then verify with the Remainder Theorem

The divisor is (x + 4) = (x - (-4)), so the Remainder Theorem says the remainder should equal p(-4).

Step 1. First round of long division. Leading terms: x^3 \div x = x^2. Multiply: (x + 4)(x^2) = x^3 + 4x^2. Subtract from the current dividend: (x^3 + 2x^2 - 7x - 2) - (x^3 + 4x^2) = -2x^2 - 7x - 2.

Why: dividing the leading terms tells you the highest-degree part of the quotient. After subtracting, that leading term is gone and the degree has dropped by one.

Step 2. Second round. Leading terms: -2x^2 \div x = -2x. Multiply: (x + 4)(-2x) = -2x^2 - 8x. Subtract: (-2x^2 - 7x - 2) - (-2x^2 - 8x) = x - 2.

Why: same process. The x^2 term vanishes and the degree drops to 1.

Step 3. Third round. Leading terms: x \div x = 1. Multiply: (x + 4)(1) = x + 4. Subtract: (x - 2) - (x + 4) = -6.

Why: the remainder -6 is a constant — its degree (0) is less than the degree of the divisor (1) — so the algorithm stops.

Step 4. Verify with the Remainder Theorem. Evaluate p(-4):

p(-4) = (-4)^3 + 2(-4)^2 - 7(-4) - 2 = -64 + 32 + 28 - 2 = -6

The remainder from long division and p(-4) match: both are -6.

Result. x^3 + 2x^2 - 7x - 2 = (x + 4)(x^2 - 2x + 1) + (-6).

Long division of x cubed plus 2x squared minus 7x minus 2 by x plus 4 verified by the Remainder TheoremA vertical layout showing three rounds of polynomial long division producing quotient x squared minus 2x plus 1 and remainder negative 6. Below, a separate evaluation of p at negative 4 gives the same value negative 6, confirming the Remainder Theorem. dividing x³ + 2x² − 7x − 2 by (x + 4) Round 1: x³ ÷ x = x²remainder: −2x² − 7x − 2 Round 2: −2x² ÷ x = −2xremainder: x − 2 Round 3: x ÷ x = 1remainder: −6 Quotient:x² − 2x + 1 Remainder:−6 Remainder Theorem check p(−4) = −64 + 32 + 28 − 2 = −6 ✓ matches the remainder
Three rounds of long division produce $q(x) = x^2 - 2x + 1$ and remainder $-6$. The Remainder Theorem confirms: $p(-4) = -6$, matching exactly. The quotient $x^2 - 2x + 1$ is itself the perfect square $(x - 1)^2$, so the full factorisation of the cubic (if $-6$ had been $0$) would have exposed all three roots.

Notice that the quotient x^2 - 2x + 1 = (x - 1)^2. If the remainder had been zero, the full factorisation would be (x + 4)(x - 1)^2. The non-zero remainder tells you (x + 4) is not a factor of p(x).

Common confusions

Going deeper

If you came here to learn the four operations on polynomials and the two theorems that make division powerful, you have everything you need — you can stop here. The rest of this section is for readers who want to see why the machinery works the way it does.

Polynomials form a ring

The set of polynomials with real coefficients, written \mathbb{R}[x], obeys the same structural rules as the integers. Addition is commutative and associative; multiplication is commutative, associative, and distributes over addition. There is an additive identity (the zero polynomial) and a multiplicative identity (the constant 1). But most polynomials have no multiplicative inverse that is itself a polynomial — the inverse of x would have to satisfy x \cdot (?) = 1, and no polynomial in x does that. So \mathbb{R}[x] is a ring, not a field — the same distinction that separates \mathbb{Z} from \mathbb{Q}.

The division algorithm you learned above is the polynomial analogue of the integer division algorithm (Euclid's algorithm). It produces a unique quotient and remainder, and that uniqueness is the foundation for everything from the Factor Theorem to the construction of polynomial GCDs.

Synthetic division — a shortcut for linear divisors

When the divisor is linear — (x - a) — the long-division algorithm simplifies dramatically. Instead of writing out the full subtraction at each step, you can track only the coefficients and use a compact table. This shortcut is called synthetic division. For the division of 2x^3 + 3x^2 - 5x + 6 by (x - 2) from earlier, the synthetic layout uses only the coefficients [2, 3, -5, 6] and the value a = 2:

Start with 2. Multiply by a = 2 to get 4; add to 3 to get 7. Multiply 7 by 2 to get 14; add to -5 to get 9. Multiply 9 by 2 to get 18; add to 6 to get 24. The bottom row reads [2, 7, 9, 24] — the first three entries are the quotient coefficients (2x^2 + 7x + 9) and the last is the remainder (24). The same answer, with much less writing.

The degree of the remainder bounds the information

When you divide by a degree-d polynomial, the remainder has degree at most d - 1. This is not an accident — it is the stopping condition of the algorithm, and it is what makes the quotient and remainder unique. If you allowed the remainder to have the same degree as the divisor, you could subtract one more copy and reduce further. The algorithm stops precisely when it can go no further.

This bound also explains why the Remainder Theorem, as stated, only gives a single number for a linear divisor. The remainder when dividing by a degree-1 polynomial has degree at most 0 — it is a constant. For a degree-2 divisor, the remainder would be a linear polynomial ax + b, determined by two values rather than one.

Where this leads next

The four operations you learned here are the grammar of every polynomial chapter that follows.