1 / 40

Today’s class

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.

Download Presentation

Today’s class

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Today’s class • Roots of Equations • Polynomials Prof. Jinbo Bi CSE, UConn

  2. 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 Prof. Jinbo Bi CSE, UConn

  3. Systems of nonlinear equations • Using Newton-Raphson method • First order Taylor approximation • Solve for xi+1 and yi+1 Prof. Jinbo Bi CSE, UConn

  4. Systems of nonlinear equations Prof. Jinbo Bi CSE, UConn

  5. Systems of nonlinear equations • 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 Prof. Jinbo Bi CSE, UConn

  6. 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) Prof. Jinbo Bi CSE, UConn

  7. Polynomials • Uses in electrical engineering • Solving for poles and zeros in transfer functions • Solving characteristic equations in linear ordinary differential equations Prof. Jinbo Bi CSE, UConn

  8. Computing with Polynomials Prof. Jinbo Bi CSE, UConn

  9. Computing with Polynomials Prof. Jinbo Bi CSE, UConn

  10. 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 Prof. Jinbo Bi CSE, UConn

  11. Polynomial Deflation Prof. Jinbo Bi CSE, UConn

  12. Polynomial Deflation • Synthetic Division Prof. Jinbo Bi CSE, UConn

  13. 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 Prof. Jinbo Bi CSE, UConn

  14. Muller’s method • 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 Prof. Jinbo Bi CSE, UConn

  15. Muller’s method Prof. Jinbo Bi CSE, UConn

  16. Muller’s method • Find a parabola such that it intersects the function at three points x0, x1, and x2 Prof. Jinbo Bi CSE, UConn

  17. Muller’s method • Solve for c • Substitute back into set of equations • Define new set of variables Prof. Jinbo Bi CSE, UConn

  18. Muller’s method • Substitute new variables back into equations • Solve for a and b Prof. Jinbo Bi CSE, UConn

  19. Muller’s method • 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 Prof. Jinbo Bi CSE, UConn

  20. Muller’s method • 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 Prof. Jinbo Bi CSE, UConn

  21. Muller’s method • How do you pick the three points for thenext iteration? • If there are only real roots, choose xr and thecloser two of the orignal three roots to xr. • If there are complex roots, use a sequentialapproach: use xr, x2, and x1to replace x2, x1, and x0 Prof. Jinbo Bi CSE, UConn

  22. Example • Find roots of f(x)=x3-13x-12 • Use x0=4.5, x1=5.5, and x2=5 as the initialguesses Prof. Jinbo Bi CSE, UConn

  23. Example Prof. Jinbo Bi CSE, UConn

  24. Example Prof. Jinbo Bi CSE, UConn

  25. Bairstow’s method • 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 Prof. Jinbo Bi CSE, UConn

  26. Bairstow’s method • Factor by x-t • Factor by x2-rx-s Prof. Jinbo Bi CSE, UConn

  27. Bairstow’s method • 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 Prof. Jinbo Bi CSE, UConn

  28. Bairstow’s method Prof. Jinbo Bi CSE, UConn

  29. Bairstow’s method • 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 Prof. Jinbo Bi CSE, UConn

  30. Example • 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 Prof. Jinbo Bi CSE, UConn

  31. Example • Solve linear system • New s and r Prof. Jinbo Bi CSE, UConn

  32. Example • Use s= 0.1381, r= -0.6442 Prof. Jinbo Bi CSE, UConn

  33. Example • Solve linear system • New s and r Prof. Jinbo Bi CSE, UConn

  34. Example • Keep going until s= 0.5 and r= -0.5 • Then solve the following: Prof. Jinbo Bi CSE, UConn

  35. Example • The quotient coefficients are as follows • Now we have to solve: Prof. Jinbo Bi CSE, UConn

  36. Bairstow’s method • If no s or r are known, start with s=0, r=0 • Converges fast • May diverge Prof. Jinbo Bi CSE, UConn

  37. Roots of equations • Bisection • 2 initial guesses, slow convergence, will notdiverge • False-position • 2 initial guesses, slow-medium convergence,will not diverge Prof. Jinbo Bi CSE, UConn

  38. Roots of equations • Newton-Raphson • 1 initial guess, fast convergence, maydiverge • Secant • 2 initial guesses, medium-fast convergence, may diverge Prof. Jinbo Bi CSE, UConn

  39. Roots of equations • Muller • 3 initial guesses, medium-fast convergence,may diverge, only polynomials, complexroots • Bairstow • 2 initial guesses, medium-fast convergence,may diverge, only polynomials, complex roots Prof. Jinbo Bi CSE, UConn

  40. Next class • Linear algebraic equations • Read Chapter 9 • HW3, due 09/24 Prof. Jinbo Bi CSE, UConn

More Related