Remainder Theorem

In this tutorial, we will learn about the polynomial remainder theorem. But before we can do that, there are a couple of things we need to address first.

Polynomials and Their Notation

Let’s begin with an example of a polynomial and its notation.

P(x)=2x2+x1P(x) \, = \, 2x^2 + x - 1

So here we have a trinomial – a polynomial with three terms – and we denote this polynomial with the letter P\hspace{0.2em} P \hspace{0.2em}. We generally denote polynomials using a letter from the English alphabet, often P\hspace{0.2em} P \hspace{0.2em} or Q\hspace{0.2em} Q \hspace{0.2em}.

And the x\hspace{0.2em} x \hspace{0.2em} inside parentheses indicates that the variable in the polynomial is x\hspace{0.2em} x \hspace{0.2em}. So P\hspace{0.2em} P \hspace{0.2em} is a polynomial in x\hspace{0.2em} x \hspace{0.2em}.

Value of a Polynomial

To talk about the value of the polynomial if x\hspace{0.2em} x \hspace{0.2em} is replaced with some constant, we write that constant inside the parentheses (in place of x\hspace{0.2em} x \hspace{0.2em}).

So, P(2)\hspace{0.2em} P(2) \hspace{0.2em} refers to the value of the polynomial P\hspace{0.2em} P \hspace{0.2em} is x\hspace{0.2em} x \hspace{0.2em} is replaced with 2\hspace{0.2em} 2 \hspace{0.2em}.

P(2)=222+21=9\begin{align*} P( {\color{Red} 2} ) \, &= \, 2 \cdot {\color{Red} 2} ^2 + {\color{Red} 2} - 1 \\[1em] &= \, 9 \end{align*}

Similarly,

P(0)=202+01=1\begin{align*} P( {\color{Red} 0} ) \, &= \, 2 \cdot {\color{Red} 0} ^2 + {\color{Red} 0} - 1 \\[1em] &= \, -1 \end{align*}

What is the Remainder Theorem?

Consider this. When we divide a number by another, we get a remainder – unless it’s completely divisible. For example, dividing 7\hspace{0.2em} 7 \hspace{0.2em} by 2\hspace{0.2em} 2 \hspace{0.2em} gives us 3\hspace{0.2em} 3 \hspace{0.2em} as the quotient and 1\hspace{0.2em} 1 \hspace{0.2em} as the remainder.

Similarly, when we divide one polynomial by another, we can have a remainder left over. Here's an example.

So, we end up with 6\hspace{0.2em} 6 \hspace{0.2em} as the remainder.

Now, would it not be great if we could get the remainder without having to do the whole division?

That’s where the remainder theorem comes in.

The remainder theorem states – if you divide a polynomial P(x)\hspace{0.2em} P(x) \hspace{0.2em} by xa\hspace{0.2em} x - a \hspace{0.2em}, the remainder would be P(a)\hspace{0.2em} P(a) \hspace{0.2em}.

It can sound confusing. But it’s not that bad. Let me explain.

Going back to the previous example, here’s the polynomial we were dividing.

P(x)=x2+x+4P(x) \, = \, x^2 + x + 4

And we were dividing it by x1\hspace{0.2em} x - 1 \hspace{0.2em}. So according to the remainder theorem, the remainder would be P(1)\hspace{0.2em} P(1) \hspace{0.2em}.

P(1)=12+1+4=6\begin{align*} P( {\color{Red} 1} ) \, &= \, {\color{Red} 1} ^2 + {\color{Red} 1} + 4 \\[1em] &= \, 6 \end{align*}

The following examples should help make things clearer and remove any doubts you may have.

Examples

Example 1

What would be the remainder if we divide P(x):4x27x10\hspace{0.2em} P(x): 4x^2 - 7x - 10 \hspace{0.2em} by x+3\hspace{0.2em} x + 3\hspace{0.10em} \hspace{0.2em}?

Solution

Step 1.  We need to write the divisor as xa\hspace{0.2em} x - a \hspace{0.2em} so that we can identify what a\hspace{0.2em} a \hspace{0.2em} is.

For our present example, the divisor is x+3\hspace{0.2em} x + 3 \hspace{0.2em} and

x+3=x(3)x + 3 = x - (-3)

Comparing x(3)\hspace{0.2em} x - (-3) \hspace{0.2em} with xa\hspace{0.2em} x - a \hspace{0.2em}, it's clear that a=3\hspace{0.2em} a = -3 \hspace{0.2em}.

Quick Tip – Probably the simplest to find a\hspace{0.2em} a \hspace{0.2em} is as follows. We equate the divisor to 0\hspace{0.2em} 0 \hspace{0.2em} and solve for x\hspace{0.2em} x \hspace{0.2em}. The solution would be a\hspace{0.2em} a \hspace{0.2em}

x+3=0x=3\begin{align*} x + 3 \, &= \, 0 \\[1em] x \, &= \, -3 \end{align*}

So again, a=3\hspace{0.2em} a = -3 \hspace{0.2em}.

Step 2.  Plug the value of a\hspace{0.2em} a \hspace{0.2em} obtained from step 1 into the dividend, P(x)\hspace{0.2em} P(x) \hspace{0.2em}, in place of x\hspace{0.2em} x \hspace{0.2em}.

P(3)=4(3)27310=47\begin{align*} P( {\color{Red} -3} ) \, &= \, 4( {\color{Red} -3} )^2 - 7 \cdot {\color{Red} -3} - 10 \\[1em] &= \, 47 \end{align*}

And that's it. If we divide 4x27x10\hspace{0.2em} 4x^2 - 7x - 10 \hspace{0.2em} by x+3\hspace{0.2em} x + 3 \hspace{0.2em}, the remainder would be 47\hspace{0.2em} 47 \hspace{0.2em}.

Example 1

What would be the remainder if we divide x2+2x3\hspace{0.2em} x^2 + 2x - 3 \hspace{0.2em} by x1\hspace{0.2em} x - 1 \hspace{0.2em}?

Solution

Again, we start by finding the value of x\hspace{0.2em} x \hspace{0.2em} for which the divisor becomes 0\hspace{0.2em} 0 \hspace{0.2em}.

x1=0x=1\begin{align*} x - 1 \, &= \, 0 \\[1em] x \, &= \, 1 \end{align*}

Then we plug this value in place of x\hspace{0.2em} x \hspace{0.2em} in the dividend.

12+213=0 {\color{Red} 1} ^2 + 2 \cdot {\color{Red} 1} - 3 \, = \, 0

That’s our remainder.

A remainder of zero implies that x1\hspace{0.2em} x - 1 \hspace{0.2em} is a factor of x2+2x3\hspace{0.2em} x^2 + 2x - 3 \hspace{0.2em}.

Example 3

Is the polynomial P(x):x23x5\hspace{0.2em} P(x): x^2 - 3x - 5 \hspace{0.2em} evenly divisible by x2\hspace{0.2em} x - 2 \hspace{0.2em}?

Solution

Here's the key idea.

If a polynomial is evenly divisible by another, the remainder would be 0\hspace{0.2em} 0 \hspace{0.2em}. And vice-versa.

So let’s find the remainder for our present case as we did in the previous examples. First, we find the value of x\hspace{0.2em} x \hspace{0.2em} for which the divisor becomes 0\hspace{0.2em} 0 \hspace{0.2em}.

x2=0x=2\begin{align*} x - 2 \, &= \, 0 \\[1em] x \, &= \, 2 \end{align*}

Next, we calculate P(2)\hspace{0.2em} P(2) \hspace{0.2em} to get the remainder.

P(2)=22325=7\begin{align*} P( {\color{Red} 2} ) \, &= \, {\color{Red} 2} ^2 - 3 \cdot {\color{Red} 2} - 5 \\[1em] &= \, -7 \end{align*}

So if we divide P(x)\hspace{0.2em} P(x) \hspace{0.2em} by x2\hspace{0.2em} x - 2 \hspace{0.2em}, it would leave a remainder of 7\hspace{0.2em} -7 \hspace{0.2em}. That means the given polynomial is not divisible by x2\hspace{0.2em} x - 2 \hspace{0.2em}.

Proof of the Remainder Theorem

If we divide a number, say 17\hspace{0.2em} 17 \hspace{0.2em}, by another number (3)\hspace{0.2em} (3) \hspace{0.2em} we get a quotient (5)\hspace{0.2em} (5) \hspace{0.2em} and a remainder (2)\hspace{0.2em} (2) \hspace{0.2em}.

Something similar happens when we divide a polynomial P(x)\hspace{0.2em} P(x) \hspace{0.2em} by another polynomial (xc)\hspace{0.2em} (x - c) \hspace{0.2em}.

Remainder theorem - divisor, quotient, and remainder demo

In the case of polynomials, the degree of the remainder would always be less than that of the divisor. So if the divisor is of the first degree (of the form xc\hspace{0.2em} x - c \hspace{0.2em}), the remainder would have a degree 0\hspace{0.2em} 0. That means it would constant (usually denoted by r\hspace{0.2em} r \hspace{0.2em}).

Now, let’s see what happens if we substitute c\hspace{0.2em} c \hspace{0.2em} in place of x\hspace{0.2em} x \hspace{0.2em}.

P(c)=(cc)Q(c)+rP(c)=0Q(c)+rP(c)=r\begin{align*} P( {\color{Red} c} ) \, &= \, (c - {\color{Red} c} ) \cdot Q( {\color{Red} c} )+ r \\[1em] P( {\color{Red} c} ) \, &= \, 0 \cdot Q( {\color{Red} c} )+ r \\[1em] P( {\color{Red} c} ) \, &= \, r \end{align*}

Voila, it gives us the value of the remainder.

We can see that if we divide P(x)\hspace{0.2em} P(x) \hspace{0.2em} by xc\hspace{0.2em} x - c \hspace{0.2em}, the remainder would be P(c)\hspace{0.2em} P(c) \hspace{0.2em}.

A Special Case – The Factor Theorem

If xc\hspace{0.2em} x - c \hspace{0.2em} is a factor of a polynomial P(x)\hspace{0.2em} P(x) \hspace{0.2em}, the remainder upon division would be 0\hspace{0.2em} 0 \hspace{0.2em}. And vice-versa. But we also know – from the remainder theorem - that the remainder would be P(c)\hspace{0.2em} P(c) \hspace{0.2em}.

So, in other words, xc\hspace{0.2em} x - c \hspace{0.2em} is a factor of P(x)\hspace{0.2em} P(x) \hspace{0.2em} if and only if P(c)=0\hspace{0.2em} P(c) = 0 \hspace{0.2em}. And that's the factor theorem.


And that brings us to the end of this tutorial on the remainder theorem. Until next time.