Lecture Slides AMM Week 5 - Numerical Integration - Tagged
Lecture Slides AMM Week 5 - Numerical Integration - Tagged
Methods
Anna Huber
Numerical Methods
Numerical Integration
Introduction
• Calculus is the mathematics of change.
• An essential tool of engineering since we must
continuously deal with systems and processes that
change.
• At the heart of calculus are the mathematical
concepts of differentiation
and integration
Integration
𝑏
𝐼 =∫ 𝑓 ( 𝑥 ) 𝑑𝑥
𝑎
Non-computer Methods
• The function to be integrated will typically be in
one of the following three forms:
– A simple continuous function such as polynomial, an
exponential, or a trigonometric function.
– A complicated continuous function that is difficult or
impossible to integrate directly.
– A tabulated function where values of x and f(x) are
given at a number of discrete points, as is often the
case with experimental or field data.
Numerical Integration
Newton-Cotes Integration Formulas
• The Newton-Cotes formulas are the most common
numerical integration schemes.
• They are based on the strategy of replacing a
complicated function or tabulated data with an
approximating function that is easy to integrate:
Approximation of an Integral
Approximation of an Integral
The Trapezoidal Rule
• First Newton-Cotes closed integration formula.
• Corresponds to the case where the polynomial is
first order:
From to
Single Application Example
Multiple Application
• Improve the accuracy by dividing the integration
interval from to into a number of segments, .
• Apply the method to each segment.
• The areas of individual segments can then be
added to yield the integral for the entire interval.
Multiple Application
𝑏 −𝑎
where h=
𝑛
Simpson’s 1/3 Rule - Graphically
Multiple Applications
Simpson’s 3/8 Rule
• An odd-segment, even-point formula used in
conjunction with the 1/3 rule to permit evaluation
of both even and odd numbers of segments.
Newton-Cotes Integration Formulas
Example
Use Simpson’s Rules to numerically integrate
From to
Summary
• Newton-Cotes formulas have been used to
determine numerical integrals based on data sets.
• The formulas are based on nth-order polynomials
i.e. straight-line segments or higher-order
polynomials are used.
Support
Feedback
Opportunity