Skip to article frontmatterSkip to article content
Site not loading correctly?

This may be due to an incorrect BASE_URL configuration. See the MyST Documentation for reference.

 Open In Colab

Motivation for Numerical Quadrature

Numerical integration approximates analytic integration, and is particularly useful because:

  • Analytic integrals may be hard to find if they exist at all.

  • Functions may only be known at a set of discrete sample points.

Integral as region under curve

For definite integrals (i.e. with finite limits), numerical integration is called numerical quadrature.

Aside: The integral sign ∫\int looks like an elongated ‘S’ because summa (Latin for summation) is exactly what we are doing!

Continuous Functions vs. Discrete Datasets

The methods discussed in this chapter consider two primary engineering cases:

  • Discrete dataset (xi,fi)(x_i, f_i) is given: The values are fixed by experiment or observation, requiring panel-based interpolation (e.g. Newton-Cotes rules).

  • Callable function f(x)f(x) is available: The integrand can be sampled at any arbitrary evaluation point, enabling adaptive node placement (Romberg rule, Gauss-Legendre quadrature).