Lecture 28
Lecture 28
Integration
Copyright © 2006 The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
Simpson’s 3/8 Rule
Simpson’s 1/3 and 3/8 rules can be
Fit a 3rd order Lagrange interpolating applied in combination to handle
polynomial to four points and integrate multiple applications with odd
number of intervals
b b
I f ( x)dx f 3 ( x)dx
a a
3h
I f ( x0 ) 3 f ( x1 ) 3 f ( x2 ) f ( x3 )
8
(b a )
h
3
f ( x0 ) 3 f ( x1 ) 3 f ( x2 ) f ( x3 )
I (b a )
8
Copyright © 2006 The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
Simpson’s 3/8 Rule
Simpson’s 1/3 and 3/8 rules can be
Fit a 3rd order Lagrange interpolating applied in combination to handle
polynomial to four points and integrate multiple applications with odd
number of intervals
b b
I f ( x)dx f 3 ( x)dx
a a
3h
I f ( x0 ) 3 f ( x1 ) 3 f ( x2 ) f ( x3 )
8
(b a )
h
3
f ( x0 ) 3 f ( x1 ) 3 f ( x2 ) f ( x3 )
I (b a )
8
Copyright © 2006 The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
Problem
Use Simpson’s 3/8th Rule to estimate the integral of
f(x) = 0.2 +25x – 200x2 + 675x3 – 900x4 + 400x5
Integrate f(x) from a=0 to b=0.8. Estimate the true and absolute error. The exact integral is
1.640533.
Copyright © 2006 The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
Problem
Use Simpson’s 3/8th Rule to estimate the integral of
f(x) = 0.2 +25x – 200x2 + 675x3 – 900x4 + 400x5
Integrate f(x) from a=0 to b=0.8. Estimate the true and absolute error. The exact integral is
1.640533.
Copyright © 2006 The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
Problem
Use five segments to estimate the integral of
f(x) = 0.2 +25x – 200x2 + 675x3 – 900x4 + 400x5
Integrate f(x) from a=0 to b=0.8. Estimate the true and absolute error. The exact integral is
1.640533.
Copyright © 2006 The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
Problem
Use five segments to estimate the integral of
f(x) = 0.2 +25x – 200x2 + 675x3 – 900x4 + 400x5
Integrate f(x) from a=0 to b=0.8. Estimate the true and absolute error. The exact integral is
1.640533.
Copyright © 2006 The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
Problem
Use five segments to estimate the integral of
f(x) = 0.2 +25x – 200x2 + 675x3 – 900x4 + 400x5
Integrate f(x) from a=0 to b=0.8. Estimate the true and absolute error. The exact integral is
1.640533.
Copyright © 2006 The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
Problem
Solve the following function for five segments:
f(x) = 0.2 +25x – 200x2 + 675x3 – 900x4 + 400x5
Integrate f(x) from a=0 to b=0.8. Estimate the true and absolute error. The exact integral is
1.640533.
Copyright © 2006 The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
Newton-Cotes Integration Formulas
Copyright © 2006 The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
Newton-Cotes Closed Integration Formulas
Same order,
but Simpson’s 3/8 is more accurate
In engineering practice, higher order (greater than 4-point) formulas are rarely used
Copyright © 2006 The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
Boole’s Rule
Copyright © 2006 The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
Boole’s Rule
Copyright © 2006 The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
Boole’s Rule
Copyright © 2006 The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
Composite Boole’s Rule
Copyright © 2006 The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
Composite Boole’s Rule
Copyright © 2006 The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
Problem on Boole’s Rule
Copyright © 2006 The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
Problem on Boole’s Rule
Copyright © 2006 The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
Integration with Unequal Segments
Using Trapezoidal Rule
f ( x0 ) f ( x1 ) f ( x1 ) f ( x2 ) f ( xn 1 ) f ( xn )
I h1 h2 hn
2 2 2
x f(x) x f(x)
Example 21.7 0.0 0.2 0.44 2.842
0.40 2.456
Copyright © 2006 The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
Integration with Unequal Segments
Using Trapezoidal Rule
f ( x0 ) f ( x1 ) f ( x1 ) f ( x2 ) f ( xn 1 ) f ( xn )
I h1 h2 hn
2 2 2
x f(x) x f(x)
Example 21.7 0.0 0.2 0.44 2.842
0.40 2.456
x f(x) h (xi+1-xi)
Copyright © 2006 The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
Multiple Integral
Copyright © 2006 The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
Problem
The work produced by a constant temperature, pressure
volume thermodynamic process can be computed as
V2 11
W pdV
V1 0.5
Pressure (kPa) 336 294.4 266.4 260.8 260.5 249.6 193.6 165.6
Copyright © 2006 The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
Copyright © 2006 The McGraw-Hill Companies, Inc. Permission required for reproduction or display.