Num.tech.for Engin.problems- Numerical Integration Class Notes
Num.tech.for Engin.problems- Numerical Integration Class Notes
Dr.U.Oral Ünal
Introduction
Let us first recall the three most fundamental Newton-Cotes closed integration
formulas:
1. Trapezoidal Rule
2. Simpson’s Rule
Let I* be the analytical solution and I1 and I2 the estimate of I* resulting from
the use of Simpson’s first and second rules.
E1 and E2 are the corresponding error terms.
𝑏−𝑎
ℎ=
𝑛
And the error can be estimated as: En2=I*-In2=(16/15)In2 – (1/15) In1 – In2=(In2-In1)/15
Example
Let us evaluate the following integral
For example
Investigation of the new sequence shows that 𝑇𝑁,3 is the estimate of the
integral that would be computed by using the composite version of the five-
point Newton-Cotes closed formula!
Example:
Use the Romberg integration scheme to estimate the following integral:
Repeated Interval-Halving and
Romberg Integration
The Gauss-Legendre formulas are significantly more accurate than the equal-
interval formulas.
• For example:
Improper Integrals
- end-point singularities-
• Let us look at another example:
• Another example:
Change of variable:
Change of variable:
The two integrals with end-point singularities can be evaluated with the techniques
presented.
Improper Integrals
- singular point inside the interval -
If the singularity is removable which means that the integrant has a limit at
the singularity point, the integral may be evaluated as it is:
I= 5/e
The result is exact, since f(x) is a polynomial of degree less than 2n+1 for all n
Improper Integrals
- Infinite Intervals-
By using successive integrations an integration limit can be reached
Example:
Improper Integrals
- Infinite Intervals-
For example:
∞
𝑥
න 𝑑𝑥
1 𝑒𝑥 − 1
Improper Integrals
- Infinite Intervals-
Multiple Integrals
The numerical evaluation of integrals of the following is considered
Multiple Integrals
Example:
Multiple Integrals
g(x) should also be evaluated. Once again with the Simpson’s rule:
Similarly:
The exact value could be obtained since the Simpson’s rule has a degree of
precision of 3.
Multiple Integrals
Now we consider the use of the Gauss-Legendre quadrature for the same integral
Let us define q:
The components are to be calculated separately, once again using two-point formula:
Multiple Integrals
Similarly, the other term can be calculated
Hence:
then:
Multiple Integrals
By using the Simpsons rule the approximation is:
Similarly:
and hence:
Thus,
ℎ = (𝛽 − 𝛼)/2
Adaptive Quadrature
The error level is similar to that obtained for the trapezoidal rule:
Calculation the acceptable approximation of the other subintervals we can find the
overall approximation for the integral I[0,1]
0.7519827