Академический Документы
Профессиональный Документы
Культура Документы
Section 1 Introduction
Section 2 Bisection method
Section 3 Simple Iterative Method
Section 4 Newton Iterative Method
Section 5 Secant method
Section 1 Introduction
Many problems in the science and engineering can be solved
by equation of one variable, namely f(x)=0.
The root of equation is also called the zero point of function.
There may be real roots and complex roots, and we just focus
on real roots.
Section 1 Introduction
General solution exists for equations such as
ax2 + bx + c = 0
The quadratic formula provides a quick answer to all
quadratic equations.
However, exact analytic solutions (formulas) dont exist for
some equations, such as those where the variables are in the
exponent, logarithm and trigonometric function.
Section 1 Introduction
1 Three steps to find the roots of an equation
(1)Check root existence
(2)Estimate root interval
(3)Get the accurate root
Section 1 Introduction
2 Estimate the root interval
1 construction of graph
Sketch the figure of y=f(x), then check where the curve intersect the horizontal
axis , by doing so we can get the root interval.
Separate f(x) into two parts, g1(x)=g2(x), and draw their curves in the same
coordinate system, and estimate the root interval by checking where they intersect
each other.
Section 1 Introduction
2 Step-by-step searching
For equation f(x)=0
Ascertain the root interval [a, b]
Select the step h=(b-a)/n, and get points xk=a+kh(k=0,1,,n)
Compute the value f(xk), the root interval [a, b] can be decided according to the
the sign of f(xk)
x3 x 1 0
x
0
0.5
1.5
2.0
f(x)
-1
-1.375
-1
0.875
sign
If n is large enough we can get the approximated root with any accuracy. But the
computing task may be too heavy, and hence this method is not a good solution.
bn an (b a) / 2n
When n , the intervals converge to one point, namely
the root.
x0 , x1 , x2 , , xk ,
For the given error limit , if the following requirement is met,
1
x xk (bk ak )
2
*
ba
bk ak bk ak k
2
1
*
x xk (bk ak )
2
accuracy
ba
ba
k log 2 (
)
k 1
2
2
ln( b a) ln( 2 )
k
ln 2
x 3 4 x 2 10 0
f(1)=-5<0
interval
midpoint xn
f(2)=14>0
-(1,2)+
x0 1.5
f(1.5)>0
(1,1.5)
x1 1.25
f(1.25)<0
(1.25,1.5)
x2 1.375
f(1.375)>0
(1.25,1.375)
x3 1.313
f(1.313)<0
(1.313,1.375)
x4 1.344
f(1.344)<0
(1.344,1.375)
x5 1.360
f(1.360)<0
(1.360,1.375)
x6 1.368
f(1.368)>0
(1.360,1.368)
x7 1.364
x* x7 1.364
1
1
| x x | (1.368 1.360) 0.004 10 2 (Afterwards estimate )
2
2
*
Prior estimate:
n7
ba 1
x x n 1 10 2
2
2
*
x (x)
(2) Select a point x0 in [a, b] as initial value, and substitute x0 into the right side of
formula (1) to get a new approximation:
x1 ( x0 )
x2 ( x1 )
xn ( xn 1 )
(x)
2 iterative formula
x (x )
xn
2 x3 x 1 0
Iteration procedure
x 2x 3 1
x0 0
x0 0
x1 2x03 1 1
x2 2x13 1 3
x3 2x23 1 55
divergence
x3
x0 0
x1
2
x0 0
Iteration procedure
And so on:
x3 = 0.9940
x4 = 0.9990
x5 = 0.9998
x6 = 1.0000
x7 = 1.0000
x1 3
1
x0 1
0.7937
3
2
2
x2
x1 1 3 1.7937
0.9644
2
2
x [a, b], a ( x) b
then
iteration process x
k 1
( xk )
x (x)
absolute error is
x * xk
1
xk 1 xk
1 L
[ a, b]
, all
f ( )
convergence
xk 1 ( xk ),
we can get
x* xk ( x* ) ( xk 1 )
( k )( x* xk 1 )
L x* xk 1
x* xk L x* xk 1
x* xk L x * xk 1
And so on
L2 x * xk 2
Lk x * x0
Because
L 1, lim ( x * xk ) 0
k
Conclusion
For any
x* xk L x* xk 1
x* xk 1 L x * xk
x* xk x * xk 1 xk 1 xk
substitute
x * xk 1 xk 1 xk
x* xk L x* xk xk 1 xk
1
x xk
xk 1 xk
1 L
*
conclusion
'( x) L 1
xk 1 ( xk ) will converge.
Give the required error
Based on the theorem
namely | x* xk |
1
xk xk 1
1 L
xk xk 1 (1 L)
xk
iteration terminal
criterion
2 x3 x 1 0
solution: two forms of iteration function
(1)
x 2 x 3 1 1 ( x)
(2)
divergence
x 1
2( x), 2( x) 1, x 0,1
2
convergence
e x 10 x 2 0
solution:
2 e
x 1( x )
10
x 2( x ) ln(2 10x )
ex
1
1 '( x)
10
2 '( x)
10
5
2 10 x
2 ex
Selected iteration function should be ( x )
10
2 ex
xk 1
10
x0 0
2 e x0
x1
0.1
10
x1 = 0.1000000
x2 = 0.0894829
x3 = 0.0906391
x4 = 0.0905126
x5 = 0.0905265
x6 = 0.0905250
x7 = 0.0905251
x*x7 = 0.090525
f ( xk )
f ( x ) f ( xk ) f ' ( x k ) ( x x k )
( x xk ) 2
2!
f ( xk ) f ' ( x k ) ( x x k )
f(x)=0 can be approximated as f(xk)+ f(xk)(x-xk)=0
Extract x from the above formula and denoted as xk+1 , that is
x k 1 xk
f ( xk )
f ' ( xk )
(k 0,1,...)
f ( x)
( x) x
f ( x)
Newton
iteration
formula
Newton
iteration
function
y f ( xn ) f ' ( xn ) ( x xn )
The intersection point with the horizontal axis will be
xn+1 for the next iteration, namely:
x n1 xn
f ( xn )
f ' ( xn )
tangent
x e x
f ( x) xe x 1
xe x 1 0
xk e xk
xk 1 xk
1 xk
x*
0.5
0.57102
0.56716
0.56714
|xk-xk-1|
0.07102
0.00386
0.00002
Disadvantage
Every iteration needs to compute the value of f(x) and the gradient
f(x), the computing load may be large
f ( xk )
xk 1 xk
f ( xk )
f ( xk )
xk 1 xk
f ( x0 )
f ( xk ) f ( xk 1)
f ( xk )
xk xk 1
xk 1 xk
f ( xk )
f ( xk )
f ( xk )
xk 1 xk
( xk xk 1 )
f ( xk ) f ( xk 1 )
f ( xk ) f ( xk 1 )
K AB
xk xk 1
f ( xk ) f ( xk 1 )
tan
xk xk 1
xk 1
f ( xk )
xk
( xk xk 1 )
f ( xk ) f ( xk 1 )
xk cot . f ( xk )
y f (x )
xk 1
xk 1
x*
xk
x e x
solution
f ( x) xe x 1 0
x0 0.5, x1 0.6
xk
0.5
0.6
0.56532
0.56710
0.56714
|xk-xk-1|
0.00178
0.00004
The secant method may converge more slowly than Newton iterative
method.
f ( x) x 3 3x 1
Simplified Newton method
Secant method
Newton method
f ( x ) 3x 2 3
f ( xk )
xk3 3xk 1
xk 1 xk
xk
f ( x0 )
3x02 3
f ( xk )
xk 1 xk
( xk xk 1 )
f ( xk ) f ( xk 1 )
f ( xk )
xk3 3xk 1
xk 1 xk
xk
f ( xk )
3xk2 3
Secant method
x0=0.5
x1=0.4
x2 = 0.3430962343
x3 = 0.3473897274
x4 = 0.3472965093
x5 = 0.3472963553
x6 = 0.3472963553
Accuracy 0.5*10-8
Simplified Newton: 11 times
Secant method: 5 times
Newton method
x0 =0.5
x1 =0.3333333333
x2 =0.3472222222
x3 =0.3472963532
x4 =0.3472963553
Convergence speed
Newton method
>
Secant method
>
Simplified
Newton method
Brief Summary
1 Bisection method
2 Simple iterative method
3 Newton iterative method
4 Secant method
Mathematical phrases