Numerical analysis studies algorithms for approximating mathematical problems and controlling their errors.
A finite volume method evolves cell integrals or cell averages by differences of shared interface numerical fluxes. For a scalar conservation law, . Sharing the same flux between neighboring cells makes conservation follow by telescoping.
A scalar finite-volume update is monotone if increasing any input state cannot decrease any output state. A consistent conservative update preserves constants and has an invariant interval by comparison. On a periodic grid, or an infinite grid with summable perturbations, conservation and monotonicity imply L1 contraction of a monotone conservative scheme. Translation invariance then implies the total variation diminishing scheme property.
A translation-invariant conservative monotone update decreases discrete total variation. If is the one-cell shift, , and L1 contraction of a monotone conservative scheme applied to gives . This prevents creation of new total variation, though it does not make every discontinuity sharply resolved.
Let be a monotone conservative scalar update on a periodic grid. Since , one has . Conservation makes the sum of the right side equal to . Reverse and add to obtain . On an infinite grid the same proof holds for summable differences with a Lipschitz flux on the state range.
The Engquist-Osher method is the finite volume method using the Engquist-Osher flux. Under on the invariant state interval, its update is monotone. It preserves the state range, is contractive for summable perturbations in , and decreases discrete total variation.
The Engquist-Osher numerical flux is . It sends positive-speed contributions from the left state and negative-speed contributions from the right state. Its consistency and opposite monotonicities in the two arguments yield a monotone conservative scheme under the appropriate Courant–Friedrichs–Lewy condition. For the Inviscid Burgers equation, it is .
A numerical flux approximates the transported quantity through a cell interface using nearby states. For a two-state flux approximating a scalar conservation law with flux , consistency requires . A monotone conservative scheme uses a flux nondecreasing in its left state and nonincreasing in its right state, with a time step making the complete update monotone.
For a continuous increasing scalar function, retain an interval whose endpoints bracket a target value, evaluate its midpoint, and keep the half that still brackets the target. Each step halves the interval length. Applied to a strictly increasing water-level equation, this finds its unique solution to any specified error tolerance.
An implicit time-stepping method determines a new solution value through an equation involving that same value. A small-step contraction mapping argument often establishes local solvability when the vector field is Lipschitz continuous. Examples include the Backward Euler method, implicit Runge-Kutta methods and implicit linear multistep methods. Solvability of the update is a separate issue from stability of a numerical method.
A multigrid method combines relaxation of high-frequency fine-grid errors with coarse-grid correction of smooth errors. Residual restriction, an approximate coarse error solve, error prolongation and post-smoothing form a two-grid cycle; recursive coarse solves give multilevel cycles.
For residual , restrict to a coarse grid, solve approximately, and update by . This corrects error that is smooth on the fine grid but representable on the coarse grid.
For an initial value problem, convergence means that the largest global error on each fixed finite time interval tends to zero as the step size tends to zero and the starting errors vanish. For linear multistep methods, the Dahlquist equivalence theorem separates this requirement into consistency of a numerical method and zero-stability.
The global error is the difference between the computed and exact solutions after accumulated numerical steps, rather than the local truncation error of a single step started from exact data. An estimate for the stability of a numerical method controls how initial errors and local defects accumulate. For a stable order- time integrator with starting errors , local defects accumulated over steps give global error on a fixed time interval.
A truncation error is the error introduced by replacing an exact mathematical operation with a finite approximation, such as replacing a derivative by a finite difference.
A spectral method approximates a differential equation in a global basis and enforces the equation after projection or collocation. Smooth and analytic solutions often give rapidly convergent coefficients.
A Fourier spectral method represents a periodic unknown by finitely many Fourier modes and converts differentiation into multiplication by wavenumber.
A spectral truncation retains a finite set of basis modes and sets all omitted coefficients to zero.
The Fourier–Galerkin method seeks a finite Fourier series whose residual is orthogonal to every retained Fourier mode.
For a numerical evolution, stability means that perturbations of the initial data and forcing remain bounded over a fixed time interval, with a bound independent of the discretization parameters. For a linear homogeneous recurrence, a mesh-uniform bound on powers of its update matrix provides this estimate. Von Neumann stability analysis and the energy method are two complementary ways to establish it.
A numerical method is consistent when its local defect tends to zero at the rate required to approximate the differential equation. Stability then determines whether these local defects accumulate into a convergent global approximation.
For a time-stepping formula written with an unscaled step residual , order at least means that substituting a smooth exact solution gives . Under the relevant stability of a numerical method assumptions and starting errors , this produces global error . Residuals divided by the step size instead use the equivalent convention .
The energy method differentiates a norm or quadratic energy along a differential equation or numerical evolution and estimates the resulting terms. Dissipative, skew-adjoint, and boundary contributions can yield stability or conservation without diagonalizing the operator.
For the centered second difference and centered first difference on a finite interval with zero Dirichlet boundary conditions, the diffusion matrix is symmetric negative definite and the drift matrix is skew-symmetric. Discrete summation by parts gives the displayed mesh-weighted identity. It proves contraction in the discrete L2 norm without needing periodic modes, positive stencil coefficients or simultaneous diagonalization.
For a zero-boundary centered semidiscretization , where is the scaled Dirichlet discrete Laplacian and with , summation by parts gives . Hence . The Gronwall inequality yields , a mesh-independent stability bound on every fixed finite interval. Positive reaction coefficients can permit physical growth without violating this form of stability.
For the weak energy solution of a variable-coefficient wave equation, uniqueness can be proved without using as a spatial test function. For a difference with zero data, fix and test by for , extended by zero afterwards. Put , so . Integration by parts in time for the symmetric principal form, and in space for the first-order terms, giveFor short enough intervals the last term is absorbed. The Gronwall inequality forces , and repetition proves uniqueness on the full interval. This antiderivative test is valid at the stated space-time regularity, unlike an unqualified direct energy test by .
The finite element method approximates a variational problem in a finite-dimensional space of piecewise polynomial functions and determines the coefficients by testing against the same trial space.
The spatial Galerkin method for the heat equation gives a mass matrix and a diffusion stiffness matrix . With zero forcing, . The quadratic form is the squared L2 norm of the represented finite-element function, proving an energy contraction. For nonzero forcing, the corresponding identity has the additional term , which can be estimated using the Cauchy-Schwarz inequality.
A finite element specifies a reference region, a finite-dimensional space of local trial functions, and degrees of freedom that uniquely determine each such function. Assembling compatible copies over a finite element mesh gives a global trial space. For a one-dimensional linear element, the region is an interval, the functions are affine functions, and the degrees of freedom are the endpoint values.
A conforming finite element space is a finite-dimensional vector subspace of the solution's variational space . For a second-order problem with homogeneous Dirichlet boundary conditions, continuous piecewise-polynomial functions vanishing on the boundary form such a subspace of the zero-boundary Sobolev space . Conformity allows exact Galerkin orthogonality and the Céa lemma.
A finite element mesh partitions the domain into simple elements, such as intervals, triangles or tetrahedra. Piecewise-polynomial trial functions and local integration assemble the stiffness matrix and mass matrix.
A family of simplicial meshes is shape-regular when the ratio of each element's diameter to its inscribed-ball radius stays uniformly bounded. This excludes degenerating shapes and makes finite element interpolation estimates uniform in the mesh size. The element sizes may still vary substantially across the domain.
On a shape-regular mesh in dimensions at most three, nodal piecewise-linear interpolation of satisfieswhere is the largest element diameter and is independent of . For homogeneous Dirichlet boundary conditions, belongs to the conforming finite element space. Scaling each element to a reference element gives the estimate; shape regularity bounds the scaling constants, while subtraction of an affine function leaves an error controlled by the second derivatives.
The mass matrix is the Gram matrix of a finite element basis in the L2 inner product. Its coefficient quadratic form is the squared L2 norm of the represented trial function, so it is a positive-definite matrix for a linearly independent basis.
A mass eigenstate diagonalizes the Hermitian mass operator or mass matrix and has a definite mass. In a flavor basis with off-diagonal mass terms, it is a linear combination of flavor states. For unstable particles, decay propagation instead involves an effective complex matrix; its eigenvectors need not inherit the orthogonality of a Hermitian mass problem.
On a one-dimensional uniform finite element mesh of spacing , let be an affine function and the interior piecewise-linear hat functions. The weighted mass matrix has entriesand zero entries for nonadjacent indices. The diagonal product is symmetric about and integrates to ; the neighbouring product is symmetric about and integrates to . The odd part of an affine function integrates to zero around each centre, giving the formulas. This evaluates a variable reaction term exactly without substituting a constant coefficient or a quadrature approximation.
The stiffness matrix represents a variational bilinear form in a finite element basis. A symmetric coercive bilinear form gives a positive-definite matrix. Local support of the piecewise-linear hat functions produces a sparse matrix, allowing efficient numerical solution.
For with homogeneous Dirichlet boundary conditions, the conforming piecewise-linear hat functions on a uniform grid give a diffusion stiffness matrix and a mass matrix . Their nonzero entries are , , , and , with symmetric counterparts. The sum is a positive-definite matrix because its coefficient quadratic form is . For forcing , the load at is .
For periodic , the conforming Galerkin method has , with mass matrix and . Integration by parts and periodicity give . ThereforeThe conserved quantity is the squared L2 norm of the finite element function. On a uniform one-dimensional mesh of spacing , the piecewise-linear hat functions give , , and .
A cubic Hermite finite element is piecewise cubic and joins with continuous first derivative. It is therefore conforming for fourth-order variational problems whose energy space lies in .
The Ritz method minimizes a quadratic energy over a finite-dimensional trial space. For basis functions and bilinear form , its linear system is with and .
For a bounded symmetric coercive bilinear form on a Hilbert space, a solution of minimizes . The displayed identity proves strict minimality and uniqueness. Restricting to a conforming finite element space makes the discrete Ritz method equivalent to the Galerkin method. Galerkin orthogonality gives exact best approximation in the energy norm; the Céa lemma translates it into a reference-norm estimate.
A symmetric coercive bilinear form defines the energy norm . In this norm the Ritz method is an orthogonal projection onto its finite-dimensional trial space.
If solves a variational problem and is its conforming Galerkin method approximation in , thenfor every .
For a continuous coercive bilinear form with continuity constant and coercivity constant , a conforming finite-element solution satisfiesFor a symmetric problem measured in its energy norm, the constant is one.
For any , Galerkin orthogonality gives , where . Coercivity and continuity yield . Divide by when it is nonzero and take the infimum. In the symmetric case, the Cauchy-Schwarz inequality in the energy norm gives the constant one.
For a symmetric elliptic variational problem with Galerkin orthogonality, let and solve the dual problem for every . If elliptic regularity gives , then a finite element interpolation estimate givesThus . Combining this with the Céa lemma and an energy norm error gives an L2 norm error. The additional order depends on the dual regularity assumption, which can fail on unsuitable domains.
A piecewise-linear hat function is one at one mesh node, zero at all other nodes, and affine on each adjacent mesh interval. Interior hat functions form the standard nodal basis for continuous piecewise-linear finite elements with homogeneous Dirichlet boundary conditions.
An arithmetic operation is one scalar addition, subtraction, multiplication, or division. Counting such operations gives a basic model of an algorithm's computational cost.
For a real monic quadratic , both roots lie in the closed unit disk whenwith the usual simplicity requirement for roots on the unit circle.
For a complex polynomial , assume and put and . Both roots of a polynomial lie in the closed unit disk if and only if . Strict inequality puts both roots in the open disk. Under the strict product assumption , any unit-modulus root is automatically simple.
To prove the strict version, define and . On the unit circle , so the Rouche theorem shows that a stable and have the same two interior zeros. Conversely , and the same Rouche theorem implies that two interior zeros of give two interior zeros of . The nonzero root of is , proving the criterion. The closed version follows by continuity, replacing by in the sufficiency direction. In the necessity direction with a boundary root, replace by for close to one and let . The product of the two roots of a polynomial excludes two unit-modulus roots and excludes a repeated unit-modulus root.
For bounded matrices , the Lie product formula gives operator norm convergenceFor two summands, expanding their matrix exponentials gives the one-step difference below. For Hermitian matrices multiplied by , the factors are unitary operators and the first-order unitary product-formula error bound gives an explicit error estimate.
For bounded matrices, differentiating the symmetrized product gives . The variation-of-constants formula turns this into an integral expression for . This retains the noncommutativity of the factors explicitly; cancellation of their leading opposite commutators explains why the averaged product is more accurate than either ordering alone.
For bounded matrices,Commutativity removes this splitting error, though first-order substeps such as Backward Euler method retain their own quadratic local errors.
For Hermitian matrices and , let . ThenHere every norm is the spectral norm. A short proof starts with two summands. Differentiate ; its derivative has norm at most . Differentiating and integrating yields , because unitary operators preserve the norm. Integrating from zero to gives . Inductively separate from the remaining sum, use the triangle inequality on their commutator, and apply the telescoping bound for products of operators to obtain the displayed many-term bound.
Repeating steps of size and telescoping across steps givesFor a chain of bounded nearest-neighbor terms, only pairs fail to commute. Consequently first-order product-formula Hamiltonian simulation has error and uses constant-size gates. The general bound is also given in Proposition 9 of Childs and collaborators' analysis of Trotter error.
Strang splitting approximates by . Its time symmetry cancels the quadratic local commutator defect, giving local error and global order two.
If real matrices satisfy and , then is a contraction and is an orthogonal matrix for . Hence for every . The bound is independent of commutativity and gives unconditional stability for a centered convection-diffusion semidiscretization with homogeneous Dirichlet boundary conditions. It does not itself bound the mesh-dependent commutators that enter a time-error estimate.
If is a symmetric second-order splitting, then is fourth order for and . The identities and preserve the total step and cancel the leading odd defect.
If with smooth near zero, the substitution givesThe transformed integrand is smooth, so an ordinary second-order midpoint rule recovers its usual convergence rate.
Given distinct nodes and values , there is a unique polynomial of degree at most taking those values.
An interpolation node is one of the distinct argument values at which an interpolating function is required to match prescribed data.
The interpolating polynomial is
For distinct interpolation nodes , the polynomial has . These cardinal polynomials form a basis of the polynomials of degree at most , and give .
For distinct nodes,It is the leading coefficient of the interpolating polynomial through those nodes and obeys
The displayed integral is for distinct exponents and when they coincide. The latter is the continuous limit, so a zero denominator is a removable singularity. This quantity appears in variation-of-constants formula estimates of matrix evolution and avoids omitting an equal-exponent case.
For ,
Newton's nested interpolation form isA triangular divided-difference table computes all its coefficients using exactly divisions.
Orthogonality of integer-frequency Fourier modes gives this identity: the integral is one for and zero otherwise. It converts integer step-count constraints into products of generating functions, as in the dilute-hopping lattice propagator.
is a frequency of the length- discrete Fourier transform. Distinct interior frequencies give orthogonal sine and cosine vectors; for a Gaussian white noise record this makes the corresponding Fourier components independent.
The inverse discrete Fourier transform reconstructs samples from their discrete Fourier transform. Under one common normalization,moving the factor between the forward and inverse transforms gives other standard conventions.
On a cyclic index set of length , the th discrete Fourier mode is the vector with th coordinate . Its real and imaginary parts are the corresponding cosine and sine modes.
The radix-two Cooley--Tukey algorithm recursively splits a discrete Fourier transform into transforms of the even-indexed and odd-indexed samples. For a power-of-two length this evaluates the transform in arithmetic operations.
Reflect evenly to length by and . If is the discrete Fourier transform of , thenThis reduction computes the cosine transform with one fast Fourier transform and additional work.
If and is its type-II cosine transform, thenThus a sign modulation, one fast cosine transform, and output reversal give an sine-transform algorithm.
For row of a matrix, the Gershgorin disc has centre and radius . The Gershgorin disc theorem places every eigenvalue in the union of these discs. For a Hermitian matrix the real intervals cut out by the discs bound energies; an isolated disc contains exactly one eigenvalue.
A symmetric conservative five-point diffusion matrix has row center and radius at most , where is the sum of its four nonnegative edge coefficients. If every coefficient is at most , its eigenvalues lie in . Forward Euler is therefore stable when .
A finite difference compares the values of a function at finitely separated arguments. For example, the forward finite difference with step isIt is the discrete analogue of a derivative and lowers the degree of a nonconstant polynomial by one.
Matching the monomials gives . With error defined as the true derivative minus this approximation, its Peano kernel is on . The derivative evaluation causes a jump at two. Applying the Peano kernel theorem gives .
Given noisy evaluations at , where the are independent Rademacher random variables, the estimatoraverages one-sided finite differences from both directions. If and the noise variance is , its mean squared error is at most .
A finite difference method replaces derivatives by algebraic combinations of values on a discrete space-time grid.
Averaging a smooth function at the four points cancels odd Taylor expansion terms and leaves . The fourth-order correction is . Equality to the center value at every sufficiently small radius therefore forces at that point, but does not establish harmonicity throughout a neighbourhood.
A parabolic refinement keeps the time step proportional to the square of the spatial step: for a fixed positive diffusion Courant number . A consistency bound then becomes , though its separate time order remains one.
For the advection equation on a uniform grid, the Lax-Wendroff update isIts amplification factor is , with . Thus Von Neumann stability analysis on an infinite or periodic grid gives stability for . The scheme has second order of a numerical method for sufficiently smooth solutions; finite-interval boundary conditions still need separate treatment.
Evaluating a variable diffusion coefficient at both adjacent half-grid points makes odd spatial Taylor terms cancel. The conservative spatial bracket is , yielding a fourth-order one-step residual when the forward time step is proportional to .
For constant-speed advection with , the explicit upwind scheme uses , . For the neighbour must be on the other side. When , the update is a convex combination and is contractive in the maximum norm on a periodic grid, or with appropriate controlled inflow data.
On a periodic grid, Von Neumann stability analysis gives and , proving the same exact contraction range in the discrete L2 norm. Boundary estimates are still required on a finite interval; stable scalar eigenvalues of a triangular boundary update alone need not give a mesh-uniform bound.
On a square mesh, the dimensionless five-point Laplacian is . The scaled operator approximates the Laplacian with error for sufficiently smooth functions.
A nine-point finite-difference stencil on a square grid couples a central value to its four axial neighbours and four diagonal neighbours. Ordering the grid by columns produces a block tridiagonal matrix whose diagonal and off-diagonal blocks are symmetric tridiagonal Toeplitz matrices.
For a smooth solution of , the corrected formula has unscaled residual and normalized local truncation error . The inverse interior matrix has Euclidean operator norm ; on grid points this gives unweighted Euclidean nodal error . Uniform derivatives up to the boundary are required for a grid-independent remainder bound.
Fourier stability analysis transforms a translation-invariant finite-difference scheme into scalar or matrix recurrences indexed by wavenumber. The Parseval identity then converts uniform multiplier bounds into discrete -norm bounds.
On a uniform grid of spacing , the second-order central differenceapproximates with error for a sufficiently smooth function.
On an -pixel line with last forward difference zero, has first entry , interior entries , and last entry , with for . On a square grid add these expressions along rows and columns. Unused last-edge components contribute nothing. The identity fixes every boundary sign. On the unscaled square grid, for .
Articles were limited to the first 100 out of 322 total.
Articles by others on the same topic
Numerical analysis is a branch of mathematics that focuses on developing and analyzing numerical methods for solving mathematical problems that cannot be easily solved analytically. This field encompasses various techniques for approximating solutions to problems in areas such as algebra, calculus, differential equations, and optimization. Key aspects of numerical analysis include: 1. **Algorithm Development**: Creating algorithms to obtain numerical solutions to problems. This can involve iterative methods, interpolation, or numerical integration.
Techniques to get numerical approximations to numeric mathematical problems.
The entire field comes down to estimating the true values with a known error bound, and creating algorithms that make those error bounds asymptotically smaller.
Not the most beautiful field of pure mathematics, but fundamentally useful since we can't solve almost any useful equation without computers!
The solution visualizations can also provide valuable intuition however.
Important numerical analysis problems include solving: