Wa0010.
Wa0010.
EXAMPLE 8.1
Given that
x: 1.0 1.1 1.2 1.3 1.4 1.5 1.6
y: 7.989 8.403 8.781 9.129 9.451 9.750 10.031
2
dy
find and d y at (a) x 1.1 (b) x 1.6.
dx dx2
Solution:
(a) The difference table is:
x y 2 3 4 5 6
1.0 7.989
0.414
1.1 8.403 – 0.036
0.378 0.006
1.2 8.781 – 0.030 – 0.002
0.348 0.004 0.001
1.3 9.129 – 0.026 – 0.001 0.002
0.322 0.003 0.003
1.4 9.451 – 0.023 0.002
346 • NUMERICAL METHODS IN ENGINEERING AND SCIENCE
x y 2 3 4 5 6
0.299 0.005
1.5 9.750 – 0.018
0.281
1.6 10.031
We have
dy 1 1 2 1 3 1 4 1 5 1 6
y0 y0 y0 y0 y0 y0 (i)
dx x 0 h 2 3 4 5 6
d2 y 1 2 11 5 137 6
and
dx2 h2 y0 3 y0 4 y0 5 y0 y0 (ii)
x 0 12 6 180
(b) We use the above difference table and the backward difference op-
erator instead of .
dy 1 1 2 1 3 1 5 1 6
yn yn yn yn yn (i)
dx x n
h 2 3 5 6
d2 y 1 2 11 5 137 6
and
dx2 h2 yn 3 yn 4 yn 5 yn yn (ii)
xn 12 6 180
d2 y 1 11 5
dx2 (0.1)2 0.018 0.005 (0.002) (0.003)
1.6 12 6
137
(0.002) 0.715.
180
EXAMPLE 8.2
The following data gives the velocity of a particle for twenty seconds
at an interval of five seconds. Find the initial acceleration using the entire
data:
Time t (sec): 0 5 10 15 20
Velocity v(m/sec): 0 3 14 69 228
Solution:
The difference table is:
t v v 2 v 3 v 4 v
0 0
3
5 3 8
11 36
10 14 44 24
55 60
15 69 104
159
20 228
dv
An initial acceleration i.e., at t 0 is required, we use Newton’s
dt
forward formula:
dv 1 1 1 1
v0 2 v0 3 v0 4 v0
dt t0 h 2 3 4
dv 1 1 1 1
3 (8) (36) (24)
dt t0 5 1 3 4
1
(3 4 12 6) 1
5
Hence the initial acceleration is 1 m/sec2.
348 • NUMERICAL METHODS IN ENGINEERING AND SCIENCE
EXAMPLE 8.3
Find the value of cos (1.74) from the following table:
x: 1.7 1.74 1.78 1.82 1.86
sin x: 0.9916 0.9857 0.9781 0.9691 0.9584
Solution:
Let y f (x) sin x. so that f (x) cos x.
The difference table is
x y y 2y 3y 4y
1.7 0.9916
– 0.0059
1.74 0.9857 – 0.0017
– 0.0076 0.0003
1.78 0.9781 – 0.0014 – 0.0006
– 0.0090 – 0.0003
1.82 0.9691 – 0.0017
– 0.0107
1.84 0.9584
Since we require f (1.74), we use Newton’s forward formula
dy 1 1 1 1
y0 2 y0 3 y0 4 y0 (i)
dx h 2 3 4
Here h 0.04, x0 1.7, y0 – 0.0059, 2y0 – 0.0017 etc.
Substituting these values in (i), we get
dy 1 1 1 1
0.0059 (0.0017) (0.003) (0.0006)
dx 1.74 0.04 2 3 4
1
(0.007) 0.175
0.04
Hence cos (1.74) 0.175
EXAMPLE 8.4
A slider in a machine moves along a fixed straight rod. Its distance x cm.
along the rod is given below for various values of the time t seconds. Find
the velocity of the slider and its acceleration when t 0.3 second.
NUMERICAL DIFFERENTIATION AND INTEGRATION • 349
d2 x 1 1 1
2 2
0.46 (0.01) (0.29) 45.6
dt 0.3 (0.1) 12 90
Hence the required velocity is 5.33 cm/sec and acceleration is
– 45.6 cm/sec2.
350 • NUMERICAL METHODS IN ENGINEERING AND SCIENCE
EXAMPLE 8.5
The elevation above a datum line of seven points of a road are given
below:
x: 0 300 600 900 1200 1500 1800
y: 135 149 157 183 201 205 193
Find the gradient of the road at the middle point.
Solution:
Here h 300, x0 0, y0 135, we require the gradient dy/dx at x 900.
The difference table is
x y y 2y 3y 4y 5y
0 135
14
300 149 –6
8 24
600 157 18 – 50
26 – 26 70
900 183 –8 20
18 –6 – 16
1200 201 – 14 4
4 –2
1500 205 – 16
– 12
1800 193
Using Stirling’s formula for the first derivative [(9) p. 000], we get
EXAMPLE 8.6
Using Bessel’s formula, find f(7.5) from the following table:
x: 7.47 7.48 7.49 7.50 7.51 7.52 7.53
f(x): 0.193 0.195 0.198 0.201 0.203 0.206 0.208
Solution:
Taking x0 7.50, h 0.1, we have p x x0 x 7.50
h 0.01
The difference table is
x p yp 2 3 4 5 6
7.47 –3 0.193
0.002
7.48 –2 0.195 0.001
0.003 – 0.001
7.49 –1 0.198 0.000 0.000
0.003 – 0.001 0.003
7.50 0 0.201 – 0.001 0.003 – 0.01
0.002 0.002 – 0.007
7.51 1 0.203 0.001 – 0.004
0.003 – 0.002
7.52 2 0.206 – 0.001
0.002
7.53 3 0.208
Using Bessel’s formula for the first derivative [(11) p. 000], we get
dy 1 1 1 1
y0 (2 y1 2 y0 ) 3 y1 ( 4 y2 4 y1 )
dx x0 h 4 12 24
1 5 1
y2 (6 y3 6 y2
120 240
dy 1 1 1 1
0.002 (0.001 0.001) (0.002) (0.004 0.003)
dx 7.5 0.01 4 12 24
1 1
(0.007) (0.010 0)
120 240
[ 6 y–2 0]
0.2 0 0.01666 – 0.0416 0.00583 0.00416 0.223.
352 • NUMERICAL METHODS IN ENGINEERING AND SCIENCE
EXAMPLE 8.7
Find f (10) from the following data:
x: 3 5 11 27 34
f(x): – 13 23 899 17315 35606
Solution:
As the values of x are not equispaced, we shall use Newton’s divided
difference formula. The divided difference table is
x f(x) 1st div 2nd div. 3rd div. 4th div.
diff. diff. diff. diff.
3 – 13
18
5 23 16
146 0.998
11 899 39.96 0.0002
1025 1.003
27 17315 69.04
2613
34 35606
Fifth differences being zero, Newton’s divided difference formula for
the first derivative (p. 274), we get
f(x) f(x0, x1) (2x – x0 – x1)f(x0, x1, x2)
[3x2 – 2x(x0 x1 x2) x0x1 x1x2 x2x0)] × f(x0, x1, x2, x3)
[4x3 – 3x2(x0 x1 x2 x3) 2x(x0x1 x1x2 x2x3 x3x0 x1x3 x0x2)
– (x0x1x2 x1x2x3 x2x3x0 x0x1x3)] f(x0, x1, x2, x3, x4)
Putting x0 3, x1 5, x2 11, x3 27 and x 10, we obtain
f (0) 18 12 × 16 23 × 0.998 – 426 × 0.0002 232.869.
EXAMPLE 8.8
From the table below, for what value of x, y is minimum? Also find this
value of y.
x: 3 4 5 6 7 8
y: 0.205 0.240 0.259 0.262 0.250 0.224
Solution:
The difference table is
x y 2 3
3 0.205
0.035
4 0.240 – 0.016
0.019 0.000
5 0.259 – 0.016
0.003 0.001
6 0.262 – 0.015
– 0.012 0.001
7 0.250 – 0.014
– 0.026
8 0.224
354 • NUMERICAL METHODS IN ENGINEERING AND SCIENCE
EXAMPLE 8.9
Find the maximum and minimum value of y from the following data:
x: –2 –1 0 1 2 3 4
y: 2 – 0.25 0 – 0.25 2 15.75 56
Solution:
The difference table is
x y y 2y 3y 4y 5y
–2 2
– 2.25
–1 – 0.25 2.5
0.25 –3
0 0 – 0.5 6
– 0.25 3 0
1 – 0.25 2.5 6
NUMERICAL DIFFERENTIATION AND INTEGRATION • 355
Exercises 8.1
11 1 41 6
5 x0 y0
20 6 140
41 6 3
If we replace y0 by 6 y0 , the error made will be negligible.
140 10
x0 6 h 3h
x0
f ( x)dx (y 5 y1 y2 6 y3 y4 5 y5 y6 )
10 0
Similarly
x0 12 h 3h
x0 6 h
f ( x)dx (y 5 y7 y8 6 y9 y10 5 y11 y12 ) and so on.
10 6
Adding all these integrals from x0 to x0 nh, where n is a multiple of 6,
we get
x0 nh 3h
x0
f ( x)dx (y0 5 y1 y2 6 y3 y4 5 y5 2 y6 5 y7 y8 ) (6)
10
This is known as Weddle’s rule.
EXAMPLE 8.10
dx 6
Evaluate
0 1 x2
by using
x 0 1 2 3 4 5 6
f(x) 1 0.5 0.2 0.1 0.0588 0.0385 0.027
y y0 y1 y2 y3 y4 y5 y6
(i) By Trapezoidal rule,
dx h
[(y y6 ) 2(y1 y2 y3 y4 y5 )]
6 1 x 2
2 0
0 1
[(1 0.027) 2(0.5 0.2 0.1 0.0588 0.0385)] 1.4108.
2
(ii) By Simpson’s 1/3 rule,
6 dx h
0 1 x 2
[(y0 y6 ) 4(y1 y 3 y5 ) 2(y2 y4
3
1
[(1 0.027) 4(0.5 0.1 0.0385) 2(0.2 0.0588)] 1.3662.
3
(iii) By Simpson’s 3/8 rule,
6 dx 3h
0 1 x 2
[(y0 y6 ) 3(y 1 y2 y4 y5 ) 2 y3 ]
8
3
[(1 0.027) 3(0.5 0.2 0.0588 0.0385) 2(0.1)] 1.3571
8
(iv) By Weddle’s rule,
6 dx 3h
0 1 x 2
[y0 5 y1 y2 6 y3 y4 5 y5 y6 ]
10
0.3[1 5(0.5) 0.2 6(0.1) 0.0588 5(0.0385) 0.027] 1.3735
dx
6
Also
0 1 x2
tan1 x 60 tan1 6 1.4056
This shows that the value of the integral found by Weddle’s rule is the
nearest to the actual value followed by its value given by Simpson’s 1/3 rule.
EXAMPLE 8.11
1 x2
Evaluate the integral
0 1 x3
dx using Simpson’s 1/3 rule. Compare
the error with the exact value.
Solution:
Let us divide the interval (0, 1) into 4 equal parts so that h 0.25.
2
Taking y x , we have
(1 x3 )
NUMERICAL DIFFERENTIATION AND INTEGRATION • 365
EXAMPLE 8.12
2
Use the Trapezoidal rule to estimate the integral 0
ex2 dx taking the
number 10 intervals.
Solution:
Let y ex2 , h 0.2 and n 10.
The values of x and y are as follows:
x: 0 0.2 0.4 0.6 0.8 1.0 1.2 1.4 1.6 1.8 2.0
y: 1 1.0408 1.1735 1.4333 1.8964 2.1782 4.2206 7.0993 12.9358 25.5337 54.5981
y0 y1 y2 y3 y4 y5 y6 y7 y8 y9 y10
EXAMPLE 8.13
0.6
Use Simpson’s 1/3rd rule to find 0
ex 2 dx by taking seven ordinates.
Solution:
Divide the interval (0, 0.6) into six parts each of width h 0.1. The val-
2
ues of y f x e– x are given below:
x 0 0.1 0.2 0.3 0.4 0.5 0.6
x2 0 0.01 0.04 0.09 0.16 0.25 0.36
y 1 0.9900 0.9608 0.9139 0.8521 0.7788 0.6977
y0 y1 y2 y3 y4 y5 y6
EXAMPLE 8.14
1.4
Compute the value of 0.2
(sin x log x e x )dx using Simpson’s 3/8
rule.
Solution:
Let y sin x – loge x ex and h 0.2, n 6.
The values of y are as given below:
x: 0.2 0.4 0.6 0.8 1.0 1.2 1.4
y: 3.0295 2.7975 2.8976 3.1660 3.5597 4.0698 4.4042
y0 y1 y2 y3 y4 y5 y6
By Simpson’s 3/8 rule, we have
1.4 3h
0.2
ydx
8
[(y0 y6 ) 2(y3 ) 3(y1 y2 y4 y5 )]
3
(0.2)[7.7336 2(3.1660) 3(13.3247)] 4.053
8
NUMERICAL DIFFERENTIATION AND INTEGRATION • 367
1.4
Hence 0.2
(sin x log e x e x )dx 4.053.
EXAMPLE 8.15
The velocity v(km/min) of a moped which starts from rest, is given at
fixed intervals of time t (min) as follows:
t: 2 4 6 8 10 12 14 16 18 20
v: 10 18 25 29 32 20 11 5 2 0
Estimate approximately the distance covered in twenty minutes.
Solution:
ds
If s (km) be the distance covered in t (min), then v
dt
20 h
20
s t0
0
v dt [ X 4.0 2.E], by Simpson’s rule
3
Here h 2, v0 0, v1 10, v2 18, v3 25 etc.
X v0 v10 0 0 0
O v1 v3 v5 v7 v9 10 25 32 11 2 80
E v2 v4 v6 v8 18 29 20 5 72
2
Hence the required distance s 20
t0 (0 4 80 2 72) 309.33 km.
3
EXAMPLE 8.16
The velocity v of a particle at distance s from a point on its linear path
is given by the following table:
s (m): 0 2.5 5.0 7.5 10.0 12.5 15.0 17.5 20.0
v (m/sec): 16 19 21 22 20 17 13 11 9
368 • NUMERICAL METHODS IN ENGINEERING AND SCIENCE
EXAMPLE 8.17
A solid of revolution is formed by rotating about the x-axis, the area
between the x-axis, the lines x 0 and x 1 and a curve through the points
with the following co-ordinates:
x: 0.00 0.25 0.50 0.75 1.00
y: 1.0000 0.9896 0.9589 0.9089 0.8415
Estimate the volume of the solid formed using Simpson’s rule.
376 • NUMERICAL METHODS IN ENGINEERING AND SCIENCE
1
To evaluate I systematically, we take h1 h and h2 h
2
2 2
I (h / 2) I2 h2 4I I1
so that (3) gives I 1 2 2
2
(h / 2) h 3
1
i.e., I(h, h / 2) [4I(h / 2) I(h)] (4)
3
Now we use the trapezoidal rule several times successively halving h
and apply (4) to each pair of values as per the following scheme:
I(h)
I(h, h/2)
I(h/2) I(h, h/2, h/4)
I(h/2, h/4) I(h, h/2, h/4, h/8)
I(h/4) I(h/2, h/4, h/8)
I(h/4, h/8)
I(h/8)
The computation is continued until successive values are close to each oth-
er. This method is called Richardson’s deferred approach to the limit and
its systematic refinement is called Romberg’s method.
EXAMPLE 8.18
dx 1
Evaluate
0 1 x
correct to three decimal places using Romberg’s
0.25
I [(1 0.5) 2(0.8 0.666 0.5714)] 0.697
2
(iii) When h 0.125, the values of y (1 x)–1 are:
x: 0 0.125 0.25 0.375 0.5 0.625 0.75 0.875 1
y: 1 0.8889 0.8 0. 7272 0.6667 0.6153 0.5714 0.5333 0.5
0.125
I [(1 0.5) 2(0.8889 0.8 0.7272 0.6667
2
0.6513 0.5714 0.5333)]
0.6941
Using Romberg’s formulae, we obtain
1 1
I(h, h / 2) [4I(h / 2) I(h)] [4 0.697 0.7083] 0.6932
3 3
1 1
I(h / 2, h / 4) [4I(h / 4) I(h / 2)] [4 0.6941 0.697] 0.6931
3 3
1
I(h, h / 2, h / 4) [4I(h / 2, h / 4) I(h, h / 2)] 0.6931
3
dx
1
Hence the value of the integral
0 1 x
0.693 (i)
dx
1
Also
0 1 x
1
log(1 x) 0 log 2 (ii)
EXAMPLE 8.19
1 dx correct to four decimal
Use Romberg’s method to compute 0 1 x2
places.
Solution:
We take h 0.5, 0.25 and 0.125 successively and evaluate the given
integral using the Trapezoidal rule.
(i) When h 0.5, the values of y (1 x2)–1 are
x: 0 0.5 1.0
y: 1 0.8 0.5
378 • NUMERICAL METHODS IN ENGINEERING AND SCIENCE
0.5
I [1 2 0.8 0.5) 0.775
2
(ii) When h 0.25, the values of y (1 x2)–1 are
x: 0 0.25 0.5 0.75 1.0
y: 1 0.9412 0.8 0.64 0.5
0.25
I [1 2(0.9412 0.8 0.64) 0.5] 0.7828
2
(iii) When h 0.125, we find that I 0.7848
Thus we have
I(h) 0.7750, I(h/2) 0.7828, I(h/4) 0.7848
Now using (4) above, we obtain
1 1
I(h, h / 2) [4I(h / 2) I(h)] (3.1312 0.775) 0.7854
3 3
1 1
I(h / 2, h / 4) [(4I(h / 4) I(h / 2)] (3.1392 0.7828) 0.7855
3 2
1 1
I(h, h / 2, h / 4) [4I(h / 2, h / 4) I(h, h / 2)] (3.142 0.7854) 0.7855
3 3
The table of these values is
0.7750
0.7854
0.7828 0.7855
0.7855
0.7848
Hence the value of the integral 0.7855.
EXAMPLE 8.20
0.5 x
Evaluate the integral 0
dx using Romberg’s method, correct
sin x
to three decimal places.
Solution:
Taking h 0.25, 0.125, 0.0625 successively, let us evaluate the given
integral by using Simpson’s 1/3 rule.
NUMERICAL DIFFERENTIATION AND INTEGRATION • 379
x
(i) When h 0.25, the values of y are
sin x
x: 0 0.25 0.5
y: 1 1.0105 1.0429
y0 y1 y2
By Simpson’s rule,
h 0.25
I [(y0 y2 ) 4 y1 ] [(1 1.0429) 1.0105]
3 3
0.5071
f (x ) h1 1 h
xn
i f ( x)dx [ f ( xn ) f ( x0 )] [ f ( xn )
i0
x0 2 12
h3
f ( x0 )] [ f ( xn ) f ( x0 )]
720
n1
i.e., 1
xn
f ( x)dx f (x ) 12 [ f (x ) f (x )] 12h [ f (x )
i n 0 n
h x0
i0
h3
f ( x0 )] [ f ( xn ) f ( x0 )]
720
1
[ f ( x0 ) 2 f ( x1 ) 2 f ( x2 ) 2 f ( xn1 ) f ( xn )]
2
h h3
[ f ( xn ) f ( x0 )] [ f ( xn) f ( x0 )]
12 720
x0 _ nh h
Hence x0
y dx [y0 2 y1 2 y2 2 yn1 yn ]
2
(5)
h2 h4
(yn y0) (y y0)
12 720 n
which is called the Euler-Maclaurin formula.
Obs. The first term on the right-hand side of (5) represents the
NOTE approximate value of the integral obtained from trapezoidal
rule and the other terms denote the successive corrections to
this value. This formula is often used to find the sum of a series
of the form
y(x0) y(x0 h) ... y(x0 nh).
EXAMPLE 8.21
Using the Euler-Maclaurin formula, find the value of loge 2 from
1dx
0 1 x
382 • NUMERICAL METHODS IN ENGINEERING AND SCIENCE
Solution:
1
Taking y , x 0, n 10, h 0.1, we have
(1 x) 0
1 6
y and y
.
(1 x)2 (1 x)4
Then the Euler-Maclaurin formula gives
1 dx 0.1 1 2 2 2 2
0 1 x
2 1 0 1 0.1 1 0.2 1 0.3 1 0.1
2 2 2 2 2 1
1 0.5 1 0.6 1 0.7 1 0.8 1 0.9 1 1
(0.1)2 1 1 (0.1)4 6 6
12 (1 1)2 (1 0)2 720 1 14 (1 0)4
0.693773 0.000625 0.000002 0.693149
dx 1
Also
0 1 x
1
log(1 x) 0 log e2
Hence loge 2 0.693149 approx.
EXAMPLE 8.22
Apply the Euler-Maclaurin formula to evaluate
1 1 1 1
2
2 2 2
51 53 55 99
Solution:
1 2 24
Taking y 2 , x0 51, h 2, n 24, we have y 3 , y 5
x x x
Then the Euler-Maclaurin formula gives
99 dx 2 1 2 2 2 1
51 x 2
2 2 2 2 2
2 51 53 55 97 99
(2)2 2 2 (2)4 24 24
5
12 993 513 720
99 5 51
1 1 1 1 1 99 dx
512 532 552
992 2 51 x2
1 1 1 1 1 1 8 1 1
2 2 3 3 5 5
2 51 99 3 51 99 30 51 99
99
1 1
0.000243 + 0.0000022 0.00499 approx.
2 x 51
388 • NUMERICAL METHODS IN ENGINEERING AND SCIENCE
EXAMPLE 8.23
dx 1
Evaluate
1 1 x 2
using Gauss formula for n 2 and n 3.
Solution:
(i) Gauss formula for n 2 is
1 dx 1 1 1
I 1 1 x 2
f f where f ( x)
3 3 1 x2
1 1 3 3
I 2
2
1.5.
1 (1 3) 1 (1 / 3) 4 4
(ii) Gauss formula for n 3 is
8 5 3 3 1
I f (0) f f where f ( x)
9 9 5 5 1 x2
8 5 5 5 8 50
Thus I (1) 1.5833 .
9 9 8 8 9 72
EXAMPLE 8.24
1 dx
Using the three-point Gaussian quadrature formula, evaluate
0 1 x
Solution:
We first change the limits (0, 1) to – 1 to 1 by (8) above, so that
1 1 1
x (1 0) u (1 0) ( u 1).
2 2 2
1
1 dx 1
du 1 du
I 0
1 x
1
2
1
1 u 3
1 ( u 1)
2
Gauss-formula for n 3 is
8 5 3 3 1
I f (0) f f where f ( x)
9 9 5 5 1 x2
8 1 5
1 1
Thus I
9 3 9
(3 / 5) 3 (3 / 5) 3
NUMERICAL DIFFERENTIATION AND INTEGRATION • 389
8 25
0.29629 0.39682 0.6931
27 63
Otherwise (using the table):
1
I w1 f ( u1 ) w2 f ( u2 ) w3 f ( u3 ) where f ( ui )
ui 3
Using the abscissae and weights corresponding to n 3 in the above table,
we obtain
1 1 1
I (0.555) (0.8889) (0.555)
3 0.7746 30 3 0.7746
1
0.4497 0.5555 (0.8889) 0.2649 0.5555 0.6931.
3
EXAMPLE 8.25
2 x2 2 x 1
Evaluate 0 1 ( x 1)4
dx by the Gaussian three-point formula.
Solution:
Changing the limits of integration 0 to 2 to – 1 to 1 by
1 1 20 20
x (b a) u (b a) u u 1
2 2 2 2
2 x2 2 x 1 ( u 1)2 2( u 1) 1
1
I 0 1 ( x 1)4
dx
1 1 ( u 1 u)4
du [ dx du]
u2 4 u 4
1 1
1 ( u 2)4 1
du 1
f ( u)du
u2i 4 ui 4
w1 f ( u1 ) w2 f ( u2 ) w3 f ( u3 ) where f ( ui )
( ui 2)4 1
4 4
Now f (0) 4
2 1 17
3 ( (3 / 5) 2)2 15016
f 0.4614
5 [ (3 / 5) 2]4 1 3.2548
3 (3 / 5) 2 7.6984
f 4
0.1277
5 [ (3 / 5) 2] 1 60.2652
390 • NUMERICAL METHODS IN ENGINEERING AND SCIENCE
8 4 5
[0.4614 0.1277] 0.5365
9 17 9
Solution:
Changing the limits of integration (0.2 to 1.5) to (– 1, 1) by
1 1 1 1
x (b a) u (b a) (1.5 0.2) u (1.5 0.2)
2 2 2 2
0.65 u 0.85
1.5 1 1
2
I ex dx 0.65 e(0.65 u0.85)2 du 0.65 f ( u)du
0.2 1 1
Exercises 8.3
proximate value of .
NUMERICAL DIFFERENTIATION AND INTEGRATION • 393
EXAMPLE 8.27
Using trapezoidal rule, evaluate taking four sub-inter-
vals.
Solution:
Taking h k 0.25 so that m n 4, we obtain
1
I [ f(1,1) f(1,2) 2( f(1,1.25) f (1,1.5) f(1,1.75) )
64
f(2,1) f(2,2) 2( f(2,1.25) f(2,1.5) f (2,1.75)
2{ f(1.25,1) f(1.25,2) 2 f (1.25,1.25) f (1.25,1.5) f(1.25,1.75) )
f(1.5,1) f(1.5,2) 2( f(1.5,1.25) f(1.5,1.5) f(1.5,1.75) )
f(1.75,1) f(1.75,2) 2( f(1.75,1.25) f(1.75,1.5) f(1.75,1.75) )}]
0.3407
EXAMPLE 8.28
Apply Simpson’s rule to evaluate the integral
2.6 4.4 dxdy
I
2 4
xy
Solution:
Taking h 0.2 and k 0.3 so that m n 2, we get
hk
I [ f (4,2) 4 f (4,2.3) f (4,2.6)
91
4{ f (4.2,2) 4 f (4.2,2.3) f (4.2,2.6)}
f (4.4,2) 4 f (4.4,2.3) f (4.4,2.6)]
0.06
[0.6559 4(0.6246) 0.5962]
9
0.02
3.7505 0.025
3
Exercises 8.4
1 1
1. Evaluate
0 0
xe y dxdy using the Trapezoidal rule (h k 0.5).
2. Apply the Trapezoidal rule to evaluate
5 5 dxdy
(a)
1 1
x2 y2 )
, taking two sub-intervals.