What is Numerical Integration?
In a mathematical investigation, numerical integration comprises a wide group of calculations for computing the mathematical estimation of definite integral, and likewise, the term is moreover in some cases used to depict the numerical solution of differential equations. The most important aspect of this theory is error analysis.
Important Aspects of Numerical Integration
The term was coined in 1656, by the mathematician John Wallis in his series ‘Arithmetical Infinitorum’.
The term is abbreviated as quadrature. The set of techniques to execute the process of integration are grouped under Newton-Cotes formulas. The aim is to evaluate the integrand using midpoint, trapezoidal, and Simpson’s rule.
When do we use Numerical Integration?
- Sometimes, we may find that the integrand is either regularly or irregularly spaced or some data values are missing when we are working on experimental data.
- The upper or lower limit of integration is infinite. There are some points where the function is discontinuous.
How Numerical Integration is different from Analytical Integration?
- The analytic integration is computed below,
The motivation behind introducing the concept of mathematics is some integrals like .
- Analytical integration always gives an exact answer whereas, numerical integration is an approximation of definite integral.
- This only gives the approximate area under the curve.
- The objective is to find the approximate area between the graph of continuous function and the x-axis.
Newton-Cotes Formula
We utilize the concept of interpolation in order to integrate the function and it is approximated by degree polynomial.
Consider a function that is approximated by a polynomial over a closed interval .
On further simplification we get,
Euler’s Method
The Euler method (also known as the forward Euler method) is a first-order numerical technique for solving ODEs with a given initial value. It's the most fundamental explicit approach for numerically integrating ordinary differential equations.
We use Euler's Method to produce a numerical solution to a problem with an initial value of the form:
We decide on what interval we want to find the solution in, starting with the initial condition. This interval is divided into h-sized subdivisions. Then, using the iterative formulas, we produce the rest of the solution, beginning with the initial condition:
To determine the points' coordinates in our numerical solution when we hit the right end of the desired interval, we stop the process.
Techniques of Numerical Integration
Midpoint Rule
Let a function be defined on the closed and continuous interval . We partition in form of rectangles into n subintervals where the length of each subinterval is denoted by and mathematically this length is expressed as .
For an arbitrary interval if is the midpoint, then midpoint rule is expressed as,
As the number of rectangles becomes large in number, that is , the definite integral is expressed as:
The definite error bound for the midpoint rule is expressed as:
Since we don’t use the endpoints of in computing the value, this method is known as an open method.
Trapezoidal Rule
Let a function be defined on the closed and continuous interval . We partition in form of trapezoid into n subintervals where the length of each subinterval is denoted by and mathematically this length is expressed as .
We can label the points on the x-axis as .
The area of a trapezoid is half times the sum of parallel side times the distance between them.
We can express the area of the first trapezoid as,
Similarly, the area of the second trapezoid is expressed as,
And continuing the pattern, the area of the trapezoid is expressed as,
Summing up the area of all the trapezoids, the trapezoidal rule approximation is expressed as,
As the number of trapezoids becomes large in number, that is , the definite integral is expressed as,
The expression that gives an error bound for the trapezoidal rule is provided below.
Here M is the maximum value of the second derivative of the function over , that is .
Let’s practice an example based on this methodology.
Problem 1:
The objective is to compute the area under the curve of the function over and partitioning into four subintervals using trapezoidal rule approximation.
Answer: First, we partition into four subintervals of equal length.
The length of each interval is expressed as .
Substituting b as 1, a as 0, and n as 4 in the above expression,
Therefore, the partition is .
The sub-intervals are: .
Let . Construct a table of values by estimating the value of the function at the endpoints of the sub-intervals of .
Applying the trapezoidal rule we have,
Thus, the approximate area under the curve of the function using trapezoidal rule over is 0.4062 square units.
Simpson’s One-Third Rule
Let a function be defined on the closed and continuous interval . We partition this interval in form of piecewise quadratic functions into n subintervals where the length of each subinterval is denoted by and mathematically this length is expressed as .
Summing up the area of all the quadratic functions, Simpson’s one-third rule approximation is expressed as,
Similarly, we can express Simpson’s three-eighth rule approximation as,
As the number of quadratic functions becomes large in number, that is , the definite integral is expressed as,
The expression that gives an error bound for Simpson’s rule is provided below.
Here M is the maximum value of the fourth derivative of the function over , that is .
Since we use the endpoints of the interval in computing the value, this method is known as a closed method.
Problem 2:
The objective is to compute the area under the curve of the function over and partitioning the interval into four subintervals using Simpson’s one-third rule approximation.
Answer: First we partition the interval into four subintervals of equal length.
The length of each interval is expressed as .
Substituting b as 1, a as 0, and n as 4 in the above expression,
Therefore, the is partitioned as .
The sub-intervals are: .
Let . Construct a table of values by estimating the value of the function at the endpoints of the sub-intervals of .
Applying Simpson’s rule we have,
Thus, the approximate area under the curve of the function over is 0.2403square units.
Problem 3:
The objective is to compute the area under the curve of the function over the interval and partitioning it into four subintervals using Simpson’s three-eighth rule approximation.
Answer: First, we partition into four sub-intervals of equal length.
The length of each interval is expressed as .
Substituting b as 4, a as 2, and n as 4 in the above expression,
Therefore, the interval is partitioned as .
The sub-intervals are: .
Let . Construct a table of values by estimating the value of the function at the endpoints of the sub-intervals of .
Applying the Simpson’s three-eighth rule we have,
Thus, the approximate area under the curve of the function over is 134.8828 square units.
Formulas
- Newton-Cotes formula for the approximation of a function by a polynomial:
- The trapezoidal rule approximation for a function on the interval is evaluated as:
, where .
- The Simpson’s one third rule approximation for a function on the interval is evaluated as:
, where .
- The length of each of the sub-intervals is evaluated as: , where a and b are the endpoints of the original interval and n is the number of partitions.
Context and Applications
The demand for the techniques of this field is very high because of the high-tech software available to compute them. We can convert the real-life problem into mathematical expression and apply the techniques of numerical integration for better results to the problems.
- One of the first applications of integration was in determining the volume of wine casks (with curved surfaces). Other applications of integration include finding areas under curved surfaces, finding centers of mass, displacement and velocity, and fluid flow.
- In Geology, to estimate the volume of hydrocarbon reservoirs that are in form of close structural traps the techniques of this field of mathematics are used.
- The main goal of meteorological stations is to create a framework that allows for effective climate change monitoring. The mathematical investigation using these techniques is of utmost importance.
Practice Problem
Question: Compute the approximate value at for the differential equation with step size as 0.1 and initial condition using Euler method approximation.
Solution: The objective is to estimate the value of .
We are provided that and . Applying the Euler method:
The first iteration is,
Second iteration:
Third iteration:
Fourth iteration:
Fifth iteration:
Thus, the value at is 8.08 that is .
Want more help with your calculus homework?
*Response times may vary by subject and question complexity. Median response time is 34 minutes for paid subscribers and may be longer for promotional offers.