Documente Academic
Documente Profesional
Documente Cultură
Hybrid
Methods
Roots of Equations
Bracketing
Methods
Bisection method
False Position
Method
Simple fixed point
iteration
Roots of
Equations
Newton Raphson
Open Methods
System of
Nonlinear
Equations
Roots of
polynomials
Hybrid
Methods
Secant
Modified Newton
Raphson
Muller Method
Roots of Polynomials
The roots of polynomials such as
f n ( x) ao a1 x a2 x an x
2
Conventional Methods
The efficacy of bracketing and open methods
depends on whether the problem being solved
involves complex roots. If only real roots exist,
these methods could be used. However,
Mller Method
Mllers method obtains a root estimate by
projecting a parabola to the x axis through three
Figure
function values.
7.3
Mller Method
The method consists of deriving the
coefficients of parabola that goes
through the three points:
1. Write the equation in a convenient
form:
f 2 ( x ) a ( x x 2 ) b ( x x2 ) c
2
f ( xo ) a ( xo x2 ) 2 b( xo x2 ) c
f ( x1 ) a ( x1 x2 ) 2 b( x1 x2 ) c
f ( x2 ) a ( x2 x 2 ) 2 b ( x 2 x2 ) c
f ( x1 ) f ( x2 ) a ( x1 x2 ) 2 b( x1 x2 )
7
If
h o x1 - x o
h1 x 2 - x1
f ( x1 ) f ( xo )
f ( x2 ) f ( x1 )
o
1
x1 xo
x2 x1
(ho h1 )b (ho h1 ) 2 a ho o h11
h1b h a h11
2
1
1 o
a
h1 ho
Solved for
a and b
b ah1 1 c f ( x2 )
x3 x2
2c
b b 4ac
2
x3 x2
a
100%
x3
term yields two roots, the sign is chosen to agree with b. This will
result in a largest denominator, and will give root estimate that is
closest to x2.
9
10
Bairstows Method
i n 1 to 2
11
f n 2 ( x) b2 b3 x bn 1 x n 3 bn x n 2
R b1 ( x r ) bo
Using a simple recurrence relationsh ip
bn an
bn-1 an-1 rbn
bi ai rbi 1 sbi 2
i n-2 to 0
12
13
b1
b1
b1 (r r , s s ) b1
r
s
r
s
bo
bo
bo (r r , s s ) bo
r
s
r
s
assuming that the initial guesses are adequately
close to the values of r and s at roots. The changes
in s and r needed to improve our guesses will be
estimated as
b1
b1
r
s b1
r
s
bo
bo
r
s bo
r
s
14
cn bn
cn 1 bn 1 rcn
ci bi rci 1 sci 2 i n 2 to 2
where
bo
bo b1
c1
c2
r
s r
b1
c3
s
15
Then
c2 r c3 s b1
c1r c2 s bo
a ,r
100%
r
a,s
100%
r
16
r r 2 4s
x
2
At this point three possibilities exist:
1. The quotient is a third-order polynomial or greater. The
previous values of r and s serve as initial guesses and
Bairstows method is applied to the quotient to evaluate
new r and s values.
2. The quotient is quadratic. The remaining two roots are
evaluated directly, using the above eqn.
3. The quotient is a 1st order polynomial. The remaining
single root can be evaluated simply as x=-s/r.
Refer to Tables pt2.3 and pt2.4
17
MATLAB Function:
fzero
Bracketing methods reliable but slow
Open methods fast but possibly
unreliable
MATLAB fzero fast and reliable
fzero: find real root of an equation (not
suitable for double root!)
fzero(function, x0)
fzero(function, [x0 x1])
>> root=fzero('multi_func',-10)
fzero unable to find the double root of
root =
f(x) = x5 11x4 + 46x3 90x2 + 81x 27 = 0
2.99997215011186
>> root=fzero('multi_func',1000)
root =
2.99996892915965
>> root=fzero('multi_func',[-1000 1000])
root =
2.99998852581534
>> root=fzero('multi_func',[-2 2])
??? Error using ==> fzero
The function values at the interval endpoints must differ in sign.
>> root=multiple2('multi_func','multi_dfunc','multi_ddfunc');
enter initial guess: xguess = -1
allowable tolerance: es = 1.e-6
maximum number of iterations: maxit = 100
Newton method has converged
step
x
1 -1.00000000000000
2
1.54545454545455
3
1.34838709677419
4
1.12513231297383
5
1.01327476262380
6
1.00013392759869
7
1.00000001342083
8
1.00000001342083
f
-256.000000000000000
-0.915585746130091
-0.546825709009667
-0.103193137485462
-0.001381869252874
-0.000000143464007
0.000000000000000
0.000000000000000
df/dx
d2f/dx2
448.000000000000000 -608.000000000000000
-1.468752134417059
5.096919609316331
-2.145926990290406
1.190673693397343
-1.484223690473826
-8.078669685137726
-0.206108293568889 -15.056858096928863
-0.002142195919063 -15.990358504281403
-0.000000214733291 -15.999999033700192
-0.000000214733291 -15.999999033700192
...
18
19
20
21
22
27.3726
72.6274
18
82
4.74517
Procedure
initial
search
search
Search in both
search
directions x0 x
search
...
-6587.13
-22769.2
-3457.1
-26192.5
319.67
search
search
search
search
search
interpolation
interpolation
interpolation
interpolation
interpolation
interpolation
interpolation