Docsity

Métodos Iterativos para Encontrar Raízes: Newton-Raphson, Laguerre e Expansão de Taylor, Notas de estudo de Engenharia Elétrica

Pré-visualização parcial do texto

Baixe Métodos Iterativos para Encontrar Raízes: Newton-Raphson, Laguerre e Expansão de Taylor e outras Notas de estudo em PDF para Engenharia Elétrica, somente na Docsity!

EE 616

Computer Aided Analysis of Electronic Networks

Lecture 8

Instructor: Dr. J. A. Starzyk, Professor

School of EECS

Ohio University

Athens, OH, 45701

Outline

Roots of Functions and Polynomials

Newton-Raphson method

Laguerre’s method

Noniterative method based on Taylor expansion

Roots of Functions and Polynomials (cont’d)

where

i

z

are roots (zeros) of N(s) and

i

p are roots of

D ( s )

The best know general method for finding roots is the Newton-

Raphson method. This is an iterative method that uses function

and its derivative values. We start with an initial point

0

X

and expand the function

f ( x ) around this point:

( ) ( ) ( )( ) ...

0 1 0

'

1 0

f xf xf x xx

If we neglect higher order terms and want to find

1

x such that

1

f x

then

0 0

'

1 0

x  x f x  f x

and

( )

( )

0

'

0

1 0

f x

f x

xx

Roots of Functions and Polynomials (cont’d)

Because this is an approximated solution we have to iterate.

The iterations can be illustrated as shown on the following figure

x

f

0

x

f

1

x

0

x

( )

0

'

tg   f x

Newton – Raphson method (cont’d)

The method which always converges to a root of polynomial

( )

0

P x is called Laguerre’s method and is defined by

k k

n

k

n

k k

p x H

np x

x x

'

1

where

         

k

n

k

n

k

n

k

H n n P x nP x P x

"

2

'

and P ( x )

n

is a polynomial of degree n. It is advantageous to

first compute roots with small absolute values, thus initial

estimate should start with

0

x 

8

Laguerre’s method - example

Find one root of the polynomial

5 4 3 2

5

Pxxxxx

' 4 3 2

5

P x  x  x  x  x 

'' 3 2

5

P x  x  x  x 

0

x

0

5

P x    6

' 0

5

P x    26

'' 0

5

P x

We have

And

Start at

Calculate

4 4 6 5 1 26 56

0 2

H       7. 48

0

H

so

' 0 0

5

0

5

1 0

P x H

P x

x x

selected to havex x small

1 0

Laguerre’s method - example

Third iteration:

  0. 0012

2

5

P x    0. 0. 71

' 2

5

P x    2. 78

'' 2

5

P x

4  4  0. 071  5 0. 0012 2. 78  0. 014

2 2

H      

  1. 118

2

H

 

 

  1. 48

  2. 071 0. 118

5 0. 0012

  1. 45

5

' 2 2

5

2

5 3 2



 

 

 

P x H

P x

x x

Exact solution to this problem is:

  1. 5

1 2 3

xxx 

x  j

4

x  j

5

Noniterative method based on Taylor expansion

In the Newton-Raphson method the increment  is used to

estimate the next iterate

1 0 '

0

0

and x x

f

f

We can generalize this approach by using higher order derivatives to

estimate the increment of the function value which brings it directly

to a solution of the nonlinear equation.

x

 , , ...

''

0

'

0 , 0



0

x

0

x

Noniterative method based on Taylor expansion (cont’d)

  1. Find function value and its derivatives in

(recomputed elements of the expansion)

count

i

(function Psi in the algorithm)

by differentiating equation in 2. As we approach the solution

count

gets smaller and smaller.

0 0 count

x by x 

and repeat 2, 3, and 4 until

count ps

  1. Solution

( 1 ( 1 ( 1 ..( 1 ))))

0 1 2 count

     

0

x x

  1. Increase count by 1 replace

count

x 

0

Noniterative method based on Taylor expansion (cont’d)

Notice that in this algorithm function and its derivatives are

only calculated at the initial point

0

x

The algorithm uses

i

i

i

dx

d f ( x )

0

0

to evaluate

function and its derivatives at new point, rather than

repeating

system analysis to get them

The Matlab code is as follows:

Matlab code

for i=l:size(F)

FnDeln(i)=Psi(i)*deltak^(i-1);

end

% find functions psi

for i=l:size(F)

Psi(i)=0;

for j=i:size(F)

Psi(i)=Psi(i)+FnDeln(j)/fact(j-i);

end

end

end % delta converged

del=l;

for i=count:-1:

del=l+delta(i)*del;

end

x=x0+del-1;

function y=fact(i)

% this function evaluates factorial of i

y=1;

for ii=l:i

y=y*ii;

end