Chapter 2. Solutions of Equations in One Variable2.2 Fixed-Point Iteration
Fixed-Point Iteration
Ifg(x)is continuous, we can approximate the xed point ofg(if any) by
Step 1 choose an initial approximationp0
Step 2 forn1;dopn=g(pn1)
Iffpngconverges to a numberp, then
p=
n!1
pn= lim
n!1
g(pn1) =g
lim
n!1
pn1
=g(p):
Thus, the numberpis a xed-point ofg.60 CHAPTER 2 Solutions of Equations in One Variable
Fixed-Point Iteration
We cannot explicitly determine the fixed point in Example 3 because we have no way to
solve forpin the equationp=g(p)=3
−p
. We can, however, determine approximations
to this fixed point to any specified degree of accuracy. We will now consider how this can
be done.
To approximate the fixed point of a functiong, we choose an initial approximationp
0
and generate the sequence{p n}
∞
n=0
by lettingp n=g(p n−1), for eachn≥1. If the sequence
converges topandgis continuous, then
p=lim
n→∞
pn=lim
n→∞
g(pn−1)=g
lim
n→∞
pn−1
=g(p),
and a solution tox=g(x)is obtained. This technique is calledfixed-point,or functional
iteration. The procedure is illustrated in Figure 2.7 and detailed in Algorithm 2.2.
Figure 2.7
x x
yy
y √ x
p
2 √ g(p
1)
p
3 √ g(p
2)
p
1 √ g(p
0)
(p
1, p
2)
(p
2, p
2)
(p
0, p
1)
y √ g(x)
(p
1, p
1)
p
1p
3p
2p
0
(a) (b)
p
0 p
1p
2
y √ g(x)
(p
2, p
2)
(p
0, p
1)
(p
2, p
3)
p
1 √ g(p
0)
p
3 √ g(p
2)
y √ x
p
2 √ g(p
1)
(p
1, p
1)
ALGORITHM
2.2
Fixed-Point Iteration
To find a solution top=g(p)given an initial approximationp 0:
INPUTinitial approximationp
0; toleranceTOL; maximum number of iterationsN 0.
OUTPUT approximate solutionpor message of failure.
Step 1Seti=1.
Step 2Whilei≤N
0do Steps 3–6.
Step 3Setp=g(p
0).(Compute p i.)
Step 4If|p−p
0|<TOLthen
OUTPUT(p);(The procedure was successful.)
STOP.
Step 5Seti=i+1.
Step 6Setp
0=p.(Update p 0.)
Copyright 2010 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s).
Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it. 60 CHAPTER 2 Solutions of Equations in One Variable
Fixed-Point Iteration
We cannot explicitly determine the fixed point in Example 3 because we have no way to
solve forpin the equationp=g(p)=3
−p
. We can, however, determine approximations
to this fixed point to any specified degree of accuracy. We will now consider how this can
be done.
To approximate the fixed point of a functiong, we choose an initial approximationp
0
and generate the sequence{p n}
∞
n=0
by lettingp n=g(p n−1), for eachn≥1. If the sequence
converges topandgis continuous, then
p=lim
n→∞
pn=lim
n→∞
g(pn−1)=g
lim
n→∞
pn−1
=g(p),
and a solution tox=g(x)is obtained. This technique is calledfixed-point,or functional
iteration. The procedure is illustrated in Figure 2.7 and detailed in Algorithm 2.2.
Figure 2.7
x x
yy
y √ x
p
2 √ g(p
1)
p
3 √ g(p
2)
p
1 √ g(p
0)
(p
1, p
2)
(p
2, p
2)
(p
0, p
1)
y √ g(x)
(p
1, p
1)
p
1p
3p
2p
0
(a) (b)
p
0 p
1p
2
y √ g(x)
(p
2, p
2)
(p
0, p
1)
(p
2, p
3)
p
1 √ g(p
0)
p
3 √ g(p
2)
y √ x
p
2 √ g(p
1)
(p
1, p
1)
ALGORITHM
2.2
Fixed-Point Iteration
To find a solution top=g(p)given an initial approximationp 0:
INPUTinitial approximationp
0; toleranceTOL; maximum number of iterationsN 0.
OUTPUT approximate solutionpor message of failure.
Step 1Seti=1.
Step 2Whilei≤N
0do Steps 3–6.
Step 3Setp=g(p
0).(Compute p i.)
Step 4If|p−p
0|<TOLthen
OUTPUT(p);(The procedure was successful.)
STOP.
Step 5Seti=i+1.
Step 6Setp
0=p.(Update p 0.)
Copyright 2010 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s).
Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it.
Xu Zhang(Oklahoma State University) MATH 4513 Numerical Analysis Fall 2020