Approximation, Quadrature, and Error Control in Practice
quadrature, approximation, error control, tolerance, refinement
1 Application Snapshot
Scientific computing rarely ends with “compute the state vector.”
Usually, what we finally report or compare is something derived from that state:
- an integral
- an average
- a flux
- an energy
- a norm
- or a scalar diagnostic used to decide whether the simulation is trustworthy
That is why approximation and quadrature matter so much in practice:
the scientific conclusion usually depends on finite estimates of continuous quantities, not just on the raw simulated state
This page is the shortest bridge from discretized states into error-aware reporting and refinement.
2 Problem Setting
Suppose a continuous model produces a function, field, or trajectory that in principle defines a quantity of interest such as
\[ I = \int_a^b g(x)\,dx \]
or a space-time quantity such as
\[ J = \int_0^T \int_\Omega q(u(x,t))\,dx\,dt. \]
A computer does not evaluate these exactly.
Instead, it builds a finite approximation:
\[ Q_h(g) = \sum_{i=1}^m w_i g(x_i), \]
where the nodes \(x_i\), weights \(w_i\), mesh size \(h\), and time step \(\Delta t\) all affect the answer.
So even after the state itself has been discretized, another question appears:
how accurately are we approximating the quantity we actually care about?
3 Why This Math Appears
This language reuses several layers already live on the site:
Models, Discretization, and Simulation Loops: the forward model has already become a finite computational objectNumerical Methods: approximation order, quadrature rules, local versus global error, and adaptive control live hereLinear Systems, Conditioning, and Stable Computation: solver error and conditioning may contaminate the quantities extracted from the stateInverse Problems, Parameter Estimation, and Data Assimilation: parameter fitting can be distorted if the approximation error in the reported quantity is ignored
So approximation and quadrature are not a side calculation after the real work. They are often the last translation step between simulation output and scientific claim.
4 Math Objects In Use
- mesh size \(h\) or spatial resolution
- time step \(\Delta t\)
- quadrature nodes and weights
- approximation order
- error estimator or refinement indicator
- tolerance for stopping or mesh adaptation
- quantity of interest such as an integral, mean, flux, or norm
At first pass, the application picture is:
- discretize the governing equations
- compute an approximate state
- extract the quantity you actually care about
- decide whether the approximation is good enough for the scientific question
5 A Small Worked Walkthrough
Suppose a heat equation simulation produces grid values
\[ u_1^n,\dots,u_m^n \]
for temperature at time \(t_n\) on a uniform spatial grid with spacing \(\Delta x\).
Now suppose the real quantity of interest is not any single grid value, but the total heat content
\[ H(t_n) = \int_\Omega u(x,t_n)\,dx. \]
The simulation must turn that continuous integral into a finite estimate, for example
\[ \widehat{H}(t_n) \approx \Delta x \sum_{i=1}^m u_i^n \]
or a trapezoidal-rule variant at the boundaries.
At that point, at least three different errors can matter:
- discretization error in the PDE solution itself
- time-stepping error accumulated before time \(t_n\)
- quadrature error in the integral used to report heat content
So if a paper compares two models by a small difference in total heat, the real question is not only
what values did the code output?
It is also
is that reported difference larger than the numerical error we introduced while approximating the quantity?
6 Implementation or Computation Note
Three practical patterns appear over and over:
Refinement loopRecompute with smaller \(h\) or \(\Delta t\) and check whether the quantity of interest stabilizes.Adaptive controlUse an estimator or embedded rule to change the step size or resolution where the approximation is hardest.Tolerance-aware reportingTreat the reported scientific quantity as meaningful only once numerical error is small relative to the effect size being discussed.
Strong next bridges already live on the site:
- Time-Stepping, Stiffness, and Solver Choice
- Approximation, Differentiation, Integration, and Error Control
- Time-Stepping for ODEs and Stability
- Models, Discretization, and Simulation Loops
- Inverse Problems, Parameter Estimation, and Data Assimilation
- Scientific ML, Surrogates, and Computation-Physics Bridges
- Optimization and Inference
7 Failure Modes
- reporting a scalar quantity as if it were exact just because the state vector was computed successfully
- comparing two models on a difference smaller than the likely numerical approximation error
- refining the solver without checking whether the quantity of interest, rather than just the raw state, has stabilized
- confusing an internal error estimator with the exact true error
- forgetting that quadrature, discretization, and solver error can interact rather than appearing separately
8 Paper Bridge
- Numerical Methods for Partial Differential Equations -
First pass- official MIT bridge once approximation and error control become part of how you interpret PDE-side simulation output. Checked2026-04-26. - CME 104 -
Paper bridge- useful once numerical approximation quality becomes part of the scientific argument rather than just the implementation. Checked2026-04-26.
9 Sources and Further Reading
- Computational Science and Engineering I -
First pass- official MIT anchor for how approximate computational objects support scientific reasoning. Checked2026-04-26. - Numerical Methods for Partial Differential Equations -
First pass- official MIT anchor once quadrature, approximation order, and PDE-side error control matter directly. Checked2026-04-26. - CME 102 -
Second pass- official Stanford anchor for ODE-side numerical modeling where step size and approximation quality matter operationally. Checked2026-04-26. - CME 104 -
Second pass- official Stanford scientific-computing anchor once error-aware computation and interpretation become central. Checked2026-04-26.