How to Guess and Check Real Roots — 2 — Testing Roots by Dividing Polynomials Using Long Division
Once you have used the rational root theorem to list all the possible rational roots of any polynomial, the next step is to test the roots. One way is to use long division of polynomials and hope that when you divide you get a remainder of 0. Once you have a list of possible rational roots, you then pick one and assume that it’s a root.
For example, consider the equation f(x) = 2x^{4} – 9x^{3} – 21x^{2} + 88x + 48, which has the following possible rational roots:
If x = c is a root, then x – c is a factor. So if you pick x = 2 as your guess for the root, x – 2 should be a factor. You can use long division to test if x – 2 is actually a factor and, therefore, x = 2 is a root.
Dividing polynomials to get a specific answer isn’t something you do every day, but the idea of a function or expression that’s written as the quotient of two polynomials is important for precalculus. If you divide a polynomial by another and get a remainder of 0, the divisor is a factor, which in turn gives a root.
In math lingo, the division algorithm states the following: If f(x) and d(x) are polynomials such that d(x) isn’t equal to 0, and the degree of d(x) isn’t larger than the degree of f(x), there are unique polynomials q(x) and r(x) such that
In plain English, the dividend equals the divisor times the quotient plus the remainder. You can always check your results by remembering this information.
Remember the mnemonic device Dirty Monkeys Smell Bad when doing long division to check your roots. Make sure all terms in the polynomial are listed in descending order and that every degree is represented. In other words, if x^{2} is missing, put in a placeholder of 0x^{2} and then do the division. (This step is just to make the division process easier.)
To divide two polynomials, follow these steps:

Divide.
Divide the leading term of the dividend by the leading term of the divisor. Write this quotient directly above the term you just divided into.

Multiply.
Multiply the quotient term from Step 1 by the entire divisor. Write this polynomial under the dividend so that like terms are lined up.

Subtract.
Subtract the whole line you just wrote from the dividend.
You can change all the signs and add if it makes you feel more comfortable. This way, you won’t forget signs.

Bring down the next term.
Do exactly what this says; bring down the next term in the dividend.

Repeat Steps 1–4 over and over until the remainder polynomial has a degree that’s less than the dividend’s.
The following list explains how to divide 2x^{4} – 9x^{3} – 21x^{2} + 88x + 48 by x – 2. Each step corresponds with the numbered step in the illustration in this figure.
(Note that using Descartes’s rule of signs, you find that this particular example may have positive roots, so it’s efficient to try a positive number here. If Descartes’s rule of signs had said that no positive roots existed, you wouldn’t test any positives!)

Divide.
What do you have to multiply x in the divisor by to make it become 2x^{4} in the dividend? The quotient, 2x^{3}, goes above the 2x^{4} term.

Multiply.
Multiply this quotient by the divisor and write it under the dividend.

Subtract.
Subtract this line from the dividend: (2x^{4} – 9x^{3}) – (2x^{4} – 4x^{3}) = –5x^{3}. If you’ve done the job right, the subtraction of the first terms always produces 0.

Bring down.
Bring down the other terms of the dividend.

Divide.
What do you have to multiply x by to make it –5x^{3}? Put the answer, –5x^{2}, above the –21x^{2}.

Multiply.
Multiply the –5x^{2} times the x – 2 to get –5x^{3} + 10x^{2}. Write it under the remainder with the degrees lined up.

Subtract.
You now have (–5x^{3} – 21x^{2}) – (–5x^{3} + 10x^{2}) = –31x^{2}.

Bring down.
The +88x takes its place.

Divide.
What to multiply by to make x become –31x^{2}? The quotient –31x goes above –21x^{2}.

Multiply.
The value –31x times (x – 2) is –31x^{2} + 62x; write it under the remainder.

Subtract.
You now have (–31x^{2} + 88x) – (–31x^{2} + 62x), which is 26x.

Bring down.
The +48 comes down.

Divide.
The term 26x divided by x is 26. This answer goes on top.

Multiply.
The constant 26 multiplied by (x – 2) is 26x – 52.

Subtract.
You subtract (26x + 48) – (26x – 52) to get 100.

Stop.
The remainder 100 has a degree that’s less than the divisor of x – 2.
Wow . . . now you know why they call it long division. You went through all that to find out that x – 2 isn’t a factor of the polynomial, which means that x = 2 isn’t a root.
If you divide by c and the remainder is 0, then the linear expression (x – c) is a factor and that c is a root. A remainder other than 0 implies that (x – c) isn’t a factor and that c isn’t a root.