Bisection and Newton-Raphson Methods [PDF]

Sep 7, 2004 - One problem with the incremental search method is its lack of efficiency in finding a root. If a root is e

0 downloads 4 Views 261KB Size

Recommend Stories


Bisection Method
Don't count the days, make the days count. Muhammad Ali

Bartlett's Bisection Theorem
Silence is the language of God, all else is poor translation. Rumi

Methods and results. Essays [PDF]
VI. PEEFACE own. But so far as their substance goes, I find nothing to alter in them,—though the oldest bears the date of 1866. Whether that is evidence of the soundness of my opinions, or of my having made no progress in wisdom for the last quarte

Comparative Study of Bisection, Newton-Raphson and Secant Methods of Root-Finding Problems
Don't ruin a good today by thinking about a bad yesterday. Let it go. Anonymous

pDf Download Pseudomonas Methods and Protocols (Methods in Molecular Biology)
There are only two mistakes one can make along the road to truth; not going all the way, and not starting.

PDF 101 Design Methods
Never wish them pain. That's not who you are. If they caused you pain, they must have pain inside. Wish

[PDF] Methods in Bioengineering
Be who you needed when you were younger. Anonymous

[PDF] Download Quantitative Methods
The happiest people don't have the best of everything, they just make the best of everything. Anony

[PDF] Research Methods
Don't fear change. The surprise is the only way to new discoveries. Be playful! Gordana Biernat

[PDF] Download Research Methods
Don't watch the clock, do what it does. Keep Going. Sam Levenson

Idea Transcript


Outlines

Bisection and Newton-Raphson Methods Mike Renfro September 7, 2004

Mike Renfro

Bisection and Newton-Raphson Methods

Outlines

Part I: Review of Previous Lecture Part II: Bisection and Newton-Raphson Methods

Review of Previous Lecture

Mike Renfro

Bisection and Newton-Raphson Methods

Outlines

Part I: Review of Previous Lecture Part II: Bisection and Newton-Raphson Methods

Bisection and Newton-Raphson Methods Bisection Method Problem Setup Bisection Method Procedure Bisection Method Advantages and Disadvantages Bisection Method Example

Newton-Raphson Method Problem Setup Newton-Raphson Method Procedure Newton-Raphson Method Advantages and Disadvantages

Homework

Mike Renfro

Bisection and Newton-Raphson Methods

Part I Review of Previous Lecture

Mike Renfro

Bisection and Newton-Raphson Methods

Review of Previous Lecture

Sample problems solved with numerical methods Natural frequencies of a vibrating bar Static analysis of a scaffolding Critical loads for buckling a column Realistic Design Properties of Materials

Solution of nonlinear equations Introduction Example: fluid mechanics Incremental search method

Mike Renfro

Bisection and Newton-Raphson Methods

Bisection Method Newton-Raphson Method Homework

Part II Bisection and Newton-Raphson Methods

Mike Renfro

Bisection and Newton-Raphson Methods

Bisection Method Newton-Raphson Method Homework

Problem Setup Bisection Method Procedure Bisection Method Advantages and Disadvantages Bisection Method Example

Bisection Method One problem with the incremental search method is its lack of efficiency in finding a root. If a root is expected on the interval 0 < x < 1, it will require between 1 and 10 loops through the method to bracket the root with 0.1 uncertainty: Calculate f (0.0), Calculate f (0.1), ... Calculate f (1.0) You may get lucky and only have to perform two function evaluations. You may be unlucky and have to perform 11 evaluations. In general, you’ll probably have to perform 6-7 evaluations to find the solution. There has to be a more efficient way to find a solution. Mike Renfro

Bisection and Newton-Raphson Methods

Bisection Method Newton-Raphson Method Homework

Problem Setup Bisection Method Procedure Bisection Method Advantages and Disadvantages Bisection Method Example

Problem Setup

Start with a function f (x) and two values of x (a and b) such that f (a) and f (b) have opposite signs. These values of a and b may be the final interval of an incremental search method with a relatively large step size.

Mike Renfro

Bisection and Newton-Raphson Methods

Bisection Method Newton-Raphson Method Homework

Problem Setup Bisection Method Procedure Bisection Method Advantages and Disadvantages Bisection Method Example

Bisection Method Procedure Evaluate f (x) at the midpoint of the interval, at xmid = a+b 2 . If f (xmid ) 6= 0, then the sign of f (xmid ) will match the sign of f (a) or the sign of f (b). If f (xmid ) matches the sign of f (a), then set a = xmid and repeat. If f (xmid ) matches the sign of f (b), then set b = xmid and repeat.

Mike Renfro

Bisection and Newton-Raphson Methods

Bisection Method Newton-Raphson Method Homework

Problem Setup Bisection Method Procedure Bisection Method Advantages and Disadvantages Bisection Method Example

Bisection Method Procedure

Eventually, this method will limit the root of f (x) to a sufficiently small interval, or |f (xmid )| ≤ , where  is the error tolerance for the problem.

Mike Renfro

Bisection and Newton-Raphson Methods

Bisection Method Newton-Raphson Method Homework

Problem Setup Bisection Method Procedure Bisection Method Advantages and Disadvantages Bisection Method Example

Bisection Method Advantages

Since the bisection method discards 50% of the current interval at each step, it brackets the root much more quickly than the incremental search method does. To compare: On average, assuming a root is somewhere on the interval between 0 and 1, it takes 6–7 function evaluations to estimate the root to within 0.1 accuracy. Those same 6–7 function evaluations using bisection estimates the root to within 214 = 0.625 to 215 = 0.031 accuracy.

Mike Renfro

Bisection and Newton-Raphson Methods

Bisection Method Newton-Raphson Method Homework

Problem Setup Bisection Method Procedure Bisection Method Advantages and Disadvantages Bisection Method Example

Bisection Method Disadvantages

Like incremental search, the bisection method only finds roots where the function crosses the x axis. It cannot find roots where the function is tangent to the x axis. Like incremental search, the bisection method can be fooled by singularities in the function. Like incremental search, the bisection method cannot find complex roots of polynomials.

Mike Renfro

Bisection and Newton-Raphson Methods

Bisection Method Newton-Raphson Method Homework

Problem Setup Bisection Method Procedure Bisection Method Advantages and Disadvantages Bisection Method Example

Bisection Method Example Find the root of f (x) = x 3 − 2 on the interval where a = 1 and b = 2, and  = 0.05: f (1) = 13 − 2 = −1, f (2) = 23 − 2 = 6, f (1.5) = 1.53 − 2 = 1.375. Since 1.375 and 6 have the same sign, the root must be between 1 and 1.5. f (1) = −1, f (1.5) = 1.375, f (1.25) = −0.047. Since | − 0.047| < , the root is assumed to be at x = 1.25. If we used incremental search to find the same root, we would have required 4 function evaluations using a step size of 0.1, followed by 6 function evaluations using a step size of 0.01.

Mike Renfro

Bisection and Newton-Raphson Methods

Bisection Method Newton-Raphson Method Homework

Problem Setup Newton-Raphson Method Procedure Newton-Raphson Method Advantages and Disadvantages

Problem Setup

Given: a function f (x), its derivative f 0 (x), a starting point x1 , and an error tolerance . We assume that both the height of the function f (x) and its slope can help us make a more educated guess of the root x ∗ .

Mike Renfro

Bisection and Newton-Raphson Methods

Bisection Method Newton-Raphson Method Homework

Problem Setup Newton-Raphson Method Procedure Newton-Raphson Method Advantages and Disadvantages

Newton-Raphson Method Procedure Draw a line tangent to the function at the point (x1 , f (x1 )). The point where the tangent line crosses the x axis should be a better estimate of the root than x1 . Call that point x2 . Calculate f (x2 ), and draw a line tangent to the function at the point (x2 , f (x2 )). The point where the new tangent line crosses the x axis should be a better estimate of the root than x2 . Call that point x3 . Repeat until |f (x)| < . Mike Renfro

Bisection and Newton-Raphson Methods

Bisection Method Newton-Raphson Method Homework

Problem Setup Newton-Raphson Method Procedure Newton-Raphson Method Advantages and Disadvantages

Newton-Raphson Method Advantages

Unlike the incremental search and bisection methods, the Newton-Raphson method isn’t fooled by singularities. Also, it can identify repeated roots, since it does not look for changes in the sign of f (x) explicitly. It can find complex roots of polynomials, assuming you start out with a complex value for x1 . For many problems, Newton-Raphson converges quicker than either bisection or incremental search.

Mike Renfro

Bisection and Newton-Raphson Methods

Bisection Method Newton-Raphson Method Homework

Problem Setup Newton-Raphson Method Procedure Newton-Raphson Method Advantages and Disadvantages

Newton-Raphson Method Disadvantages

The Newton-Raphson method only works if you have a functional representation of f 0 (x). Some functions may be difficult to impossible to differentiate. You may be able to work around this (x) by approximating the derivative f 0 (x) ≈ f (x+∆x)−f . ∆x

Mike Renfro

Bisection and Newton-Raphson Methods

Bisection Method Newton-Raphson Method Homework

Problem Setup Newton-Raphson Method Procedure Newton-Raphson Method Advantages and Disadvantages

Newton-Raphson Method Disadvantages

The Newton-Raphson method is not guaranteed to find a root. For example, if the starting point x1 is sufficiently far away from the root for the function f (x) = tan−1 x, the function’s small slope tends to drive the x guesses further and further away from the root.

Mike Renfro

Bisection and Newton-Raphson Methods

Bisection Method Newton-Raphson Method Homework

Problem Setup Newton-Raphson Method Procedure Newton-Raphson Method Advantages and Disadvantages

Newton-Raphson Method Disadvantages

If the derivative of the function at any tested point xi is sufficiently close to zero, the next point xi+1 will be very far away. You may still find the root, but you will be delayed.

Mike Renfro

Bisection and Newton-Raphson Methods

Bisection Method Newton-Raphson Method Homework

Problem Setup Newton-Raphson Method Procedure Newton-Raphson Method Advantages and Disadvantages

Newton-Raphson Method Disadvantages

If the derivative of the function changes sign near a tested point, the Newton-Raphson method may oscillate around a point nowhere near the nearest root.

Mike Renfro

Bisection and Newton-Raphson Methods

Bisection Method Newton-Raphson Method Homework

Homework

Find the solution of f (x) = x 2 − 10 = 0 using the following methods and starting points: Bisection method, with a = 1, b = 3, and  = 0.01. Newton-Raphson method, with x0 = 0 and  = 0.01. Will both of these problem statements yield a solution? If not, what can you do to change the problem setup to allow you to find a solution?

Mike Renfro

Bisection and Newton-Raphson Methods

Smile Life

When life gives you a hundred reasons to cry, show life that you have a thousand reasons to smile

Get in touch

© Copyright 2015 - 2024 PDFFOX.COM - All rights reserved.