Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
a ) xex 1 = 0,
b) 2 sin x x = 0
These equations can not be solved directly.
We need numerical methods to compute
the approximate solutions.
2
Iteration Methods
3
4. Fixed Point Iteration
• First we write f (x) = 0 in the form x = F (x).
• Note that F (x) is not unique. For instance, see the following.
Example 1
4
Example: fixed point problems
Examples: FPI
Example: FPI
Example 2
f ( x) = x 3 x 1 = 0
3
i) x 3x 1 = 0
3
3x = x 1
3
x 1 3
x=
3
8
ii ) x 3 3 x 1 = 0
x 3x = 1
3
x( x 2 3) = 1
1
x= 2
x 3
iii ) x 3 3 x 1 = 0
x 3 = 3x 1
3x 1
x= 2
x
and many more.
9
We shall use these forms (x = F (x)) in our next example, denoted by
x 1 3
i) x = = F1 ( x)
3
1
ii ) x = 2 = F2 ( x)
x 3
3x 1
iii ) x = 2 = F3 ( x)
x
10
• We can say that the solution of x = F (x) is the intersection of two graphs
y = x and y = F (x).
• For example, see the following figure:
y=x
y = F (x)
y0 = x1
y2 = x3
y1 = x2
x0 x x
2 x3 x1 Figure 4.1 Fixed Point Iteration
11
Solution steps
12
We hope that the neighborhood denoted by the dashed line converges to the
intersection point of the two graphs y = x and y = F(x).
Conclusion
Fixed point iteration is of the form
x1 = F ( x0 ),
x2 = F ( x1 ),
x3 = F ( x2 ),
xi 1 = F ( xi )
13
Example 3
14
x3 1 xi 1
3
i) x = xi 1 = (1)
3 3
Let x0 = 1.5 be the initial value.
From (1) we can compute :
x1 = 1.458333
x2 = 1.367163
x3 = 1.185138
15
1 1
ii ) x = 2 xi 1 = 2 (2)
x 3 xi 3
Put x0 = 0.3. From (2) we can compute :
x1 = 0.343643
x2 = 0.346992
x3 = 0.347271
x4 = 0.347294
x5 = 0.347296
x6 = 0.347296
The distance between xi+1 and xi decreases,
i.e. |xi+1 – xi | < | xi – xi1 |.
This iteration converges (succeeds).
16
3x 1 3xi 1
ii ) x = 2 xi 1 = 2
(3)
x xi
Take x0 = 1.9.
From (3) we can compute :
x1 = 1.855956
x2 = 1.906730
x3 = 1.848431
x4 = 1.915679
We have |xi+1 – xi | > | xi – xi-1 |. This shows
that this iteration diverges (Iteration fails).
17
REMARK
x 3 3x 1 = 0 is x 0.347296.
19
Example 4
For x 3 3 x 1 = 0,
we have determined in Example 2 that :
x3 1
i) F1 ( x) = F1 ' ( x) = x 2
3
For x0 = 1.5, we have F1 ' ( x0 ) = 2.25 > 1.
Condition 1 < F ' ( x0 ) < 1 is not satisfied
and the iteration with this initial value is divergent.
20
1 2x
ii) F2 ( x) = 2 F2 ' ( x) = 2
x 3 ( x 3) 2
For x0 = 0.3, we have F2 ' ( x0 ) 0.07 that
satisfies condition 1 < F ' ( x0 ) < 1.
Therefore, the iteration with this initial value
can be examined, since it could possibly converge.
21
3x 1 3x 2
iii) F3 ( x) = 2
F3 ' ( x) =
x x3
At x0 = 1.9, we have F3 ' ( x0 ) 1.1 < 1.
Condition 1 < F ' ( x0 ) < 1 is not satisfied.
Thus, the iteration with this initial value diverges.
Conclusion
22
Iteration function
• Algebraically transform to the form
• 𝑥=⋯
• 𝑓 𝑥 = 𝑥 3 + 𝑥 2 − 3𝑥 − 3
• 𝑥 = 𝑥 3 + 𝑥 2 − 2𝑥 − 3
𝑥 3 +𝑥 2 −3
• 𝑥=
3
• …
• Every rootfinding problem can be transformed into any number of fixed point
problems
• (fortunately or unfortunately?)
23
24
25
Analysis
• #1 iteration function converges
• but to a fixed point outside the interval 1,2
• #2 fails to converge
• despite attaining values quite close to #1
26
Example 5:
• Solve f(x)=e-x-x
• Re-write as: x=g(x) x=e-x
• Start with an initial guess (here, 0)
29