You are on page 1of 54

Unit-5

Numerical Integration
2140706 – Numerical & Statistical Methods

Humanities & Science


Department
Numerical & Statistical methods (2140706) Darshan Institute Of Engineering & Technology
What is Integration ?
Integration is process of evaluating an indefinite

integral or definite integral.

Integral Sign is variable of


Integral

Integrand

Numerical and statistical method (2140706) Darshan Institute of engineering & Technology 2
Graphical representation of Integral

Graph of

The “integral” of from is the area under the graph of


function
Numerical & Statistical methods (2140706) Darshan Institute Of Engineering & Technology 3
Integration
 Fundamental theorem of calculus :

Where

This method of evaluating definite integrals is called the


analytical method.
e.g.

Numerical and statistical method (2140706) Darshan Institute of engineering & Technology 4
Why Numerical Integration ?
There
 are many functions

Solve it, if you


can
 whose integration analytically is impossible .
 Also some integrals, whose evaluation would be very
complicated.
 In many cases, analytic methods fails.
 In such cases, Numerical methods are used.

Numerical and statistical method (2140706) Darshan Institute of engineering & Technology 5
Numerical Integration
Consider the observation table

The process of evaluating definite integral from set of


tabulated values of is called Numerical integration.

Numerical and statistical method (2140706) Darshan Institute of engineering & Technology 6
Methods of Numerical integration

1. Trapezoidal Rule

2. Simpson’s 1/3 Rule

3. Simpson’s 3/8 Rule

4. Weddle’s Rule

Numerical and statistical method (2140706) Darshan Institute of engineering & Technology 7
Trapezoidal Rule

“Trapezoid” approximation
with one subinterval

One interval trapezoidal rule

Numerical & Statistical methods (2140706) Darshan Institute Of Engineering & Technology 8
Trapezoidal Rule

“Trapezoid” approximation
with two subinterval

Two interval trapezoidal rule

Numerical & Statistical methods (2140706) Darshan Institute Of Engineering & Technology 9
Trapezoidal Rule

“Trapezoid” approximation
with three subinterval

Three interval trapezoidal rule

Numerical & Statistical methods (2140706) Darshan Institute Of Engineering & Technology 10
Derive Trapezoidal rule.
By Newton-cotes quadrature formula

Put and neglecting differences of order higher than one.


For the first interval

Similarly,
For the next interval

For the last interval

Adding all these integrals,


Trapezoidal Rule
 Consider the observation table

Formula :

Numerical and statistical method (2140706) Darshan Institute of engineering & Technology 13
Example
Evaluate using trapezoidal rule with
Solution :
Here , &
Now,

Let,

Numerical and statistical method (2140706) Darshan Institute of engineering & Technology 14
1.3499

Numerical and statistical method (2140706) Darshan Institute of engineering & Technology 15
By the Trapezoidal rule,

Numerical and statistical method (2140706) Darshan Institute of engineering & Technology 16
Example
Find the work done on the gas as it is compressed from
by using Trapezoidal rule.
Use

Solution :
Here &

Numerical and statistical method (2140706) Darshan Institute of engineering & Technology 17
By the Trapezoidal rule,

Numerical and statistical method (2140706) Darshan Institute of engineering & Technology 18
Example
Evaluate using trapezoidal rule with
Solution :
Here , &
Now,

Let,

Numerical and statistical method (2140706) Darshan Institute of engineering & Technology 19
Numerical and statistical method (2140706) Darshan Institute of engineering & Technology 20
By the Trapezoidal rule,

Numerical and statistical method (2140706) Darshan Institute of engineering & Technology 21
Simpson’s 1/3 Rule
Graph of

Parabola

Trapezoidal rule fit two points ,


Here Parabola is fitted through three points
Numerical & Statistical methods (2140706) Darshan Institute Of Engineering & Technology 22
Simpson’s 1/3 Rule

Graph of

Parabola

For Simpson’s rule , should be multiple of two

Numerical & Statistical methods (2140706) Darshan Institute Of Engineering & Technology 23
Simpson’s 1/3 Rule
 Simpson’s rule is an extension of Trapezoidal rule.
 Simpson’s rule , we will use parabola to
approximate the curve.
 For Simpson’s rule , should be multiple of
two(even).

Numerical & Statistical methods (2140706) Darshan Institute Of Engineering & Technology 24
Simpson’s 1/3 Rule
 The no. of ordinates ( y values ) is odd.
 The accuracy can be improved by increasing
n(subinterval)
 Integration is approximated by second order
polynomial (quadratic).

Numerical & Statistical methods (2140706) Darshan Institute Of Engineering & Technology 25
Simpson’s 1/3 Rule
 Consider the observation table

+ +

Numerical and statistical method (2140706) Darshan Institute of engineering & Technology 26
Example 1
Evaluate taking using Simpson’s rule. Hence Obtain an
approximate value of .
Solution :
Here , &
Now,

Let,

Numerical and statistical method (2140706) Darshan Institute of engineering & Technology 27
Numerical and statistical method (2140706) Darshan Institute of engineering & Technology 28
By the Simpson’s rule,

Numerical and statistical method (2140706) Darshan Institute of engineering & Technology 29
Example
Find the exact solution of integral
By Direct Method,

Numerical and statistical method (2140706) Darshan Institute of engineering & Technology 30
Example 5
The speed, meter per second, of a car, second after it
starts, is shown in the following table.
Find the distance travelled by the car in minutes.Using
Simpson's rule.
T 0 12 24 36 48 60 72 84 96 108 120
(time)
V 0 3.6 10.08 18.90 21.6 18.54 10.26 4.5 4.5 5.4 9
(Speed)

Numerical and statistical method (2140706) Darshan Institute of engineering & Technology 31
Example 5
Let (meters) distance be travelled in (seconds).

The distance travelled in minute, i.e. seconds is

Numerical and statistical method (2140706) Darshan Institute of engineering & Technology 32
t 0 12 24 36 48 60 72 84 96 108 120
v 0 3.6 10.08 18.90 21.6 18.54 10.26 4.5 4.5 5.4 9

By
 using Simpson's rule,

metres

Numerical and statistical method (2140706) Darshan Institute of engineering & Technology 33
Example 8
Evaluate using Simpson’s rule with taking six
subintervals. Use four digits after decimal points for
calculation.
Solution :
Here , &
Now,

Let,

Numerical and statistical method (2140706) Darshan Institute of engineering & Technology 34
Numerical and statistical method (2140706) Darshan Institute of engineering & Technology 35
By the Simpson’s rule,

Numerical and statistical method (2140706) Darshan Institute of engineering & Technology 36
Simpson’s 3/8 Rule
 Consider the observation table

+ +

Numerical and statistical method (2140706) Darshan Institute of engineering & Technology 37
Simpson’s 3/8 Rule

a b c d a b c

Simpson’s 3/8 Rule Simpson’s 1/3 Rule

Numerical and statistical method (2140706) Darshan Institute of engineering & Technology 38
Error bounds in Simpson's 3/8 rule
 If is continuous in then the error in Simpson's rule is

Constant

Where is the largest value of


in

Numerical and statistical method (2140706) Darshan Institute of engineering & Technology 39
Example 2
Evaluate taking using Simpson’s rule. Hence Obtain an
approximate value of .Estimate the bound of error
involved in the process.
Solution :
Here , &
Now,

Let,

Numerical and statistical method (2140706) Darshan Institute of engineering & Technology 40
1

Numerical and statistical method (2140706) Darshan Institute of engineering & Technology 41
1

By the Simpson’s rule,

Numerical and statistical method (2140706) Darshan Institute of engineering & Technology 42
Example

Find the exact value of integral


By Direct Method,

Using Equation (1) & (2)

Numerical and statistical method (2140706) Darshan Institute of engineering & Technology 43
Error
 bound :

When
Max. value of in is

Numerical and statistical method (2140706) Darshan Institute of engineering & Technology 44
Error
 bound :

When
Max. value of in is

Hence, upper bound is 24 for

Numerical and statistical method (2140706) Darshan Institute of engineering & Technology 45
Example
Evaluate
 using Simpson’s rule.
Solution:

Let

Let

x 4 4.2 4.4 4.6 4.8 5.0 5.2


y 1.3863 1.4351 1.4816 1.5261 1.5686 1.6094 1.6487

Numerical and statistical method (2140706) Darshan Institute of engineering & Technology 46
By Simpson's 3/8 rule,

Numerical and statistical method (2140706) Darshan Institute of engineering & Technology 47
Example
Evaluate using Simpson’s rule with

Solution :
Here , &
Now,

Let,

Numerical and statistical method (2140706) Darshan Institute of engineering & Technology 48
Numerical and statistical method (2140706) Darshan Institute of engineering & Technology 49
By Simpson's 3/8 rule,

Numerical and statistical method (2140706) Darshan Institute of engineering & Technology 50
Weddle’s rule

We remember
How to remember
it toitmake
easilyformula.
?

Numerical and statistical method (2140706) Darshan Institute of engineering & Technology 51
Weddle’s rule

Numerical and statistical method (2140706) Darshan Institute of engineering & Technology 52
Example -1
Consider
 the following tabular values.
X 25 25.1 25.2 25.3 25.4 25.5 25.6
F(x) 3.205 3.217 3.232 3.245 3.256 3.268 3.28

Determine the area bounded by the given curve and -axis between
to by Weddle's rule.

Solution :

Here , &

Numerical and statistical method (2140706) Darshan Institute of engineering & Technology 53
X 25 25.1 25.2 25.3 25.4 25.5 25.6
F(x) 3.205 3.217 3.232 3.245 3.256 3.268 3.28

By Weddle's rule,

Numerical and statistical method (2140706) Darshan Institute of engineering & Technology 54

You might also like