The four-point midpoint third derivative uses the four values at , centred at . The Taylor theorem about that midpoint gives
Thus, for , take the interior equations
Impose the two value conditions exactly, , , and approximate the remaining condition with the second-order backward finite difference:
This gives equations for . The endpoint derivative formula equals , so its residual tends to zero along with those of the four-point equations. Every stencil lies within ; no unprescribed ghost value is introduced. The construction is therefore a consistent finite difference method for all three boundary conditions.
On the vector space of nodal values with zero endpoints define the discrete Sobolev norm
It is a norm because it is the Euclidean norm of the scaled list of nodal values and first finite differences, and vanishes only for the zero list. It is the discrete counterpart of the Sobolev space norm. Here has zero endpoints, so this definition applies directly.
Set , finite by the assumed continuity. Taylor's theorem with fourth-order remainders gives, for suitable and ,
Adding the two expansions cancels the odd derivatives, so
Consequently . Doubling the bound in (c) gives , and therefore
Thus is a valid nonnegative constant. To satisfy the request for a strictly positive constant even when , take , independent of . This proves second-order convergence of a numerical method in a discrete Sobolev norm, including control of the backward difference operator applied to the error.
Round-off error arises from representing numbers and carrying out arithmetic at finite precision: storing or subtracting nearly equal numbers can lose information even when the mathematical algorithm is exact. Truncation error arises from replacing a continuous or infinite mathematical operation by a finite approximation, such as discarding higher Taylor series terms in a finite difference. Refining a grid usually reduces truncation error but may increase accumulated round-off error; the two have different origins.
The absorbing states give . Multiplying the difference equation in (i) by gives
The second finite difference of is , so a particular solution is ; the homogeneous solutions are . Imposing the two boundary conditions gives . Therefore
Uniqueness follows because the difference of any two solutions has zero second finite difference, hence is affine function, and vanishes at both endpoints. This is the mean absorption time of a lazy symmetric random walk with holding probability .
The endpoint boundary conditions are
The finite difference equation can be written . Set . Then , so . Summing from to gives
Using and yields , hence . Therefore
This also covers , where there are no interior equations. Uniqueness follows because the difference of two solutions has zero second finite difference, hence is linear in , and vanishes at both endpoints. This is an exact finite difference solution for constant second derivative: the method is exact at the nodes here because the centered second finite difference differentiates this quadratic polynomial exactly.
Put and suppose , so there are interior grid points , . Write . The fixed ends impose homogeneous Dirichlet boundary conditions,
For a sufficiently smooth displacement field, the two Taylor series at fixed time give
where all displayed derivatives on the right are evaluated at . Adding cancels the odd terms, leaving the second-order central difference
Substitute this finite difference into the wave equation and retain continuous time. The resulting method of lines gives coupled second-order ordinary differential equations,
In particular, the first and last equations are and for . With the interior displacement vector only,
Equivalently, , , and all other entries vanish. This entrywise definition also covers small , including when . The matrix is a symmetric matrix and a tridiagonal matrix. The spatial approximation has error in Big O notation; time has not yet been discretized.
Each supplied eigenvector gives relative displacements at in a standing wave. Insert zero at to describe the whole sampled string. A real normal mode is : its shape stays fixed while its amplitude oscillates.
These semidiscrete fixed-string normal modes are samples of , with in the order listed. More precisely, their interior vectors are , which have unit Euclidean norm and form an orthonormal basis of . Their eigenvalues and angular frequencies obey
Thus larger absolute value of a negative eigenvalue means faster oscillation, rather than faster decay. The numerical angular frequencies approximate the continuous fixed-string values ; the finite difference spatial approximation changes them. Only three independent interior normal modes exist on this grid, and any interior displacement or initial velocity vector can be expanded in this orthonormal basis.
Figure 1.
Three fixed-string normal modes and conservative four-box transport
. The left panels show the supplied unit eigenvectors with zero endpoints; smooth sine curves guide the eye through the samples. The right panel is an original directed graph of the numerical transport matrix in Question 6: every arrow from j to i is labelled by Aij. It is not a reproduction of source Figure 6. Details.
Consider the discrete linear system with
This is a finite periodic analogue of the Poisson equation, using the negative second finite difference with unit grid spacing. It is also a Graph Laplacian equation on a cycle graph; no continuum approximation is being claimed here.
Figure 1.
Balanced forcing and the mean-zero solution on a four-node ring
. Details.
Summing the four equations gives zero on the left, since each value occurs twice positively and twice negatively. A necessary condition is therefore . The Fourier diagonalization of a circulant matrix shows that this is also sufficient: the only zero eigenvalue of is the constant mode , and .
For the displayed forcing, the discrete Fourier transform gives
Divide only at the three nonzero eigenvalues, and choose to impose zero arithmetic mean:
Direct substitution gives . All other vectors satisfying the linear system are , because the kernel is the space of constant vectors. Thus balanced forcing determines the differences between values, while a reference level is an extra choice. This small model explains why a periodic Poisson equation needs both a compatibility condition and a normalization.
Reaction-diffusion spectral decay threshold Created 2026-10-14 Updated 2026-10-18
On the unit interval with zero Dirichlet boundary conditions, has sine-mode growth rates . Every finite-energy initial condition decays exactly when the largest rate is negative, namely . A centered finite difference grid with has eigenvectors and growth rates . Its all-data decay threshold is the displayed , strictly less than and approaching it from below. Equality leaves a stationary lowest mode; exceeding the threshold allows growth.
Richardson extrapolation 2026-10-14
Richardson extrapolation improves an approximation by combining two resolutions so that their leading truncation errors cancel. The useful surprise is that the size of that leading error need not be known: its scaling under refinement is enough. This lets an existing finite difference method or quadrature rule produce a more accurate answer from two runs, without first deriving a new method from scratch.
Suppose approximates a fixed limit as the positive resolution parameter tends to zero, with an asymptotic expansion
Here is known, is independent of , and denotes Big O notation. The same asymptotic expansion, with the same , must describe both and . Nested grids make it natural to reuse samples, although nesting itself does not establish this error model. Define the linear combination
The weights sum to one, preserving , while . Thus Richardson extrapolation gives : the next available term in the asymptotic expansion determines the improved order. Justin Solomon's numerical analysis text develops this cancellation for finite differences and applies it to numerical integration.[ref]
Geometrically, regard the approximation as a function of . Its first two terms are a straight line . The two computed points lie at positive ; extending the line through them to gives . This is why the operation is extrapolation: it estimates a value outside the sampled parameter interval. The remaining curvature corresponds to the uncancelled terms of the asymptotic expansion.
Worked example: a centered derivative of sine. For the smooth function , the exact derivative at is . The centered difference quotient, a central finite difference, is
The Taylor series of sine gives the signed truncation error
Thus , and . Halving divides the leading truncation error by four. Combining the two centered difference quotients with Richardson extrapolation gives
Indeed, the coefficient becomes ; the coefficient vanishes. This is the even-power case of Richardson extrapolation discussed in Persson's authored lecture notes.[ref]
For and , the actual computations are
The absolute error drops from about for to for , an improvement by roughly a factor of 498. Refining again gives , whose absolute error is about . The refined truncation errors decrease by nearly four for and nearly sixteen for , reflecting their second and fourth orders.
Figure 1.
Centered sine derivative errors: second order before Richardson extrapolation and fourth order after cancellation
. Source. Details.
The logarithmic scale on each axis turns power laws into straight lines. The dashed reference curves are and , the magnitudes of the leading truncation errors. The plotted errors are computed with 70-digit decimal arithmetic, rather than clipped to a display floor; this isolates the asymptotic expansion from roundoff error.
Worked example: integrating an exponential. Approximate the definite integral of the exponential function on :
For numerical integration, the composite trapezoidal rule adds the areas of trapezoids between successive samples; this is the quadrature use of the endpoint average that also occurs in the ODE trapezoidal rule. On equal intervals, with , define
Summing the geometric series gives . Expanding the exponential function near zero yields
The leading truncation error again has , . On the uniform nested grids with and intervals, Richardson extrapolation therefore gives
This linear combination is exactly composite Simpson's rule on the finer grid, whose spacing is . On each coarse panel, an old endpoint receives weight and the new midpoint weight ; shared old endpoints receive weight . These are the usual Simpson's rule weights multiplied by . The equivalence is explained directly in LeMesurier's university notes.[ref]
For two coarse panels and four fine panels,
The absolute errors are about , and , respectively. Reusing the fine-grid samples makes Richardson extrapolation especially attractive here: the resulting Simpson's rule needs no samples beyond those already used by .
Figure 2.
Exponential quadrature on nested grids: trapezoidal areas, reused sample nodes, and the fourth-order Simpson combination
. Source. Details.
When the improvement is justified. Richardson extrapolation requires the stated asymptotic expansion and the correct positive . If the actual leading exponent is , its coefficient after combination is , so the leading truncation error generally remains. Merely knowing does not supply a common coefficient or a higher-order remainder. A discontinuity of a function, a singular endpoint, or unrelated changes between grids can invalidate the assumed asymptotic expansion; refinement alone does not guarantee improvement for every numerical problem.
Roundoff error and errors in the sampled values survive the cancellation of truncation error. If the coarse and fine values have absolute perturbations bounded by , the perturbation in is bounded by ; for this is . In floating-point arithmetic, a centered difference quotient can also amplify sample errors through division by , so an indefinitely smaller need not be more accurate. Persson's notes describe this balance between truncation error and roundoff error.[ref]
The same cancellation idea appears in step-doubling error estimation. For an order- one-step method for an ordinary differential equation, two half steps each contribute local truncation error of order , so their accumulated leading local error has ratio to one full step. This explains the denominator there; the appropriate exponent follows from that local error model, rather than automatically from a generic use of Richardson extrapolation.
The Haar wavelet provides an explicit one-vanishing moment comparison:
It cancels a constant polynomial, but not a nonconstant affine function. To obtain two vanishing moments by an equally transparent construction, take three adjacent unit intervals with heights proportional to :
The L2 norm normalization follows from . Direct integration gives
Thus has exactly two vanishing moments. In fact its coefficient is a finite difference of adjacent local integrals:
The weights are those of the second-order central difference. The first moment balances the centres of the three intervals; it is not enough merely to balance their signed areas.
Figure 1.
Signed overlaps of the Haar and second-difference analyzing functions with constant, linear, and quadratic test polynomials
. Details.
This is a normalized analyzing function, with no orthonormal basis assertion. Indeed, its unit translate has nonzero L2 inner product:
Hence these translates already fail orthogonality. The Daubechies wavelet construction imposes additional refinement and orthogonality requirements; two vanishing moments and unit L2 norm by themselves do not supply those requirements.
Tangent stiffness 2026-11-05
The tangent stiffness at a point on a differentiable force-displacement curve is its local slope,
It governs the first-order response to a small displacement change:
The graphical interpretation is the slope of the tangent line. Structural stiffness measured from force-deflection behaviour includes geometry as well as material response.[ref]
For the illustrative model , choose and . At , the tangent stiffness is . An additional therefore predicts a force increase of to first order. Direct substitution gives ; the difference is the higher-order contribution omitted by the tangent approximation. The secant stiffness from the origin is only at this point.
In a displacement-controlled experiment, one can estimate the local slope with a central finite difference,
Making smaller reduces the approximation error for a smooth exact curve, but measured differences can become dominated by measurement uncertainty. The force channel, displacement channel and loading branch must therefore be specified. Crosshead movement can include machine mechanical compliance, while an extensometer records a selected specimen extension.[ref]
For a curve with hysteresis, loading and unloading can have different local slopes at the same displacement. At a sharp corner a unique derivative may not exist, and a finite-interval slope should be reported as such.
Telescoping sum Created 2026-10-14 Updated 2026-10-20
A telescoping sum cancels intermediate sequence terms, leaving boundary terms. For a finite sequence of real numbers , the displayed identity follows because every occurs once with each sign. Applying it to an infinite series also requires checking the limit of the boundary terms; finite cancellation alone does not prove that the series is a convergent series.[ref]
For , expanding the finite sum gives
No monotone sequence assumption is required. Consider the original sequence . Its successive finite differences are , so
The large intermediate rise and fall disappear from the net change. This is useful whenever one knows successive changes rather than every absolute value: adding the changes reconstructs the final value from the initial one. It also checks a cumulative-update calculation without requiring all increments to be positive.
Figure 1.
Opposite signs cancel the intermediate sequence terms, leaving the final value minus the initial value
. Original nonmonotone sequence . Linked green entries have the same magnitude and opposite signs; the unmatched entries are and . The increments are , whose sum is one. Details.
A finite difference measures one discrete change. The identity is the discrete counterpart of the fundamental theorem of calculus: accumulation of changes returns the endpoint difference. The related summation by parts transfers a finite difference from one factor of a product to another, with explicit boundary terms.
The Thomas algorithm is Gaussian elimination specialized to a tridiagonal matrix: each row couples an unknown only to its immediate neighbours. Eliminating one unknown changes just the next diagonal entry and right-hand side. Provided all pivot elements are nonzero, a forward sweep followed by back substitution solves an -unknown linear system in time and storage, using Big O notation. Treating the same entries as a full matrix wastes the zeros: classical dense LU factorization and solve costs grow cubically for factorization and quadratically for storage.
A concrete reason to care is the Dirichlet Poisson solution by tridiagonal elimination: a three-point finite difference for the second derivative couples adjacent points on a mesh, producing precisely this tridiagonal matrix. The same structure occurs in one-dimensional Crank-Nicolson method calculations. NPTEL's archived Lecture 13 introduces the Thomas algorithm from that time-stepping problem and labels the procedure “Thomas algorithm (1949)”.[ref]
Truncation error Created 2026-09-29 Updated 2026-10-14
Truncation error is introduced by replacing an exact operation with a finite approximation. It remains even when all arithmetic is exact. For , the forward finite difference for its derivative at gives
Thus the truncation error is exactly : gives and gives . In finite precision, however, the numerator subtracts nearly equal values, and their roundoff error can be amplified by division by . For smooth data with bounded evaluation errors of scale , a typical bound has competing terms . Smaller reduces the first term and increases the second; with fixed positive constants the balancing scale is . This is why blindly refining a finite difference eventually stops improving it.
For fixed and , uniform convergence of normalized finite differences to , uniform continuity of , and imply uniformly. Positivity and partition of unity make Bernstein polynomials contractions in the supremum norm. Consequently . The differentiability assumption is essential; continuity alone does not define the target derivative.
Consider the explicitly specified objective
and estimate its derivative by a symmetric finite difference with step . The choice of shared or independent noise changes the estimator's variance even though both use correct normal distributions at the two parameter values.
With common random numbers, the same appears on both sides:
Thus and , independent of . Cancellation removes the noisy square term. For this quadratic, the symmetric difference has no truncation bias in exact arithmetic.
For independent standard normals , instead use
If , expand . The standard-normal moments , and give
Adding the two independent square variances and dividing by yields
Both estimators have the correct expected value , but the independent-noise variance diverges as tends to zero. At and , the variances are and . An average of independent replicate estimators divides each variance by .
This is a complete calculation for the stated quadratic, not a universal dominance theorem. At , and , the independent variance is , below the shared value . The covariance principle in common random numbers explains why coupling needs a specified objective and comparison. Very small steps in floating-point evaluation also introduce cancellation concerns that this exact-arithmetic model does not include.
Weighted Jacobi method for the one-dimensional Poisson equation Created 2026-10-03 Updated 2026-10-18
For the centered second-difference matrix with diagonal and off-diagonals , the weighted-Jacobi eigenvalues are
The method converges for every grid size exactly when .
Multiplying both and by leaves and the weighted Jacobi method unchanged. Thus the same formula applies to the positive second-difference matrix with diagonal and neighboring entries , the finite difference form of the one-dimensional Poisson equation with Dirichlet boundary conditions. Its eigenvectors have components , and has eigenvalues . At , upper-half modes have factors between and , while low-frequency factors remain close to one on fine grids. This explains why the weighted Jacobi method helps a multigrid method by reducing oscillatory errors, even when it is a slow solver on its own.[ref]
Weyl differencing Created 2026-10-14 Updated 2026-11-05
Taking a finite difference lowers the degree of a polynomial phase. For , expand by shifts and apply the Cauchy-Schwarz inequality to those shift sums. This gives , where enforces that lie in . Although individual terms can be complex, the entire sum is real and nonnegative because it equals a sum of squares. For , the phase is .