Professional Documents
Culture Documents
Chapter 01
Chapter 01
For the value of ‘c’ at the nth iteration to be an approximate value of ‘p’ up to (a tolerance) ε>0, it is
enough for ‘n’ to verify:
𝑏−𝑎
≤ ε𝑎 (1.4)
2𝑛
We have thus:
𝑏−𝑎
|𝑝 − 𝑐𝑛 | ≤ ≤ ε𝑎 (1.3)
2𝑛
This makes it possible to calculate in advance the maximum number of iterations ‘n’ ensuring the
absolute precision ε𝑎
𝑏−𝑎
ln( )
ε𝑎
𝑛≥ (1.5)
ln(2)
1
Ziane Achour University of Djelfa Course: Numerical Methods
Faculty of Science and Technology Instructor: Dr. Ali TETA
Department of Electrical Engineering L02 ELT-AUT
2
Ziane Achour University of Djelfa Course: Numerical Methods
Faculty of Science and Technology Instructor: Dr. Ali TETA
Department of Electrical Engineering L02 ELT-AUT
We use the fixed point method to estimate the root of the equation f with an initial point 𝑥0 = 4
𝑥𝑛 (iteration n), 𝑥𝑛+1 = 𝑔1 (𝑥𝑛 ) 𝑥𝑛+1 = 𝑔2 (𝑥𝑛 ) 𝑥𝑛+1 = 𝑔3 (𝑥𝑛 )
𝑥0 4 4 4
𝑥1 1.5 3.316 6.5
𝑥2 -6 3.103 19.625
𝑥3 -0.375 3.034 191.070
𝑥4 -1.263 3.011 1.82 104
𝑥5 -0.919 3.003 1.66 108
Convergent Convergent Divergent
We conclude that the choice of the function g(x) is important for the convergence of the iterative process.
(a) (b)
Figure 02: (a) Attractive fixed point (b) Repulsive fixed point
3
Ziane Achour University of Djelfa Course: Numerical Methods
Faculty of Science and Technology Instructor: Dr. Ali TETA
Department of Electrical Engineering L02 ELT-AUT
I.3.3 Example 03
We try to choose the suitable auxiliary function 𝑔 for the function f in the previous example whose fixed
point method will be convergent, the considered interval is I=[0, 4].
3
1- The auxiliary function 𝑔1 (𝑥) = 𝑥−2
a- Stability condition: We cannot choose this function because it is not continuous in the
interval I, i.e. the condition of 𝑔1 (𝑥) ∈ 𝐼 for all 𝑥 ∈ 𝐼 is not satisfied. Therefore, 𝑔1 (𝑥) is not
stable.
2- The auxiliary function 𝑔2 (𝑥) = √2𝑥 + 3
a- Stability condition: We have 𝑔2 (0) = √3 = 1.732 and 𝑔2 (4) = √11 = 3.316, and
1
𝑔2′ (𝑥) = > 0 for all 𝑥 ∈ 𝐼. Therefore, 𝑔2 (𝑥) is stable.
√2𝑥+3
1
b- Contraction condition: |𝑔2′ (𝑥)| = | | < 0.577 < 1, for all 𝑥 ∈ 𝐼. Therefore, 𝑔2 (𝑥) is
√2𝑥+3
contractive.
𝑥 2 −3
3- The auxiliary function 𝑔3 (𝑥) = 2
−3 13
a- Stability condition: We have 𝑔3 (0) = 2 = −1.5 ∉ 𝐼 and 𝑔2 (4) = 2 = 6.5 ∉ 𝐼.
Therefore, 𝑔3 (𝑥) is not stable.
We notice that only the function 𝑔2 satisfies the two convergence conditions for the interval I.
Therefore, we choose 𝑥0 = 2
𝑥1 = 𝑔2 ( 𝑥0 ) = 2.645
We use the following stopping criterion to calculate the number of iterations with a tolerance ε =
0.01%
ε(1 − 𝑘0 ) 0.01(1 − 0.37)
𝑙𝑛 ( ) 𝑙𝑛 ( )
|𝑥1 − 𝑥0 | |2.645 − 2|
𝑛≥ ⇔𝑛≥
ln( 𝑘0 ) ln(0.37)
0.01(1 − 0.37)
𝑙𝑛 ( )
|2.645 − 2|
𝑛≥ = 4.65 ≈ 5
ln(0.37)
Therefore, the number of sufficient iteration is 5.
4
Ziane Achour University of Djelfa Course: Numerical Methods
Faculty of Science and Technology Instructor: Dr. Ali TETA
Department of Electrical Engineering L02 ELT-AUT
5
Ziane Achour University of Djelfa Course: Numerical Methods
Faculty of Science and Technology Instructor: Dr. Ali TETA
Department of Electrical Engineering L02 ELT-AUT
𝑥0 ∈ [𝑎, 𝑏] 𝑔𝑖𝑣𝑒𝑛
{ 𝑓( 𝑥𝑛 ) (1.12)
𝑥𝑛+1 = 𝑥𝑛 − , 𝑛∈ℕ
𝑓 ′ ( 𝑥𝑛 )
I.4.2 Study of convergence:
Consider 𝑓 a function of 𝐶 2 class in the interval [a, b], such that:
1- 𝑓(𝑎). 𝑓(𝑏) < 0;
2- 𝑓 ′ (𝑥) is not null in [a, b].
3- 𝑓( 𝑥0 ). 𝑓′′( 𝑥0 ) ≥ 0 such that 𝑥0 ∈ [𝑎, 𝑏]
Therefore, Newton-Raphson series:
𝑓( 𝑥 )
𝑥𝑛+1 = 𝑥𝑛 − 𝑓′ ( 𝑥𝑛 ) , 𝑛 ∈ ℕ (1.13)
𝑛
Converges for the chosen 𝑥0 toward the unique solution 𝑥 ∗ of 𝑓(𝑥)
a- We have 𝑓(2) = −1, 𝑓(3) = 16 therefore𝑓(2). 𝑓(3) < 0, there exists 𝑥 ∗ ∈ [2, 3] such that
𝑓(𝑥 ∗ ) = 0
b- In addition, 𝑓 ′ (𝑥) = 3𝑥 2 − 2, for 𝑓 ′ (𝑥) = 0 ⇒ 𝑥 = ±√2/3 ∉ [2, 3] therefore 𝑓 ′ (𝑥) ≠ 0 for all 𝑥 ∈
[2, 3]
and 𝑓 ′′ (𝑥) = 6𝑥 > 0 for all 𝑥 ∈ [2, 3], thus according to the convergence theorem the Newton-
Raphson sequence converges
𝑥0 ∈ [𝑎, 𝑏] 𝑔𝑖𝑣𝑒𝑛 𝑠𝑢𝑐ℎ 𝑡ℎ𝑎𝑡 𝑓( 𝑥0 ). 𝑓 ′ ′( 𝑥0 ) ≥ 0
{ 𝑓( 𝑥 ) (1.14)
𝑥𝑛+1 = 𝑥𝑛 − 𝑓′ ( 𝑥𝑛 ) , 𝑛 ∈ ℕ
𝑛
Given that 𝑓 ′′ (𝑥) > 0 for all 𝑥 ∈ [2, 3], it is enough to choose an 𝑥0 for which 𝑓( 𝑥0 ) > 0, let’s
say 𝑥0 = 3.
We perform 3 iteration using Newton-Raphson method:
iteration 𝑓( 𝑥𝑛 )
𝑥𝑛+1 = 𝑥𝑛 −
𝑓 ′ ( 𝑥𝑛 )
0 𝑥0 = 3
1(n=0) 16
𝑥1 = 3 − = 2.36
25
2(n=1) 𝑥2 = 2.127
3(n=2) 𝑥3 = 2.095