© 2001 by CRC Press LLC
(17)
and for k = 3,4,…,N
(18)
(19)
It can be concluded from the above results that:
(20)
Now, we can summarize the procedure of Bairstow’s method for factorizing a
quadratic equation from an Nth-order polynomial as follows: (Some changes of
variables are made in the computer programs to be presented next, such as q’s are
changed to b’s, d
1
and d
2
are changed to u and v, respectively, and c’s are introduced
to represent the derivatives of q’s.)
(1) Specify the values of N, a
1
through a
N
, and a tolerance .
(2) Assume an initial guessing values for d
1
and d
2
for the divider D(x).
(3) Calculate the coefficients q
1
through q
N–2
for the quotient Q(x) using
Equations 8 to 10.
(4) Also use Equation 10 to calculate the coefficients q
N–1
and q
N
for the
remainder R(x).
(5) Test the absolute values of q
N–1
and q
N
. If they are both less than , two
root of P(x) are to be calculated by use of the quadratic formulas. The
order of P(x), N, is to be reduced by 2, and q
1
through q
N–2
are to become
a
1
through a
N–2
, respectively, and return to Step 2. This looping continues
until the quotient Q(x) is of order two or one, for which the root(s) easily
can be calculated.
(6) If the absolute value of either q
N–1
or q
N
is greater than ε, calculate the
partial derivatives of q
k
with respect to d
1
, c’s using Equations 14, 16, and
18 for k = 3,4,…,N. The derivatives of q
k
with respect to d
2
are already
available due to Equation 20.
(7) Use Equations 6 and 7 to calculate the adjustments d
1
and d
2
, noticing
that r
1
and r
2
are to be replaced by q
N–1
and q
N
, respectively. The iteration
is resumed by returning to Step 3.
Both QuickBASIC and FORTRAN versions of the program Bairstow coded
following the steps described above are to be presented next.
∂∂=−∂∂
()
−=−qd qdq
22 121
1
∂∂=−∂ ∂
()
−−∂ ∂
()
−−−
qd q ddq q dd
kk kk
1
1
11
12
12
∂∂=−∂∂
()
−−∂∂
()
+−−
qd qddq qdd
kkkk1
221
11
22
∂∂=∂∂ =…−
+
qdqd k N
kk1
21
12 1 , , ,for