7

Numerical Integration

7.0 INTRODUCTION

We know that Eqn1 can be evaluated if there exists a differentiable function F such that Eqn2 in Eqn3 However, in applications we come across integrals of the form Eqn4 which cannot be evaluated in closed form or analytical form. Sometimes Eqn5 is given by a set of recorded values

Eqn6

In such cases we use the method of numerical integration.

Numerical Integration is the process of evaluating a definite integral Eqn1 from a set of tabulated values of the integrand Eqn5, which is not known or complicated. This process is known as mechanical quadrature.

Geometrically, Eqn9 represents the area bounded by the curve Eqn10 and the x-axis between Eqn11 and Eqn12

The process of Numerical integration is carried out by first approximating the integrand Eqn13 by an interpolating polynomial Eqn14 and then integrating between the given limits. Thus Eqn15 is approximately equal to Eqn16

We shall now derive a general quadrature formula for equidistant ordinates based on Newton’s forward difference formula.

7.1 A GENERAL QUADRATURE FORMULA OR NEWTON-COTES QUADRATURE FORMULA

Let Eqn17 be the integral to be evaluated.

Divide Eqn18 into n subintervals each of equal length Eqn19

Let Eqn20 be the points of division of Eqn21 so that

Eqn22A

Eqn23

Let Eqn24 be the values of the function Eqn25 at the points Eqn26 respectively.

Newton’s forward difference formula for this data Eqn27 is

Eqn28

where

Eqn29 Eqn29A

When

Eqn30 Eqn31

Eqn32

Eqn32A(1)

From this general formula we deduce some important quadrature formulae by putting Eqn33

7.2 TRAPEZOIDAL RULE

The trapezoidal rule is

Eqn34a

Newton-Cotes formula is

Eqn34(1)

Put n = 1 in (1), then we get

Eqn35

Because in this case, we have only two points Eqn36 and Eqn37 of x and the values y0 and y1 of y, the second and higher differences are zero

Eqn40Eqn40a

Eqn41

Eqn42

This is known as trapezoidal rule. This is also known as general form of Trapezoidal rule or composite trapezoidal rule.

7.2.1 Geometrical meaning

The integral Eqn43 represents the area bounded by the curve Eqn44 the x-axis and the ordinates Eqn45 and Eqn46

In trapezoidal rule the curve Eqn47 is replaced by n straight line segments joining the points Eqn48 and Eqn49 and Eqn50 and Eqn51

The sum of the areas of these trapeziums is taken as the area under the curve.

Hence the name Trapezoidal rule.

C07F001

WORKED EXAMPLES

Example 1

Dividing the range into 10 equal parts, find the approximate value of Eqn52 by Trapezoidal rule.

Solution

Given Eqn53.

Here Eqn54 The interval is Eqn55

The interval Eqn56 is divided into 10 equal parts.

Eqn57

The values of x are Eqn58.

We shall find the values of Eqn59 at these points Eqn60

C07F001

By Trapezoidal rule,

Eqn83

Example 2

Evaluate Eqn103 using trapezoidal rule taking h = 0.25.

Solution

Given

Eqn104

Here

Eqn105

∴ the ponits are x0 = 0, x1 = 0.25, x2 = 0.5, x3 = 0.75,

x4 = 1, x5 = 1.25, x6 = 1.5, x7 = 1.75, x8 = 2,

We shall find the values of y and they are given by the table below.

C07F001

By Trapezoidal rule,

Eqn116

Example 3

A rocket is launched from the ground. Its acceleration is registered during the first 80 seconds and it is in the table below. Using trapezoidal rule find the velocity of the rocket at t = 80 secs.

t secs 0 10 20 30 40 50 60 70 80
f : cm/sec2 30 31.63 33.34 35.47 37.75 40.33 43.25 46.69 40.67

Solution

Let v and a be the velocity and acceleration at time t

Given a = f(t) cm/sec2

Eqn1723

We use trapezoidal rule to find the velocity v, when t = 80 secs

Eqn126a

They given table is

C07F001

Here n = 8, and h = 10

By Trapezoidal rule,

Eqn126

∴ when t = 80 secs, the velocity is v = 3037.95 cm/sec

Example 4

Evaluate Eqn127 using the following table by trapezoidal rule.

x 4 4.2 4.4 4.6 4.8 5 5.2
Eqn128 1.3863 1.4351 1.4816 1.5261 1.5686 1.6094 1.6487

Solution

The given table is

C07F001

Here Eqn137

By Trapezoidal rule,

Eqn138

Example 5

Evaluate Eqn139 dividing the range into 4 equal parts by Trapezoidal rule.

Solution

Given Eqn140

Here Eqn141. Interval is Eqn142

The interval Eqn143 is divided into 4 equal parts.

Eqn144

∴ the points are Eqn145

We find the values of Eqn146 at these points and they are given by the table below.

C07F001

By Trapezoidal rule,

Eqn154

7.3 SIMPSON’S RULE OR SIMPSON’S Eqn155 RULE

Simpson’s rule is Eqn155a

Proof: In the general quadrature formula put Eqn156.

Then the interval is Eqn157 to Eqn158. So, the points are Eqn159, Eqn160, Eqn161 and the values of y are Eqn162 respectively.

Since three values are given, third and higher differences are zero

Eqn164

Eqn165

Similarly,

Eqn166

Adding, we get

Eqn167

where n is a multiple of 2.

That is the number of sub-intervals should be 2, 4, 6, 8, . . .

This formula is called Simpson’s rule or Simpson’s Eqn168 rule.

It is also known as composite Simpson’s Eqn169 rule.

7.3.1 Geometrical meaning

In Simpson’s method in each interval Eqn170 Eqn170A where n is even, the curve Eqn171 is replaced by a second degree polynomial or parabola.

That is the curve Eqn172 is replaced by Eqn173 arcs of parabola. So, the area under the curve Eqn174 is taken as sum of the areas under the Eqn175 parabolic arcs.

The dotted line is the graph of Eqn176 and the thick lines are various parabolae.

C07F002

WORKED EXAMPLES

Example 1

Evaluate Eqn177 by dividing the interval into eight equal parts and hence find the approximate value of Eqn178

Solution

Given Eqn179

Here Eqn180

The interval is [2, 10].

We divide the interval into eight equal parts ∴ Eqn183

So, we use Simpson’s Eqn181 rule to find Eqn182

The points are Eqn184

The values of y at these pernts are given by the table below.

C07F001

By Simpson’s formula,

Eqn205

By direct integration,

Eqn206

Note: But the value of Eqn207 correct upto 5 places.

So, we find Simpson’s formula gives the value correctly to 3 decimal places.

Example 2

A rocket is launched from the ground. Its acceleration is registered during the first 80 seconds and it is in the table below. Using Simpson’s Eqn227 rule, find the velocity of the rocket at t = 80 secs.

t secs 0 10 20 30 40 50 60 70 80
f : cm/sec2 30 31.63 33.34 35.47 37.75 40.33 43.25 46.69 40.67

Solution

Let v be the velocity of the rocket at t secs,

Eqn228a

When Eqn228b

Given table is

C07F001

Here n = 8, h = 10

By Simpson’s Eqn237 rule,

Eqn238

∴ when t = 80 secs, the velocity is v = 3052.77 cm/sec

Example 3

Use Simpson’s Eqn272 rule to find Eqn273 by taking seven ordinates.

Solution

Given Eqn274

Here Eqn275

The interval is [0, 0.6] and divide the interval into six equal parts and so there will be seven ordinates.

Eqn276

The points are Eqn277

Now we shall find the values of Eqn279 at these points are given by the table below.

C07F001

By Simpson’s Eqn290 rule,

Eqn291

Eqn291A

Example 4

The following table gives the velocity u of a particle at time t:

t (secs) 0 2 4 6 8 10 12
v (m/sec) 4 6 16 34 60 94 136

Find the distance moved by the particle in 12 secs and also the acceleration at t = 2 secs.

Solution

Let s be the distance moved at time t

Let v and a be the velocity and acceleration at time t.

We know that velocity Eqn329 and accelerationEqn330

Eqn330a

When t = 12 secs, the distance travelled Eqn331, where y = v

The values of y are given by the table.

C07F001

By Simpson’s Eqn339 rule,

Eqn340

∴ when t = 12, distance moved is s = 552 meters

We want acceleration when t = 2 sec.

Eqn341

ie. we want to find the derivative of v.

So, we form the difference table.

C07F001

Newton’s forward formula is

Eqn345

where Eqn346

When Eqn347

Eqn348

∴ when t = 3 secs, the acceleration is a = 3 m/sec2

Example 5

Evaluate Eqn349using Simpson’s Eqn350 rule, given that

x 0 1 2 3 4 5 6
Eqn351 1 0 1 4 9 16 25

Solution

Let Eqn352

Here Eqn353

The number of intervals is 6 and h = 1 ∴ n = 6, a multiple of y2.

So, we can use Simpson’s Eqn354 rule

The points are Eqn355

The values of y are given by the table below.

C07F001

By Simpson’s rule,

Eqn365

Example 6

A solid of revolution is formed by rotating about the x-axis, the area between the x-axis and the lines x = 0, x = 1 and a curve through the points with the following coordinates.

x 0.0 0.25 0.50 0.75 1
y 1 0.9896 0.9589 0.9089 0.8415

Estimate the volume of the solid formed using Simpson’s rule.

Solution

The volume v of solid of revolution about the x-axis, the area between the curve Eqn366 the x-axis and the lines x = 0 and x = 1 is Eqn367

The interval [0, 1] is divided into four equal parts with h = 0.25

n = 4, a multiple of 2.

So, we can use Simpson’s Eqn368 rule to find the required volume Eqn369

The points are Eqn371

The values of Eqn371 are given by the table below.

C07F001

By Simpson’s rule,

Eqn378

∴ volume v = 2.8193 cubic units

7.4 Simpson’s Eqn379 rule

Simpson’s Eqn379a rule is

Eqn388a

Proof: We derive the formula using the general quadrative formula.

In the general quadrature formula, put n = 3

Then the interval is Eqn380 and the four values of y are Eqn381

So, the fourth and higher differences are zero

Eqn385

Now Eqn382

Eqn383

Eqn385a

Eqn386

Similarly,

Eqn387

Adding we get

Eqn388

where n is a multiple of 3.

This formula is called Simpson’s Eqn389 rule.

This formula is also known as Composite Simpson’s Eqn379a rule.

Note: For applying Simpson’s Eqn390 rule, the number of sub-intervals of Eqn391 should be a multiple of 3. Usually we divide into 6 or 9 sub-intervals.

7.4.1 Geometrical Meaning

In Simpson’s Eqn394aa rule, in each interval,

Eqn394 Eqn394A

Where n is a multiple of 3, the curve Eqn395 is replaced by Eqn399 are of a cubic polynomials.

So, the area under the curve Eqn398 is taken as the sum of the areas under the Eqn399 arcs of the cubic polynomial.

The dotted line is the curve Eqn400 and the thick lines are various arcs of the cubic polynomials.

C07F003

WORKED EXAMPLES

Example 1

Evaluate Eqn401 taking 7 ordinates by applying Simpson’s Eqn402 rule. Deduce the value of loge2.

Solution

Let Eqn403

Here Eqn404

Since the number of ordinates is 7, the number of subintervals is 6.

Eqn405

∴ the points are Eqn405a

The values of y are y0, y1, y2, y3, y4, y5, y6 and they are given by the table below.

C07F003

By Simpson’s Eqn419 rule,

Eqn420

Eqn420a

But

Eqn421

Example 2

A curve is drawn to pass through the points given by the following table.

x 1 1.5 2 2.5 3 3.5 4
y 2 2.4 2.7 2.8 3 2.6 2.1

Using Simpson’s Eqn467 rule, estimate the area bounded the curve, Eqn468 the x-axis and the lines x = 1, x = 4.

Solution

Required area is A = Eqn468a

The given table is

C07F003

Number of intervals is 6 and h = 0.5

n = 6, a multiple of 3.

So, we can use Simpson’s Eqn476 rule to find the required area bounded by Eqn477 the x-axis and the lines x = 1, x = 4,

By Simpson’s Eqn478 rule,

A =Eqn479

∴ area is Eqn479a

Example 3

A river is 60 ft wide. The depth y feet at a distance x ft from one bank is given by the following table.

x 0 10 20 30 40 50 60
y 0 4 7 9 12 15 14

Find approximately the area of cross-section.

Solution

The area of the cross-section is Eqn479b

The given table is

C07F003

Number of intervals is 6 and h = 10

n = 6, a multiple of 3.

So, we use Simpson’s Eqn487 rule to find the area of the cross-section.

By Simpson’s Eqn488 rule,

Eqn489

∴ area of the cross-section is A = 547.5 sq.ft

Example 4

The velocity v of a particle at a distance s from a point on its path is given by the table

s.ft 0 10 20 30 40 50 60
v ft/sec 47 58 64 65 61 52 38

Estimate the time taken to travel 60 ft by using Simpson’s Eqn490 rule. Compare the result with Simpson’s Eqn491 rule.

Solution

Let s be the distance travelled and v be the velocity at time t secs.

∴ We know that velocity Eqn492A

Eqn492

∴ the time taken to travel s = 60 ft is Eqn493. Let Eqn492b

We shall form the table of values of y.

C07F003

Here h = 10 and n = 6, even

By Simpson’s Eqn502 rule,

Eqn503

Here h = 10,

Eqn504

By Simpson’s Eqn505 rule,

Eqn506

∴ the time taken by the particle to travel 60 ft by the two methods are equal, correct to 2 places of decimals.

Example 5

Evaluate Eqn507 by using (i) direct integration (ii) Trapezoidal rule (iii) Simpson’s Eqn508 rule (iv) Simpson’s Eqn509 rule.

Solution

Let Eqn510

Here Eqn511

Let Eqn512 Eqn513

The parts are Eqn514

C07F003

(ii) Trapezoidal rule

By Trapezoidal rule,

Eqn524

(iii) Simpson’s Eqn525 rule

By Simpson’s Eqn526 rule,

Eqn527

(iv) Simpson’s Eqn528 rule

By Simpson’s Eqn529 rule,

Eqn530

Eqn530_a

(i) By direct integration

Eqn531

7.5 BOOLE’S RULE

Boole’s rule is

Eqn556a

Proof: We derive the formula using the general quadrature formula

In the general quadrature formula, put Eqn556 then the interval is Eqn557 and the five values of y are Eqn558

So, the fifth and higher differences are zero.

Eqn560

Now

Eqn559

Eqn560b

Eqn560A

Similarly,

Eqn561

Adding all these integrals, we get

Eqn562

where n is a multiple of 4

ie the number of sub-intervals should be 4, 8, 12, ...

This formula is called Boole’s formula.

This formula is also known as composite Boole’s formula.

WORKED EXAMPLES

Example 1

Evaluate Eqn563 using Boole’s rule with Eqn564

Solution

Let Eqn565

Here Eqn567

∴ number of sub-intervals is 4,

So, we can use Boole’s rule.

The points are Eqn568

The values of y are y0, y1, y2, y3, y4 and they are given by the table below

C07F003

By Boole’s rule,

Eqn577

Example 2

Use Boole’s rule to estimate approximately the area of the cross-section if the river is 80 ft wide, the depth d ft at a distance x from one bank being given by the following table.

x

0 10 20 30 40 50 60 70 80
d 0 4 7 9 12 15 14 8 3

Solution

Required area is Eqn610 where Eqn609

Given table is

C07F003

Number of interval is 8

n = 8, a multiple of 4 and h = 10

So, we can use Boole’s rule to find the required area.

By Boole’s rule,

Eqn621

∴ the area of the cross–section is 708 sq.ft

Example 3

The velocity v of a particle at distance x from a point on its path is given below

Eqn622 0 10 20 30 40
Eqn623 45 60 65 64 42

Find the time taken to cover the distance of 40 meters.

Solution

Let v be the velocity at time t.

Since x is given as the distance covered by a particle at time t, we know the velocity is

Eqn624

∴ the time taken to travel x = 40 is Eqn625

The values of y are given by the table below

C07F003

The number of value is 4 and h = 10 ∴ Eqn632

So, we can use Boole’s rule to find Eqn633

By Boole’s rule,

Eqn634

∴ the time taken to travel the distance 40 metres 0.6846 minutes

= 0.6648 × 60 secs = 41.076 secs

7.6 WEDDLE’S RULE

Weddle’s rule is

Eqn636a

Proof: = 6, then the interval is Eqn636 is and the seven values Eqn637 of y are involved.

So, the seventh difference and higher difference are zero.

Eqn638

To rewrite the formula conveniently, replace Eqn639 by Eqn640, as the error involved is negligible for small values of h.

Eqn641

Eqn642

Similarly,

Eqn643

Adding all these integrals, we get

Eqn644

where n is the number of intervals and it is a multiple of 6.

That is the number of sub-intervals should be 6, 12, 18, …

This is known as Weddle’s rule.

WORKED EXAMPLES

Example 1

Evaluate Eqn645 by using Weddle’s rule.

Solution

Let Eqn646(1)

Here Eqn647

Divide the interval [0, 6] into 6 equal intervals.

∴ the number of sub-intervals is 6, a multiple of 6.

Eqn648 and Eqn649

So, we can use Weddle’s rule to find (1)

The points are Eqn650

The values of y are y0, y1, y2, y3, y4, y5, y6 and they are given by the table below

C07F003

By Weddle’s rule,

Eqn659

Example 2

A curve is drawn to pass through the points given by the following table.

x 1 1.5 2 2.5 3 3.5 4
y 2 2.4 2.7 2.8 3 2.6 2.1

Using Weddle’s rule, estimate the area bounded by the curve, the x-axis and the lines x = 1, x = 4.

Solution

The area bounded by the curve Eqn687 the x-axis and the lines Eqn688 is Eqn689

The interval [1, 4] is divided into 6 equal parts with Eqn690

n = 6, a multiple of 6

So, we can use Weddle’s rule to find Eqn692

The points are Eqn693

The values of y are y0, y1, y2, y3, y4, y5, y6 and they are given by the table below.

C07F003

By Weddle’s rule,

Eqn701

∴ the area is 7.74 sq. units

Example 3

Use Weddle’s rule to evaluate the approximate value of Eqn692A given that

x 4.0 4.2 4.4 4.6 4.8 5 5.2
Eqn703 1.3863 1.4351 1.4816 1.5260 1.5686 1.6094 1.6486

Compare it with exact value.

Solution

Let Eqn704(1)

Here Eqn705

The interval is (4, 5.2) and it is divided into 6 equal parts with h = 0.2

Eqn648

So, we can use Weddle’s rule to find (1).

The points are Eqn707

The values of y are y0, y1, y2, y3, y4, y5, y6 and they are given by the table below.

C07F003

By Weddle’s rule,

Eqn716

Eqn716a

By direct integration,

Eqn717

∴ the actual value is 1.8278

By Weddle’s rule, the value is 1.8278

∴ error is zero.

Example 4

The velocity of the particle at a distance s from a point on its path is given by the table below.

s (metres) 0 10 20 30 40 50 60
v (m/sec) 47 58 64 65 61 52 38

Estimate the time taken to travel 60 meters by (i) Simpson’s rule

(ii) Simpson’s Eqn735 rule

(iii) Weddle rule.

Solution

Let s be the distance travelled and v be the velocity at time t.

We know the velocity

Eqn736

∴ the time taken to travel 60 ft is Eqn737

The values of y are y0, y1, y2, y3, y4, y5, y6 and they are given by the table below

C07F003

Number of intervals is 6 with h = 10

  1. Simpson’s Eqn748 rule,

    Eqn749

    Eqn750

  2. By Simpson’s Eqn751 rule,

    Eqn752

  3. By Weddle’s rule,

    Since n = 6, we can use weddle’s formula.

    Eqn747

    ∴ by the three methods, the time taken to travel the distance is equal, correct to two places of decimal.

7.7 ERROR IN NUMERICAL INTEGRATION FORMULAE

7.7.1 Error in Trapezoidal Rule

Trapezoidal rule is

Eqn781

where Eqn782 are the values of Eqn783 at Eqn784

where Eqn785 and Eqn786

Taylor’s series expansion for f (x) about x0 is

Eqn787(1)

Eqn788(2)

where Eqn789

Area of the trapezium in Eqn790 is Eqn791

Eqn792(3)

Eqn793(4)

Eqn794

Eqn795

∴ The principal part of error in (x0, x1) is Eqn796

Similarly principal part of error in (x1, x2) is Eqn797 etc.

error in Eqn798 is Eqn799

∴ total error E is given by Eqn800

If Eqn801, then Eqn802

Hence the total error in Trapezoidal rule is of order h2

7.7.2 Error in Simpson’s Rule

Simpson’s rule is

Eqn803

where Eqn804 is even, Eqn805 are the values of y = f(x) at Eqn806

Taylor’s series expansion of f(x) about x0 is

Eqn807(1)

Eqn808(2)

But by Simpson’s rule, area in [x0, x2] is Eqn809(3)

Putting x = x1 in (1), we have

Eqn810

Eqn810a

Putting Eqn811 in (1), we have

Eqn812

Substituting for y1 and y2 in (3) we get

Eqn813(4)

Eqn814

Omitting h6 and higher powers, the principal part of error in Eqn815 is Eqn816 and so on.

the total error Eqn817

Eqn818, where Eqn819

Eqn820

In the same way, we can find the error in the quadrature formulae. We shall indicate the principal error in each formula

Error in Simpson’s Eqn821 rule

The principal error in the interval Eqn822 is Eqn823

Error in Boole’s rule

The principal error in the interval Eqn824 is Eqn825

Error in Weddle’s rule

The principal error in the interval Eqn826 is Eqn827

Exercises 7.1

  1. (1) Evaluate Eqn532 using
    1. (i) Trapezoidal rule (ii) Simpson’s Eqn533 rule with Eqn534
    2. (iii) Simpson’s Eqn535 rule with Eqn536
  2. (2) Evaluate Eqn537 using the following data.
    x 4 4.2 4.4 4.6 4.8 5 5.2
    Eqn538 1.3863 1.4351 1.4816 1.5261 1.5686 1.6094 1.6487
    1. (i) by Trapezoidal rule (ii) by Simpson’s rule
    2. (iii) by Simpson’s Eqn539 rule
  3. (3) Using the following table evaluate Eqn540 by (a) Trapezoidal rule (b) Simpson’s rule.
    x 0 0.5 1.0 1.5 2.0
    y 0.399 0.352 0.242 0.129 0.054
  4. (4) Evaluate Eqn541 taking i = 0.1 by 9
    1. (a) Trapezoidal rule
    2. Simpson’s rule
  5. (5) Evaluate Eqn542 using
    1. (i) Trapezoidal rule
    2. Simpson’s rule
  6. (6) Evaluate Eqn543 by
    1. (i) Trapezoidal rule
    2. Simpson’s rule
  7. (7) Evaluate Eqn544 by Simpson’s rule with h = 0.1.
  8. (8) Evaluate Eqn545 using Simpson’s rule with h = 0.25 and hence reduce the value of Eqn546
  9. (9) Evaluate Eqn547
  10. Using Simpson’s rule with h = 0.2. Compare the results by integration.
  11. Evaluate Eqn548 by Simpson’s Eqn549 rule.
  12. Evaluate Eqn550 by Simpson’s Eqn551 rule.
  13. Evaluate Eqn552 by Boole’s rule.
  14. Evaluate Eqn553 by Boole’s rule.
  15. Evaluate Eqn1724 by Boole’s rule with 13 ordinates.
  16. The following gives the velocity v of a particle at time t..
    t in hrs 0 0.25 0.5 0.75 1 1.25 1.5 1.75 2
    velocity v km/hr 6 7.5 8 9 8.5 10.5 9.5 7 6

    Find the distance travelled in 2 hours.

  17. Evaluate using Weddle’s rule
    1. (i) Eqn554
    2. (ii) Eqn555
  18. Evaluate Eqn1725 by Weddle’s rule with 7 ordinates and reduce the value of loge2.
  19. A curve is drawn to pass through the points given by the following table
    x 1 1.5 2 2.5 3 3.5 4
    y 2 2.4 2.7 2.8 3 2.6 2.1

    using Weddle’s rule, estimate the area bounded by the curve, the x-axis and the lines x = 1, x = 4.

Answers 7.1

  1. 0.7854, 0.7854, 0.7854 (2) 1.82765, 1.82784, 1.82785
  2. 0.475, 0.477 (4) 0.6686; 0.6321
  3. 115, 98 (6) 1.4108; 1.3662
  4. 0.5351 (8) 0.3108
  5. 4.05214 (10) 1.3571
  6. 1.3571 (12) 1.8278
  7. 3.1067 (14) 0.0549
  8. 0.8236 (16) 16.68 km
  9. (i) 4.05145 (ii) 0.5051 (18) 0.6932
  10. 3.032
7.8 ROMBERG’S METHOD FOR INTEGRATION

We have seen different formulae for numerical integration obtained by the finite difference methods. Of the three formulae trapezoidal rule, Simpson’s Eqn828 rule and Simpson’s Eqn829 rule, Simpson’s Eqn830 rule gives the best result.

A method due to L.F Richarson known as Richardson’s deferred approach to the limit provides a method to improve the accuracy of the approximate values of definite integrals obtained by finite difference methods. This technique is known as Romberg’s integration.

7.8.1 Romberg’s Integration Formula Based on Trapezoidal Rule

Let Eqn831

Let I1, I2 be two values of I by trapezoidal rule with subintervals of width h1, h2 and let E1, E2 be their corresponding errors. Let Eqn832

Then Eqn833

and Eqn834

Since Eqn835 Eqn836 are both largest values of Eqn837 we can assume Eqn838 and Eqn839 are nearly equal.

Eqn840

But I = I1 + E1 and also I = I2 + E2

Eqn841

which is a better approximation of I than I1 and I2.

This method is called Richardson’s deferred approach to the limit.

To evaluate I systematically, we take Eqn842

Eqn843(1)

This is known as Romberg’s formula.

The formula (1) is obtained by trapezoidal rule twice with width of intervals h and Eqn844

We again apply trapezoidal rule with width Eqn845 and apply several times halving the intervals. Each time the error is reduced by a factor Eqn846

Thus we have a sequence of values of I.

I1, I2, I3, I4, ... are the values with width Eqn847

Applying (1) for the pairs I1, I2; I2, I3; I3, I4; ... , we get A1, A2, A3, … . which are improved values.

Again applying (1) to the pairs

We get Eqn848

This systematic refinement of Richardson’s method is called Romberg method or Romberg integration.

WORKED EXAMPLES

Example 1

Evaluate Eqn849 correct to 3 places using Romberg’s method and hence find the value of loge 2.

Solution

Let Eqn850

Here Eqn851

Trapezoidal rule is

Eqn852

We shall find the value of the integral when h = 0.5, 0.25, 0.125

When h = 0.5, the values of y are given by the table below

C07F001

Eqn856

When Eqn857 the values of y are given by the table below

C07F001

Eqn863

When Eqn864 the values of y are given by the table below

C07F001

Eqn874

We shall now use Romberg’s formula for I1, I2

Eqn875

Again for I2 and I3, we have

Eqn876

Now again applying Romberg’s method with Eqn877

Eqn878

By direct integration,

Eqn879

Note: We find using calculator loge 2 = 0.69314718.

So, the answer by Romberg’s method is correct to 4 decimal places.

Example 2

Evaluate Eqn880 by using Romberg’s method correct to 4 decimal places. Hence deduce an approximate value of p.

Solution

Let Eqn882

Here Eqn883

Trapezoidal rule is Eqn884

We shall find the value of I by trapezoidal rule for h = 0.5, 0.25, and 0.125

When h = 0.5, then the values of y are given by the table below

C07F001

Then Eqn888

When Eqn889 the values of y are given by the table below

C07F001

Then

Eqn895

When Eqn896 the values of y are given by the table below.

C07F001

Then

Eqn906

We shall now use Romberg’s formula Eqn907 for the pairs I1, I2.

Eqn908

and for the pair I2, I3

Eqn909

So, for 4 decimals the 2 improvements coincide.

∴ the value of I = 0.7854

Eqn910

By direct integration, Eqn1721a

Eqn1721

Note: From calculator Eqn881 = 3.141592654.

So, the value is correct to 4 places.

Example 3

Evaluate new32 using Romberg’s formula.

Solution

Let Eqn930

Let Eqn931

Trapezoidal rule is Eqn932

Eqn933

We shall find the values of the integral when Eqn934

When Eqn942 the values of y are given by the table below

C07F001

Eqn941

When Eqn935 the values of y are given by the table below.

C07F001

Eqn952

When Eqn953 the values of y are given by the table below.

C07F001

Eqn972

Applying Romberg’s formula for the pairs Eqn973 and Eqn974, We get

Eqn975

Again for the pairs I2, I3, we get

Eqn976

Again applying Romberg’s formula for Eqn977 we get

Eqn978

Eqn1718A

Note: By direct integration

Eqn1718

Eqn1718b

So, we find that the value by Romberg’s method is correct.

Example 4

Evaluate Eqn981 using Romberg’s method.

Solution

Let Eqn982

Here Eqn983

Trapezoidal rule is

Eqn984

When Eqn985, we shall find the values of the integral.

When Eqn986 the values of y are given by the table below.

C07F001

Eqn991

When Eqn992 the values of y are given by the table below.

C07F001

Eqn1001

When Eqn1002 the values of y are given by the table below

C07F001

Eqn1013

Eqn1014

We shall now use Romberg’s formula for Eqn1015 Eqn1016

Eqn1017

Again applying Romberg’s method with Eqn1018 we get

Eqn1719

Since Eqn1020 upto 4 places of decimals.

We shall take I = 0.3927

Note:

By direct integration Eqn1021

So, we find that the value by Romberg’s method is correct.

7.8.2 Romberg Integration Formula Based on Simpson’s Rule

Let Eqn1022.

Let Eqn1023 be two values of I by Simpson’s Eqn1024 rule with sub-intervals width Eqn1025 and let Eqn1026 be their corresponding errors.

Then Eqn1027

and Eqn1028

where Eqn1029 and Eqn1030 are largest values of Eqn1031,

We assume them to be nearly equal.

Eqn1032

Suppose Eqn1033 and Eqn1034 then Eqn1035

But Eqn1036

Eqn1036a(1)

This is Romberg’s formula using Simpson’s rule.

Again applying Simpson’s rule with Eqn1037, we get a sequence of values of I.

Let Eqn1038 be the values of the integral with width Eqn1039

Applying the formula (1) for the pairs Eqn1040

we get Eqn1041 which are improved values of I.

Again applying (1) to the pairs Eqn1042

we get Eqn1043 which are still improved values.

This method is called Romberg’s method.

WORKED EXAMPLES

Example 1

Find the value of Eqn1044 correct to 4 decimal places using Simpson’s rule and Romberg’s integration.

Solution

Let Eqn1045

Here Eqn1046

Simpson’s Eqn1047 rule is

Eqn1048

where n is even

We shall find the values of the integral with Eqn1049

When h = 0.5, number of intervals is 2 ∴ n = 2

Since Eqn1051 the values of y are given by the table below.

C07F001

Simpson’s formula is

Eqn1056

When h = 0.25, n = 4, even

The values of y are given by the table below.

C07F001

Eqn1063

When h = 0.125, n = 8, even

The values of y are given by the table below.

C07F001

Eqn1074

We now use Romberg’s formula for the pairs Eqn1075 and Eqn1076

Eqn1077

Also Eqn1078

Since Eqn1079 upto five places of decimals, we take

Eqn1080

So, the value I,corrected to 4 places of decimal is 1.9461.

Example 2

A certain curve is given by the following points

x 1 2 3 4 5 6 7 8 9
y 0.2 0.7 1 1.3 1.5 1.7 1.9 2.1 2.3

Using Simpson’s rule and Romberg’s formula, find the volume generated by revolving the area bounded by this curve, the x-axis and the ordinates x = 1 and x = 9 about the x-axis.

Solution

Required volume I Eqn1081

Let us evaluate this integral by Simpson’s rule with h = 4, 2, 1

When h = 4, n = 2, even. The values of Eqn1084 are given by the table below.

************************************
C07F001

By Simpson’s formula,

Eqn1089

When Eqn1090 even

The values of Eqn1091 are given by the table below.

C07F001

By Simpson’s formula,

Eqn1098

When Eqn1099, even

The values of y2 are given by the table below.

x 1 2 3 4 5 6 7 8 9
y 0.2 0.7 1 1.3 1.5 1.7 1.9 2.1 2.3
Eqn1101 0.04 0.49 1 1.69 2.25 2.89 3.61 4.41 5.29
Eqn1102 Eqn1103 Eqn1104 Eqn1105 Eqn1106 Eqn1107 Eqn1108 Eqn1109 Eqn1110

By Simpson’s formula,

Eqn1111

Applying Romberg’s formula for the pairs Eqn1112 and Eqn1113 we get

Eqn1114

Also

Eqn1115

Eqn1115a

Applying Romberg’s formula for Eqn1116

Eqn1117

p × I

Eqn1118

Example 3

Evaluate Eqn1119 using Simpson’s rule and Romberg’s method.

Solution

Let Eqn1120

Here Eqn1121

Simpson’s rule is

Eqn1122

Let us evaluate the integral with Eqn1123

When Eqn1124, even

The values of y are given by

x 0 1 2
Eqn1125 0 1 4
Eqn1126 0.25 0.2 0.125
Eqn1127 Eqn1128 Eqn1129

By Simpson’s rule,

Eqn1130

When Eqn1131, even

The values of y are given by the table below.

x 0 Eqn1132 1 Eqn1133 2
Eqn1134 0 0.25 1 2.25 4
Eqn1135 0.25 0.2353 0.2 0.16 0.125
Eqn1136 Eqn1137 Eqn1138 Eqn1139 Eqn1140

By Simpson’s rule,

Eqn1141

When Eqn1142, even

The values of y are given by the table below.

x 0 0.25 0.5 0.75 1 1.25 1.5 1.75 2
Eqn1143 0.25 0.2462 0.2353 0.2192 0.2 0.1798 0.16 0.1416 0.125
Eqn1144 Eqn1145 Eqn1146 Eqn1147 Eqn1148 Eqn1149 Eqn1150 Eqn1151 Eqn1152

By Simpson’s rule,

Eqn1153

Now we use Romberg’s formula for the pairs Eqn1154 and Eqn1155.

Eqn1156

Also

Eqn1157

Now applying Romberg’s formula with Eqn1158 and Eqn1159, we get

Eqn1160

7.9 TWO AND THREE POINT GAUSSIAN QUADRATURE FORMULAE

7.9.0 Introduction

To evaluate the integral Eqn1161 we have developed various approximate formulae, namely trapezoidal rule, Simpson’s Eqn1162 rule and Simpson’s Eqn1163 rule. In these formulae we used the values of the function Eqn1164 at equally spaced values of argument x. Here the values of x are predetermined. Gaussian quadrature formula uses the same number of values of Eqn1165 but the values of x are not equally spaced and choosing the points suitably we can find an improved estimate of the integral.

Any finite interval [a, b] can be transformed into [–1, 1] by the transformation Eqn1166

Eqn1167

and Eqn1168

So, we consider the integral in the form Eqn1169

The general n-point Gaussian quadrature formula assumes an approximation of the form

Eqn1170, where Eqn1171 are the points of division of the interval [–1, 1], which are known as nodes and Eqn1172 are known as the weights. Since there are 2n unknowns in the relation (1), 2n relations between the variables Eqn1173 are necessary and the formula is exact for polynomials of degree Eqn1174Formulae based on this idea are called Gaussian quadrature formulae.

This method is applicable only when f(x) is known explicitly so that the values of the function can be evaluated at any given value of x.

The quadrature formula is derived assuming Eqn1175 are the roots of the equation Eqn1176, where Eqn1177 is the Legendre polynomial of degree n given by Rodrigue’s formula

Eqn1178

We also assume Eqn1179 can be expanded as a power series of degree Eqn1180 in Eqn1181 so that

Eqn1182

We shall derive the quadrature formulae when n = 2 and n = 3 which are called the two point quadrature formula and three point quadrature formula respectively.

7.9.1 Two Point Gaussian Quadrature Formula

When n = 2, the two point quadrature formula is

Eqn1183(1)

Where x1 and x2 are the roots of P2 (x) = 0

Eqn1184

Since Eqn1185. So Eqn1186 is a polynomial of degree 3.

Let Eqn1187

Eqn1188

Eqn1188a

∴ Equating like coefficients we get

Eqn1189

The two point quadrature formula is

Eqn1190

Note: It is also known as two point Gauss-Legendre formula. It gives good estimate with two functional values.

7.9.2 Three Point Gaussian Quadrature Formula

The three point formula is

Eqn1191(1)

where x1, x2, x3 are roots of P3 (x) = 0, where P3 (x) is the Legendre polynomial of degree 3.

Eqn1192

Let Eqn1193

To find Eqn1194, we assume f(x) is a polynomial of degree 5, since Eqn1195

Let Eqn1196

Eqn1197

Equating like coefficients, we get

Eqn1198(2)

Eqn1199(3)

Eqn1200

Eqn1201

Substitute in (2), we get

Eqn1202

WORKED EXAMPLES

Example 1

Apply Gauss two-point formula to evaluate Eqn1209.

Solution

Let Eqn1210

We know Eqn1211 since Eqn1212 is even function of x

Eqn1213. Here Eqn1214

Gauss two-point formula is

Eqn1215

Example 2

Evaluate Eqn1257 by 2-point Gaussian formula.

Solution

Let Eqn1258

First transform the interval Eqn1259 into the interval [–1, 1]

For. this, put Eqn1260 Here Eqn1261

Eqn1260a.pngEqn1263.png ∴ <Eqn Eqn1263"/> ∴ Eqn1262

When Eqn1264 and when Eqn1265

Eqn1266

By 2-point Gaussian formula,

Eqn1267

But Eqn1268a

Eqn1268b

Eqn1268

Example 3

Using three point Gaussian formula, evaluate Eqn1226.

Solution

Let Eqn1227

We have to transform the interval [0.2, 1.5] into the interval [–1, 1]

For this, Put Eqn1228. Here Eqn1229

Eqn1230

When Eqn1231 and when Eqn1232

Eqn1233

Here Eqn1234

Three point quadrature formula is

But Eqn1235

Eqn1236

Eqn1236a

Eqn1236b

Example 4

Evaluate Eqn1237 using 3-point Gauss quadrature formula and compare with the actual value.

Solution

Given Eqn1238

We have to transform the interval [1, 2] into [–1, 1]

For this, Put Eqn1239. Here a = 1, b = 2

Eqn1240Eqn1242 Eqn1241

When Eqn1243

Eqn1244

We know 3-point Gaussian formula is

Eqn1245

But Eqn1246

Eqn1720

We shall now find the exact value by integration.

Eqn1247

Put Eqn1248

When Eqn1249 and when Eqn1250

Eqn1251

The error is 0.5408 − 0.5404 = 0.0004

Example 5

Evaluate Eqn1252 dx by three point Gaussian formula.

Solution

Let Eqn1253dx

First transform the interval [0, 2] into the interval [–1, 1]

Eqn1254

Eqn1255

But

Eqn1256

Example 6

Evaluate Eqn1203 using Gaussian (i) two points formula (ii) three point formula.

Solution

Given Eqn1204.

Here Eqn1205

  1. (i) Gaussian two point formula is

    Eqn1206

  2. (ii) Gaussian three point formula is

    Eqn1207

    Eqn1207a

Note: We shall now find the actual value by integration.

Eqn1208

∴ Error in 2 point formula = |1.5708 – 1.5| = 0.0708

Error in 3 point formula = |1.5708 – 1.5833| = 0.0125

So the error in 3-point formula is less than the error in 2-point formula.

Example 7

Obtain Eqn1269 by using Gauss two point and three point rules.

Solution

Let Eqn1270

Transform the interval [2, 3] into [–1, 1] by the transformation

Eqn1271

When Eqn1272 and when Eqn1273

Eqn1274

Eqn1275

  1. Two point Gaussian formula is

    Eqn1276

    Now

    Eqn1277

    Eqn1277a

  2. The three point Gaussian formula is

    Eqn1278

Example 8

Using Gaussian two and three point formulae evaluate Eqn1279.

Solution

Given Eqn1280

First we transform the interval [2, 3] into the interval [–1, 1]

For this, put Eqn1281

When Eqn1283 and when Eqn1284

Eqn1285

  1. (i) Two point Gaussian formula is

    Eqn1286

    Eqn1286a

  2. (ii) Three point Gaussian formula is

    Eqn1287

Now

Eqn1288

Eqn1288

Exercises 7.2

  1. Evaluate Eqn772 by Romberg’s method with h = 0.1 and h = 0.2 and using Trapezoidalrule.
  2. Evaluate Eqn773 by using Romberg’s method taking Eqn774
  3. Calculate Eqn775 using trapezoidal rule with Eqn776 and then Romberg’s formula.
  4. From the following data evaluate Eqn1727 using Romberg’s method with h=0.8, 0.4
    x 1.8 2 2.2 2.4 2.6 2.8 3 3.2 3.4
    f(x) 6.050 7.389 9.025 11.023 13.464 16.445 20.086 24.533 29.964
  5. Evaluate Eqn1726 with h = 0.65, 0.325 by Romberg’s method.
  6. Evaluate Eqn777 by two point Gaussian formula.
  7. EvaluateEqn1728 using two point Gaussian formula.
  8. Evaluate Eqn779 by using three point Gaussian formula. Compare with actual value.
  9. Evaluate Eqn780 using 3-point Gaussian formula.
  10. Evaluate Eqn1729using three point Gaussian formula.
  11. Evaluate Eqn778 using two point and three point Gaussian formula.

Answers 7.2

(1) 1.8521 (2) 0.3927 (3) 0.507070

(4) 23.9181 (5) 0.6586 (6) 4.6854

(7) 1.5432, 1.3911 (8) 4 (9) 1.3247

(12) 1.7128 (11) 0.9985

7.10 EULER-MACLAURIN FORMULA FOR NUMERICAL INTEGRATION

Euler-Maclaurin’s formula for integration is

Eqn1313.png

Where Eqn1314 and Eqn1315

Derivation: Let Eqn1316

Divide the interval Eqn1317 into n equal intervals of width Eqn1318

Eqn1319.png

Let

Eqn1320a

Adding all these equations, we get

Eqn1321(1)

Since Eqn1322, we define the inverse operator Eqn1323 as

Eqn1324

Eqn1325

Eqn1326

Eqn1327

Eqn1328

Eqn1329(2)

Putting Eqn1330 and Eqn1331 in (2), we get

Eqn1332(3)

Eqn1333(4)

Eqn1334

Eqn1334B

Substituting for L.H.S. from (1), we get

Eqn1335

Eqn1336

Eqn1337

This is called Euler-Maclaurin’s formula for integration.

Incase higher derivatives are involved, then the formula is

Eqn1338

Note: This formula can be rewritten as

Eqn1339

This is called Euler-Maclaurin’s formula for summation.

WORKED EXAMPLES

Example 1

Evaluate Eqn1340 by Euler-Maclaurin formula for integration. Hence find the value of p and compare with the correct value upto 5 decimals.

Solution

Let Eqn1342

Here Eqn1343

Euler-Maclaurin formula for integration is

Eqn1344(1)

where n = the number of sub-intervals and Eqn1345

Let Eqn1346

The values of x are Eqn1347, Eqn1348

Eqn1348a

The values of Eqn1349 are given by the table below.

x Eqn1350 Eqn1351 Eqn1352 Eqn1353 Eqn1354 Eqn1355 Eqn1356
0 Eqn1357 Eqn1358 Eqn1359 Eqn1360 Eqn1361 1
Eqn1362 1 0.97297 0.9 0.8 0.69231 0.59016 0.5
Eqn1363 Eqn1364 Eqn1365 Eqn1366 Eqn1367 Eqn1368 Eqn1369

∴ We have Eqn1370A

Eqn1370b

Eqn1371.png

Eqn1372

Eqn1373

Eqn1374

But Eqn1375

Using Calculator Eqn1376

∴ Euler-Maclaurin method gives correct answer upto 5 places of decimal.

Example 2

Find by Euler’s quadrature formula, the value of the integral Eqn1377.

Solution

Let Eqn1378

Here Eqn1379

Euler-Maclaurin’s formula for integration is

Eqn1380

where n = the number of sub-intervals and Eqn1381.

Let Eqn1382

The values of x are Eqn1383

The values of Eqn1384 are given by table below

x Eqn1385 Eqn1386 Eqn1387 Eqn1388 Eqn1389 Eqn1390
0 Eqn1391 Eqn1392 Eqn1393 Eqn1394 1
Eqn1395 1 0.99920 0.98723 0.93590 0.8021 0.54030
Eqn1396 Eqn1397 Eqn1398 Eqn1399 Eqn1400 Eqn1401

We have

Eqn1402

Eqn1403

Eqn1404

Eqn1405

Eqn1406

Eqn1407

Example 3

Applying Euler-Maclaurin summation formula, evaluate

Eqn1408

Solution

Required the sum of Eqn1409

Here Eqn1410

By Euler – Maclaurin formula for summation

Eqn1411

We have

Eqn1412

and Eqn1413

Eqn1413a

Eqn1114a

Eqn1414

Example 4

By Euler’s formula prove that the sum of the cubes of the first n natural numbers is Eqn1429.

Solution

We have to prove Eqn1430

Eqn1430A

Here Eqn1431

By Euler’s formula for summation

Eqn1432

We have Eqn1433

Eqn1434

Eqn1722

Eqn1435

7.10.1 Application of Euler-Maclaurin Formula

Stirling’s approximation for factorial

If n is a positive integer, then we know, Eqn1436

Eqn1437(1)

We shall find the sum by Maclaurin’s formula.

Here Eqn1438

Maclaurin’s formula for summation is

Eqn1439

Eqn1439a(2)

To find C, we use Weddle’s formula, namely

Eqn1440

Taking logarithm, we get

Eqn1441

As Eqn1442

Eqn1443 approximately (from (1) and (2))

Eqn1444

Eqn1444dEqn1444c

Eqn1444b

Eqn1444a

Eqn1444a

Corollary: When n is large Eqn1445 are very small and so can be neglected

Eqn1446

WORKED EXAMPLES

Example 1

Calculate Eqn1447 correct to six places of decimals and hence find the number of digits in 81!

Solution

Stirling’s formula for n! is Eqn1448

Taking log to the base 10,

Eqn1449

Put n = 81, we get

Eqn1450

Since the integer part is 120, the number of digits in 81! is 121

Example 2

Using Stirling’s approximation for n!, find the number of digits in the value of 100C50.

Solution

Let Eqn1451

Taking log to the base 10, we get

Eqn1453

Stirlings formula for n! is

Eqn1454

Eqn1455(1)

Put n = 100 in (1), then

Eqn1456

Now put n = 50 in (1), then

Eqn1457

Eqn1458

x = anti log (29.0039)

Since the integral part is 29, the number of digits in 100C50 is 30

Exercises 7.3

(I) Evaluate the following integrals using Euler-Maclaurin formula.

  1. Eqn1297 correct to fine decimal places.
  2. Eqn1298 correct to seven decimal places.
  3. Eqn1299 correct to five decimal places.
  4. Eqn1300 and hence find the values of p.

(II) Evaluate the following sums.

  1. Eqn1302 correct to 6 decimals.
  2. Eqn1303
  3. Eqn1304 correct to 6 places of decimals.
  4. Eqn1305
  5. Eqn1306
  6. Eqn1307
  7. Eqn1308
  8. Find the sum of the fourth powers of first n natural numbers.

(III) Using Stirling approximation for factorials, compute to six places of decimals

  1. Eqn1309
  2. Eqn1310
  3. Eqn1311
  4. Eqn1312

Answers 7.3

(I)

  1. 2.40011
  2. 0.0487902
  3. 0.69315
  4. 0.7854, π = 3.1416

(II)

  1. 0.6956534
  2. 0.0049998
  3. 0.133137
  4. 0.0049988
  5. 0.144539
  6. 0.11382
  7. (7) 0.0008333

(III)

  1. 98.233911
  2. 615.5999
  3. 28.138179
  4. 2567.59914
7.11 DOUBLE INTEGRATION

We shall now consider the numerical evaluation of a definite double integral of a function of two independent variables from a set of numerical values of the integrand. The process of computation of double integral of a function of two independent variables is called mechanical cubature.

We have seen in calculus that a double integral Eqn1470 with constant limits can be evaluated by integrating w.r.to x first treating y as constant and then integrating w.r.to y. So we can evaluate a double integral by applying trapezoidal rule or Simpson’s rule repeatedly.

7.11.1 Trapezoidal Rule for Double Integral

LetEqn1471. The region of integration is the rectangle bounded by

the lines x = a, x = b, y = c, y = d in the xy plane.

Divide the interval [a, b] into n equal subintervals of width h at the points

Eqn1472Eqn1472a

and the interval [c, d] into m equal subintervals of width k at the points

Eqn1473 Eqn1473a

Eqn1474

Let

Eqn1475

Consider the typical rectangle ABIH over which we shall evaluate the integral

Eqn1476

C07U004

By trapezoidal rule for the inner integral with two values, we get

Eqn1477

Again applying trapezoidal rule

Eqn1478(1)

To evaluate Eqn1479, we have to evaluate over the rectangle ACEG, which is the sum of four rectangles.

Eqn1480

Using (1) to each of these integrals, we get

Eqn1481

Eqn1482

Eqn1483

More generally, the value of the double integral is

Eqn1485

WORKED EXAMPLES

Example 1

Evaluate Eqn1728a.png by Trapezoidal rule for the following data:

C07U005

Solution

Let Eqn1487

The given values of x are equally spaced with h = 0.5

The given values of y are equally spaced with k = 1

C07U006

∴ the Trapezoidal rule for double integral is

Eqn1488

The corner values are squared.

Other boundary values are indicated by arrows.

The interior values are inside the dotted curve.

Eqn1489

Example 2

Use trapezoidal rule to evaluate Eqn1490 taking 4 subintervals.

Solution

Let Eqn1491

Here Eqn1492

Number of subintervals is 4. Eqn1493

∴ the values of x are 1, 1.25, 1.5, 1.75, 2 and the values of y are 1, 1.25, 1.5, 1.75, 2

Eqn1494

Similarly

Eqn1495 Eqn1495a

Now we tabulate the values of Eqn1496

C07U007

∴ the trapezoidal rule for double integral is

Eqn1497

The corner values are squared. Boundary values are indicated by arrows. Interior values are inside the dotted curve.

Eqn1500

Example 3

Evaluate Eqn1501 by Trapezoidal rule.

Solution

Let Eqn1502

Here Eqn1503

We shall take h = 0.5, k = 0.25

∴ the values of x are 0, 0.5, 1 and the values of y are 0, 0.25, 0.5, 0.75, 1.

Eqn1504

Similarly

Eqn1505

Now we shall tabulate the values of f(x, y)

C07U008

∴ the Trapezoidal rule for double integral is

Eqn1506 [sum of the corner values

+ 2 (sum of other values of Eqn1507 on the boundary)

+ 4 (sum of the interior values ofEqn1508]

The corner values are squared.

Other boundary values are indicated by arrows.

The interior values are inside the dotted curve.

Eqn1509

Note: The exact value of this double integral is Eqn1510.

So, the error is 0.0087

Example 4

Evaluate Eqn1521 by Trapezoidal rule with h = k = 0.25.

Solution

Let Eqn1522

Here Eqn1523

∴ the values of x are 1, 1.25, 1.5, 1.75, 2

and the values of y are 0, 0.25, 0.5, 0.75, 1

Eqn1524

Similarly

Eqn1525

Now we shall tabulate the value of Eqn1526

C07U010

∴ the Trapezoidal rule for double integration is

Eqn1527 [sum of the corner values

+ 2 (sum of the other values of Eqn1528 on the boundary)

+ 4 (sum of the interior values of Eqn1529]

The corner values are squared.

Other values of f(x, y) on the boundary are indicated by arrows.

The interior values are inside the dotted curve.

Eqn1530

Example 5

Evaluate Eqn1531 using Trapezoidal rule with h = k = 0.5 and h = k = 0.25. Improve the estimate by Romberg’s formula.

Solution

Let Eqn1532

Here Eqn1533

Case (i) h = k = 0.5

The values of x are 1, 1.5, 2 and the values of y are 1, 1.5, 2

Eqn1534

Similarly

Eqn1535

We shall tabulate the values of Eqn1536

C07U011

Trapezoidal rule for double integration is

Eqn1537

Eqn1538

Case (ii) h = k = 0.25

By worked example 2 page . . . I = 0.3401

Taking the estimates as I1 = 0.3433 and I2 = 0.3401

By Romberg’s formula Eqn1539

7.11.2 Simpson’s Rule for Double Integral

Let Eqn1540

We divide [a, b] into an even number of intervals 2n and [c, d] is divided into an even number of intervals 2m.

Applying Simpson’s rule taking 2 intervals in the x-direction and 2 intervals in the y-direction.

Let Eqn1541

The points of division are

Eqn1542

The typical sub-rectangles are taken with 2 intervals in x-direction and 2 intervals in y-direction.

Consider Eqn1543

C07U012

By applying Simpson’s rule in the x-direction, for 2 intervals keeping y-constant to the inner integral we get

Eqn1544

Again apply Simpson’s rule to each integral in the y-direction.

Eqn1545

Eqn1546

This can be extended if the number of intervals is 4 or 6 in each direction applying for every pair of intervals.

WORKED EXAMPLES

Example 6

Evaluate Eqn1547 using Trapezoidal rule and Simpson’s rule.

Solution

Let Eqn1548

Here Eqn1549

We shall take h = 0.5, k = 0.5 and thus dividing into 2 intervals each.

∴ the value of x are 0, 0.5, 1 and the values of y are 0, 0.5, 1

Eqn1550

We shall tabulate the values

C07U013
  1. (i) Trapezoidal rule for double integral is

    Eqn1551

    Eqn1552

  2. (ii) Simpson’s rule for double integral is

    Eqn1553

    Eqn1554

Note: Integrating we get the actual value 2.9525 correct to 4 decimals So we notice that the value of Simpson’s rule is very close to the actual value.

Example 7

Using Simpson’s Eqn1555 rule evaluate Eqn1556 by taking h = k = 0.5.

Solution

Let Eqn1557

Here Eqn1558

Given Eqn1559

∴ the values of x are 0, 0.5, 1 and the values of y are 0, 0.5, 1.

So the interval is divided into 2 parts.

Eqn1560

Eqn1561

We shall tabulate the value

C07U014

Simpson’s rule for double integral is

Eqn1562

Eqn1563

Note: By integration the actual value is 0.5232 upto 4 places.

Example 8

Evaluate Eqn1564 by Simpson’s rule with h = k = 0.25.

Solution

Let Eqn1565

Here Eqn1566 and h = k = 0.25

∴ the values of x are 0, 0.25, 0.5 and the values of y are 0, 0.25, 0.5

So the interval is divided into 2 parts.

Eqn1567

Similarly,

Eqn1568

We shall tabulate the values of f (x, y)

C07U015

Simpson’s rule of double integral is

Eqn1569

Eqn1570

Example 9

Evaluate Eqn1582 using Simpson rule, given h = k = 0.1.

Solution

Eqn1583

Here Eqn1584

Given h = 0.1, k = 0.1

∴ the values of x are 4, 4.1, 4.2, 4.3, 4.4 and the values of y are 2, 2.1, 2.2, 2,3, 2.4

The interval is divided into 4 sub intervals.

Eqn1585

Similarly,

f(4.1,2) = 8.2, f(4.1,2.1) = 8.61, f(4.1,2.2) = 9.02,

f(4.1,2.3) = 9.43, f(4.1,2.4) = 9.84,

f(4.2,2) = 8.4, f(4.2,2.1) = 8.82, f(4.2,2.2) = 9.24,

f(4.2,2.3) = 9.66, f(4.2,2.4) = 10.08,

f(4.3,2) = 8.6, f(4.3,2.1) = 9.02, f(4.3,2.2) = 9.46,

f(4.3,2.3) = 9.89, f(4.3,2.4) = 10.12,

f(4.4,2) = 8.8, f(4.4,2.1) = 9.24, f(4.4,2.2) = 9.68,

f(4.4,2.3) = 10.12, f(4.4,2.4) = 10.56

We shall formulate the table value of Eqn1587

C07U016

We shall rewrite the integral as sum of 4 integrals taking 2 intervals at a time and apply Simpson’s rule

where

Eqn1588

Using Simpson’s rule for 2 intervals

Eqn1589

Eqn1590

Eqn1591

Eqn1592

Eqn1593

Eqn1594

Note: Directly integrating we get the exact value as 1.4784. So in this problem Simpson’s formula gives the exact value.

Example 10

Evaluate Eqn1595 by Simpson’s rule for double integration.

Solution

Let Eqn1596

Here Eqn1597

Let Eqn1598 and Eqn1599

The order of integration is first w.r.to y and then w.r.to x.

The values of x are 4, 4.3, 4.6, 4.9, 5.2 and the value of y are 2, 2.3, 2.6, 2.9, 3.2

The interval is divided into 4 sub-intervals.

Eqn1600

Eqn1600

We shall tabulate the values of Eqn1603

C07U018

We shall rewrite the given integral as the sum of four integrals taking two intervals at a time and applying Simpson’s rule

Eqn1604

Now

Eqn1605

Eqn1606

Eqn1607

and

Eqn1608

Eqn1609

Aliter: We shall apply Simpson’s rule to the rows, treating the values 2, 2.3, 2.6, 2.9 and 3.2 as x values and the function values of I row as Eqn1610

Applying for I row, we get the following table:

x 2 2.3 2.6 2.9 3.2
y Eqn1611 Eqn1612 Eqn1613 Eqn1614 Eqn1615

Eqn1616

Applying for II row, we get the following table.

x 2 2.3 2.6 2.9 3.2
y Eqn1617 Eqn1618 Eqn1619 Eqn1620 Eqn1621

Eqn1622

Similarly applying Simpson’s rule for III and IV and V rows, we get

Eqn1623

Eqn1624

Eqn1625

Now treating 4, 4.3, 4.6, 4.9, 5.2 as x values and Eqn1626 as y values and applying Simpson’s rule we get

Eqn1627

Note: By direct integration the actual value of the integral is

Eqn1628a

Eqn1628

Error = 0.123312 – 0.123316 = 0.000004, which is negligible.

Exercises 7.4

  • Evaluate Eqn1459 using trapezoidal rule taking h = 0.1 and k = 0.8.
  • Evaluate Eqn1460 using trapezoidal rule with 4 subintervals.
  • Evaluate Eqn1461 using trapezoidal rule with 4 subintervals.
  • Apply Simpson’s rule to evaluate Eqn1462 by taking h = 0.2, k = 03.
  • Evaluate Eqn1463 taking h = k = 0.5 by Simpson’s rule.
  • Evaluate Eqn1464 using Simpson’s rule by taking Eqn1465. Also find by trapezoidal rule.
  • Evaluate Eqn1466 using Simpson’s rule with Eqn1467
  • Evaluate Eqn1468 using
  • (i) Trapezoidal rule and (ii) Simpson’s rule with Eqn1469

Answers 7.4

(1) 0.0429 (2) 3.9975 (3) 0.0614

(4) 0.025 (5) 0.0408 (6) 2.0095, 1.7976

(7) 2.1546 (8) (i) –1.7976 (ii) –2.0091

Short Answer Questions
  1. Evaluate Eqn1629 by Trapezoidal rule, dividing the range into 4 equal parts.
  2. When does Simpson’s rule give exact result?
  3. Write down trapezoidal rule to evaluate Eqn1643 with h = 0.5, function f(x) is unknown.
  4. In order to evaluate Eqn1658 by trapezoidal rule and by Simpson’s rule, what is the restriction on the number of intervals?
  5. What are the errors in trapezoidal and Simpson’s rules of numerical integration?
  6. What is the order of error in Simpson’s Eqn1666 rule?
  7. State the local error term in Simpson’s Eqn1667 rule.
  8. State Newton’s formula to find Eqn1671 using the forward differences.
  9. What is the order of the error in trapezoidal rule?
  10. Why is trapezoidal rule so called?
  11. Write down Simpson’s Eqn1680 rule, assuming 3n intervals.
  12. What are the truncation errors in Trapezoidal rule and Simspon’s Eqn1685 rule?
  13. Evaluate Eqn1691 using trapezoidal rule by taking Eqn1692
  14. Using two point Gaussian quadrature formula, evaluate Eqn1702
  15. Evaluate Eqn1706 using Gaussian quadrative with 2 points.
  16. State Romberg’s integration formula to find the value of Eqn1710using Eqn1711
..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.133.156.107