Professional Documents
Culture Documents
Chap2 Non Linear Equations
Chap2 Non Linear Equations
ELECTRONIC LECTURE
THEOREM
Given an equation f (x) = 0 and an interval [a, b]. If
f (x) is continuous on [a, b], f (a). f (b) < 0 and f is
monotone on [a, b], then equation f (x) = 0 has a
unique real root on [a, b].
Dau The Phiet (BK TPHCM) NONLINEAR EQUATION TP. HCM — 2020. 2 / 27
EXAMPLE
Determine all isolated intervals containing root of the
following equations:
x 3 − 6x + 2 = 0
ex − x2 = 0
Dau The Phiet (BK TPHCM) NONLINEAR EQUATION TP. HCM — 2020. 3 / 27
ESTIMATION ERROR FOR ROOT
THEOREM
Suppose that f (x) is continous and differential on
[a, b] and ∀x ∈ [a, b], | f 0 (x)| Ê m > 0. If equation f (x) = 0
has approximate root x ∗ and exact root x , then the
absolute error ∆x ∗ of x ∗ is:
| f (x ∗ )|
∆ x∗
∗
= |x − x| É
m
EXAMPLE
Suppose that the equation f (x) = x 3 − 5x 2 + 12 = 0 has
approximate solution x ∗ = −1.37 on [−2, −1]. Estimate
the error of x ∗ , rounding to 4 decimal digits.
Dau The Phiet (BK TPHCM) NONLINEAR EQUATION TP. HCM — 2020. 4 / 27
THE BISECTION METHOD
THEOREM
Let function f (x) is continous on [a, b] and
f (a) f (b) < 0. Then bisection method generates a
sequence {x n } that converges to the exact solution x of
equation f (x) = 0 with the error:
¯ ¯
¯ an + bn ¯ 1 b−a
|x n − x| = ¯¯ − x ¯¯ É (b n − a n ) = n+1 .
2 2 2
DEFINITION
A decimal number is called correct within k decimal
places if its absolute error ≤ 0.5 × 10−k
Dau The Phiet (BK TPHCM) NONLINEAR EQUATION TP. HCM — 2020. 6 / 27
THE BISECTION METHOD
EXAMPLE
Let the equation f (x) = 5x 3 − cos 3x = 0 have a root on
[0, 1]. Using bisection method to find x 5 and estimate
its error.
EXAMPLE
p
Let the equation f (x) = x − cos x = 0 have a root on
[0, 1]. Using bisection method to find x 5 and find its
error.
EXAMPLE
Let the equation f (x) = x − tan x = 0 have a root on
[4, 4.5]. Using bisection method to find approximate
solution which has error less than 10−2 .
Dau The Phiet (BK TPHCM) NONLINEAR EQUATION TP. HCM — 2020. 7 / 27
THE BISECTION METHOD
EXAMPLE
How many steps must be calculated such that the
appproximate root of equation 2 + cos(e x − 2) − e x = 0
on [0.5, 1.5] is correct within 4 decimal places.
Dau The Phiet (BK TPHCM) NONLINEAR EQUATION TP. HCM — 2020. 8 / 27
THE BISECTION METHOD
EXAMPLE
A trough of length L has a cross section in the shape of
a semicircle with radius r (see the figure). When fill
with water to within a distance h of the top, the
volume V of water is
h p i
2 2
V = L 0.5πr − r arcsin (h/r ) − h r 2 − h2
Dau The Phiet (BK TPHCM) NONLINEAR EQUATION TP. HCM — 2020. 9 / 27
THE BISECTION METHOD
Dau The Phiet (BK TPHCM) NONLINEAR EQUATION TP. HCM — 2020. 10 / 27
THE BISECTION METHOD
Dau The Phiet (BK TPHCM) NONLINEAR EQUATION TP. HCM — 2020. 11 / 27
FIXED POINT ITERATION METHOD
FIXED POINT
DEFINITION
The point x is called fixed point of function f if
f (x) = x
Dau The Phiet (BK TPHCM) NONLINEAR EQUATION TP. HCM — 2020. 12 / 27
FIXED POINT ITERATION METHOD
EXAMPLE
Given the equation x 3 − x − 1 = 0 , we can write:
x = x3 − 1
p
3
x = 1+x
1 1
x= + 2
x x
Dau The Phiet (BK TPHCM) NONLINEAR EQUATION TP. HCM — 2020. 13 / 27
FIXED POINT ITERATION METHOD
THEOREM
If g (x) is differential on [a, b], moreover, there exist a
positive constant q < 1 such that
EXAMPLE
Show that g (x) = (x 2 − 1)/3 has a unique fixed point on
the interval [−1, 1].
Dau The Phiet (BK TPHCM) NONLINEAR EQUATION TP. HCM — 2020. 14 / 27
FIXED POINT ITERATION METHOD
FIXED-POINT ITERATION
Dau The Phiet (BK TPHCM) NONLINEAR EQUATION TP. HCM — 2020. 15 / 27
FIXED POINT ITERATION METHOD
THEOREM
Function g differential on [a, b] and
|g 0 (x)| ≤ q < 1, ∀x ∈ [a, b], then for any x 0 ∈ [a, b], the
sequence defined by x n = g (x n−1 ) converges to the
unique fixed point x of g (x) in [a, b]
Proof
THEOREM
Mean value theorem
Function f (x) is differential on [a, b], then there exist a point c in
(a,b) such that:
f (b) − f (a) = f 0 (c)(b − a)
Dau The Phiet (BK TPHCM) NONLINEAR EQUATION TP. HCM — 2020. 16 / 27
FIXED POINT ITERATION METHOD
Then lim x n = x .
n→∞
Dau The Phiet (BK TPHCM) NONLINEAR EQUATION TP. HCM — 2020. 17 / 27
FIXED POINT ITERATION METHOD
ERROR ESTIMATION
Priori error
qn
∆xn = |x n − x| ≤ |x 1 − x 0 |
1−q
Posteriori error
q
∆xn = |x n − x| ≤ |x n − x n−1 |
1−q
Dau The Phiet (BK TPHCM) NONLINEAR EQUATION TP. HCM — 2020. 18 / 27
FIXED POINT ITERATION METHOD
EXAMPLE
5x 3 + 3
Let the equation x = = g (x). have a root on
20
(0, 1). Find the approximate solution x 3 by fixed point
iteration method and its error by two formulas, x 0 is
the midpoint on (0, 1).
Dau The Phiet (BK TPHCM) NONLINEAR EQUATION TP. HCM — 2020. 19 / 27
FIXED POINT ITERATION METHOD
EXAMPLE
Using fixed-point iteration method, find the
approximate solution x 3 of the equation
5
x = 3+ = g (x) on [3, 4] with x 0 = 3.5 and its error by
x2
two formulas.
EXAMPLE
Using fixed point iteration method, find the
approximate root whose
p
posteriori error less than
−3 3
10 of equation x = x + 1 = g (x) on [1, 2] with x 0 = 1.5
Dau The Phiet (BK TPHCM) NONLINEAR EQUATION TP. HCM — 2020. 21 / 27
FIXED POINT ITERATION METHOD
EXAMPLE
Using fixed point iteration method, find the
approximate root whose posteriori error less than
−3 x2 − ex + 2
10 of equation x = on [0, 1] with x 0 = 0.5
3
EXAMPLE
Using fixed point iteration method, how many steps
are necessary to ensure that the approximate root has
5
priori error less than 10−4 of equation x = + 2 on
x2
[2.5, 3] with x 0 = 2.5
Dau The Phiet (BK TPHCM) NONLINEAR EQUATION TP. HCM — 2020. 22 / 27
FIXED POINT ITERATION METHOD
NEWTON’S METHOD
Dau The Phiet (BK TPHCM) NONLINEAR EQUATION TP. HCM — 2020. 23 / 27
FIXED POINT ITERATION METHOD
ERROR
| f (x n )|
|x n − ξ| É .
m
Dau The Phiet (BK TPHCM) NONLINEAR EQUATION TP. HCM — 2020. 25 / 27
FIXED POINT ITERATION METHOD
EXAMPLE
Let the equation f (x) = x 3 − 3x + 1 = 0 have a root on
[0, 0.5]. Using Newton method, find x 3 and its error.
EXAMPLE
Let the equation f (x) = e x + 2−x + 2 cos x − 6 = 0 have a
root on [1, 2]. Using Newton method, find x 3 and its
error.
Dau The Phiet (BK TPHCM) NONLINEAR EQUATION TP. HCM — 2020. 26 / 27
FIXED POINT ITERATION METHOD
EXAMPLE
Given equation f (x) = ln(x − 1) + cos(x − 1) = 0 and its
containing root interval [1.3, 2]. Find approximate
root x n whose error less than 10−5 with Newton
method.
Dau The Phiet (BK TPHCM) NONLINEAR EQUATION TP. HCM — 2020. 27 / 27