Professional Documents
Culture Documents
K. Veroy-Grepl Aachen Institute for Advanced Study in Computational Engineering Science Winter Semester 2010/11
Overview
Finding Roots of Equations
IV. Closed Domain or Bracketing Methods IV. Open Domain Methods A Simple Fixed-Point Iteration B Newton-Raphson Method C Secant Method D Mllers Method E Brents Method V. Roots of Polynomials VI. Systems of Nonlinear Equations
Veroy-Grepl
1/31
Veroy-Grepl
2/31
Veroy-Grepl
3/31
The formula for the secant method is then: xi+1 = xi f (xi )(xi1 xi ) f (xi1 ) f (xi )
Note: The approach requires two initial estimates, but the estimates are not required to bracket the root
Veroy-Grepl
4/31
Compare with the secant formula: xi+1 = xi Formulas are identical Both use two initial estimates to compute an approximation of the slope of the function Function is used to project to the x-axis for a new estimate
Veroy-Grepl Numerical Methods for Engineers - WS 2010/11 5/31
Veroy-Grepl
6/31
Veroy-Grepl
7/31
Veroy-Grepl
8/31
Veroy-Grepl
9/31
Veroy-Grepl
10/31
Veroy-Grepl
11/31
Veroy-Grepl
11/31
Problem: Method yields two roots Sign is chosen to agree with the sign of b Results in largest denominator, giving the root estimate closest to x2 Given x3 , which point is discarded? Choose two original points that are nearest to x3 (usually for real roots) Use sequential approach (usually for real and complex roots)
Veroy-Grepl
12/31
Veroy-Grepl
13/31
Veroy-Grepl
14/31
Veroy-Grepl
15/31
Veroy-Grepl
16/31
Veroy-Grepl
17/31
Veroy-Grepl
18/31
Overview
Finding Roots of Equations
IV. Closed Domain or Bracketing Methods IV. Open Domain Methods V. Roots of Polynomials A Multiple Roots B Newtons Method C Complex Roots D Other Methods VI. Systems of Nonlinear Equations
Veroy-Grepl
19/31
V. Roots of Polynomials
Polynomials:
A common form of nonlinear equation Applications in which the roots of polynomials are sought: Characteristic equation in eigenproblems Curve-tting of data Characteristic equation of higher-order ordinary dierential equations ... One can generally use any of the root-nding methods But there are some features or techniques special to polynomials
Veroy-Grepl
20/31
V. Roots of Polynomials
Properties of Polynomials:
General form of an nth-degree polynomial: Pn (x) = a0 + a1 x + a2 x2 + an xn where a0 to an are constant coecients, and may be real or complex An nth-degree polynomial has exactly n roots, which may be real or complex If the coecients are real, then complex roots always occur in conjugate pairs Roots may be single (or simple), or multiple (or repeated)
Veroy-Grepl
21/31
V. Roots of Polynomials
Properties of Polynomials:
The roots of a linear polynomial can be determined directly (analytically) The roots of a second-degree polynomial can also be determined directly. Exact formulas for the roots of third- and fourth-degree polynomials also exist, but are quite complicated and rarely used Iterative methods are generally used to nd the roots of higher-degree polynomials High-degree polynomials can be ill-conditioned sensitive to small changes in the values of the coecients
Veroy-Grepl
22/31
V. Roots of Polynomials
Example: Consider the factored fth-degree polynomial f (x) = (x 1)(x 2)(x 3)(x 4)(x 5) which has ve positive real roots, 1, 2, 3, 4, and 5. Expanding the polynomial yields f (x) = 120 + 274x 225x2 + 85x3 15x4 + x5 Consider a new fth-degree polynomial g (x) = 120 + 274x 226x2 + 85x3 15x4 + x5 . The ve roots are now: 1.0514, 1.6191, 5.5075, 3.4110 + i1.0793, and 3.4110 i1.0793
Veroy-Grepl
23/31
A multiple root corresponds to a point where not only the function value is zero, but also the higher derivatives A double root occurs if the rst derivative is also zero. A triple root occurs if the rst and second derivative are also zero. ... Odd roots cross the x-axis, even roots do not.
Veroy-Grepl
24/31
Veroy-Grepl
25/31
Veroy-Grepl
26/31
Veroy-Grepl
27/31
Veroy-Grepl
28/31
Includes the multiplicity m in the formula for the new estimate xi+1 = xi m f (xi ) f (xi )
This slight change in the Newton formulation returns it to quadratic convergence (DERIVATION) Requires foreknowledge of the multiplicity of the root
Veroy-Grepl
29/31
[RR]
Also restores quadratic convergence, since u(x) has a single root (DERIVATION) Disadvantages: Requires additional eort, especially for calculation of f (xi ) Round-o errors may be introduced due to denominator Less ecient than standard Newtons method for simple roots
Veroy-Grepl
30/31