1 Definition and core idea
Discretization error is the difference between an exact mathematical description of a system and the numerical result obtained after replacing continuous quantities with a finite set of values. It arises whenever a problem is expressed on a grid, a mesh, or a sequence of time steps rather than in continuous form. In scientific computing, this error is a central measure of how closely a computed solution represents the underlying model.
1.1 Continuous versus discrete representation
Many physical and mathematical systems are described by quantities that vary continuously in space, time, or both. A numerical method cannot usually store or evaluate every point in that continuum, so it samples the domain at selected locations. The resulting approximation may represent only nodal values, cell averages, or piecewise polynomials, depending on the method. The gap between the continuous field and its discrete representation is a primary source of discretization error.
1.2 Mathematical meaning of approximation error
From a mathematical viewpoint, discretization error is an approximation error introduced by replacing an exact operator, equation, or domain with a finite counterpart. For example, a derivative may be approximated by a difference quotient, an integral by a weighted sum, or a curved geometry by polygonal segments. The error reflects the mismatch between the ideal continuous operator and its discrete analogue.
1.3 Distinction from other numerical errors
Discretization error is distinct from round-off error, which comes from finite computer precision, and from model error, which results from simplifying the real system itself. It is also related to truncation error, which describes the error made when an infinite mathematical process is cut off after finitely many terms. In practice, these errors may appear together, but they have different origins and are analyzed separately.
2 Sources of discretization error
Discretization error can enter a computation in several ways. It may arise from dividing space into elements, stepping through time, or approximating variables and operators with finite representations. The magnitude and structure of the error depend on how the discretization is designed.
2.1 Spatial discretization
Spatial discretization replaces a continuous domain with a finite collection of points, cells, or elements. This process is essential in numerical simulation, but it can distort distances, curvature, and local variation. The finer the spatial representation, the smaller the error is usually expected to be.
2.1.1 Grid spacing and mesh resolution
Grid spacing controls how closely neighboring sample points are placed. Coarse spacing can miss rapid changes in the solution, while finer spacing captures them more accurately. Mesh resolution plays a similar role in more general geometries, where the number and distribution of elements influence the quality of the approximation.
2.1.2 Geometry approximation
When a curved boundary is represented by straight segments or simple surfaces, the geometry itself becomes approximate. This can affect boundary conditions, solution gradients near the edge, and calculated quantities such as area or volume. In many applications, geometric error is an important part of the total discretization error.
2.2 Temporal discretization
Temporal discretization replaces continuous time evolution with updates at discrete instants. This approach is standard in dynamic simulations and time-dependent differential equations. The time-step choice strongly influences both accuracy and stability.
2.2.1 Time-step size
A larger time step reduces computational effort but may fail to resolve fast changes in the system. A smaller step generally improves accuracy, though at greater cost. If the step is too large, the computed trajectory may deviate significantly from the true solution even when the underlying model is correct.
2.2.2 Event sampling and update intervals
In some systems, important behavior occurs at irregular moments, such as impacts, switching events, or sudden control actions. If updates are too infrequent, the numerical method may miss these events or represent them poorly. The resulting discretization error can be especially noticeable in systems with abrupt changes.
2.3 Discretization of variables and operators
Numerical methods usually approximate both the unknown variables and the operators acting on them. A derivative, flux, or stress operator must be translated into algebraic form before a computer can solve the problem. Different discretization schemes produce different error patterns.
2.3.1 Finite differences
Finite difference methods approximate derivatives by using values at nearby points. They are conceptually simple and widely used for structured grids. Their accuracy depends on the spacing of the grid and the specific formula chosen for the derivative approximation.
2.3.2 Finite elements
Finite element methods represent the solution by piecewise basis functions over subregions of the domain. They are particularly effective for complex geometries and boundary conditions. Error arises from the finite-dimensional function space and from the approximation of the true solution within each element.
2.3.3 Finite volumes
Finite volume methods approximate conservation laws by balancing fluxes across cell boundaries. They are common in fluid dynamics and transport problems. The discretization error depends on how fluxes are reconstructed and how the cell averages are updated over time.
3 Error analysis
Error analysis studies how discretization error behaves, how it scales with refinement, and how it affects the reliability of a numerical result. It provides the theoretical foundation for comparing methods and estimating the quality of computed solutions.
3.1 Local error and global error
Local error is the error introduced in a single step, cell, or element. Global error is the accumulation of these local effects throughout the entire computation. A method may have small local error yet still produce a noticeable global deviation if the errors accumulate over many steps.
3.2 Truncation error
Truncation error is closely linked to discretization error and often serves as its analytical proxy. It measures the difference between the exact continuous expression and the finite expression used in the method. In many schemes, the size of the truncation error indicates how the discretization error will behave as the mesh or time step changes.
3.2.1 Taylor-series expansion
Taylor-series expansion is a common tool for deriving truncation error estimates. By expanding the exact solution around a grid point, one can see which terms are retained and which are omitted. The neglected terms determine the leading order of the error.
3.2.2 Order of accuracy
The order of accuracy describes how rapidly the error decreases as the discretization is refined. A first-order method typically reduces error in proportion to the step size, while a second-order method reduces it more rapidly. Higher-order methods can provide better accuracy for smooth problems, though they may require more complex implementations.
3.3 Convergence behavior
Convergence describes whether the numerical solution approaches the exact solution as the discretization is refined. A convergent method is one in which the error tends to decrease systematically under mesh or step-size reduction. The observed convergence rate helps confirm whether the method behaves as expected.
3.3.1 Refinement studies
Refinement studies compare results obtained with progressively finer grids or smaller time steps. They are used to estimate error trends and assess whether the solution is nearing a stable limit. If the output changes little under refinement, the discretization error may already be small.
3.3.2 Asymptotic error regimes
In the asymptotic regime, the discretization is fine enough that the leading error term dominates and the expected order of accuracy becomes visible. Outside this regime, coarse-grid effects, boundary issues, or nonlinear behavior may obscure the true error trend. Many practical studies aim to determine whether the computation has entered this asymptotic range.
4 Numerical methods affected by discretization error
Nearly all numerical simulation techniques are affected by discretization error. The nature of the error depends on the mathematical problem and on the approximation method used to solve it.
4.1 Differential equation solvers
Differential equation solvers approximate continuous evolution laws with finite updates. Because these methods are built on sampled values and finite increments, discretization error is inherent to their design.
4.1.1 Ordinary differential equations
For ordinary differential equations, discretization error appears when derivatives with respect to time or another single variable are replaced by numerical steps. The accumulated effect can alter predicted trajectories, equilibrium behavior, or oscillation patterns.
4.1.2 Partial differential equations
For partial differential equations, both spatial and temporal discretization may be required. The error can therefore arise from multiple sources at once, including the representation of gradients, fluxes, and boundary conditions. This makes partial differential equation solvers especially sensitive to mesh design and method selection.
4.2 Computational fluid dynamics
In computational fluid dynamics, discretization error can influence velocity fields, pressure distributions, and conserved quantities. Coarse meshes may smear shocks, vortices, or boundary layers, while insufficient time resolution may miss transient flow features. Careful grid design is often essential for credible results.
4.3 Structural and mechanical simulation
Structural and mechanical simulations often rely on finite element meshes to represent stress, strain, and deformation. Discretization error can affect predicted load paths, local stress concentrations, and natural frequencies. Complex shapes and sharply varying loads generally require finer resolution.
4.4 Electromagnetic and thermal modeling
Electromagnetic and thermal models frequently involve field equations with rapid spatial variation near sources, interfaces, or material boundaries. Discretization error can alter computed field intensity, temperature gradients, or heat fluxes. The choice of element type and spacing often determines whether fine-scale effects are adequately captured.
5 Factors influencing error magnitude
The amount of discretization error depends on both the numerical method and the properties of the problem being solved. Some solutions are easy to approximate, while others are highly sensitive to the details of the discretization.
5.1 Mesh quality and element shape
Poorly shaped elements, skewed cells, or uneven spacing can degrade accuracy and reduce numerical robustness. Good mesh quality helps preserve geometric fidelity and improves the behavior of interpolation or flux calculations. In many methods, regular and well-proportioned elements support lower error.
5.2 Smoothness of the underlying solution
Smooth solutions are generally easier to approximate accurately than functions with sharp corners, discontinuities, or rapid local variation. When the true solution is smooth, higher-order methods often perform well. If the solution contains singular features or abrupt transitions, the error may remain significant even under refinement.
5.3 Boundary conditions and interface treatment
Boundary conditions strongly influence numerical results because they define how the solution behaves at the edges of the domain. Approximate treatment of boundaries or interfaces between materials can introduce noticeable error. This is especially important when the solution is sensitive near those regions.
5.4 Nonlinearities and sharp gradients
Nonlinear equations can amplify small discretization differences, making error propagation more complicated. Sharp gradients and steep fronts also challenge standard discretizations, since nearby samples may not capture the true shape of the solution. Specialized schemes are often used when these features are present.
6 Error reduction and control
Reducing discretization error is a major goal in numerical analysis. Common strategies include refining the discretization, using more accurate methods, and estimating error through systematic comparison.
6.1 Mesh refinement
Mesh refinement increases the number of spatial elements or sample points. This usually improves resolution and reduces approximation error, although the cost of computation rises accordingly. Refinement can be applied across the whole domain or only where needed.
6.1.1 Uniform refinement
Uniform refinement subdivides every part of the mesh in the same way. It is simple to apply and useful for studying overall convergence. However, it may be inefficient when only a small region of the solution needs higher resolution.
6.1.2 Adaptive refinement
Adaptive refinement concentrates additional elements in regions where the estimated error is largest. This makes it possible to improve accuracy more efficiently than by global refinement alone. It is often used near boundary layers, singularities, and other localized features.
6.2 Higher-order methods
Higher-order methods use richer polynomial approximations or more accurate difference formulas. They can achieve a smaller error for the same mesh size when the solution is sufficiently smooth. Their advantage is often greatest in problems where fine detail must be captured without an excessive number of elements.
6.3 Step-size control
In time-dependent problems, adaptive step-size control adjusts the time increment according to the estimated local error. Smaller steps are used when the solution changes rapidly, and larger steps are used when it varies slowly. This strategy helps balance accuracy and efficiency.
6.4 Richardson extrapolation
Richardson extrapolation combines results from multiple discretizations to estimate the exact value more accurately. By comparing solutions obtained at different step sizes, one can sometimes cancel leading error terms. This technique is also useful for estimating the observed order of accuracy.
6.5 Verification and validation practices
Verification checks whether a numerical method is implemented correctly and solves the intended equations accurately. Validation compares the computational model with experimental or observed behavior to determine whether it represents reality well enough for its purpose. Together, these practices help identify whether discretization error is under control.
7 Practical consequences
Discretization error affects both the reliability and the efficiency of simulations. Its impact may be subtle in simple cases but substantial in problems where precision matters or where small numerical artifacts influence interpretation.
7.1 Accuracy limits in simulation
Every numerical approximation has a limit beyond which further computation produces diminishing returns unless the discretization is improved. A simulation may appear detailed but still contain significant error if the mesh or time step is too coarse. For this reason, apparent smoothness should not be mistaken for high accuracy.
7.2 Numerical artifacts
Discretization error can create artifacts that are not present in the true system. These may include artificial smoothing, spurious waves, or unstable behavior. Such effects can alter the interpretation of the simulation if they are not recognized.
7.2.1 Smearing and diffusion
Smearing occurs when sharp features are spread out over several grid cells or time steps. In transport problems, this often appears as numerical diffusion, which can blur interfaces, peaks, or fronts. The result is a loss of fine structure in the computed solution.
7.2.2 Oscillations and instability
Some discretizations generate nonphysical oscillations near steep gradients or discontinuities. In severe cases, the solution may become unstable and grow without bound. Stability analysis is therefore closely linked to the control of discretization error.
7.3 Computational cost trade-offs
Improving accuracy usually requires more grid points, smaller time steps, or more complex basis functions. These changes increase memory use and computation time. Practical numerical work often involves balancing error reduction against available resources.
8 Related concepts
Discretization error is part of a broader family of numerical approximation issues. Several related concepts help explain how and why it appears, as well as how it behaves in computations.
8.1 Truncation error
Truncation error is the error produced by replacing an exact mathematical process with a finite one. It is closely connected to discretization error and is often used to estimate it. In many numerical methods, the leading truncation term determines the convergence rate.
8.2 Round-off error
Round-off error results from representing numbers with finite precision in a computer. It is separate from discretization error, though both may affect the final result. In long computations, round-off can accumulate and interact with discretization effects.
8.3 Model error
Model error comes from simplifying assumptions in the underlying description of the system. Examples include ignoring certain physical effects or using approximate material laws. Even a highly accurate numerical method cannot remove model error if the governing model itself is incomplete.
8.4 Convergence and consistency
Consistency means that the discrete equations approach the continuous equations as the discretization becomes finer. Convergence means that the numerical solution approaches the exact solution. In many settings, a consistent and stable method converges, making these ideas central to the analysis of discretization error.