How do you divide #(-x^4-8x^3-x^2+4x-2)/(x^2+4) #?
Quotient = -x² -8x +3
Remainder= 36x -14
Step 1] Write down the coefficients of the polynomial in the numerator.
Here, -1 -8 -1 +4 -2
[Note; if there's a missing degree in between, write the coeff. as 0]
Now, same with denominator
Coeff. +1 0 +4
Step 2] Now, after noting down the coeff. start with first coeff. of denominator. Using that, divide the numerator's first coeff.
Here, we get -1 on dividing.
Step 3] Now, the important step,
use this number (the one you got after dividing) and
multiply through with the coeffs. of the denominator (i.e. here, multiply -1 with all coeffs. of denominator) and
write this new set, just below the numerator, (starting from left)
Num. coeff. -1 -8 -1 +4 -2
New set -1 0 -4
Step 4] Now, in the next step, you just subtract those two sets, like this
-1 -8 -1 +4 -2
(-) -1 0 -4
0 -8 +3
Step 5] Now, step 2 repeats, not exactly same though.
Now the resultant numbers that we've got (here, -8 +3), they will act like the numerator.
Similarly, like in step 2, Divide the first coeff., by the first coeff. of the denominator.
We get -8.
And similarly again, multiply through with the denominator's coeffs.
And also, subtract it to get a new set again.
We have, [+4 and -2 have been just brought down]
-8 +3 +4 -2
(-) -8 0 -32
0 +3 +36 -2
Again (like step 5), doing same
+3 +36 -2
(-) +3 0 12
0 36 -14
Now, we've reached the end (as all coeffs. in the original numerator are done working with).
In doing so, we've collected important numbers we need (i.e. the quotient)
The numbers obtained when we divided numerator's (also the ones in further steps) first coeff. by denominator's first coeff.
Those numbers, here are -1 -8 +3
These numbers are actually the coeff. of our quotient. The x's are just to be inserted with correct degree.
Degree entry is simple, look at the degree of the original numerator (here 4, it's the highest power of x)
Divide this by the degree of denominator (here 2)
And we get 2 (this will be our degree of quotient, and subsequent powers will be one less)
Hence, the required quotient is
-1x² -8x + 3
With the remainder being 36x -14 (from the set obtained in last step, with correct indices for x)
Using place keepers of no value. For example