06.09.2021 Views

First Semester in Numerical Analysis with Julia, 2020a

First Semester in Numerical Analysis with Julia, 2020a

First Semester in Numerical Analysis with Julia, 2020a

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

CHAPTER 2. SOLUTIONS OF EQUATIONS: ROOT-FINDING 87<br />

Application to Newton’s Method<br />

Recall Newton’s iteration<br />

p n = p n−1 − f(p n−1)<br />

f ′ (p n−1 ) .<br />

Put g(x) =x − f(x) . Then the fixed-po<strong>in</strong>t iteration p f ′ (x) n = g(p n−1 ) is Newton’s method. We<br />

have<br />

g ′ (x) =1− [f ′ (x)] 2 − f(x)f ′′ (x)<br />

= f(x)f ′′ (x)<br />

[f ′ (x)] 2 [f ′ (x)] 2<br />

and thus<br />

Similarly,<br />

g ′ (p) = f(p)f ′′ (p)<br />

[f ′ (p)] 2 =0.<br />

g ′′ (x) = (f ′ (x)f ′′ (x)+f(x)f ′′′ (x)) (f ′ (x)) 2 − f(x)f ′′ (x)2f ′ (x)f ′′ (x)<br />

[f ′ (x)] 4<br />

which implies<br />

g ′′ (p) = (f ′ (p)f ′′ (p)) (f ′ (p)) 2<br />

= f ′′ (p)<br />

[f ′ (p)] 4 f ′ (p) .<br />

If f ′′ (p) ≠0, then Theorem 46 implies Newton’s method has quadratic convergence <strong>with</strong><br />

lim<br />

n→∞<br />

which was proved earlier <strong>in</strong> Theorem 32.<br />

p n+1 − p<br />

(p n − p) = f ′′ (p)<br />

2 2f ′ (p)<br />

Exercise 2.7-1: Use Theorem 38 (and Remark 39) toshowthatg(x) =3 −x has a<br />

unique fixed-po<strong>in</strong>t on [1/4, 1]. Use Corollary 42, part (4), to f<strong>in</strong>d the number of iterations<br />

necessary to achieve 10 −5 accuracy. Then use the <strong>Julia</strong> code to obta<strong>in</strong> an approximation,<br />

and compare the error <strong>with</strong> the theoretical estimate obta<strong>in</strong>ed from Corollary 42.<br />

Exercise 2.7-2: Let g(x) =2x − cx 2 where c is a positive constant. Prove that if the<br />

fixed-po<strong>in</strong>t iteration p n = g(p n−1 ) converges to a non-zero limit, then the limit is 1/c.

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

Saved successfully!

Ooh no, something went wrong!