The four-point midpoint third derivative uses the four values at , centred at . The Taylor theorem about that midpoint givesThus, for , take the interior equationsImpose 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 normIt 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, soConsequently . Doubling the bound in (c) gives , and thereforeThus 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.
The absorbing states give . Multiplying the difference equation in (i) by givesThe second finite difference of is , so a particular solution is ; the homogeneous solutions are . Imposing the two boundary conditions gives . ThereforeUniqueness 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 areThe finite difference equation can be written . Set . Then , so . Summing from to givesUsing and yields , hence . ThereforeThis 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 givewhere all displayed derivatives on the right are evaluated at . Adding cancels the odd terms, leaving the second-order central differenceSubstitute 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.
- is the highest-frequency resolved normal mode. Adjacent interior displacements alternate in sign: the middle point moves opposite to both outer interior points. Its interpolated shape has three lobes, corresponding to the third string normal mode.
- is the middle-frequency normal mode. The midpoint is a node of a standing wave, and the two sides move in opposite directions. It corresponds to the second string normal mode.
- is the lowest-frequency normal mode, corresponding to the fundamental frequency. All interior points move in the same direction, with greatest displacement at the centre; the only nodes of a standing wave are the endpoints in the smooth shape through these samples.
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 obeyThus 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.
Consider the discrete linear system withThis 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.
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 givesDivide 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 expansionHere 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 combinationThe 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]
https://people.csail.mit.edu/jsolomon/share/book/numerical_book.pdf. Justin Solomon, Numerical Algorithms, §14.3.3 and Exercise 14.9
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, isThe Taylor series of sine gives the signed truncation errorThus , and . Halving divides the leading truncation error by four. Combining the two centered difference quotients with Richardson extrapolation givesIndeed, the coefficient becomes ; the coefficient vanishes. This is the even-power case of Richardson extrapolation discussed in Persson's authored lecture notes.[ref]
https://persson.berkeley.edu/math128a/lecture_notes/math128a_lecture_notes_chapter_4.html. Per-Olof Persson, Math 128A, Chapter 4, §§4.1–4.2
For and , the actual computations areThe 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.
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 , defineSumming the geometric series gives . Expanding the exponential function near zero yieldsThe leading truncation error again has , . On the uniform nested grids with and intervals, Richardson extrapolation therefore givesThis 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]
https://lemesurierb.people.charleston.edu/elementary-numerical-analysis-python/notebooks/definite-integrals-3-simpson-richardson.html. Brenton LeMesurier, MATH 375, §19.1: The Basic Simpson's Rule by Richardson Extrapolation
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 .
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]
https://persson.berkeley.edu/math128a/lecture_notes/math128a_lecture_notes_chapter_4.html. Per-Olof Persson, Math 128A, Chapter 4, §4.1: Roundoff Error Instability
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.
Second-difference analyzing function 2026-10-14
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 givesThus 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.
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]
Structural Stiffness Concept by TU Delft OpenCourseWare. Discussion following the axial force-displacement relation
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]
Extensometers in the Instron documentation. When to use an extensometer: machine compliance, grip seating and load-train deflection
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]
5.2 Infinite Series. Calculus Volume 2, §5.2 Infinite Series: Telescoping Series definition and successive partial-sum identities
For , expanding the finite sum givesNo monotone sequence assumption is required. Consider the original sequence . Its successive finite differences are , soThe 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.
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.
Tridiagonal matrix algorithm 2026-10-14
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]
Thomas algorithm (NPTEL Lecture 13). Lecture 13, Thomas algorithm: opening historical attribution and Crank Nicolson motivation
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 givesThus 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 objectiveand 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 useIf , expand . The standard-normal moments , and giveAdding the two independent square variances and dividing by yieldsBoth 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 areThe 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]
CS267: Supplemental Notes for Lecture 17 — How Multigrid Damps High Frequencies by James Demmel. Error eigenvector expansion, coefficient 1/3 + (2/3) cos(jπ/2^i), and concluding upper-half-frequency attenuation statement
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 .





