Polynomial Division Calculator
Welcome to the polynomial division calculator, where we'll learn how to divide polynomials. You might remember that when we dealt with regular numbers, there was this handy algorithm called long division. In fact, here we have a similar one, polynomial long division, and it's just as easy. But don't worry, before we see how to do long division with polynomials, we'll slowly go through the basics and begin with dividing polynomials by monomials. Nice and easy, that's our motto.
So sit back, grab a cup of tea for the journey, and let's get to it!
🔎 If you need to divide numbers instead of polynomials, head to our long division calculator!
Polynomials, binomials, monomials
Do you remember the good ol' days when mathematics dealt only with numbers? Well, there were also squares and circles, but still, we described them using numbers. And then, some guy decided to get the alphabet involved and came up with algebra. Yeah, screw that guy too.
A polynomial is a sum of monomials. Now that is a helpful definition, isn't it? And we can go one step further: a monomial is a polynomial with only one summand. So, since we figured all of that out, let's jump to dividing polynomials using long division.
Oh, alright, we're not that evil. Let's go through it in detail.
A monomial is the product of numbers and variables with non-negative integer powers. This means that, for instance:
- ;
- ;
- ;
- ;
- ;
- .
are all monomials. Observe that they don't necessarily have to contain variables.
The important thing here is that it cannot be the sum or difference of two expressions. (Note that above, the occasional minuses come from negative numbers, such as , and not from the subtraction operation.) Also, it cannot have any square roots or functions like sine or logarithm. Lastly, observe that we haven't written all of the above in their simplest form there is. For example, we can surely write as a single number instead of that monstrosity.
So, coming back to the definition above, a polynomial is a sum of monomials. This means that, in particular, every monomial is a polynomial. Below we list a few other examples:
- ;
- ;
- ;
- .
Lastly, a binomial is a polynomial with two summands. For instance, the first expression above is a binomial, while the others are not.
In general, a polynomial can have any number of variables. Today, however, we're going to focus on those that only have one variable, i.e., of the form:
where , ,…, , are numbers, which we call coefficients.
By convention, the variable is usually denoted by , but if you have any letter preferences, feel free to rebel and exchange it for whichever suits your needs. Just remember that this polynomial division calculator uses the notation, and we will do so as well in the subsequent sections.
🙋 You may have heard about the quadratic equation, one of the most popular polynomials. Check our quadratic formula calculator to learn more about it.
Now that we got familiar with the objects we're dealing with, we're one step closer to dividing polynomials with long division. However, let's start small and see the easiest case first - monomials.
Dividing polynomials by monomials
Let's first get one thing straight - just as you can't divide a number by zero, you can't divide a polynomial by the zero polynomial, i.e., the polynomial with all coefficients equal to zero.
If, however, that is not the case, then everything works fine, and we can go on to the computations. Still, to get a good grasp of the topic, before we see how to divide polynomials in general, we'll study the simplest case: dividing polynomials by monomials. In other words, we want to find when for some non-negative integer .
As a rule, can be anything, so let's denote it as we did in the previous section:
The trick here is that we can now divide the polynomials by taking each summand of separately. In other words:
Now, according to the properties of the exponent, we know that:
But we don't want any negative powers in the variables! We like polynomials, after all. Therefore, we'll group all the terms of with smaller exponents in and write them as the (non-divisible) rest of the polynomial division.
All in all, we get:
Not too bad, was it? It may not be a walk in the park, but it's not rocket science either. Now it's only a matter of generalizing it so we can divide polynomials by more than just monomials.
Shall we?
How to divide polynomials?
The basic idea behind the polynomial division algorithm is:
- Take the polynomial that you want to divide by . Unless the degree of is smaller than that of , proceed. Otherwise, is the rest of the polynomial division.
- Look at the maximal (in terms of the exponent of ) summand in and divide it by the maximal summand in . The result is a (monomial) summand of your quotient.
- Multiply that monomial by and subtract the result from .
- The difference you obtain is of a smaller degree than . Let it be your new dividend (your new ), and keep as it was.
- Repeat.
In essence, what it all boils down to is that you only take into account the largest (in terms of the exponent of ) summands of the dividend and make that summand vanish using . You then end up with something smaller, and you repeat the process until this smaller is too small to handle.
To draw a polynomial, we recommend trying our polynomial graphing calculator.
We'll study in detail how to do long division with polynomials in the next section, but for now, let's see a sketch of the algorithm at work.
Say that you have a polynomial that you want to divide by , and assume that so that there's actually some polynomial division to do. Then, we look at the first summands, and (of course, we assume that and are non-zero), and divide one by the other:
This result goes into the quotient. Next, we do the subtraction:
This will give us a new polynomial with brand new coefficients. What is important about it is that its degree is strictly smaller than the degree of because has been chosen precisely so that it kills the in . Then, we take this new polynomial and repeat the whole thing.
🔎 We can always check if the division result is correct by using Omni's multiplying polynomials calculator.
We now know how to divide polynomials or, at least, the idea behind the algorithm. It's now time to introduce the polynomial long division, an easy tool to keep track of every step in the process.
Excited? We know we are! Let's not waste a second longer and learn all about dividing polynomials using long division!
How to do long division with polynomials?
Let's get back to the notation we've used in the above section: we want to divide by . Let's write the basic outline of this operation similarly to how we do with long division of numbers:
From the previous section, we know that the first step in the polynomial long division gives us the summand in the quotient. We write it above the line:
and we write under what we will subtract from it:
Now, we do the subtraction. If you find it difficult, don't hesitate to use Omni's adding and subtracting polynomials calculator:
for appropriate -s and . Then, as long as is not smaller than , we repeat this process for the new polynomial:
for appropriate 's and .
We continue this process as long as we continue to obtain polynomials with a degree of at least . Once we go below, we finish the polynomial long division. All in all, we should get something of the form:
for some polynomials and with being a smaller degree than . This translates to:
Phew, that was a long one, wasn't it? It's high time we reward all this time spent on theory by a nice example that actually has numbers in it. With that, dividing polynomials using long division will become so much clearer!
Example: using the polynomial division calculator
The formula for success is:
At least, that's what the fortune cookie told you at the restaurant you're visiting. Apparently, every root (i.e., a value of for which the expression is equal to zero) of shows you how many years until you'll have the best year of your life. For instance, if were such a root, then in seven years' time, you should have a pretty awesome year.
Seems legit, right?
You throw in a good tip and run home to study your precious formula. But how do we do it? With the help of the Omni Calculator website, of course!
Unfortunately, our formula is of degree (the highest power of that appears in the polynomial). Contrary to, say, quadratic equations, this one doesn't have a nice way of finding its roots. Fortunately for us, there is another way!
Given a polynomial, a number is its root if and only if the polynomial is divisible by (this, in fact, is a very non-trivial statement called Bézout's theorem). Therefore, we can make use of the polynomial division calculator to determine when your amazing year will be.
However, as we've already mentioned, we don't know the roots. So why don't we try a different approach: let's see if next year is going to be successful! In other words, we'll check if is a root, or, equivalently, if is divisible by .
Before we begin dividing the polynomials using long division, let's take a minute to see how easily the polynomial division calculator deals with such problems.
We wish to divide by . All the calculator needs from us is to input this data. We begin by telling it the degrees of both polynomials: in our case, it's for and for . We choose the correct options from the lists for each under "Degree" in the corresponding calculator sections.
Once this is done, the polynomial division calculator will show us the notation for and , i.e., that:
and
This means that the consecutive coefficients (from the largest exponent down) of are , , , , and . Looking back at the success formula, we input
, , , , .
💡 Remember that when we have no number in front of a variable, like with in , then this means that the coefficient is .
Similarly for , we input
, .
The moment we write the last number, the polynomial division calculator will spit out the answer. But let's not spoil it for ourselves just yet! How about we grab a piece of paper and do the polynomial long division ourselves?
If we recall the How to do long division with polynomials section, we'll know to begin with an outline:
Now, we take the first summand of , which is , and divide it by the first summand of , i.e., by :
.
This gives us the first element of the quotient, which we write above the line.
Next, we multiply the by the divisor , and subtract it from the dividend :
Just this one time, let's study in detail how the bottom line came to be:
Next, we take the first summand of the polynomial we just got, which is , and divide it by the first summand of , i.e., by :
.
This monomial goes to the top line, where we write our quotient, and we repeat the other steps as well:
Now, we have
,
which gives:
Lastly,
,
and
Great, we got ! This means that:
Nothing else, no remainder. This means that the is indeed divisible by , which means that is a root of . So next year is really going to be successful, how wonderful! And oh, with what's been happening recently, we do appreciate some good news, don't we?