Simpson - PowerPoint PPT Presentation

About This Presentation
Title:

Simpson

Description:

Trapezoidal rule was based on approximating the integrand by a first ... Just like in multiple segment Trapezoidal Rule, one can subdivide the interval ... – PowerPoint PPT presentation

Number of Views:327
Avg rating:3.0/5.0
Slides: 33
Provided by: autarkawch
Category:

less

Transcript and Presenter's Notes

Title: Simpson


1
Simpsons 1/3rd Rule of Integration
  • Chemical Engineering Majors
  • Authors Autar Kaw, Charlie Barker
  • http//numericalmethods.eng.usf.edu
  • Transforming Numerical Methods Education for STEM
    Undergraduates

2
Simpsons 1/3rd Rule of Integration
http//numericalmethods.eng.usf.edu
3
What is Integration?
  • Integration

The process of measuring the area under a curve.
Where f(x) is the integrand a lower limit of
integration b upper limit of integration
4
  • Simpsons 1/3rd Rule

5
Basis of Simpsons 1/3rd Rule
  • Trapezoidal rule was based on approximating the
    integrand by a first
  • order polynomial, and then integrating the
    polynomial in the interval of
  • integration. Simpsons 1/3rd rule is an
    extension of Trapezoidal rule
  • where the integrand is approximated by a second
    order polynomial.

Hence
6
Basis of Simpsons 1/3rd Rule
Choose
and
as the three points of the function to evaluate
a0, a1 and a2.
7
Basis of Simpsons 1/3rd Rule
Solving the previous equations for a0, a1 and a2
give
8
Basis of Simpsons 1/3rd Rule
Then
9
Basis of Simpsons 1/3rd Rule
Substituting values of a0, a1, a 2 give
Since for Simpsons 1/3rd Rule, the interval a,
b is broken
into 2 segments, the segment width
10
Basis of Simpsons 1/3rd Rule




11
Example 1
  • In an attempt to understand the mechanism of
    the depolarization process in a fuel cell, an
    electro-kinetic model for mixed oxygen-methanol
    current on platinum was developed in the
    laboratory at FAMU. A very simplified model of
    the reaction developed suggests a functional
    relation in an integral form. To find the time
    required for 50 of the oxygen to be consumed,
    the time, T (s) is given by

  1. Use Simpsons 1/3rd Rule to find the time
    required for 50 of the oxygen to be consumed.
  2. Find the true error, for part (a).
  3. Find the absolute relative true error, for
    part (a).

12
Solution



a)
















13
Solution (cont)

b) The exact value of the above integral is


True Error
14
Solution (cont)
c.) Absolute relative true error,
15
  • Multiple Segment Simpsons 1/3rd Rule

16
Multiple Segment Simpsons 1/3rd Rule
Just like in multiple segment Trapezoidal Rule,
one can subdivide the interval
a, b into n segments and apply Simpsons 1/3rd
Rule repeatedly over


every two segments. Note that n needs to be
even. Divide interval


a, b into equal segments, hence the segment
width
where
17
Multiple Segment Simpsons 1/3rd Rule

Apply Simpsons 1/3rd Rule over each interval,
18
Multiple Segment Simpsons 1/3rd Rule







Since



19
Multiple Segment Simpsons 1/3rd Rule
Then




20
Multiple Segment Simpsons 1/3rd Rule
21
Example 2
  • In an attempt to understand the mechanism of
    the depolarization process in a fuel cell, an
    electro-kinetic model for mixed oxygen-methanol
    current on platinum was developed in the
    laboratory at FAMU. A very simplified model of
    the reaction developed suggests a functional
    relation in an integral form. To find the time
    required for 50 of the oxygen to be consumed,
    the time, T (s) is given by
  1. Use 4-segment Simpsons 1/3rd Rule to find the
    time required for 50 of the oxygen to be
    consumed.
  2. Find the true error, for part (a).
  3. Find the absolute relative true error, for
    part (a).

22
Solution
Using n segment Simpsons 1/3rd Rule,
a)
So
23
Solution (cont.)
24
Solution (cont.)
cont.
25
Solution (cont.)
In this case, the true error is
b)
The absolute relative true error
c)
26
Solution (cont.)
Table. Values of Simpsons 1/3rd Rule for
Example 2 with multiple segments
Approximate Value
2 4 6 8 10 190160 190140 190140 190140 190140 -24.100 -1.9838 0.42010 0.13655 0.056663 0.012675 0.0010434 2.209410-4 7.181510-5 2.980210-5
27
Error in the Multiple Segment Simpsons 1/3rd Rule
The true error in a single application of
Simpsons 1/3rd Rule is given as
In Multiple Segment Simpsons 1/3rd Rule, the
error is the sum of the errors
in each application of Simpsons 1/3rd Rule. The
error in n segment Simpsons
1/3rd Rule is given by
28
Error in the Multiple Segment Simpsons 1/3rd Rule
. . .
29
Error in the Multiple Segment Simpsons 1/3rd Rule
Hence, the total error in Multiple Segment
Simpsons 1/3rd Rule is
30
Error in the Multiple Segment Simpsons 1/3rd Rule
The term
is an approximate average value of
Hence
where
31
Additional Resources
  • For all resources on this topic such as digital
    audiovisual lectures, primers, textbook chapters,
    multiple-choice tests, worksheets in MATLAB,
    MATHEMATICA, MathCad and MAPLE, blogs, related
    physical problems, please visit
  • http//numericalmethods.eng.usf.edu/topics/simpso
    ns_13rd_rule.html

32
  • THE END
  • http//numericalmethods.eng.usf.edu
Write a Comment
User Comments (0)
About PowerShow.com