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 79<br />

4<br />

y = x<br />

4<br />

3<br />

3<br />

y = g(x)<br />

2<br />

2<br />

1<br />

1<br />

0<br />

p<br />

0<br />

Figure 2.4: Fixed-po<strong>in</strong>t iteration: |g ′ (p)| < 1.<br />

4<br />

y = x<br />

4<br />

3<br />

3<br />

2<br />

2<br />

1<br />

1<br />

y = g(x)<br />

0<br />

p<br />

0<br />

Figure 2.5: Fixed-po<strong>in</strong>t iteration: |g ′ (p)| > 1.<br />

Example 43. Consider the root-f<strong>in</strong>d<strong>in</strong>g problem x 3 − 2x 2 − 1=0on [1, 3].<br />

1. Write the problem as a fixed-po<strong>in</strong>t problem, g(x) =x, for some g. Verify that the<br />

hypothesis of Theorem 40 (or Remark 41) is satisfied so that the fixed-po<strong>in</strong>t iteration<br />

converges.<br />

2. Let p 0 =1. Use Corollary 42 to f<strong>in</strong>d n that ensures an estimate to p accurate to <strong>with</strong><strong>in</strong><br />

10 −4 .<br />

Solution. 1. There are several ways we can write this problem as g(x) =x :<br />

(a) Let f(x) =x 3 − 2x 2 − 1, andp be its root, that is, f(p) =0. Ifweletg(x) =<br />

x − f(x), theng(p) =p − f(p) =p, so p is a fixed-po<strong>in</strong>t of g. However, this choice

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

Saved successfully!

Ooh no, something went wrong!