Title: Lecture 25 Numerical Integration
1Lecture 25 - Numerical Integration
- CVEN 302
- October 24, 2001
2Lectures Goals
- Richardson Extrapolation
- Numerical Integration
- Trapezoid Rule
- Simpsons 1/3-Rule Quadratic
- Simpsons 3/8-Rule Cubic
- Booles Rule Fourth-order
3Richardson Extrapolation
This technique uses the concept of variable grid
sizes to reduce the error. The technique uses a
simple method for eliminating the error. Consider
a second order central difference technique.
Write the equation in the form
4Richardson Extrapolation
The central difference can be defined as
Write the equation with different grid sizes
5Richardson Extrapolation
Expand the terms
6Richardson Extrapolation
Multiply eqn 2 by 4 and subtract eqn 1 from
it.
7Richardson Extrapolation
The equation can be rewritten as
It can be rewritten in the form
8Richardson Extrapolation
The technique can be extrapolated to include the
higher order error elimination by using a finer
grid.
9Richardson Extrapolation Example
The function is given
Find the first derivative at x1.25 using a
central difference scheme and Dh 0.25.
10Richardson Extrapolation Example
The data points are
The derivatives using central difference
11Richardson Extrapolation Example
The results of the central difference scheme are
The Richardson Extrapolation uses these results
to find a better solution
12Basic Numerical Integration
We want to find integration of functions of
various forms of the equation known as the Newton
Cotes integration formulas.
13Basic Numerical Integration
- Weighted sum of function values
f(x)
x
x0
x1
xn
xn-1
14Numerical Integration
Idea is to do integral in small parts, like the
way you first learned integration - a
summation Numerical methods just try to make it
faster and more accurate
15Numerical Integration
- Newton-Cotes Closed Formulae -- Use both end
points - Trapezoidal Rule Linear
- Simpsons 1/3-Rule Quadratic
- Simpsons 3/8-Rule Cubic
- Booles Rule Fourth-order
- Newton-Cotes Open Formulae -- Use only interior
points - midpoint rule
16Trapezoid Rule
- Straight-line approximation
f(x)
L(x)
x
x0
x1
17Trapezoid Rule
18ExampleTrapezoid Rule
- Evaluate the integral
- Exact solution
- Trapezoidal Rule
19Simpsons 1/3-Rule
- Approximate the function by a parabola
L(x)
f(x)
x
x0
x1
x2
h
h
20Simpsons 1/3-Rule
21Simpsons 1/3-Rule
22Simpsons 3/8-Rule
- Approximate by a cubic polynomial
f(x)
L(x)
x
x0
x1
x2
h
h
x3
h
23Simpsons 3/8-Rule
24Example Simpsons Rules
- Evaluate the integral
- Simpsons 1/3-Rule
- Simpsons 3/8-Rule
25Midpoint Rule
- Newton-Cotes Open Formula
f(x)
x
a
b
xm
26Two-point Newton-Cotes Open Formula
- Approximate by a straight line
f(x)
x
x0
x1
x2
h
h
x3
h
27Three-point Newton-Cotes Open Formula
- Approximate by a parabola
f(x)
x
x0
x1
x2
h
h
x3
h
h
x4
28Summary
- Partial Derivatives
- Richardson Extrapolation Technique
29Summary
- Integration Techniques
- Trapezoidal Rule Linear
- Simpsons 1/3-Rule Quadratic
- Simpsons 3/8-Rule Cubic
- Booles Rule Fourth-order
30Homework
- Check the Homework webpage