Docsity

Muller Method-Numerical Analysis-Lecture Handouts, Lecture notes of Mathematical Methods for Numerical Analysis and Optimization

Toggle sidebar
bg1
Numerical Analysis –MTH603 VU
© Copyright Virtual University of Pakistan 1
1
Muller’s Method
Muller’s method is a generalization of the secant method, in the sense that it does not require the derivative
of the function. It is an iterative method that requires three starting points , ,
and . A parabola is constructed that passes through the three points; then the quadratic
formula is used to find a root of the quadratic for the next approximation. It has been proved that near a
simple root Muller's method converges faster than the secant method and almost as fast as Newton's
method. The method can be used to find real or complex zeros of a function and can be programmed to use
complex arithmetic.
Example
Do two iterations of Muller’s method to solve 3310xx
−
+= starting with 021
0.5, 0, 1xxx
=
==
Solution
3
00
3
11
22
0
110
202
21 1 2 0 12
12 1 2
2
10 1
1
0
( ) (0.5) 3(0.5) 1 0.375
( ) (1) 3 (1) 1 1
() 0301 1
0.375
0.5
0.5
()
()
(0.5)( 1) ( 0.375) (0.5) 1.5
0.25
2
2
fx f
fx f
fx f
cf
hxx
hxx
hf h h f hf
ahh h h
ffah
bh
c
xx
b
== − +=−
== − +=−
==−×+=+
==−
=−=
=−=
−+ +
=+
−−− +
==
−−
==−
∴= −
+24
2( 0.375)
0.5
2 4 4(1.5)(0.375)
0.75
0.5 0.33333 0.5
2 4 2.25
bac−−
−
=−
−− +
−
=− =
−− +
≺
docsity.com
pf3
pf4
pf5

Partial preview of the text

Download Muller Method-Numerical Analysis-Lecture Handouts and more Lecture notes Mathematical Methods for Numerical Analysis and Optimization in PDF only on Docsity!

Muller’s Method

Muller’s method is a generalization of the secant method, in the sense that it does not require the derivative of the function. It is an iterative method that requires three starting points , , and. A parabola is constructed that passes through the three points; then the quadratic formula is used to find a root of the quadratic for the next approximation. It has been proved that near a simple root Muller's method converges faster than the secant method and almost as fast as Newton's method. The method can be used to find real or complex zeros of a function and can be programmed to use complex arithmetic.

Example

Do two iterations of Muller’s method to solve x^3^ − 3 x + 1 = 0 starting with x 0 (^) = 0.5, x 2 (^) = 0, x 1 = 1 Solution

3 0 0 1 1 3 2 2 0 1 1 0 2 0 2 2 1 1 2 0 1 2 1 2 1 2

2 1 0 1 1 0

( ) (0.5) 3(0.5) 1 0. ( ) (1) 3(1) 1 1 ( ) 0 3 0 1 1

( ) ( ) (0.5)( 1) ( 0.375) (0.5) (^) 1.

2 2

f x f f x f f x f c f h x x h x x a h f^ h^ h^ f^ h f h h h h

b f^ f^ ah h x x c b

= = − + = − = = − + = − = = − × + = + = = − = − = = − = = −^ +^ +

= −^ − −^ + =

= −^ − = −

∴ = −

  • 2 4 0.5 2( 0.375) 2 4 4(1.5)(0.375) 0.5 0.75 0.33333 0. 2 4 2.

− b − ac = − − − − + = − − = − − +

≺

2 0 1 1 1 0 2 0 2 0 03 0 1 13 1 2 23 2 2 1 1 2 0 1 2 1 2 1 2 2 1 0 1 1

Take 0, 0.33333, 0. 0.16667, 0. (0.33333) 3 1 0. 3 1 0. 3 1 1 ( ) 0. ( ) 0. = 0. 2

x x x h x x h x x c f f x x f x x f x x a h f^ h^ h^ f^ h f h h h h

b f^ f^ ah h

= −^ +^ + =

= −^ − = −

(^0 )

0

2 0 1

For third iteration take, 0.333333, 0.3475, 0.

x x^ c b b ac

x

x x x

Graeffe’s Root Squaring Method

GRAEFFE’S ROOT SQUARING METHOD is particularly attractive for finding all the roots of a

polynomial equation. Consider a polynomial of third degree f ( ) x = a 0 + a x 1 + a x 2^2 + a x 3 3

0 1 2 2 3 3 0 1 2 2 3 3 32 6 22 1 3 4 12 0 2 2 02 32 3 22 1 3 2 12 0 2 02

f x a a x a x a x f x a a x a x a x f x f x a x a a a x a a a x a f x f x a t a a a t a a a t a

The roots of this equation are squares or 2 i ( i = 1), powers of the original roots. Here i = 1 indicates that squaring is done once. The same equation can again be squared and this squaring process is repeated as many times as required. After each squaring, the coefficients become large and overflow is possible as i increase.

Suppose, we have squared the given polynomial ‘ i’ times, then we can estimate the value of the roots by evaluating 2i root of

1

i , 1, 2, , i

a (^) i n a (^) −

Where n is the degree of the given polynomial.

For i = 3, the polynomial is (^3) (9604 2786) 2 (1940449 254016) 1679616 (^3 6818 216864333 ) The roots of polynomial are (^36) 0.85714, 49 1.8708, 49 14

x x x x x x

x x x x x x

4 4 4

8

Still better estimates of the roots obtained from polynomial (3) are (^1679616) 0.99949, 1686433 1686433 6818

Similarly the roots of the p oynomial are

The exact values of the roots of the given polynomial are 1, 2 and 3.

Example Apply Graeffe,s root squaring method to solve the equation x^3^ − 8 x^2 + 17 x − 10 = 0

Solution

3 2

2 2

f x x x x here three chnges are observed form ve to ve ve to ve ve to ve hence according to deccarte rule of signs f x may have three positive roots rewriting eq as x x x

2 2 2 3 2 2 2 2 2 2 2 3 2 2 2 2

and squaring on both sides and putting x y y y y y y y y y y y putting y z we get z z z z z z z z z z z

2 2 2 3 2 2 8 3 2 8

squaring again and putting z u we get u u u u u u u u u u u

1 2, 3, 1 2 3 1 1 1/ 8^1 1/ 8^ 1/ 8 2 2 1/ 8^2 1 1/ 8^ 1/ 8 3 3 1/ 8^3 2 1/ 8^8

if the roots of the eq are p p p and those of eqiuation are q q q p q p q p q

here f (5) f (2) f (1) 0 hence all are the roots of the eqiuation

Example Find all the root of the equation x^4^ − 3 x + 1 = 0

Solution

Solution Expanding f ( x ) by Taylor’s series and retaining up to second order term, 0 0 0 0 2 0

f x f x x x f x x x (^) f x

= = + −^ ′

+ −^ ′′

Therefore, 1 0 1 0 0 1 0 2 0

f x f x x x f x x x (^) f x

+ −^ ′′ =

This can also be written as 2 0 1 0 0 0 0 0 2

( ) ( ) ( ) 1 [^ (^ )] ( ) 0

2 [ ( )]

f x x x f x f^ x f x f x

+ − ′^ + ′′ =

Thus, the Newton-Raphson extended formula is given by 0 0 2 1 0 3 0 0 0

( ) 1 [ ( )]

( ) 2 [ (^ )

( )]

x x f^ x^ f^ x f x f x (^) f x

This is also known as Chebyshev’s formula of third order