03.03.2014 Views

Numerical Methods Course Notes Version 0.1 (UCSD Math 174, Fall ...

Numerical Methods Course Notes Version 0.1 (UCSD Math 174, Fall ...

Numerical Methods Course Notes Version 0.1 (UCSD Math 174, Fall ...

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

4.2. NEWTON’S METHOD 51<br />

4.2.2 Problems<br />

As mentioned above, convergence is dependent on f(x), and the initial estimate x 0 . A number of<br />

conceivable problems might come up. We illustrate them here.<br />

Example 4.4. Consider Newton’s method applied to the function f(x) = x j with j > 1, and with<br />

initial estimate x 0 ≠ 0.<br />

Note that f(x) = 0 has the single root x = 0. Now note that<br />

x k+1 = x k −<br />

xj k<br />

jx j−1<br />

k<br />

=<br />

(<br />

1 − 1 )<br />

x k .<br />

j<br />

Since the equation has the single root x = 0, we find that x k is converging to the root. However,<br />

it is converging at a rate slower than we expect from Newton’s method: at each step we have a<br />

constant decrease of 1−(1/j) , which is a larger number (and thus worse decrease) when j is larger.<br />

Example 4.5. Consider Newton’s method applied to the function f(x) = ln x<br />

x<br />

, with initial estimate<br />

x 0 = 3.<br />

Note that f(x) is continuous on R + . It has a single root at x = 1. Our initial guess is not too far<br />

from this root. However, consider the derivative:<br />

f ′ (x) = x 1 x − ln x<br />

x 2<br />

= 1 − ln x<br />

x 2<br />

If x > e 1 , then 1 − ln x < 0, and so f ′ (x) < 0. However, for x > 1, we know f(x) > 0. Thus taking<br />

x k+1 = x k − f(x k)<br />

f ′ (x k ) > x k.<br />

The estimates will “run away” from the root x = 1.<br />

Example 4.6. Consider Newton’s method applied to the function f(x) = sin (x) for the initial<br />

estimate x 0 ≠ 0, where x 0 has the odious property 2x 0 = tan x 0 .<br />

You should verify that there are an infinite number of such x 0 . Consider the identity of x 1 :<br />

Now consider x 2 :<br />

x 1 = x 0 − f(x 0)<br />

f ′ (x 0 ) = x 0 − sin(x 0)<br />

cos(x 0 ) = x 0 − tan x 0 = x 0 − 2x 0 = −x 0 .<br />

x 2 = x 1 − f(x 1)<br />

f ′ (x 1 ) = −x 0 − sin(−x 0)<br />

cos(−x 0 ) − x 0 + sin(x 0)<br />

cos(x 0 ) = −x 0 + tan x 0 = −x 0 + 2x 0 = x 0 .<br />

Thus Newton’s method “cycles” between the two values x 0 , −x 0 .<br />

Of course, Newton’s method may find some iterate x k for which f ′ (x k ) = 0, in which case, there<br />

is no well-defined x k+1 .<br />

4.2.3 Convergence<br />

When Newton’s Method converges, it actually displays quadratic convergence. That is, if e k = x k −r,<br />

where r is the root that the x k are converging to, that |e k+1 | ≤ C |e k | 2 . If, for example, it were<br />

the case that C = 1, then we would double the accuracy of our root estimate with each iterate.<br />

That is, if e 0 were 0.001, we would expect e 1 to be on the order of 0.000001. The following theorem<br />

formalizes our claim:

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!