We want to divide:
anxn + an-1xn-1 + ... + a0
by x2 - px - q
to find a Quotient and Remainder
|
We write:
anxn + an-1xn-1 + an-2xn-2+...
= (bn-2xn-2
+ bn-3xn-3
+ bn-4xn-4 + ... + b1x + b0)
(x2 - px - q ) + R
now multiply and collect like terms
The right-side is then:
bn-2xn +
(bn-3 -
pbn-2)xn-1 +
(bn-4 -
pbn-3 - qbn-2)xn-2
+
(bn-5 -
pbn-4 - qbn-3)xn-3 +
... + (- pb0 - qb1)x
- qb0 + R
Equate coefficients, "transpose" ... and get the relationship between the coefficients:
bn-2 = an
bn-3 = pbn-2 + an-1
bn-4 = pbn-3 + qbn-2 + an-2
bn-5 = pbn-4 + qbn-3 + an-3
and this scheme is repeated until the last Dividend coefficient, a0, is used.
Each coefficient is then given in terms of the earlier coefficients
and, of course, the coefficients in the Dividend
Note:
When a1 appears on the right-side of the above formulas, we'll have
b-1 on the left-side !
b-1 = pb0 + qb1 + a1
That actually gives the first term in the remainder R.
When a0 appears on the right-side of the above formulas we ignore the term in p
and get the last term in R.
b-2 = qb0 + a0
That gives the last term in the remainder R.
So
R = b-1x + b-2
Note:
The coefficients with negative subscript give the Remainder
... so we colour them magenta
A graphical scheme (as a memory aid, perhaps) is this
Multiplications by q and p and addition of a Dividend coefficient are shown.
A few "0" coefficients are added to retain some symmetry
Each column is added to generate a b-coefficient (as shown in the Example)
|
|
Example 3:
(x4 - 4x2 + 12 x - 9)
/ (x2 - 2x + 3)
Note: We expect
Quotient = b2x2 +
b1x + b0
and some Remainder = b-1x + b-2
Note: n = 4 and
a4 = 1 a3 = 0 a2 = -4 a1 = 12 a0 = -9
and p = 2
and q = -3.
- b2 = a4 = 1
- b1 = pb2 + a3
= (2)(1)+(0) = 2
- b0 = pb1
+ qb2 + a2 =
(2)(2)+(-3)(1)+(-4) = -3
- b-1 = pb0
+ qb1 + a1 =
(2)(-3)+(-3)(2)+(12) = 0
- b-2 =
qb0 + a0 =
(-3)(3)+(-9) = 0
|
|
Note:
A more convenient diagram is shown below, where the result of multiplying is shown below.
Neither p nor q is involved in step #1 above
(so they are missing from the first column in the diagram).
q is not involved in step #2 (so it is missing from the second column in the diagram).
p is not involved in the last step above (so it is missing from the last column in the diagram).
The top row has the coefficients in the Dividend
The next row has the result of multiplications by q = -3
The next row has the result of multiplications by p = 2
The last row is the sum of the numbers above it ... and has the coefficients
associated with the Quotient and Remainder
|
Conclusion?
(x4 - 4x2 + 12 x - 9)
/ (x2 - 2x + 3) =
b2x2 +
b1x + b0
= x2 + 2x - 3 and
Remainder
= b-1x + b-2
= 0
Example 4:
(x3 + 2x2 + 3 x + 5)
/ (x2 - x - 1)
Note:
p = 1
and q = 1
and the Dividend coefficients are: 1 2 3 5
We expect
Quotient = b1x + b0
and
Remainder = b-1x + b-2
- b1 = a3 = 1
- b0 = pb1 + a2
= (1)(1)+(2) = 3
- b-1 = pb0
+ qb1 + a1 =
(1)(3)+(1)(1)+(3) = 7
- b-2 =
qb0 + a0 =
(1)(3)+(5) = 8
We ignore the p term in step 4.
|
|
Conclusion?
(x3 + 2x2 + 3 x + 5)
/ (x2 - x - 1)
= 1x + 3 and
Remainder
= 7x + 8
That is:
(x3 + 2x2 + 3 x + 5)
/ (x2 - x - 1) = x + 3
+ (7x + 8 ) / ( x3 + 2x2 + 3 x + 5 )
|