Lecture 25 Numerical Integration - PowerPoint PPT Presentation

1 / 30
About This Presentation
Title:

Lecture 25 Numerical Integration

Description:

midpoint rule. Trapezoid Rule. Straight-line approximation ... Midpoint Rule. Newton-Cotes Open Formula. a. b. x. f(x) xm. Two-point Newton-Cotes Open Formula ... – PowerPoint PPT presentation

Number of Views:123
Avg rating:3.0/5.0
Slides: 31
Provided by: San59
Category:

less

Transcript and Presenter's Notes

Title: Lecture 25 Numerical Integration


1
Lecture 25 - Numerical Integration
  • CVEN 302
  • October 24, 2001

2
Lectures Goals
  • Richardson Extrapolation
  • Numerical Integration
  • Trapezoid Rule
  • Simpsons 1/3-Rule Quadratic
  • Simpsons 3/8-Rule Cubic
  • Booles Rule Fourth-order

3
Richardson 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
4
Richardson Extrapolation
The central difference can be defined as
Write the equation with different grid sizes
5
Richardson Extrapolation
Expand the terms
6
Richardson Extrapolation
Multiply eqn 2 by 4 and subtract eqn 1 from
it.
7
Richardson Extrapolation
The equation can be rewritten as
It can be rewritten in the form
8
Richardson Extrapolation
The technique can be extrapolated to include the
higher order error elimination by using a finer
grid.
9
Richardson Extrapolation Example
The function is given
Find the first derivative at x1.25 using a
central difference scheme and Dh 0.25.
10
Richardson Extrapolation Example
The data points are
The derivatives using central difference
11
Richardson Extrapolation Example
The results of the central difference scheme are
The Richardson Extrapolation uses these results
to find a better solution
12
Basic Numerical Integration
We want to find integration of functions of
various forms of the equation known as the Newton
Cotes integration formulas.
13
Basic Numerical Integration
  • Weighted sum of function values

f(x)
x
x0
x1
xn
xn-1
14
Numerical 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
15
Numerical 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

16
Trapezoid Rule
  • Straight-line approximation

f(x)
L(x)
x
x0
x1
17
Trapezoid Rule
  • Lagrange interpolation

18
ExampleTrapezoid Rule
  • Evaluate the integral
  • Exact solution
  • Trapezoidal Rule

19
Simpsons 1/3-Rule
  • Approximate the function by a parabola

L(x)
f(x)
x
x0
x1
x2
h
h
20
Simpsons 1/3-Rule
21
Simpsons 1/3-Rule
22
Simpsons 3/8-Rule
  • Approximate by a cubic polynomial

f(x)
L(x)
x
x0
x1
x2
h
h
x3
h
23
Simpsons 3/8-Rule
24
Example Simpsons Rules
  • Evaluate the integral
  • Simpsons 1/3-Rule
  • Simpsons 3/8-Rule

25
Midpoint Rule
  • Newton-Cotes Open Formula

f(x)
x
a
b
xm
26
Two-point Newton-Cotes Open Formula
  • Approximate by a straight line

f(x)
x
x0
x1
x2
h
h
x3
h
27
Three-point Newton-Cotes Open Formula
  • Approximate by a parabola

f(x)
x
x0
x1
x2
h
h
x3
h
h
x4
28
Summary
  • Partial Derivatives
  • Richardson Extrapolation Technique

29
Summary
  • Integration Techniques
  • Trapezoidal Rule Linear
  • Simpsons 1/3-Rule Quadratic
  • Simpsons 3/8-Rule Cubic
  • Booles Rule Fourth-order

30
Homework
  • Check the Homework webpage
Write a Comment
User Comments (0)
About PowerShow.com