EE 616 Computer Aided Analysis of Electronic Networks Lecture 8

Slides:



Advertisements
Similar presentations
Lecture 5 Newton-Raphson Method
Advertisements

Numerical Solution of Nonlinear Equations
Line Search.
Roundoff and truncation errors
CSE 330: Numerical Methods
1 EE 616 Computer Aided Analysis of Electronic Networks Lecture 13 Instructor: Dr. J. A. Starzyk, Professor School of EECS Ohio University Athens, OH,
1 EE 616 Computer Aided Analysis of Electronic Networks Lecture 3 Instructor: Dr. J. A. Starzyk, Professor School of EECS Ohio University Athens, OH,
Chapter 4 Roots of Equations
Lecture #18 EEE 574 Dr. Dan Tylavsky Nonlinear Problem Solvers.
1 EE 616 Computer Aided Analysis of Electronic Networks Lecture 5 Instructor: Dr. J. A. Starzyk, Professor School of EECS Ohio University Athens, OH,
1 EE 616 Computer Aided Analysis of Electronic Networks Lecture 13 Instructor: Dr. J. A. Starzyk, Professor School of EECS Ohio University Athens, OH,
1 EE 616 Computer Aided Analysis of Electronic Networks Lecture 12 Instructor: Dr. J. A. Starzyk, Professor School of EECS Ohio University Athens, OH,
A few words about convergence We have been looking at e a as our measure of convergence A more technical means of differentiating the speed of convergence.
Chapter 1 Introduction The solutions of engineering problems can be obtained using analytical methods or numerical methods. Analytical differentiation.
1 EE 616 Computer Aided Analysis of Electronic Networks Lecture 11 Instructor: Dr. J. A. Starzyk, Professor School of EECS Ohio University Athens, OH,
1 EE 616 Computer Aided Analysis of Electronic Networks Lecture 7 Instructor: Dr. J. A. Starzyk, Professor School of EECS Ohio University Athens, OH,
1 EE 616 Computer Aided Analysis of Electronic Networks Lecture 6 Instructor: Dr. J. A. Starzyk, Professor School of EECS Ohio University Athens, OH,
1 EE 616 Computer Aided Analysis of Electronic Networks Lecture 12 Instructor: Dr. J. A. Starzyk, Professor School of EECS Ohio University Athens, OH,
1 EE 616 Computer Aided Analysis of Electronic Networks Lecture 9 Instructor: Dr. J. A. Starzyk, Professor School of EECS Ohio University Athens, OH,
1 EE 616 Computer Aided Analysis of Electronic Networks Lecture 5 Instructor: Dr. J. A. Starzyk, Professor School of EECS Ohio University Athens, OH,
Systems of Non-Linear Equations
1 EE 616 Computer Aided Analysis of Electronic Networks Lecture 4 Instructor: Dr. J. A. Starzyk, Professor School of EECS Ohio University Athens, OH,
Lecture Notes Dr. Rakhmad Arief Siregar Universiti Malaysia Perlis
Newton's Method for Functions of Several Variables
1 EE 616 Computer Aided Analysis of Electronic Networks Lecture 10 Instructor: Dr. J. A. Starzyk, Professor School of EECS Ohio University Athens, OH,
1 EE 616 Computer Aided Analysis of Electronic Networks Lecture 14 Instructor: Dr. J. A. Starzyk, Professor School of EECS Ohio University Athens, OH,
Fin500J: Mathematical Foundations in Finance Topic 3: Numerical Methods for Solving Non-linear Equations Philip H. Dybvig Reference: Numerical Methods.
8/30/ Secant Method Major: All Engineering Majors Authors: Autar Kaw, Jai Paul
© 2010 Pearson Education Inc.Goldstein/Schneider/Lay/Asmar, CALCULUS AND ITS APPLICATIONS, 12e– Slide 1 of 57 Chapter 11 Taylor Polynomials and Infinite.
Newton-Raphson Method Electrical Engineering Majors Authors: Autar Kaw, Jai Paul Transforming Numerical Methods Education.
Newton-Raphson Method
9/20/ Secant Method Civil Engineering Majors Authors: Autar Kaw, Jai Paul
Simpson Rule For Integration.
Lecture Notes Dr. Rakhmad Arief Siregar Universiti Malaysia Perlis
Lecture 8 Numerical Analysis. Solution of Non-Linear Equations Chapter 2.
Newton-Raphson Method Chemical Engineering Majors Authors: Autar Kaw, Jai Paul Transforming Numerical Methods Education.
Lecture 6 Numerical Analysis. Solution of Non-Linear Equations Chapter 2.
Numerical Methods for Engineering MECN 3500
11/30/ Secant Method Industrial Engineering Majors Authors: Autar Kaw, Jai Paul
559 Fish 559; Lecture 25 Root Finding Methods. 559 What is Root Finding-I? Find the value for such that the following system of equations is satisfied:
Dr. Jie Zou PHY Chapter 2 Solution of Nonlinear Equations: Lecture (II)
Circuits Theory Examples Newton-Raphson Method. Formula for one-dimensional case: Series of successive solutions: If the iteration process is converged,
Newton-Raphson Method. Figure 1 Geometrical illustration of the Newton-Raphson method. 2.
Lecture 5 - Single Variable Problems CVEN 302 June 12, 2002.
1 EE 616 Computer Aided Analysis of Electronic Networks Lecture 12 Instructor: Dr. J. A. Starzyk, Professor School of EECS Ohio University Athens, OH,
2/2/ Secant Method Electrical Engineering Majors Authors: Autar Kaw, Jai Paul
Newton-Raphson Method Computer Engineering Majors Authors: Autar Kaw, Jai Paul Transforming Numerical Methods Education.
The formulae for the roots of a 3rd degree polynomial are given below
6/13/ Secant Method Computer Engineering Majors Authors: Autar Kaw, Jai Paul
Project on Newton’s Iteration Method Presented by Dol Nath Khanal Project Advisor- Professor Dexuan Xie 05/11/2015.
CSE 330: Numerical Methods. What is true error? True error is the difference between the true value (also called the exact value) and the approximate.
CSE 330: Numerical Methods. Introduction The bisection and false position method require bracketing of the root by two guesses Such methods are called.
Newton-Raphson Method
Numerical Methods Some example applications in C++
Newton-Raphson Method
Root Finding Methods Fish 559; Lecture 15 a.
Secant Method.
The LaGrange Error Estimate
Secant Method – Derivation
Newton-Raphson Method
Computers in Civil Engineering 53:081 Spring 2003
Newton-Raphson Method
SOLUTION OF NONLINEAR EQUATIONS
Chemical Engineering Majors Authors: Autar Kaw, Jai Paul
Newton-Raphson Method
Copyright © Cengage Learning. All rights reserved.
MATH 1910 Chapter 3 Section 8 Newton’s Method.
1 Newton’s Method.
EE 616 Computer Aided Analysis of Electronic Networks Lecture 12
CISE-301: Numerical Methods Topic 1: Introduction to Numerical Methods and Taylor Series Lectures 1-4: KFUPM CISE301_Topic1.
Presentation transcript:

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 4/16/2017 Outline Roots of Functions and Polynomials Newton-Raphson method Laguerre’s method Noniterative method based on Taylor expansion

Roots of Functions and Polynomials 4/16/2017 Roots of Functions and Polynomials The transfer function obtained by using polynomial approximation will be represented in the symbolic form by the rational function In many applications we need to know zeros and roots of this function, so the following form is desired

Roots of Functions and Polynomials (cont’d) 4/16/2017 Roots of Functions and Polynomials (cont’d) where are roots (zeros) of N(s) and are roots of 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 and expand the function around this point: If we neglect higher order terms and want to find such that then and

Roots of Functions and Polynomials (cont’d) 4/16/2017 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

Newton – Raphson method 4/16/2017 Newton – Raphson method The Newton-Raphson method is defined by the following algorithm: 1. Set k=0 and select 2. Calculate 3. Calculate 4. If stop , else set k=k+1 and go to step2. The method converges quickly to the solution, provided that initial point was correctly chosen.

Newton – Raphson method (cont’d) 4/16/2017 Newton – Raphson method (cont’d) The method which always converges to a root of polynomial is called Laguerre’s method and is defined by where is a polynomial of degree n. It is advantageous to first compute roots with small absolute values, thus initial estimate should start with and .

Laguerre’s method - example 4/16/2017 Laguerre’s method - example Find one root of the polynomial We have And Start at Calculate so

Laguerre’s method - example 4/16/2017 Laguerre’s method - example Second iteration:

Laguerre’s method - example 4/16/2017 Laguerre’s method - example Third iteration: Exact solution to this problem is:

Noniterative method based on Taylor expansion 4/16/2017 Noniterative method based on Taylor expansion In the Newton-Raphson method the increment D is used to estimate the next iterate 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.

Noniterative method based on Taylor expansion (cont’d) 4/16/2017 Noniterative method based on Taylor expansion (cont’d) where The following algorithm uses derivatives at to find Set Count = 0 Formulate equation 3. Find (Delta(i) in the algorithm) notice that a more precise estimate of delta can be found from the polynomial equation in 2.

Noniterative method based on Taylor expansion (cont’d) 4/16/2017 Noniterative method based on Taylor expansion (cont’d) 4. Find function value and its derivatives in the (recomputed elements of the expansion) (function Psi in the algorithm) by differentiating equation in 2. As we approach the solution gets smaller and smaller. 5. Increase count by 1 replace and repeat 2, 3, and 4 until 6. Solution

Noniterative method based on Taylor expansion (cont’d) 4/16/2017 Noniterative method based on Taylor expansion (cont’d) Notice that in this algorithm function and its derivatives are only calculated at the initial point The algorithm uses 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 function x = solve-2(F,x0) % Nonlinear Equations Solver 4/16/2017 Matlab code function x = solve-2(F,x0) % Nonlinear Equations Solver % Janusz Starzyk % F is a vector of a function and its % derivatives computed at x0 Psi(:)=F; eps=le-14; count=0; deltak=l; % the main loop while abs(deltak)>eps count=count+l; % solve for delta for i=l:(size(F)-l) Delta(i)=(-Psi(l)/(Psi(i+l)/fact(i)))^(1/i); end deltak=min(Delta(:)); delta(count)=deltak, % precompute elements of the expansion

Matlab code for i=l:size(F) FnDeln(i)=Psi(i)*deltak^(i-1); end 4/16/2017 Matlab code for i=l:size(F) FnDeln(i)=Psi(i)*deltak^(i-1); end % find functions psi Psi(i)=0; for j=i:size(F) Psi(i)=Psi(i)+FnDeln(j)/fact(j-i); end % delta converged del=l; for i=count:-1:1 del=l+delta(i)*del; x=x0+del-1; function y=fact(i) % this function evaluates factorial of i y=1; for ii=l:i y=y*ii; The above functions are stored as solve-2.m and fact.m respectively