





Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!






The process of evaluating a definite integral from a set of tabulated values of integrand
๐(๐ฅ) is called numerical integration.
Let ๐ผ = โซ ๐(๐ฅ) ๐๐ฅ
๐
๐
where ๐(๐ฅ) takes the values ๐ฆโ, ๐ฆโ, ๐ฆโ,... , ๐ฆ โ for ๐ฅ = ๐ฅโ, ๐ฅโ,... , ๐ฅ โ.
๐
๐
๐ฅ 0
+๐โ
๐ฅ 0
0
๐
1
2
๐โ 1
๐
๐
๐๐
Rule
๐
๐
0
๐
1
3
5
๐โ 1
2
4
6
๐โ 2
Number of subintervals must be even.
๐
๐
๐๐
Rule
๐
๐
0
๐
1
2
4
5
7
8
๐โ 1
3
6
9
๐โ 3
Number of subintervals must be multiples of 3.
Example 1: Evaluate โซ
๐๐ฅ
1 +๐ฅ
2
6
0
using:
(i) Trapezoidal rule (ii) Simpson's 1/3rd rule (iii) Simpson's 3/8th rule
Solution: Divide the interval ( 0 , 6 ) into six parts of width โ = 1.
The value of ๐
1
1 +๐ฅ
2
is given by:
(i) Trapezoidal Rule:
2
6
0
0
6
1
2
3
4
5
(ii) Simpson's 1/
rd
Rule:
2
6
0
0
6
1
3
5
2
4
(iii) Simpson's 3/
th
Rule:
2
6
0
0
6
1
2
4
5
3
Example 2: Use trapezoidal rule to estimate the integral โซ ๐
๐ฅ
2
2
0
๐๐ฅ taking 10
subintervals.
Solution: Let ๐ฆ = ๐
๐ฅ
2
, โ = 0. 2 and ๐ = 10
๐ฅ
2
๐ฅ
2
๐ฅ
2
2
0
0
10
1
2
3
4
5
6
7
8
9
Example 3: Use (๐) Trapezoidal (๐๐) Simpson's 1/3rd rule for โซ ๐
โ๐ฅ
2
0
๐๐ฅ with h=0.1 (or
by taking 7 ordinates)
Solution:
(i) Trapezoidal Rule:
โ๐ฅ
2
0
0
6
1
2
3
4
5
(ii) Simpson's 1/
rd
Rule:
โ๐ฅ
2
0
โ
3
0
6
1
3
5
2
4
Consider the equation
๐๐ฆ
๐๐ฅ
= ๐(๐ฅ, ๐ฆ) given ๐ฆ(๐ฅ
0
0
. To find an approximate value of y
corresponding to ๐ฅ, by Eulerโs method we have:
๐
๐โ 1
๐โ 1
๐โ 1
i.e., ๐๐๐ค ๐ฆ = ๐๐๐ ๐ฆ + โ (๐๐ฆ/๐๐ฅ)
Example 1: Using Euler's method, find ๐ฆ( 1 ) given
๐๐ฆ
๐๐ฅ
Solution: Divide the interval ( 0 , 1 ) into 10 subintervals with โ = 0. 1
The approximate value of ๐ฆ( 1 ) is 3.18.
Example 2: Given
๐๐ฆ
๐๐ฅ
๐ฆโ๐ฅ
๐ฆ+๐ฅ
, ๐ฆ( 0 ) = 1 , find ๐ฆ( 0. 1 )
Solution: Divide the interval ( 0 , 0. 1 ) into 5 subintervals with โ = 0. 02
Thus ๐ฆ( 0. 1 ) โ 1. 0928
By Eulerโs Method:
๐
๐โ 1
๐โ 1
๐โ 1
i.e., for first iteration: ๐ฆ 1
0
0
0
By Modified Eulerโs Method:
1
is computed initially by Eulerโs formula above and ๐(๐ฅ
0
0
) is replaced by
๐
( ๐ฅ
0
๐ฆ
0
) +๐
( ๐ฅ
1
๐ฆ
1
)
2
to obtain first modification ๐ฆ
1
( 1 )
i.e. ๐ฆ
1
( 1 )
0
๐(๐ฅ
0
,๐ฆ
0
)+๐(๐ฅ
1
,๐ฆ
1
)
2
Second modification is given by:
1
( 2 )
0
0
0
1
1
( 1 )
๐กโ
modification is given by:
1
(๐)
0
0 ,
0
1
1
(๐โ 1 )
The procedure is terminated when successive modification does not show any change.
Same procedure is repeated to find ๐ฆ 2
3
, and so onโฆ
๐กโ
modification of ๐ฆ
๐
is given by:
๐
(๐)
๐โ 1
๐โ 1
๐โ 1
๐
๐
( ๐โ 1
)
Example 1: Using modified Eulerโs method find ๐ฆ( 0. 2 ) and ๐ฆ( 0. 4 ) for ๐ฆ
โฒ
๐ฅ
๐ฆ( 0 ) = 0. Let โ = 0. 2
Solution: Given ๐ฆ
โฒ
๐ฅ
0
0
i) To find ๐ฆ( 0. 2 )
By Eulerโs Method: ๐ฆ
1
0
0
0
Fifth modification of ๐ฆ
2
2
( 4
)
1
1
1
2
2
( 4
)
Thus ๐ฆ
2
Example 2: Solve the following by Eulerโs modified method
๐๐ฆ
๐๐ฅ
= log(๐ฅ + ๐ฆ),
= 2 , find ๐ฆ
considering โ = 0. 2
Solution: Given ๐ฆ
โฒ
= log(๐ฅ + ๐ฆ), ๐ฅ
0
0
By Eulerโs Method: ๐ฆ 1
0
0
0
First modification of ๐ฆ 1
1
( 1 )
0
0
0
1
1
Second modification of ๐ฆ
1
1
( 2 )
0
0
0
1
1
( 1
)
Third modification of ๐ฆ 1
1
( 3 )
0
0
0
1
1
( 2
)
Thus ๐ฆ 1
Exercise:
that
๐๐ฆ
๐๐ฅ
= ๐ฅ + ๐ฆ and ๐ฆ( 0 ) = 1 Ans: y(0.3) โ 1.
Consider the differential equation
๐๐ฆ
๐๐ฅ
0
0
Let โ be increment in ๐ฅ and ๐ be the increment in ๐ฆ i.e.,
0
0
0
0
Then for finding the increment ๐ by Runge-Kutta method, calculate:
1
0
0
2
0
0
1
3
0
0
2
4
0
0
3
1
2
3
4
And ๐ฆ
1
0
The above method is also called fourth-order Runge Kutta method and is applicable to
linear or non-linear differential equation
Example 1: Apply Rune-Kutta fourth order method, to find an approximate value of
๐ฆ( 0. 2 ) given that
๐๐ฆ
๐๐ฅ
= ๐ฅ + ๐ฆ and ๐ฆ( 0 ) = 1.
Solution:
Given ๐ฅ 0
0
= 1 , โ = 0. 2. To find ๐:
1
0
0
2
0
0
1
3
0
0
2
4
0
0
3
1
2
3
4
Thus, ๐ฆ
0
Example 2: Using Runge-Kutta method of fourth order, solve
๐๐ฆ
๐๐ฅ
๐ฆ
2
โ๐ฅ
2
๐ฆ
2
+๐ฅ
2
, with ๐ฆ( 0 ) = 1 ,
find ๐ฆ( 0. 2 ).
Solution:
Given ๐ฅ 0
0
= 1 , โ = 0. 2. To find ๐:
1
0
0
2
0
0
1