Numerical Methods
Numerical Methods
NUMERICAL ANALYSIS
Intermediate Value
Theorem
Bisection Method
Secant Method
If f c[a, b] and k is
any number between
f (a) and f (b) then
theree exists c in [a,b]
for which f (c) k
Bisection Method
Bisection Method
Q1(b)... f ( x) x3 7 x 2 14 x 6
f (a) 2
[1,3.2]
f (b) 0.112
(an bn )
2
f ( pn )
an
bn
3.2
2.1
1.791
2.1
3.2
2.65
0.552125
2.65
3.2
2.925
.085828
2.925
3.2
3.0625
-0.05444
2.625
3.0625
2.84375
0.201263
2.84375
3.0625
2.953125
0.051167
2.953125
3.0625
3.007813
-0.00769
pn
( x x ) 2 f ( x )
f ( x) ( x x ) f ( x )
2
f ( x) 0 at P
xf ( x) f ( x )
p
f ( x )
f (x )
px
f ( x )
General Form:
f ( pn 1 )
pn pn 1
f ( pn 1 )
[1, 4]
p0 2
f ( x) 3 x 2 4 x 0
f ( p0 ) 5
f ( pn 1 )
f ( pn 1 )
f ( pn 1 )
f ( pn 1 )
-5
3.25
8.2031
8.2031
18.6875
2.8110
1.4082
1.4087
12.461
2.69799
0.0797
0.0808
11.0455
2.69068
0.000357
0.0003586
10.9565
2.69064
-0.0000008
pn pn 1
f ( pn )
Secant Method
We have to remove
the derivative
because it is difficult
to solve the
derivative of high
order function.
General Form:
f ( pn 1 )
pn pn 1
f ( pn 1 )
f (b) f (a )
f ( x)
ba
f ( pn 1 ) f ( pn 2 )
f ( Pn 1 )
pn 1 pn 2
f ( pn 1 )( pn 1 Pn 2 )
pn pn 1
f ( pn 1 ) f ( pn 2 )
Secant Method
f ( x) x3 4 x 2 10 0
[a, b] [1, 2]
p0 1
p1 2
pn 1
pn 2
f ( pn 1 )
f ( pn 2 )
pn
14
-5
1.26316
-1.60227
1.26316
-1.60227
14
1.33883
-0.4306
1.33883
1.26316
-0.43036 -1.60227
1.36662
0.02291
1.3666
1.3883
0.02264
-0.43036
1.36521
-0.0003
1.36521
1.3666
-0.0003
0.02264
1.36523
-0.000007
f ( pn )