Numercial Methods-2
Numercial Methods-2
1) Find by Taylor’s series method the value of y at x = 0.1 and x = 0.2 to five decimals from
dy
= x 2 y − 1, y ( 0 ) = 1 . Ans: y ( 0.1) = 0.90033, y ( 0.2 ) = 0.80227
dx
2) Employ Taylor’s method to obtain approximate value of y at x = 0.2 for the differential
dy
equation = 2 y + 3e x , y ( 0 ) = 0 . Compare the numerical solution obtained with the exact
dx
solution upto three decimal places. Ans: 0.811
dy
3) Solve by Taylor’s series method the equation = log e ( xy), y (1) = 2 for y(1.1) and y(1.2) .
dx
Ans: y (1.1) = 2.036, y (1.2 ) = 2.081
dy
4) Find an approximate value of y when x = 0.1 if = x − y 2 and y = 1 at x = 0 using
dx
Taylor’s series. Ans: 0.1938
5) Solve y = x + y, y(1) = 0. Find y(1.1) and y(1.2) by Taylor’s method. Compare the result
with its exact value. Ans: y (1.1) = 0.1103, y (1.2 ) = 0.2428
y1(1) = y 0 +
h
2
f (x0 , y 0 ) + f (x1 , y1E ) where y1(1) is known as the first modified value of y1
y1(2 ) = y 0 + f (x0 , y 0 ) + f (x1 , y1(1) ) , y1(2) is known as the second modified value of y1
h
2
y1(3) = y 0 + f (x0 , y 0 ) + f (x1 , y1(2 ) ) , y1(3) is known as the third modified value of y1
h
2
.
.
( )
y1(n ) = y 0 + f (x0 , y 0 ) + f x1 , y1(n −1) , y1( ) is known as the n th modified value of y1
h
2
n
----------------------------------------------------------------------------------------------------------------
Then, x 2 = x1 + h , y 2 = ?
To find y 2 use Modified Euler’s formula which is given below:
y2P = y1 + h f ( x1 , y1 ) ,
y 2(1) = y1 +
h
2
f (x1 , y1 ) + f (x 2 , y 2E ) , y 2(1) is known as the first modified value of y 2
y 2(2 ) = y1 + f (x1 , y1 ) + f (x 2 , y 2(1) ) , y2(2) is known as the second modified value of y 2
h
2
y 2(3) = y1 + f (x1 , y1 ) + f (x 2 , y 2(2 ) ) , y2(3) is known as the third modified value of y 2
h
2
.
.
y 2(n ) = y1 + f (x1 , y1 ) + f (x2 , y 2(n −1) ) , y2(n ) is known as the n th modified value of y 2
h
2
Similarly, we can find the values of y3 , y4 , ...
10) If water is drained from a vertical cylindrical tank by opening a valve at the base, the water
will flow fast when the tank is full and slow down as it continues to drain. As it turns out,
dy
the rate at which the water level drops is : = −k y
dt
where k is a constant depending on the shape of the hole and the cross-sectional area of the
tank and drain hole. The depth of the water y is measured in meters and the time t in minutes.
If the fluid level is initially 3m then determine the depth of the water when t=0.1 min and
0.2 min by taking k = 0.06 .
11) Assuming the drag is proportional to the square of velocity, we can model the velocity of a
dv c
falling object like a parachutist with the following differential equation: = g − d v2
dt m
where v is velocity, t = time, g is the acceleration due to gravity, c d is a second-order drag
coefficient, m= mass. Solve for the velocity and distance fallen by a 90-kg object with a drag
coefficient of 0.0225 kg/m. if the initial height is 1km.
y1 = y0 + k where k = (k1 + 2k 2 + 2k 3 + k 4 ) ,
1
6
h k h k
k1 = h f ( x0 , y0 ) , k 2 = h f x0 + , y 0 + 1 , k 3 = h f x0 + , y 0 + 2 ,
2 2 2 2
k 4 = h f ( x0 + h , y 0 + k 3 ) .
----------------------------------------------------------------------------------------
Then, x 2 = x1 + h , y 2 = ?
To find y 2 use the Runge-Kutta formula which is given below:
where k = (k1 + 2k 2 + 2k 3 + k 4 ) ,
1
y2 = y1 + k
6
h k h k
k1 = h f (x1 , y1 ) , k 2 = h f x1 + , y1 + 1 , k 3 = h f x1 + , y1 + 2 ,
2 2 2 2
k 4 = h f (x1 + h , y1 + k3 ) .
Similarly, we can find the values of y3 , y4 , ...
dy
1) Given = x3 + y, y (0) = 2. The value of y(0.2) = 2.073 , y(0.4) = 2.452 and
dx
y(0.6) = 3.023 are got by Runge-Kutta method of Fourth order. Find y(0.8) by Milne’s
predictor-corrector method taking h = 0.2 . Ans: y(0.8) = 3.795
dy
2) Given 2 = (1 + x 2 ) y 2 and y(0) = 1, y(0.1) = 1.06 , y(0.2) = 1.12, y(0.3) = 1.21, evaluate
dx
y(0.4) by Milne’s predictor-corrector method. Ans: y(0.4) = 1.2797 .
3) From the data given below, find y at x = 1.4 , using Milne’s predictor-corrector formula:
dy y
= x2 + x 1 1.1 1.2 1.3
dx 2
y 2 2.2156 2.4549 2.7514