Professional Documents
Culture Documents
h
h2
h3
y0
y0
y0 .......
1 !
2 !
3 !
Using Taylor series method, find correct to 4 decimal the value of y (0.1),
dy
x 2 y 2 and y(0) = 1.
given
dx
n 0 ,
h
h2
h3
yn
yn
yn .......
1 !
2 !
3 !
y1 y0
y x2 y 2
y 2 2 yy 2( y )
x0 0
2
y0 1
y 2 x 2 yy
iv
y 2 yy 6 y y
y0 1
y 2 ;
y 8 ;
y iv 28
1
1
yn 1 yn h f ( xn h, yn h f [ xn , yn ]
2
2
What are the advantages of R-K method over Taylor series method?
The Runge-Kutta method are designed to give greater accuracy and they possess the
advantage of requiring only the function values at some selected points on the sub
interval.
Write the merits and demerits of the Taylors series method of solution.
Merits: (i) Taylor formula is easily derived for any order according to our interest
Page
Sub. Name & Code Statistics & Numerical Methods MA6452 Dept. of Mathematics Academic Year: 2014-15
10
11
(ii) The values of y(x) for any x (x need not be at grid points) are easily
obtained.
Demerits: (i) This method suffers from the time consumed in calculating the higher
derivatives
Write down Adams predictor-corrector formula.
h
yn 1 , p yn 55 yn' 59 yn' 1 37 yn' 2 9 yn' 3
24
h
yn 1 , c yn 9 yn' 1 19 yn' 5 yn' 1 yn' 2
24
Using Eulers method compute y(0.25) given y=2xy , y(0)=1
yn 1 yn h f ( xn , yn ) ,
y1 y0 h f ( x0 , y0 ) , where h x1 x0 .
1 0.25 f (0,1) 1
12
Q f(0,1) 0
13
14
( x xo ) n n
y ( ) o ( h n )
n!
What is the error of Eulers method?
Error
h 2 ''
y ( x1 , y1 ) o( h 2 )
2!
What are the limitations of Eulers method?
(i) The attainable accuracy is limited by length of step h
(ii) The method is slow and has limited accuracy.
What is the error in Fourth order Runge kutta method?
Error = O(h5)
Error at ( x x1 )
15
16
17
yn 1 yn h f ( xn h, yn h f [ xn , y n ]
2
2
18
19
20
3
h
yn 1 , c yn 1 yn' 1 4 yn' yn' 1
3
Write the forward, centre and backward finite difference formula for u x.
u i, j 1 u i, j
u i 1, j u i 1, j
u i, j u i 1, j
,
, ux
.
ux
ux
h
2h
h
Solve xy + y = 0, y(1) = 1, y(2) = 2 with h = 0.5.
xy + y = 0
Page
Sub. Name & Code Statistics & Numerical Methods MA6452 Dept. of Mathematics Academic Year: 2014-15
xi
[ y i 1 y i 1 2 y i ]
h2
y i 0 4 x i [ y i 1 y i 1 2 y i ] y i 0
(i)
dy
x 2 y 1,
dx
method.
Given x 0 0, y 0 1, h 0.1 and y x 2 y 1
Taylors series expansion is y n 1 y n
For n 0 ,
y1 y 0
h
h2
h3
yn
yn
yn .......
1!
2!
3!
h
h2
h3
y0
y0
y0 .......
1!
2!
3!
y x 2 y 1
(1)
/
y 0 1
//
y0 0
y // (x) 2xy x 2 y /
///
y0 2
y 0 6
iv
y (0.1) 1 (0.1)( 1)
(ii)
(0.1) 2
(0.1) 3
(0.1) 4
( 0)
( 2)
( 6) = 0.90033.
2
6
24
dy
y2 x2
2
,
dx y x 2
y (0) 1 at x =
y2 x2
y2 x2
To find y1 y (0.2) :
R K method (for n = 0) is: y1 y (0.2) y 0
k1 hf ( x 0 , y 0 ) 0.2 f (0,1)
1
k1 2 k 2 2 k 3 k 4
6
k
h
k 2 hf x0 , y 0 1 0.2 f 0.1,1.1
2
2
k
h
k 3 hf x0 , y 0 2 0.2 f 0.1,1.0936
2
2
k 4 hf x0 h, y 0 k 3 0.2 f 0.2,1.1967
-------- (2)
= 0.2
= 0.19672
= 0.1967
= 0.1891
Page
Sub. Name & Code Statistics & Numerical Methods MA6452 Dept. of Mathematics Academic Year: 2014-15
k
h
k
h
(i)
-------- (3)
= 0.1891
= 0.1795
= 0.1793
= 0.1688
find
(ii)
and
dy
x y 2 , y (0) 1 .
dx
Page
Sub. Name & Code Statistics & Numerical Methods MA6452 Dept. of Mathematics Academic Year: 2014-15
Given
(i)
given
and
given
.
Page
Sub. Name & Code Statistics & Numerical Methods MA6452 Dept. of Mathematics Academic Year: 2014-15
Given
Using
(ii)
and
from
dy
x y , y (0) 1 with
dx
By Euler algorithm,
(i)
given
dy xy
, y (0) 1
dx 2
1.022, y(0.3)=1.023.
By Adams method,
St.Josephs College of Engineering/St. Josephs Institute of Technology
No: 6
ISO 9001:2008
Page
Sub. Name & Code Statistics & Numerical Methods MA6452 Dept. of Mathematics Academic Year: 2014-15
Predictor:
Here
(ii)
Given:
=
For i= 1,
For i= 2,
For i= 3,
On solving ,we get
5
(i)
dy
y 2 , y (0) 1 by Modified Eulers method by choosing h =
dx
0.1, find y (0.1) and y (0.2).
Solve (1 x )
Page
Sub. Name & Code Statistics & Numerical Methods MA6452 Dept. of Mathematics Academic Year: 2014-15
y2
.
1 x
h
h
y n 1 y n h f ( x n , y n [ f ( x n , y n )]
2
2
0.1
0.1
, y0
[ f ( x0 , y 0 )]
Put n = 0, we get y1 y 0 0.1 f ( x0
2
2
0.1
0.1
y1 1 0.1 f (0
,1
[ f (0,1)]
2
2
y1 y (0.1) 0.91278
0.1
0 .1
, y1
[ f ( x1 , y1 )]
Put n = 1 we get y 2 y1 0.1 f ( x1
2
2
y 2 y (0.2) 0.84550
(ii)
Given:
Using the central difference approximation, we have
Page
Sub. Name & Code Statistics & Numerical Methods MA6452 Dept. of Mathematics Academic Year: 2014-15
Page