Polynomials & Factoring

The Remainder Theorem

When a polynomial P(x)P(x) is divided by x−ax-a, the remainder is P(a)P(a). Substitute aa into the polynomial and the number you get is the remainder, with no division at all.

P(x)=(x−a) Q(x)+r  ⟹  r=P(a)P(x) = (x-a)\,Q(x) + r \;\Longrightarrow\; r = P(a)

Try it with your numbers

Show every step

The rule works for any polynomial and any linear divisor, including ones like 2x+52x+5, where you substitute −52-\tfrac52. The sections below show why it works, how to handle negative signs and fractions, how to solve for missing coefficients, and exactly where the method stops working.

What Is the Remainder Theorem and Why Does It Work?

The theorem is the ordinary division identity plus one well-chosen substitution. Dividing P(x)P(x) by x−ax-a always produces a quotient Q(x)Q(x) and a remainder rr so that P(x)=(x−a)Q(x)+rP(x)=(x-a)Q(x)+r. The divisor has degree 1, and a remainder must have a smaller degree than the divisor, so rr has degree 0. That makes rr a plain number with no xx in it.

The identity is true for every value of xx, so you may choose x=ax=a. The factor (a−a)(a-a) becomes 00 and erases the whole quotient term, whatever QQ happens to be:

P(a)=(a−a) Q(a)+r=0⋅Q(a)+r=rP(a)=(a-a)\,Q(a)+r=0\cdot Q(a)+r=r

That is the entire proof. You never need to know QQ, which is exactly why the shortcut exists. If you expand (x−a)Q(x)(x-a)Q(x) using the rules for multiplying polynomials, you rebuild the part of PP that vanishes at aa. The remainder is what is left over.

A graph gives the same idea a picture: the remainder is the height of the curve y=P(x)y=P(x) at x=ax=a. Long division is a slow way to read off a height you can calculate directly.

Quick check

A polynomial is written as P(x)=(x+2)(x2−7x+4)−6P(x)=(x+2)(x^2-7x+4)-6. What is the remainder when P(x)P(x) is divided by x+2x+2?

How Do You Find a Remainder Without Long Division?

Long division on a cubic means several rounds of multiply, subtract and bring down, and one slip spoils everything after it. The theorem replaces that with a single evaluation. Polynomial long division is still the right tool when the quotient matters, but not when only the remainder does.

Example 1. Find the remainder when P(x)=x3−4x2+2x+7P(x)=x^3-4x^2+2x+7 is divided by x−3x-3.

The divisor has the form x−ax-a with a=3a=3, so the remainder is P(3)P(3):

P(3)=33−4⋅32+2⋅3+7=27−36+6+7=4P(3)=3^3-4\cdot3^2+2\cdot3+7=27-36+6+7=4

The remainder is 44. To confirm, full division gives the quotient x2−x−1x^2-x-1, and rebuilding the dividend works out exactly:

(x−3)(x2−x−1)+4=x3−4x2+2x+3+4−3⋅0(x-3)(x^2-x-1)+4=x^3-4x^2+2x+3+4-3\cdot0

Written out properly, (x−3)(x2−x−1)=x3−x2−x−3x2+3x+3=x3−4x2+2x+3(x-3)(x^2-x-1)=x^3-x^2-x-3x^2+3x+3=x^3-4x^2+2x+3, and adding 44 gives x3−4x2+2x+7x^3-4x^2+2x+7.

The theorem returns only the remainder

It tells you what is left over, not the quotient. If you also need Q(x)Q(x), you still have to divide, or use synthetic division.

For hand calculation, nested form is easier than computing powers. Rewrite x3−4x2+2x+7x^3-4x^2+2x+7 as ((x−4)x+2)x+7((x-4)x+2)x+7 and put in x=3x=3: (−1⋅3+2)⋅3+7=−3+7=4(-1\cdot3+2)\cdot3+7=-3+7=4. This is the idea behind synthetic division, and it comes back later.

Why Do You Plug In the Opposite Sign of the Divisor?

Wrong versus right substitution for remainder of 2x³+5x²−7x+1 divided by x+4
For the divisor x + 4, the root is −4, so P(−4) = −19, while the slip P(4) gives 181.

The theorem is stated for divisors of the form x−ax-a, so a divisor like x+4x+4 must be rewritten as x−(−4)x-(-4). That makes a=−4a=-4. Most lost points on this topic come from substituting 44 instead of −4-4.

A rule that never fails, whatever the divisor looks like:

  1. Set the divisor equal to zero.
  2. Solve for xx.
  3. Substitute that value into the polynomial.

Example 2. Find the remainder when P(x)=2x3+5x2−7x+1P(x)=2x^3+5x^2-7x+1 is divided by x+4x+4.

Setting x+4=0x+4=0 gives x=−4x=-4. Use parentheses around every negative substitution:

P(−4)=2(−4)3+5(−4)2−7(−4)+1=2(−64)+5(16)+28+1P(-4)=2(-4)^3+5(-4)^2-7(-4)+1=2(-64)+5(16)+28+1

=−128+80+28+1=−19=-128+80+28+1=-19

The remainder is −19-19. Substituting the wrong sign would give P(4)=128+80−28+1=181P(4)=128+80-28+1=181, which is a completely different number. A negative remainder is perfectly legal here, because only its degree is restricted, not its sign.

The second trap is the powers. (−4)2=16(-4)^2=16, but typing −42-4^2 into a calculator gives −16-16. Parentheses around each negative input remove the problem.

How Does the Remainder Theorem Work With Fractions?

When the divisor is ax+bax+b with a≠1a\neq1, the same rule gives r=P ⁣(−ba)r=P\!\left(-\tfrac ba\right). The leading coefficient only rescales the quotient. Since (3x−2)Q(x)=(x−23)⋅3Q(x)(3x-2)Q(x)=\left(x-\tfrac23\right)\cdot 3Q(x), dividing by 3x−23x-2 and by x−23x-\tfrac23 leaves the same remainder. Only the quotient changes.

Example 3. Find the remainder when P(x)=6x3−x2+4x−5P(x)=6x^3-x^2+4x-5 is divided by 3x−23x-2.

Setting 3x−2=03x-2=0 gives x=23x=\tfrac23. Substitute, and convert every term to ninths so the fractions combine cleanly:

P ⁣(23)=6⋅827−49+4⋅23−5=169−49+249−459P\!\left(\tfrac23\right)=6\cdot\tfrac{8}{27}-\tfrac49+4\cdot\tfrac23-5=\tfrac{16}{9}-\tfrac{4}{9}+\tfrac{24}{9}-\tfrac{45}{9}

=16−4+24−459=−99=−1=\tfrac{16-4+24-45}{9}=\tfrac{-9}{9}=-1

The remainder is −1-1. A direct check: (3x−2)(2x2+x+2)=6x3−x2+4x−4(3x-2)(2x^2+x+2)=6x^3-x^2+4x-4, and −5-5 is 11 less than −4-4, so P(x)=(3x−2)(2x2+x+2)−1P(x)=(3x-2)(2x^2+x+2)-1. The remainder is confirmed.

If a remainder comes out as a fraction such as 318\tfrac{31}{8}, that is not a sign of an error. Fractions appear whenever the root of the divisor is a fraction, and the answer is only wrong if the arithmetic is.

Quick check

Find the remainder when 4x2+6x−14x^2+6x-1 is divided by 2x+32x+3.

How Do You Find a Missing Coefficient With the Remainder Theorem?

Exam questions often hide a letter in the polynomial and give a remainder clue. Each clue becomes one equation: substitute the root of the divisor, set the result equal to the stated remainder, and solve. One unknown needs one clue, and two unknowns need two.

Example 4. The polynomial P(x)=x3+ax2+bx−6P(x)=x^3+ax^2+bx-6 leaves remainder −2-2 when divided by x−1x-1 and remainder −14-14 when divided by x+2x+2. Find aa and bb.

From x−1x-1: P(1)=1+a+b−6=−2P(1)=1+a+b-6=-2, so a+b=3a+b=3.

From x+2x+2: P(−2)=−8+4a−2b−6=−14P(-2)=-8+4a-2b-6=-14, so 4a−2b=04a-2b=0, which simplifies to b=2ab=2a.

Substitute b=2ab=2a into a+b=3a+b=3 to get 3a=33a=3, so a=1a=1 and b=2b=2. Check with P(x)=x3+x2+2x−6P(x)=x^3+x^2+2x-6: P(1)=1+1+2−6=−2P(1)=1+1+2-6=-2 and P(−2)=−8+4−4−6=−14P(-2)=-8+4-4-6=-14. Both match.

When a question says the polynomial is “divisible by” the divisor, the remainder is 00, and the problem turns into a factor theorem question.

Remainder Theorem vs Factor Theorem: What Is the Difference?

The factor theorem is the remainder theorem with r=0r=0. The remainder theorem answers “what is left over?” for any aa. The factor theorem only asks whether the leftover is zero.

Remainder theorem Factor theorem
Question What remains after dividing by x−ax-a? Does x−ax-a divide evenly?
Test Compute P(a)P(a) Check whether P(a)=0P(a)=0
Possible results Any number Only 00 means a factor
Typical use Evaluating, finding unknown coefficients Finding roots and factors

One clean consequence: P(x)−P(a)P(x)-P(a) is always divisible by x−ax-a, because its remainder at aa is P(a)−P(a)=0P(a)-P(a)=0. This explains the pattern behind the sum and difference of cubes. The polynomial x3−8x^3-8 gives 23−8=02^3-8=0, so x−2x-2 divides it, and the same logic makes x−ax-a divide x3−a3x^3-a^3 for every aa.

The two theorems combine into a root-hunting routine. The rational root theorem lists the possible rational roots, and each candidate is tested by computing a remainder. When one gives 00, divide out that factor and you are left with a smaller polynomial to factor, which factoring practice problems can help you rehearse.

Can the Remainder Theorem Handle Quadratic Divisors?

Not in its basic form, and this is where the theorem stops. A remainder always has lower degree than the divisor, so dividing by a quadratic leaves something of the form ax+bax+b. A single substitution gives one number, but two unknowns need two equations.

The degree rule

Divisor of degree 1 leaves a constant. Divisor of degree 2 leaves at most ax+bax+b. Count the unknowns, then collect that many values.

If the quadratic factors, the fix is to substitute each of its roots. Example 5. Find the remainder when P(x)=x3−2x+6P(x)=x^3-2x+6 is divided by x2−1x^2-1.

Write P(x)=(x2−1)Q(x)+ax+bP(x)=(x^2-1)Q(x)+ax+b, and note that x2−1=(x−1)(x+1)x^2-1=(x-1)(x+1) vanishes at x=1x=1 and x=−1x=-1. Then:

P(1)=1−2+6=5=a+bP(1)=1-2+6=5=a+b

P(−1)=−1+2+6=7=−a+bP(-1)=-1+2+6=7=-a+b

Adding gives 2b=122b=12, so b=6b=6 and a=−1a=-1. The remainder is −x+6-x+6. A quick verification: x3−2x+6=x(x2−1)+(−x+6)x^3-2x+6=x(x^2-1)+(-x+6).

The remainder −x+6-x+6 is the line through the points (1,5)(1,5) and (−1,7)(-1,7). The slope is 7−5−1−1=−1\tfrac{7-5}{-1-1}=-1, and point-slope form gives y−5=−1(x−1)y-5=-1(x-1), which is y=−x+6y=-x+6. The method needs a divisor with distinct roots. A repeated factor such as (x−2)2(x-2)^2 needs a different approach, since both roots are the same number.

How Do You Check a Remainder Theorem Answer?

The most direct check is synthetic division, because it is nested evaluation written as a table. For Example 1, use a=3a=3 on the coefficients 1,−4,2,71,-4,2,7. Bring down 11. Then −4+3⋅1=−1-4+3\cdot1=-1, then 2+3⋅(−1)=−12+3\cdot(-1)=-1, then 7+3⋅(−1)=47+3\cdot(-1)=4. The last entry is the remainder, and the earlier entries 1,−1,−11,-1,-1 are the quotient x2−x−1x^2-x-1.

Three mental checks catch most slips without any division:

  • The remainder when dividing by x−1x-1 is the sum of all the coefficients, since P(1)P(1) adds them up.
  • The remainder when dividing by x+1x+1 is the alternating sum of the coefficients, since P(−1)P(-1) flips the sign of every odd-degree term.
  • The remainder when dividing by xx is the constant term, since P(0)P(0) leaves only that term.

You can also rebuild the identity. If your claimed quotient and remainder do not reproduce P(x)P(x) when you compute (x−a)Q(x)+r(x-a)Q(x)+r, something is off. This is slower than the other checks, but it is the one that proves the answer.

Try this: Without any division, find the remainders when x51+2x20−5x^{51}+2x^{20}-5 is divided by x−1x-1 and by x+1x+1. Use the sum and alternating sum ideas above, then check that you get −2-2 and −4-4.

Remainder of a Product or Sum Without Expanding

Evaluating at aa respects arithmetic: (P+R)(a)=P(a)+R(a)(P+R)(a)=P(a)+R(a) and (P⋅R)(a)=P(a)⋅R(a)(P\cdot R)(a)=P(a)\cdot R(a). So the remainder of a sum is the sum of the remainders, and the remainder of a product is the product of the remainders, as long as the divisor is x−ax-a. This saves you from adding and subtracting polynomials or expanding a product before you divide.

Example 6. Find the remainder when (x2+1)(x+5)(x^2+1)(x+5) is divided by x−2x-2.

At x=2x=2 the first factor is 22+1=52^2+1=5 and the second is 2+5=72+5=7. The remainder is 5⋅7=355\cdot7=35. Expanding confirms it: x3+5x2+x+5x^3+5x^2+x+5 at x=2x=2 gives 8+20+2+5=358+20+2+5=35.

Powers work the same way. Dividing x100x^{100} by x+1x+1 leaves (−1)100=1(-1)^{100}=1, and dividing x101x^{101} by x+1x+1 leaves −1-1. A degree-100 polynomial can be handled in one line, where long division would be hopeless.

Quick check

Find the remainder when (x2+3)(2x−1)(x^2+3)(2x-1) is divided by x−1x-1, without expanding.

Where Is the Remainder Theorem Used in Real Life?

The most common practical use is fast evaluation. Computing a degree-nn polynomial by nested form takes nn multiplications and nn additions, with no separate powers. This is the same arithmetic as synthetic division, known in computing as Horner’s method, and it is how software evaluates polynomials quickly and with less rounding error.

The same remainder idea appears in digital error checking:

  • Cyclic redundancy checks (CRC) treat a block of data bits as a polynomial and divide it by a fixed generator polynomial. The remainder becomes the checksum attached to the data.
  • Interpolation uses the pattern from Example 5: the remainder modulo (x−a1)(x−a2)(x-a_1)(x-a_2) is the line through two known points. Higher-degree versions of this idea give polynomial interpolation.
  • In algebra courses, it is the engine behind root finding, since each root test is a remainder calculation.

CRC arithmetic is done with bits rather than ordinary numbers, but the structure is the same: divide, keep what is left over, and use it to detect a change.

Practice problems

0 of 5 solved

  1. Find the remainder when x3−2x2+5x−1x^3-2x^2+5x-1 is divided by x−2x-2.

  2. Find the remainder when 2x3+x2−5x+42x^3+x^2-5x+4 is divided by x+3x+3.

  3. Find the remainder when 4x3−3x+24x^3-3x+2 is divided by 2x−12x-1.

  4. The polynomial x3+kx2−4x+7x^3+kx^2-4x+7 leaves remainder 33 when divided by x+1x+1. Find kk.

  5. Find the remainder when x3+3x2−5x+1x^3+3x^2-5x+1 is divided by x2−x−2x^2-x-2.

Common questions

What is the remainder theorem in simple words?

If you divide a polynomial P(x)P(x) by x−ax-a, the leftover number equals P(a)P(a). You get it by substituting aa into the polynomial instead of doing long division.

How do you use the remainder theorem when the divisor is x + 3?

Rewrite x+3x+3 as x−(−3)x-(-3), so a=−3a=-3. Equivalently, set the divisor equal to zero and solve. The remainder is P(−3)P(-3), not P(3)P(3).

Does the remainder theorem work for divisors like 2x - 5?

Yes. Set 2x−5=02x-5=0 to get x=52x=\tfrac52, and the remainder is P(52)P(\tfrac52). The result is a constant, the same one you would get from full long division.

What is the difference between the remainder theorem and the factor theorem?

The remainder theorem gives the leftover value P(a)P(a) for any aa. The factor theorem is the special case where that value is 00, which proves x−ax-a is a factor of P(x)P(x).

Can the remainder theorem be used with a quadratic divisor?

Not directly, because the remainder is then a linear expression ax+bax+b rather than one number. If the quadratic factors, substitute each root to get two equations and solve for aa and bb.

Can a remainder be negative or a fraction?

Yes. When dividing polynomials the remainder only has to have lower degree than the divisor, so a constant such as −19-19 or 318\tfrac{31}{8} is perfectly valid.

Up next