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

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

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

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

hence g(x) ∈ I. Now use Theorem 40, sett<strong>in</strong>g [a, b] to [p−ɛ, p+ɛ], to conclude the fixed-po<strong>in</strong>t<br />

iteration converges.<br />

To prove convergence is l<strong>in</strong>ear, we note<br />

|p n+1 − p| = |g(p n ) − g(p)| ≤|g ′ (ξ n )||p n − p| ≤k|p n − p|<br />

which is the def<strong>in</strong>ition of l<strong>in</strong>ear convergence (<strong>with</strong> k be<strong>in</strong>g a positive constant less than 1).<br />

We can actually prove someth<strong>in</strong>g more:<br />

|p n+1 − p|<br />

lim<br />

n→∞ |p n − p|<br />

= lim<br />

n→∞<br />

|g(p n ) − g(p)|<br />

|p n − p|<br />

= lim<br />

n→∞<br />

|g ′ (ξ n )||p n − p|<br />

|p n − p|<br />

= lim<br />

n→∞<br />

|g ′ (ξ n )| = |g ′ (p)|.<br />

The last equality follows s<strong>in</strong>ce g ′ is cont<strong>in</strong>uous, and ξ n → p, which is a consequence of ξ n<br />

be<strong>in</strong>g between p and p n ,andp n → p, asn →∞.<br />

Example 45. Let g(x) =x + c(x 2 − 2), which has the fixed-po<strong>in</strong>t p = √ 2 ≈ 1.4142. Pick<br />

a value for c to ensure the convergence of fixed-po<strong>in</strong>t iteration. For the picked value c,<br />

determ<strong>in</strong>e the <strong>in</strong>terval of convergence I =[a, b], that is, the <strong>in</strong>terval for which any p 0 from<br />

the <strong>in</strong>terval gives rise to a converg<strong>in</strong>g fixed-po<strong>in</strong>t iteration. Then write a <strong>Julia</strong> code to test<br />

the results.<br />

Solution. Theorem 44 requires |g ′ (p)| < 1. We have g ′ (x) =1+2xc, and thus g ′ ( √ 2) =<br />

1+2 √ 2c. Therefore<br />

|g ′ ( √ 2)| < 1 ⇒−1 < 1+2 √ 2c

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

Saved successfully!

Ooh no, something went wrong!