Simpson’s 1/3rd Rule of Integration

Slides:



Advertisements
Similar presentations
5/1/ Finite Difference Method Civil Engineering Majors Authors: Autar Kaw, Charlie Barker
Advertisements

Romberg Rule of Integration
1 Direct Method of Interpolation Electrical Engineering Majors Authors: Autar Kaw, Jai Paul
7/2/ Differentiation-Discrete Functions Industrial Engineering Majors Authors: Autar Kaw, Sri Harsha Garapati.
7/2/ Backward Divided Difference Major: All Engineering Majors Authors: Autar Kaw, Sri Harsha Garapati
8/8/ Euler Method Major: All Engineering Majors Authors: Autar Kaw, Charlie Barker
8/8/ Gauss Quadrature Rule of Integration Major: All Engineering Majors Authors: Autar Kaw, Charlie Barker
8/15/ Differentiation-Discrete Functions Major: All Engineering Majors Authors: Autar Kaw, Sri Harsha Garapati.
8/15/ Binary Representation Major: All Engineering Majors Authors: Autar Kaw, Matthew Emmons
Simpson’s 1/3 rd Rule of Integration. What is Integration? Integration The process of measuring the area under a.
1 Simpson’s 1/3 rd Rule of Integration. 2 What is Integration? Integration The process of measuring the area under a curve. Where: f(x) is the integrand.
CSE 330 : Numerical Methods
9/14/ Trapezoidal Rule of Integration Major: All Engineering Majors Authors: Autar Kaw, Charlie Barker
1 Trapezoidal Rule of Integration. What is Integration Integration: The process of measuring the area under a function.
10/8/ Propagation of Errors Major: All Engineering Majors Authors: Autar Kaw, Matthew Emmons
1 Lagrangian Interpolation Major: All Engineering Majors Authors: Autar Kaw, Jai Paul
5/30/ Runge 4 th Order Method Chemical Engineering Majors Authors: Autar Kaw, Charlie Barker
11/16/ Euler Method Electrical Engineering Majors Authors: Autar Kaw, Charlie Barker
11/17/ Shooting Method Major: All Engineering Majors Authors: Autar Kaw, Charlie Barker
Trapezoidal Rule of Integration
11/30/ Romberg Rule of Integration Mechanical Engineering Majors Authors: Autar Kaw, Charlie Barker
12/1/ Trapezoidal Rule of Integration Civil Engineering Majors Authors: Autar Kaw, Charlie Barker
1 Direct Method of Interpolation Major: All Engineering Majors Authors: Autar Kaw, Jai Paul
1/16/ Runge 4 th Order Method Civil Engineering Majors Authors: Autar Kaw, Charlie Barker
1/19/ Runge 4 th Order Method Major: All Engineering Majors Authors: Autar Kaw, Charlie Barker
1 Direct Method of Interpolation Mechanical Engineering Majors Authors: Autar Kaw, Jai Paul
2/28/ Runge 4 th Order Method Computer Engineering Majors Authors: Autar Kaw, Charlie Barker
1 Spline Interpolation Method Mechanical Engineering Majors Authors: Autar Kaw, Jai Paul
3/12/ Trapezoidal Rule of Integration Computer Engineering Majors Authors: Autar Kaw, Charlie Barker
3/20/ Trapezoidal Rule of Integration Chemical Engineering Majors Authors: Autar Kaw, Charlie Barker
Trapezoidal Rule of Integration
Civil Engineering Majors Authors: Autar Kaw, Charlie Barker
Gauss Quadrature Rule of Integration
Computer Engineering Majors Authors: Autar Kaw, Charlie Barker
Differentiation-Discrete Functions
Differentiation-Continuous Functions
Differentiation-Discrete Functions
Civil Engineering Majors Authors: Autar Kaw, Charlie Barker
Spline Interpolation Method
Mechanical Engineering Majors Authors: Autar Kaw, Charlie Barker
Chemical Engineering Majors Authors: Autar Kaw, Charlie Barker
Direct Method of Interpolation
Lagrangian Interpolation
Civil Engineering Majors Authors: Autar Kaw, Charlie Barker
Newton’s Divided Difference Polynomial Method of Interpolation
Trapezoidal Rule of Integration
Trapezoidal Rule of Integration
Gauss Quadrature Rule of Integration
Binary Representation
Industrial Engineering Majors Authors: Autar Kaw, Charlie Barker
Direct Method of Interpolation
Simpson’s 1/3rd Rule of Integration
Binary Representation
Binary Representation
Lagrangian Interpolation
Lagrangian Interpolation
Simpson’s 1/3rd Rule of Integration
Romberg Rule of Integration
Simpson’s 1/3rd Rule of Integration
Romberg Rule of Integration
Numerical Computation and Optimization
Electrical Engineering Majors Authors: Autar Kaw, Charlie Barker
Romberg Rule of Integration
Spline Interpolation Method
Romberg Rule of Integration
Chemical Engineering Majors Authors: Autar Kaw, Charlie Barker
Industrial Engineering Majors Authors: Autar Kaw, Jai Paul
Differentiation-Discrete Functions
Newton’s Divided Difference Polynomial Method of Interpolation
Lagrangian Interpolation
Presentation transcript:

Simpson’s 1/3rd Rule of Integration Electrical Engineering Majors Authors: Autar Kaw, Charlie Barker http://numericalmethods.eng.usf.edu Transforming Numerical Methods Education for STEM Undergraduates 4/5/2019 http://numericalmethods.eng.usf.edu

Simpson’s 1/3rd Rule of Integration http://numericalmethods. eng. usf

What is Integration? Integration f(x) a b y x 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 http://numericalmethods.eng.usf.edu

Simpson’s 1/3rd Rule http://numericalmethods.eng.usf.edu

Basis of Simpson’s 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. Simpson’s 1/3rd rule is an extension of Trapezoidal rule where the integrand is approximated by a second order polynomial. Hence Where is a second order polynomial. http://numericalmethods.eng.usf.edu

Basis of Simpson’s 1/3rd Rule Choose and as the three points of the function to evaluate a0, a1 and a2. http://numericalmethods.eng.usf.edu

Basis of Simpson’s 1/3rd Rule Solving the previous equations for a0, a1 and a2 give http://numericalmethods.eng.usf.edu

Basis of Simpson’s 1/3rd Rule Then http://numericalmethods.eng.usf.edu

Basis of Simpson’s 1/3rd Rule Substituting values of a0, a1, a 2 give Since for Simpson’s 1/3rd Rule, the interval [a, b] is broken into 2 segments, the segment width http://numericalmethods.eng.usf.edu

Basis of Simpson’s 1/3rd Rule Hence Because the above form has 1/3 in its formula, it is called Simpson’s 1/3rd Rule. http://numericalmethods.eng.usf.edu

Example 1 The probability for an oscillator to have its frequency within 5% of the target of 1kHz is determined by finding total area under the normal distribution function for the range in question: Use Simpson’s 1/3rd rule to find the frequency Find the true error, for part (a). Find the absolute relative true error, for part (a). http://numericalmethods.eng.usf.edu

Solution a) http://numericalmethods.eng.usf.edu

Solution (cont) b) True Error Since the exact value of the above integral cannot be found, we take numerical integration value using maple as exact value b) True Error http://numericalmethods.eng.usf.edu

c) Absolute relative true error, Solution (cont) c) Absolute relative true error, http://numericalmethods.eng.usf.edu

Multiple Segment Simpson’s 1/3rd Rule http://numericalmethods.eng.usf.edu

Multiple Segment Simpson’s 1/3rd Rule Just like in multiple segment Trapezoidal Rule, one can subdivide the interval [a, b] into n segments and apply Simpson’s 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 http://numericalmethods.eng.usf.edu

Multiple Segment Simpson’s 1/3rd Rule f(x) . . . x0 x2 xn-2 xn x Apply Simpson’s 1/3rd Rule over each interval, http://numericalmethods.eng.usf.edu

Multiple Segment Simpson’s 1/3rd Rule Since http://numericalmethods.eng.usf.edu

Multiple Segment Simpson’s 1/3rd Rule Then http://numericalmethods.eng.usf.edu

Multiple Segment Simpson’s 1/3rd Rule http://numericalmethods.eng.usf.edu

Example 2 The probability for an oscillator to have its frequency within 5% of the target of 1kHz is determined by finding total area under the normal distribution function for the range in question: Use four segment Simpson’s 1/3rd Rule to find the approximate value of x. Find the true error, for part (a). Find the absolute relative true error, for part (a). http://numericalmethods.eng.usf.edu

Using n segment Simpson’s 1/3rd Rule, Solution a) Using n segment Simpson’s 1/3rd Rule, So http://numericalmethods.eng.usf.edu

Solution (cont.) http://numericalmethods.eng.usf.edu

Solution (cont.) In this case, the true error is b) In this case, the true error is c) The absolute relative true error http://numericalmethods.eng.usf.edu

Solution (cont.) Table Values of Simpson’s 1/3rd Rule for Example 2 with multiple segments n Approximate Value 2 4 6 8 10 1.2902 0.96079 0.98168 0.98212 0.98226 −0.30785 0.021568 0.00068166 0.00023561 0.0000922440 31.338% 2.1955% 0.069391% 0.023984% 0.0094101% http://numericalmethods.eng.usf.edu

Error in the Multiple Segment Simpson’s 1/3rd Rule The true error in a single application of Simpson’s 1/3rd Rule is given as In Multiple Segment Simpson’s 1/3rd Rule, the error is the sum of the errors in each application of Simpson’s 1/3rd Rule. The error in n segment Simpson’s 1/3rd Rule is given by http://numericalmethods.eng.usf.edu

Error in the Multiple Segment Simpson’s 1/3rd Rule . http://numericalmethods.eng.usf.edu

Error in the Multiple Segment Simpson’s 1/3rd Rule Hence, the total error in Multiple Segment Simpson’s 1/3rd Rule is http://numericalmethods.eng.usf.edu

Error in the Multiple Segment Simpson’s 1/3rd Rule The term is an approximate average value of Hence where http://numericalmethods.eng.usf.edu

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/simpsons_13rd_rule.html

THE END http://numericalmethods.eng.usf.edu