Summary of Numerical Integration

Essential Concepts

  • We can use numerical integration to estimate the values of definite integrals when a closed form of the integral is difficult to find or when an approximate value only of the definite integral is needed.
  • The most commonly used techniques for numerical integration are the midpoint rule, trapezoidal rule, and Simpson’s rule.
  • The midpoint rule approximates the definite integral using rectangular regions whereas the trapezoidal rule approximates the definite integral using trapezoidal approximations.
  • Simpson’s rule approximates the definite integral by first approximating the original function using piecewise quadratic functions.

 

Key Equations

  • Midpoint rule
    Mn=i=1nf(mi)Δx
  • Trapezoidal rule
    Tn=12Δx(f(x0)+2f(x1)+2f(x2)++2f(xn1)+f(xn))
  • Simpson’s rule
    Sn=Δx3(f(x0)+4f(x1)+2f(x2)+4f(x3)+2f(x4)+4f(x5)++2f(xn2)+4f(xn1)+f(xn))
  • Error bound for midpoint rule
    Error in MnM(ba)324n2
  • Error bound for trapezoidal rule
    Error in TnM(ba)312n2
  • Error bound for Simpson’s rule
    Error in SnM(ba)5180n4

Glossary

absolute error
if B is an estimate of some quantity having an actual value of A, then the absolute error is given by |AB|
midpoint rule
a rule that uses a Riemann sum of the form Mn=i=1nf(mi)Δx, where mi is the midpoint of the ith subinterval to approximate abf(x)dx
numerical integration
the variety of numerical methods used to estimate the value of a definite integral, including the midpoint rule, trapezoidal rule, and Simpson’s rule
relative error
error as a percentage of the absolute value, given by |ABA|=|ABA|100%
Simpson’s rule
a rule that approximates abf(x)dx using the integrals of a piecewise quadratic function. The approximation Sn to abf(x)dx is given by Sn=Δx3(f(x0)+4f(x1)+2f(x2)+4f(x3)+2f(x4)+4f(x5)++2f(xn2)+4f(xn1)+f(xn)) trapezoidal rule a rule that approximates abf(x)dx using trapezoids