Chap1 Equation Non Lineaire Ang
Chap1 Equation Non Lineaire Ang
1. Introduction :
Definition 1 :
We say that α ∈ 𝐷𝑓 is a root of the equation 𝑓 (𝑥 ) = 0, if 𝑓(𝛼 ) = 0. Solving the
equation 𝑓 (𝑥 ) = 0is to find all real numbers α such that 𝑓 (𝛼 ) = 0 is verified.
It is not always possible to solve this problem completely for all forms of functions f .
Definition 2:
We say that a root α of an equation f(x) = 0 is separable if we can find an interval [a, b] such
that α is the only root of this equation in [a, b]. The root α is then said to be separated (we also
say isolated root).
2. Root separation
There is no general method for separating the roots of an equation f(x) = 0.
In practice, apart from the direct theoretical study of f if f is given analytically, two types of
methods are used:
2.1 Graphical method
a) We draw the graph of the function f and we look for its intersection with the abscissa
axis (ox) :
b) We decompose f into two functions f1 and f2 which are easy to study, such that
𝑓 = 𝑓1 − 𝑓2 ; and we look for the points of intersection of the graphs of f1 and f2 , whose
abscissas are exactly the roots of the equation f(x) = 0
Note : We often choose f1 and f2 so that their curves are known curves.
Examples:
1
Let's graphically solve the equation:𝑓 (𝑥 ) = log(𝑥 ) − 𝑥 = 0
1
Module: Numerical Methods Mme: BENAMARA
Chapter: Solving Non linear Equations
According to a and b, there exists at least one value a , b such that f 0
Moreover, if f x is monotone on the interval a , b), then the root is unique on a , b
3. Iterative methods
3.1 Dichotomy Method
We consider a real function f defined on an interval [ a, b ] , with a < b , and continuous
on this interval and we assume that f admits a unique root on I =] a, b [, that is to say that
there exists a unique α ∈ I such as 𝑓(𝛼 ) = 0.
We consider an interval [ a, b ] and a continuous function f from [ a, b ] to R. We assume that
𝑓 (𝑎). 𝑓(𝑏) < 0and that the equation 𝑓 (𝑥 ) = 0has a unique solution α on the interval [ a, b ] .
Dichotomy method consists of constructing a sequence ( x n ) which converges to α in the
following manner:
Initialization: we take x 0 as the middle of [ a, b ] . The root is then in one of the two intervals:
] a, x 0 [ or ] x 0 , b [ or it is equal to x 0 .
• if 𝑓(𝑎). 𝑓(𝑥0 ) < 0, then α ∈ ] a, x 0 [ . We set a 1 = a , b 1 = x 0 .
• if 𝑓(𝑎). 𝑓 (𝑥0 ) = 0, then α = x 0 .
• if 𝑓(𝑎). 𝑓 (𝑥0 ) > 0, then α ∈ ] x 0 , b [ . We set a 1 = x 0 , b 1 = b .
2
Module: Numerical Methods Mme: BENAMARA
Chapter: Solving Non linear Equations
We then take for x 1 the middle of [ a 1 , b 1 ] .
We thus construct a sequence:
𝑎+𝑏 𝑎1 +𝑏1 𝑎𝑛 +𝑏𝑛
𝑥0 = , 𝑥1 = , . . . ,𝑥𝑛 =
2 2 2
Proposal :
The sequences (𝑎𝑛 )𝑛∈𝑁 , (𝑏𝑛 )𝑛∈𝑁 and (𝑥𝑛 )𝑛∈𝑁 all converge to . Furthermore, we
3
Module: Numerical Methods Mme: BENAMARA
Chapter: Solving Non linear Equations
Example :
Write the equation f(x)=0 in the form x = g(x) for 𝒇 ( 𝒙 ) = 𝒙 𝟐 + 𝟑𝒆 𝒙 − 𝟏𝟐 .
We can write
𝒙 = 𝒈 𝟏 ( 𝒙 ) = 𝒙 𝟐 + 𝟑𝒆 𝒙 − 𝟏𝟐 + 𝒙
𝒙 = 𝒈 𝟐 ( 𝒙 ) =√𝟏𝟐 − 𝟑𝒆𝒙
𝟏𝟐−𝒙𝟐
𝒙 = 𝒈 𝟑 ( 𝒙 ) =𝐥𝐧
𝟑
4
Module: Numerical Methods Mme: BENAMARA
Chapter: Solving Non linear Equations
Error estimation:
The minimum number of iterations for the solution to be approximated with precision
𝜺 is | 𝒙 𝒏− α | < 𝜺
𝒌𝒏
Knowing that|𝒙𝒏 − 𝜶| ≤ |𝒙𝟏 − 𝒙𝟎 |
𝟏−𝒌
So
(𝟏−𝒌)𝜺
𝒍𝒏( )
|𝒙𝟏 −𝒙𝟎 |
𝒏> , 𝒌 = 𝒎𝒂𝒙 𝒙 ∈ [ 𝒂 , 𝒃 ] | 𝒈 ′( 𝒙 )|
𝐥𝐧(𝒌)
Example :
Find the first root of the equation 𝐥𝐧 ( 𝒙 ) − 𝒙 𝟐 + 𝟐 = 𝟎 which belongs to [0.1, 0.5]
with a precision ε=0.001.
We write this equation in the form x = g(x) and we check the conditions of
convergence.
We can write:
2 −2
𝑥 = 𝑒𝑥 = 𝑔1 (𝑥) And
𝑥 = √ln(𝑥) + 2 = 𝑔2 (𝑥)
Let us check the convergence condition for this method𝒌 = 𝒎𝒂𝒙𝒙∈[𝒂,𝒃] |𝒈′ 𝒙)|
𝟐 −𝟐
𝒌 𝟏 = 𝒎𝒂𝒙 𝒙 ∈ [ 𝟎 . 𝟏 , 𝟎 . 𝟓 ] | 𝒈 𝟏 ′( 𝒙 )| = 𝒎𝒂𝒙 𝒙 ∈ [ 𝟎 . 𝟏 , 𝟎 . 𝟓 ] | 𝟐𝒙𝒆𝒙 |.
we have 𝒈 𝟏 ′( 𝒙 ) strictly increasing therefore
𝟐 −𝟐
𝒌 𝟏 = 𝒎𝒂𝒙 𝒙 = 𝟎 . 𝟓 | 𝟐 ∗ 𝟎. 𝟓𝒆𝟎.𝟓 | = 𝟎 . 𝟏𝟕𝟒 < 𝟏 this form converges.
We then write:
𝟐
𝒙 𝒏 + 𝟏 = 𝒈 𝟏 ( 𝒙 𝒏 )=𝒆𝒙𝒏 −𝟐 (for n=0,1,2,…..)
Let's start x 0 = 0.3 (for example the middle of the given initial interval):
𝟐
𝒏 = 𝟎, 𝒙 𝟏 = 𝒈 𝟏 (𝒙 𝟎 ) = 𝒆𝒙𝟎−𝟐= 0.148
We calculate |𝑥 1 − 𝑥 0 | = 0.152 > 𝜀 ;
𝟐
𝒏 = 𝟏, 𝒙 𝟐 = 𝒈 𝟏 (𝒙 𝟏 ) = 𝒆𝒙𝟏−𝟐= 0.138 .
We calculate |𝑥 2 − 𝑥 1 | = 0.01 > 𝜀
𝟐
𝒏 = 𝟐, 𝒙 𝟑 = 𝒈 𝟏 (𝒙 𝟐 ) = 𝒆𝒙𝟐 −𝟐= 0.138 .
We calculate |𝑥 3 − 𝑥 2 | = 0.00 < 𝜀 , The solution is 𝒙 𝟐 = 𝟎. 𝟏𝟑𝟖
5
Module: Numerical Methods Mme: BENAMARA
Chapter: Solving Non linear Equations
3.3 Newton's method:
This is the most efficient and widely used method, it is based on the Taylor
development. If f(x) is continuous and continuously differentiable in the neighborhood
of 𝒙 ̅ solution of f(x)=0 , then the Taylor series development around an estimate 𝒙 𝒏
close to 𝒙 ̅ is written:
̌−𝒙𝒏 )
(𝒙 ̌−𝒙𝒏 )𝟐
(𝒙
𝒇 ( 𝒙 ) = 𝒇 ( 𝒙 𝒏) + 𝒏 𝒇' ( 𝒙 𝒏) + 𝒇'' ( 𝒙 𝒏 ) + ⋯
𝟏! 𝟐!
𝒇 ( 𝒙 𝒏 )+ ( 𝒙 − 𝒙 𝒏 ) 𝒇 '( 𝒙 𝒏 ) ≈ 𝟎
𝒇(𝒙𝒏 )
̌ = 𝒙𝒏 −
SO 𝒙
𝒇′ (𝒙𝒏 )
𝒇(𝒙𝒏 )
𝒙𝒏+𝟏 = 𝒙𝒏 − (n=0,1,2,…..)
𝒇′ (𝒙𝒏 )
6
Module: Numerical Methods Mme: BENAMARA
Chapter: Solving Non linear Equations
Newton's theorem :
F ( x ) be a class C 2 function on the interval [ a , b ], such that:
1. 𝒇(𝒂). 𝒇(𝒃) < 0
2. 𝒇’(𝒙) ≠ 𝟎 ( f (monotonic on [ a , b ]) There exists α ]a,b[ such that f (α ) = 0
3. f '' ( x ) keeps a constant sign on the interval [ a , b ] ( f '' ( x ) < 0 where f '' ( x ) > 0 )
4. Starting from a point x 0 which satisfies the inequality 𝒇(𝒙𝟎 ). 𝒇′′(𝒙𝟎 ) > 0(verified by
the choice of x 0 )
If the conditions announced above are satisfied, then Newton's process:
𝒙𝟎 choisi
{ 𝒇(𝒙𝒏 )
𝒙𝒏+𝟏 = 𝒙𝒏 −
𝒇′ (𝒙𝒏 )
Converges for this choice of x 0 to the unique solution a of f ( x )
Additionally, we have the following estimate:
𝑴
| 𝒙𝒏 − 𝜶 | ≤ |𝒙 − 𝜶| , ∀ 𝒏 > 0
𝟐𝒎 𝒏−𝟏
With𝑀 = max |𝑓 ′′ (𝑥 )| , 𝑚 = min |𝑓 ′′ (𝑥 )|
𝑥∈[𝑎,𝑏] 𝑥∈[𝑎,𝑏]