Bairstow's Method Calculator Quadratic Factors and All the Roots of a Polynomial Bairstow's method finds a quadratic factor x 2 − r x − s x^2 - rx - s x 2 − r x − s of a polynomial by Newton's method on r r r and s s s , using only real arithmetic. Dividing it out and repeating gives every root, complex pairs included.
Step-by-Step Worked Example HAND-HOLDING TUTORIAL OUR PROBLEM TO SOLVE
Find all roots of x 4 − 1.1 x 3 + 2.3 x 2 + 0.5 x + 3.3 = 0 x^4 - 1.1x^3 + 2.3x^2 + 0.5x + 3.3 = 0 x 4 − 1.1 x 3 + 2.3 x 2 + 0.5 x + 3.3 = 0 , starting from r = s = − 1 r = s = -1 r = s = − 1 .
STEP 01 • FIRST DIVISION: THE b NUMBERS
Coefficients a 4 , … , a 0 = 1 , − 1.1 , 2.3 , 0.5 , 3.3 a_4, \dots, a_0 = 1,\ -1.1,\ 2.3,\ 0.5,\ 3.3 a 4 , … , a 0 = 1 , − 1.1 , 2.3 , 0.5 , 3.3 ; start with b 4 = a 4 = 1 b_4 = a_4 = 1 b 4 = a 4 = 1 :
b 3 = − 1.1 + ( − 1 ) ( 1 ) = − 2.1 , b 2 = 2.3 + ( − 1 ) ( − 2.1 ) + ( − 1 ) ( 1 ) = 3.4 b_3 = -1.1 + (-1)(1) = -2.1, \qquad b_2 = 2.3 + (-1)(-2.1) + (-1)(1) = 3.4 b 3 = − 1.1 + ( − 1 ) ( 1 ) = − 2.1 , b 2 = 2.3 + ( − 1 ) ( − 2.1 ) + ( − 1 ) ( 1 ) = 3.4 b 1 = 0.5 + ( − 1 ) ( 3.4 ) + ( − 1 ) ( − 2.1 ) = − 0.8 , b 0 = 3.3 + ( − 1 ) ( − 0.8 ) + ( − 1 ) ( 3.4 ) = 0.7 b_1 = 0.5 + (-1)(3.4) + (-1)(-2.1) = -0.8, \qquad b_0 = 3.3 + (-1)(-0.8) + (-1)(3.4) = 0.7 b 1 = 0.5 + ( − 1 ) ( 3.4 ) + ( − 1 ) ( − 2.1 ) = − 0.8 , b 0 = 3.3 + ( − 1 ) ( − 0.8 ) + ( − 1 ) ( 3.4 ) = 0.7 b 1 b_1 b 1 and b 0 b_0 b 0 are the remainder: they are not 0, so x 2 + x + 1 x^2 + x + 1 x 2 + x + 1 is not yet a factor.
STEP 02 • SECOND DIVISION: THE c NUMBERS
c 3 = − 2.1 + ( − 1 ) ( 1 ) = − 3.1 c_3 = -2.1 + (-1)(1) = -3.1 c 3 = − 2.1 + ( − 1 ) ( 1 ) = − 3.1 c 2 = 3.4 + ( − 1 ) ( − 3.1 ) + ( − 1 ) ( 1 ) = 5.5 c_2 = 3.4 + (-1)(-3.1) + (-1)(1) = 5.5 c 2 = 3.4 + ( − 1 ) ( − 3.1 ) + ( − 1 ) ( 1 ) = 5.5 c 1 = − 0.8 + ( − 1 ) ( 5.5 ) + ( − 1 ) ( − 3.1 ) = − 3.2 c_1 = -0.8 + (-1)(5.5) + (-1)(-3.1) = -3.2 c 1 = − 0.8 + ( − 1 ) ( 5.5 ) + ( − 1 ) ( − 3.1 ) = − 3.2 STEP 03 • CORRECT r AND s
5.5 Δ r − 3.1 Δ s = 0.8 , − 3.2 Δ r + 5.5 Δ s = − 0.7 5.5\,\Delta r - 3.1\,\Delta s = 0.8, \qquad -3.2\,\Delta r + 5.5\,\Delta s = -0.7 5.5 Δ r − 3.1 Δ s = 0.8 , − 3.2 Δ r + 5.5 Δ s = − 0.7 Δ r = 0.109690 , Δ s = − 0.063453 ⇒ r = − 0.890310 , s = − 1.063453 \Delta r = 0.109690, \ \Delta s = -0.063453 \quad\Rightarrow\quad r = -0.890310, \ s = -1.063453 Δ r = 0.109690 , Δ s = − 0.063453 ⇒ r = − 0.890310 , s = − 1.063453 STEP 04 • REPEAT UNTIL r AND s SETTLE
k b₁, b₀ (remainder) Δr, Δs new r, s 1 −0.8, 0.7 0.109690, −0.063453 −0.890310, −1.063453 2 −0.061931, 0.155698 −0.009715, −0.036708 −0.900025, −1.100161 3 0.000356, −0.000706 0.000025, 0.000161 −0.9, −1.1 4 0.000000006, 0.0000000001 ≈ 0, ≈ 0 −0.9, −1.1
The remainder is now 0, so x 2 − r x − s = x 2 + 0.9 x + 1.1 x^2 - rx - s = x^2 + 0.9x + 1.1 x 2 − r x − s = x 2 + 0.9 x + 1.1 is a factor.
STEP 05 • DEFLATE AND SOLVE THE QUADRATICS
x 4 − 1.1 x 3 + 2.3 x 2 + 0.5 x + 3.3 = ( x 2 + 0.9 x + 1.1 ) ( x 2 − 2 x + 3 ) x^4 - 1.1x^3 + 2.3x^2 + 0.5x + 3.3 = (x^2 + 0.9x + 1.1)(x^2 - 2x + 3) x 4 − 1.1 x 3 + 2.3 x 2 + 0.5 x + 3.3 = ( x 2 + 0.9 x + 1.1 ) ( x 2 − 2 x + 3 ) x = − 0.9 ± 0.81 − 4.4 2 = − 0.45 ± 0.947365 i x = \frac{-0.9 \pm \sqrt{0.81 - 4.4}}{2} = -0.45 \pm 0.947365i x = 2 − 0.9 ± 0.81 − 4.4 = − 0.45 ± 0.947365 i x = 2 ± 4 − 12 2 = 1 ± 1.414214 i x = \frac{2 \pm \sqrt{4 - 12}}{2} = 1 \pm 1.414214i x = 2 2 ± 4 − 12 = 1 ± 1.414214 i The quotient b 4 , b 3 , b 2 = 1 , − 2 , 3 b_4, b_3, b_2 = 1, -2, 3 b 4 , b 3 , b 2 = 1 , − 2 , 3 from the last division is the second factor.
FINAL CONCLUSION x = −0.45 ± 0.947i, 1 ± 1.414i x = − 0.45 ± 0.9474 i , 1 ± 2 i x = -0.45 \pm 0.9474i, \ 1 \pm \sqrt2\,i x = − 0.45 ± 0.9474 i , 1 ± 2 i Four complex roots from real arithmetic only. The calculator below opens on this polynomial.