Top Banner
Today’s class Roots of Equations Polynomials Numerical Methods, Lecture 6 1 Prof. Jinbo Bi CSE, UConn
40

Today’s class

Mar 15, 2016

Download

Documents

lars-patrick

Today’s class. Roots of Equations Polynomials. Systems of nonlinear equations. Locate the roots of a set of simultaneous equations Use extensions of the various open methods Fixed-point iteration is not practical for nonlinear systems. Systems of nonlinear equations. - PowerPoint PPT Presentation
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: Today’s class

Today’s class• Roots of Equations• Polynomials

Numerical Methods, Lecture 6 1 Prof. Jinbo Bi

CSE, UConn

Page 2: Today’s class

• Locate the roots of a set of simultaneous equations

• Use extensions of the various open methods

• Fixed-point iteration is not practical for nonlinear systems

Numerical Methods, Lecture 6 2 Prof. Jinbo Bi

CSE, UConn

Systems of nonlinear equations

Page 3: Today’s class

• Using Newton-Raphson method• First order Taylor approximation

• Solve for xi+1 and yi+1

Systems of nonlinear equations

yf

yyxf

xxyxfyxf iii

iiiii

,1

1,1

1,11,1 )()(),(),(

yf

yyxf

xxyxfyxf iii

iiiii

,2

1,2

1,21,2 )()(),(),(

Numerical Methods, Lecture 6 3 Prof. Jinbo Bi

CSE, UConn

Page 4: Today’s class

Numerical Methods, Lecture 6 4 Prof. Jinbo Bi

CSE, UConn

Systems of nonlinear equations

Page 5: Today’s class

• Newton-Raphson method can still diverge as with the single equation method

• Can be generalized to more than two equations - requires solving larger linear systems

Numerical Methods, Lecture 6 5 Prof. Jinbo Bi

CSE, UConn

Systems of nonlinear equations

Page 6: Today’s class

Polynomials• A polynomial is of the form:

• The roots of a polynomial follow these rules:• There will be n roots to an n-th order

polynomial. The roots may be real or complex and need not be distinct

• If n is odd, there is at least one real root• If complex roots exist, they exist in conjugate

pairs (λ+μi and λ-μi)Numerical Methods, Lecture 6 6 Prof. Jinbo Bi

CSE, UConn

Page 7: Today’s class

Polynomials• Uses in electrical engineering

• Solving for poles and zeros in transfer functions

• Solving characteristic equations in linear ordinary differential equations

Numerical Methods, Lecture 6 7 Prof. Jinbo Bi

CSE, UConn

Page 8: Today’s class

Computing with Polynomials

Numerical Methods, Lecture 6 8 Prof. Jinbo Bi

CSE, UConn

Page 9: Today’s class

Computing with Polynomials

Numerical Methods, Lecture 6 9 Prof. Jinbo Bi

CSE, UConn

Page 10: Today’s class

Polynomial Deflation• Given a polynomial and a single known

root, deflating the polynomial can reduce the order of the polynomial and remove possible redundant roots

• Example:

• Root x=4 is known

Numerical Methods, Lecture 6 10 Prof. Jinbo Bi

CSE, UConn

Page 11: Today’s class

Polynomial Deflation

Numerical Methods, Lecture 6 11 Prof. Jinbo Bi

CSE, UConn

Page 12: Today’s class

• Synthetic Division

Polynomial Deflation

Numerical Methods, Lecture 6 12 Prof. Jinbo Bi

CSE, UConn

Page 13: Today’s class

Roots of polynomials• Previous methods (Newton-Raphson,

bracketing, etc.) have a few problems when applied to polynomials• Must determine an initial guess of the root• Can not find complex roots• May not converge

• Polynomial-specific methods• Müller’s method• Bairstow‘s method

Numerical Methods, Lecture 6 13 Prof. Jinbo Bi

CSE, UConn

Page 14: Today’s class

• Similar idea to secant method• Instead of projecting a straight line

through two points to estimate the root, project a parabola through three points to estimate the root

Muller’s method

Numerical Methods, Lecture 6 14 Prof. Jinbo Bi

CSE, UConn

Page 15: Today’s class

Muller’s method

Numerical Methods, Lecture 6 15 Prof. Jinbo Bi

CSE, UConn

Page 16: Today’s class

• Find a parabola such that it intersects the function at three points x0, x1, and x2

Muller’s method

Numerical Methods, Lecture 6 16 Prof. Jinbo Bi

CSE, UConn

Page 17: Today’s class

• Solve for c

• Substitute back into set of equations

• Define new set of variables

Muller’s method

Numerical Methods, Lecture 6 17 Prof. Jinbo Bi

CSE, UConn

Page 18: Today’s class

• Substitute new variables back into equations

• Solve for a and b

Muller’s method

Numerical Methods, Lecture 6 18 Prof. Jinbo Bi

CSE, UConn

Page 19: Today’s class

• Now that we have found the coefficients of the parabola, find where it intersects the x-axis to get the next root estimate

• The intersection point with the x-axis is simply the root of the parabola which we can find using the quadratic formula

Muller’s method

Numerical Methods, Lecture 6 19 Prof. Jinbo Bi

CSE, UConn

Page 20: Today’s class

• Which of the two quadratic roots do you choose?• Choose the sign that agrees with the sign of

b, making the denominator the largest• That will bring xr closer to x2

Muller’s method

Numerical Methods, Lecture 6 20 Prof. Jinbo Bi

CSE, UConn

Page 21: Today’s class

• How do you pick the three points for the next iteration?• If there are only real roots, choose xr and the

closer two of the orignal three roots to xr.• If there are complex roots, use a sequential

approach: use xr, x2, and x1 to replace x2, x1, and x0

Muller’s method

Numerical Methods, Lecture 6 21 Prof. Jinbo Bi

CSE, UConn

Page 22: Today’s class

• Find roots of f(x)=x3-13x-12• Use x0=4.5, x1=5.5, and x2=5 as the

initial guesses

Example

Numerical Methods, Lecture 6 22 Prof. Jinbo Bi

CSE, UConn

Page 23: Today’s class

Example

Numerical Methods, Lecture 6 23 Prof. Jinbo Bi

CSE, UConn

Page 24: Today’s class

Example

Numerical Methods, Lecture 6 24 Prof. Jinbo Bi

CSE, UConn

Page 25: Today’s class

• Based on dividing the polynomial by (x-t) where t is the root estimate

• If there is no remainder, we found the root

• If not, we adjust the guess

Bairstow’s method

Numerical Methods, Lecture 6 25 Prof. Jinbo Bi

CSE, UConn

Page 26: Today’s class

• Factor by x-t

• Factor by x2-rx-s

Bairstow’s method

Numerical Methods, Lecture 6 26 Prof. Jinbo Bi

CSE, UConn

Page 27: Today’s class

• We have to find values of r and s such that the remainder is 0

• The remainder is 0 if b1=b0=0

• b1 and b0 are both functions of r and s, so we can give a Taylor series expansion of both

Bairstow’s method

Numerical Methods, Lecture 6 27 Prof. Jinbo Bi

CSE, UConn

Page 28: Today’s class

Bairstow’s method

Numerical Methods, Lecture 6 28 Prof. Jinbo Bi

CSE, UConn

Page 29: Today’s class

• Solve for Δr and Δs• Use the results to adjust r and s and iterate• Stop when the approximate error in r and s is

sufficient

Bairstow’s method

Numerical Methods, Lecture 6 29 Prof. Jinbo Bi

CSE, UConn

Page 30: Today’s class

• Find roots of f(x)= x5 - 3.5x4 + 2.75x3 + 2.125x5 - 3.875x + 1.25

• Use s= -1, r= -1 as the initial guesses

Example

Numerical Methods, Lecture 6 30 Prof. Jinbo Bi

CSE, UConn

Page 31: Today’s class

• Solve linear system

• New s and r

Example

Numerical Methods, Lecture 6 31 Prof. Jinbo Bi

CSE, UConn

Page 32: Today’s class

• Use s= 0.1381, r= -0.6442

Example

Numerical Methods, Lecture 6 32 Prof. Jinbo Bi

CSE, UConn

Page 33: Today’s class

• Solve linear system

• New s and r

Example

Numerical Methods, Lecture 6 33 Prof. Jinbo Bi

CSE, UConn

Page 34: Today’s class

• Keep going until s= 0.5 and r= -0.5• Then solve the following:

Example

Numerical Methods, Lecture 6 34 Prof. Jinbo Bi

CSE, UConn

Page 35: Today’s class

• The quotient coefficients are as follows

• Now we have to solve:

Example

Numerical Methods, Lecture 6 35 Prof. Jinbo Bi

CSE, UConn

Page 36: Today’s class

• If no s or r are known, start with s=0, r=0• Converges fast• May diverge

Bairstow’s method

Numerical Methods, Lecture 6 36 Prof. Jinbo Bi

CSE, UConn

Page 37: Today’s class

• Bisection• 2 initial guesses, slow convergence, will not

diverge• False-position

• 2 initial guesses, slow-medium convergence, will not diverge

Roots of equations

Numerical Methods, Lecture 6 37 Prof. Jinbo Bi

CSE, UConn

Page 38: Today’s class

• Newton-Raphson• 1 initial guess, fast convergence, may

diverge• Secant

• 2 initial guesses, medium-fast convergence, may diverge

Roots of equations

Numerical Methods, Lecture 6 38 Prof. Jinbo Bi

CSE, UConn

Page 39: Today’s class

• Muller• 3 initial guesses, medium-fast convergence,

may diverge, only polynomials, complex roots

• Bairstow• 2 initial guesses, medium-fast convergence,

may diverge, only polynomials, complex roots

Roots of equations

Numerical Methods, Lecture 6 39 Prof. Jinbo Bi

CSE, UConn

Page 40: Today’s class

Next class• Linear algebraic equations• Read Chapter 9• HW3, due 09/24

Numerical Methods, Lecture 6 40 Prof. Jinbo Bi

CSE, UConn