M2
M2
1931 101
(U3)Bisection method (U3)Newton Raphson
3 let F(X) = X3- 3x -5=0
#Solve X - X - 1 = 0 Using
Step1:- substitute x=0,1,2... in f(x)
Bisection method until Values of two consecutive f(x)
3 have different signs.
Let F(X) = X - X - 1
Step1:- substitute x=0,1,2... in f(x) F(0) = -5 (-ve)
until Values of two consecutive f(x) F(1) = -7 (-ve)
have different signs. F(2) = -3 (-ve)
F(0) = -1 (-ve) F(3) = 13 (+ve)
F(1) = -1 (-ve)
Root lies between 2 & 3
F(2) = 5 (+ve)
let X0 = ___ = _____ = 2.5
a+b 2+3
Root lies between a=1 & b=2
2 2
Using Newton Raphson Method
| | | |
a+b
a b X = 2 F(Xn) sign of
(-ve) (+ve) n
F(Xn)
1 2 1.5 0.875 +ve
sign is +ve so replace b(+ve) with
Xn(1.5) in next line
1 1.5 1.25 -0.296 -ve
sign is -ve so replace a(-ve) with
Xn(1.25) in next line Put n=1 , we get X2,
1.25 1.5 1.375 0.224 +ve put n=2 , we get X3
Do this process until two
stop when two Xn values are equal consecutive values are equal
(U4)Newton's backward
X 0.30 0.40 0.50 0.60 0.70
F(X) 0.6179 0.6554 0.6915 0.7257 0.7580
From the following values compute F(0.63)
given X = 0.63
0.0375
0.40 0.6554 -0.0014
-0.0005
0.0361
0.50 0.6915 -0.0019 0.0005
0.0342 0
4
0.60 0.7257 -0.0019 ∇ Yn
0.0323 3
∇ Yn
2
0.70 0.7580 ∇ Yn
Xn ∇Yn
Yn 2
P = X -Xn
____ ________
YP = Yn + P.∇Yn + P(P+1).∇ Yn
h 1! 2!
3
P = 0.63 - 0.70 + P(P+1)(P+2).∇ Yn + P(P+1)(P+2)(P+3).∇4 Yn
0.10
P = -0.7 3! 4!
(U5)Trapezoidal rule, Simpson's 1/3 & 3/8 th rule
1)Trapezoidal rule formula Example problem
b h
∫F(X)dx = 2 [ (Yo + Yn)
a
+ 2(Y1 + Y2 + Y3 +..... + Yn-1 ) ]
Table making
After finding h value make a
table for 'X' starting with 'a'
value and increase with 'h' upto '
b'. and calculate corresponding '
Y' values using function given in
question by substituting 'X'
values
(U3)
(U3)Iteration method
Gauss Jacobi (or) Gauss siedel
#Let F(X) = X 3- X- 11 Let, 20X + Y- 2Z = 17 ............eq(1)
3X + 20Y - Z= -18 ...........eq(2)
Step1:- substitute x=0,1,2...
2X - 3Y + 20Z = 25 ............eq(3)
in f(x) until Values of two In question the eq(1) has
consecutive f(x) have different X-coefficient is bigger than
Y&Z -coefficients ... similarly
signs.
Y&Z- coefficients are bigger than
F(0) = -11 (-ve)
remaining coefficients in eq(2)&(3)
F(1) = -11 (-ve) here bigger coefficients are same ,i.e 20
F(2) = -5 (-ve) in another questions they are not same
F(3) = 13 (+ve) but we do same process
Root lies between 2 & 3 #Given system of equations are
a+b 2+3 Diagonally dominance
let X 0 = 2 = 2 = 2.5
1
By using Iteration method => from eq(1) , X =
20
[17 - Y + 2Z ]
•Find the 'X' value from
highest power term in F(X).
F (Yn,Zn )= 1 [17 - Yn+ 2Zn ] = X n ....eq(4)
X 20 |
1
3 => From eq(2), Y =
20
[ -18 - 3X + Z ]
=> X - X - 11 = 0
3
=> X = X + 11
1/3
1
F (X n ,Zn ) = 20 [-18 - 3X n+ Zn] = Yn ...eq(5)
Y |
=> X = (X + 11) 1
=> From eq(3), Z = [ 25 - 2X + 3Y ]
1/3 20
Q(X) = ( X+11 )
Now,
Z
1
_
|
....eq(6)
F ( Xn , Yn ) =20[ 25 - 2Xn+ 3Yn] = Zn
(1) 5 Variables
Xo,X1,X2,X3,X4 are 5 'x' variables
(2) 4 Variables
Xo,X1,X2,X3 are 4 'x' variables
(X - X1).(X - X2).(X - X3).Yo
Y(X)= (Xo - X1).(Xo - X2).(Xo - X3)
(X - Xo).(X - X2).(X - X3).Y1
+ (X1 - Xo).(X1 - X2).(X1 - X3).
(X - Xo).(X - X1).(X - X3).Y2
+ (X2 - Xo).(X2 - X1).(X2 - X3)
Secant method
Xo =4 , F(Xo) =48
X1=5, ∆F(Xo)=52
Formula
X2=7 , ∆2 F(Xo) = 15
F(X) = F(Xo) + ( X- Xo ).[∆F(Xo)]
X3=10, ∆3F(Xo) = 1
X4=11, 4 2
∆ F(Xo) = 0
+ ( X - Xo ).( X - X1 ). [ ∆ F(Xo)]
X5=13
3
In question X=8 +(X-Xo).(X-X1).(X-X2).[∆ F(Xo)]
+(X-Xo).(X-X1).(X-X2).(X-X3).[∆4F(Xo)]
(U5) RUNGE-KUTTA METHOD (U5) Taylor's method
# 4TH Order Let (Xo,Yo) = initial conditions given
in question
K1 = h . F( Xo, Yo )
Y1 = Yo + h.Yo' +
2
K2 = h . F[ Xo + (h/2) , Yo + (K1/2) ] h .Yo
__ ''
K3 = h . F[ Xo + (h/2) , Yo + (K2/2) ] 2!
K4 = h . F[ Xo + h , Yo + K3 ] 3 IV 4
o + h .Yo
h .Y'''
+ __
K = 1/6 [ K1 + 2(K2) + 2(K3) + K4 ] 3! 4!
Y1 = Y(Xo) = Yo + K Y' = 1st differentiation
(Xo,Yo) = initial conditions Y'' = 2nd differentiation
given in question Y''' = 3rd differentiation
IV
h = X1 - Xo Y = 4th differentiation
h = X1 - Xo
#2nd order
K1 = h . F( Xo, Yo ) (U5)Picard's Method
K2 = h . F[ Xo + h , Yo + K1 ] F( X,Y ) = function given in question
dy/dx = F(X,Y)
Y1 = Yo + 1/2 ( K1 + K2 )
X
n
(U5)Euler's method ∫
Y (X)= Yo + F ( X ,Y(n-1)) dx
Xo
Take ,F(X,Y) = dy/dx , h = X1 -Xo
Put n=1 ,(1st approximation)
Yn+1 = Yn + h.F( Xn ,Yn ) we get Y
(1)
(1)
Put n=0 , we get Y1 put n=2 ,and substitute Y value
(2) (2)
in Y , we get Y (2nd approximation)
Put n=1 , we get Y2
If Cubic power of X obtained then that
approximations we can calculate Y1 value