How statement and proof provenance work
The first chip identifies the source of the statement or construction; the second identifies the source of its local proof or verification.
- Literature-sourced: the exact statement appears in a cited source; only wording and notation differ.
- AI-adapted: a semantically identical restatement of literature-sourced material, modulo indexing, notation, and boundary cases adopted by the library.
- AI-generated: a genuinely novel statement formulated by AI, with no source for the claim itself.
These labels describe origin, not correctness: citations and verification chips remain separate evidence.
Numerical differentiation and derivative error control
1 · Prerequisites
- Absolute and Conditional Convergence; Rearrangement; Products
- Analyticity of Holomorphic Functions; Liouville and Morera
- Arc Length and Rectifiable Curves
- Binary Operations, Monoids, Groups and Subgroups
- Bounded Variation and the Riemann–Stieltjes Integral
- Compactness in Metric Spaces
- Completeness, Completion, and Uniform Continuity
- Complex Coordinate and Path Transport
- Complex Differentiability and the Cauchy–Riemann Equations
- Complex Power Series and Analytic Functions
- Connectedness
- Construction of the Natural Numbers
- Construction of the Real Numbers via Cauchy Sequences
- Construction of the Real Numbers via Dedekind Cuts
- Continuity, IVT, EVT, and Uniform Continuity
- Contour Integration
- Cosets, Index and Lagrange's Theorem
- Countability and Uncountability
- Darboux, L'Hôpital, and Taylor's Theorem
- Divisibility, Euclidean Domains, Principal Ideal Domains and Unique Factorisation
- Filters and Ultrafilters
- Finite Counting, Factorials and Binomial Coefficients
- Finite Probability Spaces and Random Variables
- Foundations of the Real Numbers for Analysis
- Fundamental Trigonometric Identities
- Goursat's Theorem and Cauchy's Theorem in a Convex Domain
- Ideals, Quotient Rings and the Isomorphism Theorems for Rings
- Independence Borel Cantelli and Zero One Laws
- Limits of Real Functions
- limsup, liminf, and Subsequential Limits
- Line Integrals and the Gradient Theorem
- Linear Independence, Bases and Dimension
- Linear Transformations, Rank-Nullity and Quotient Spaces
- Matrices, the Matrix of a Linear Map, and Change of Basis
- Measurable Functions and Simple Approximation
- Measures and Their Basic Properties
- Metric Spaces
- Mixed Partials, Taylor Formulae, and Extrema
- Monotone Functions, Discontinuities, and Continuity Sets
- Monotone Sequences, Bolzano-Weierstrass, and Cauchy Completeness
- Normal Subgroups and Quotient Groups
- Order, Zorn's Lemma, and the Axiom of Choice
- Partitions of Unity and Paracompactness
- Pointwise Extended-Real Function Products
- Polynomial Rings, the Division Algorithm and Roots
- Power Series and Real-Analytic Functions
- Probability Spaces Random Variables and Expectation
- Product Measures and the Fubini Tonelli Theorems
- Properties of the Integral and the Working FTC
- Relations, Functions, and Quotients
- Rings, Subrings, Integral Domains and Fields
- Rⁿ as a Normed Space; Vector-Valued Functions
- Roots, Rational Powers, and Classical Inequalities
- Separation Axioms: the Hierarchy
- Sequences and Limits
- Sequences and Series of Functions; Uniform Convergence
- Series: Convergence and the Nonnegative Tests
- Sigma Algebras and Borel Sets
- Simple Field Extensions and the Construction of the Complex Numbers
- Sine, Cosine, and the Definition of Pi
- Subspaces, Products, and Quotients
- Suprema and Infima
- The Cantor Set, Baire Category, and Measure Zero in ℝ
- The Complex Exponential and Euler's Formula
- The Derivative and the Mean Value Theorems
- The Exponential Function
- The Fundamental Theorems of Calculus
- The Lebesgue Integral and the Convergence Theorems
- The Riemann Integral: Definition and Integrability
- The Total Derivative in ℝᵐ → ℝⁿ
- The ZFC Axioms and the Basic Set Constructions
- Topological Spaces and Continuity
- Topology of ℝ
- Vector Spaces, Linear Subspaces, Span and Direct Sums
2 · Summary
This page defines forward and central difference stencils and proves their truncation and bounded-evaluation-error bounds. It derives the balancing steps for the displayed error bounds, gives a fourth-order Taylor remainder for central differences, and proves the corresponding Richardson estimate. The complex-step bound applies only to holomorphic extensions that are real on a real interval; errors in the imaginary component are divided by the step. A structural column coloring recovers a Jacobian only when the declared row supports safely contain all nonzeros and no row has a color collision. Directional Jacobian-vector and Hessian-vector differences retain their Taylor terms and deterministic or random evaluation errors. These derivative estimates do not establish Newton convergence without a separate perturbation theorem.
3 · Logical flowchart
4 · Definitions, theorems and proofs
The complex-step derivative estimator and its component-error model
Definition
Let be open, , and with . For a holomorphic that is real-valued on some real interval containing , the complex-step estimate is
For an inexact complex evaluation , define its imaginary-component error by . The inexact estimate is ; its evaluation-error contribution is controlled by . No claim is made that arbitrary code representing a real function has a holomorphic extension.
Forward and central difference stencils with bounded evaluation errors
Definition
Let be open, , and . When , the forward difference of is
When , the central difference is
An evaluation with absolute error bound is a value with at each requested point . The corresponding inexact quotients are obtained by replacing each in the displayed stencil by . The bound is absolute and applies separately to each call; no correlation or relative-error assumption is included.
Forward and central finite-difference Jacobian-vector and Hessian-vector products
Definition
Let , be open, , , , and let . Use the Jacobian and gradient of The Jacobian matrix of partial derivatives and the gradient in the scalar-valued case, the Hessian of The Hessian matrix and critical points of a scalar field, and the published Euclidean vector norm of The -norms for rational , and . The Jacobian-vector products below require to exist, and the Hessian-vector products require to exist. Each gradient-difference Hessian-vector estimate also requires to exist at every point in its stencil. The exact products are and , respectively.
For with the required points in , define the forward and central Jacobian-vector estimates
and the gradient-difference Hessian-vector estimates
For each requested vector value , write an inexact evaluation as . When an error bound is specified, it is per call: for that call's . Errors may be dependent or random; a stated bound on a random error is understood to hold almost surely. Define the inexact estimates by substitution:
The column-interference graph and collision-free coloring for a sparse Jacobian
Definition
Let , be open, be differentiable at , and be its Jacobian as defined in The Jacobian matrix of partial derivatives and the gradient in the scalar-valued case. A structural row pattern is a list of sets , one for each row , such that whenever . It is a safe pattern only when every actual nonzero lies in the declared support.
The column-interference graph has vertices and an edge between distinct columns exactly when some row support contains both. A proper coloring is a map to a set of color labels such that adjacent columns have different labels. For a color , its seed vector has coordinate when and otherwise. The compressed product is .
A bounded fifth derivative gives the central-difference expansion required by Richardson extrapolation
Statement
Let be open, let , and let with . Suppose on a neighborhood of this interval and throughout it. Then for some real ,
The same coefficient works for every admissible at the fixed point .
Facts & Assumptions
Given: The domain, smoothness and fifth-derivative bound in the statement.
Forward and central difference stencils with bounded evaluation errors: for with both stencil points in the domain.
The Lagrange and Cauchy forms of Taylor's remainder and Taylor polynomials and their remainders: for a function on the interval, the remainder after the degree- Taylor polynomial at is at an intermediate point .
Absolute value in an ordered field and Basic properties of the absolute value: absolute values are nonnegative and .
Proof
Given: The hypotheses listed above.
Apply [F2] at to and . The degree-four Taylor polynomials subtract to , because the constant, quadratic and fourth-degree terms agree at the two endpoints. Each remainder has magnitude at most .
By [F3]–[F4], the difference of the two remainders has magnitude at most . Divide the subtracted expansion by and use [F1]: the remainder in is bounded by , and the cubic term becomes .
Complex-step differentiation is second-order for holomorphic functions real on the real axis
Statement
Let be open, let , and suppose is holomorphic, real-valued on a real interval around , and for . Suppose for , with . Then
If the evaluated imaginary component has error at most , then
Holomorphy and real-axis reality are essential to the formula: real differentiability of the restriction alone is insufficient.
Facts & Assumptions
Given: The domain, holomorphy, real-axis reality, third-derivative bound, step and evaluation-error hypotheses in the statement.
The complex-step derivative estimator and its component-error model: , and an imaginary-component evaluation error contributes at most .
Complex differentiability at a point, the complex derivative, holomorphic functions, and entire functions: holomorphy means complex differentiability at every point, with derivative given by the limit of complex difference quotients.
Holomorphic functions are real analytic and smooth in their two real coordinates: the real and imaginary coordinate functions of a holomorphic function are for every natural .
All higher complex derivatives exist and satisfy Cauchy's integral formula on an interior circle and If a holomorphic function has components, then its derivative is holomorphic: all iterated complex derivatives exist locally; if a holomorphic function has coordinate functions, its derivative is holomorphic.
The Lagrange and Cauchy forms of Taylor's remainder and Taylor polynomials and their remainders: a real function on the interval equals its degree- Taylor polynomial plus for an intermediate .
Real and imaginary parts, complex conjugation, and modulus: and are the real and imaginary coordinates of a complex number.
Absolute value in an ordered field and Basic properties of the absolute value: absolute value is nonnegative and .
The triangle inequality: for real .
Proof
Given: The hypotheses listed above.
Put for . By [F4], its coordinate functions are smooth. By [F3], . If is holomorphic, [F3] gives and . Applying [F5] to and then to makes and holomorphic, so these identities give and .
At real arguments near , is real by hypothesis, so its real-direction difference quotients show that is real there; applying the same argument to the holomorphic function shows that is real there. Thus , , and . By step 1.1, on .
Apply [F6] to from to . For some , . Since , [F8] gives . By [F1] and [F7], , proving the exact complex-step error bound.
By [F1] and [F8], . [F9] and step 3.1 give the inexact bound.
Forward and central differences have first- and second-order error bounds
Statement
Let be open, , and . For the forward bound assume , on a neighborhood of that interval, and there. For the central bound assume , on a neighborhood of that interval, and there. Then
If each function evaluation has absolute error at most as in Forward and central difference stencils with bounded evaluation errors, then
For the central stencil the evaluation contribution is in fact at most ; the displayed is a uniform conservative bound for both stencils.
Facts & Assumptions
Given: The interval, step, smoothness, derivative bounds and evaluation-error hypotheses in the statement.
Forward and central difference stencils with bounded evaluation errors: and ; each inexact value is with .
The Lagrange and Cauchy forms of Taylor's remainder and Taylor polynomials and their remainders: for a function on the interval, is its degree- Taylor polynomial at plus for some intermediate .
Absolute value in an ordered field and Basic properties of the absolute value: absolute value is nonnegative, and for real .
The triangle inequality: for real .
Proof
Given: The hypotheses listed above.
Apply [F2] with , , and . Then for some . Substituting into [F1] gives , so the forward truncation bound follows.
Apply [F2] with to and . Subtracting the two expansions cancels the equal even-order terms and gives for intermediate points and . The derivative bound and [F3]–[F4] give magnitude at most .
Write the forward evaluation errors as and . By [F1], ; [F3]–[F4] bound its magnitude by . The triangle inequality with step 1.1 proves the forward inexact bound.
Write the central errors as and . Then , whose magnitude is at most by [F1], [F3] and [F4], hence at most . Combining with step 1.2 proves the stated central inexact bound.
Directional Jacobian and Hessian differences retain Taylor and evaluation-noise errors
Statement
Let , be open, , , and with the required line segments contained in . Use the estimators of Forward and central finite-difference Jacobian-vector and Hessian-vector products. For a vector-valued map, means that each component is in . For , suppose each component satisfies for , with ; put . For , suppose for , with ; put . Then
For , set , suppose on , with , and put . For , suppose on , with , and put . Then
If each vector evaluation has Euclidean error at most , the forward evaluation contribution is at most and the central contribution at most (hence also at most ). For a scalar output coordinate on a common probability space, suppose its two square-integrable evaluation noises are centered, with variances and covariance . Their forward-difference noise variance is ; the central formula has the same numerator divided by . If these centered noises are independent and both have variance , then the formulas reduce to forward and central. No variance sum or root-sum-square total-error claim is made without the stated centering and covariance information.
If every evaluation call used in a given estimate has Euclidean error at most a common , then the inexact estimates of Forward and central finite-difference Jacobian-vector and Hessian-vector products satisfy
The central evaluation contribution is at most , so the conservative contribution is also valid for the central estimates.
Facts & Assumptions
Given: The domains, smoothness, component derivative bounds and evaluation-error hypotheses in the statement.
Forward and central finite-difference Jacobian-vector and Hessian-vector products: the exact products and four directional estimators are as stated there; the inexact estimates replace each function or gradient evaluation by its inexact value, with error bounds applying per call.
Repeated derivatives along a line expand by the multinomial formula: for a scalar field on an open set, derivatives of its restriction to an affine line are the corresponding directional partial-derivative sums through order .
Continuous mixed partials of order are invariant under permutations: for a scalar field and , permuting the order of the coordinate differentiations does not change the result.
The Lagrange and Cauchy forms of Taylor's remainder and Taylor polynomials and their remainders: for a real or function on an interval, the remainder after degree or degree is or .
The -norms for rational , and and Each is a norm on , and the induced metrics are exactly , and of the published metric-spaces page: for nonempty finite-dimensional real output vectors, is the Euclidean norm and obeys the triangle inequality and absolute homogeneity.
Moments, variance, and covariance on a probability space and Variance and covariance identities for random variables: variance and covariance are centered second moments, and covariance is symmetric and bilinear on finite linear combinations of square-integrable real random variables.
Expectations factor over finite products of independent random variables: expectations of products of integrable functions of independent real random variables factor into products of expectations.
Absolute value in an ordered field and Basic properties of the absolute value: and for real .
On a probability space, every square-integrable real random variable is integrable: gives .
Proof
Given: The hypotheses listed above.
For each component , [F2] identifies . Apply [F4] through degree on to obtain . By [F8], these absolute values and bounds are nonnegative; squaring preserves their order because when . Sum over and use [F5] and the definition of to obtain the stated Euclidean vector bound.
For either the Jacobian-vector or gradient-difference Hessian-vector estimate, the forward evaluation perturbation is . [F5] bounds its norm by . For the central quotient the denominator is , giving .
For centered square-integrable coordinate noises , [F6] and the definitions of variance and covariance give . Bilinearity and symmetry then yield . Dividing by or gives the forward and central formulas. If the noises are independent with common variance , [F9] makes them integrable, so [F7] gives ; their covariance is by [F6], yielding and .
For each component , apply [F4] through degree at both and to . The constant and quadratic terms cancel in the central quotient, leaving . The same nonnegative-square comparison from step 1.1, [F8], and the sum defining give the central Jacobian-vector bound by [F5].
For , [F2] gives . By [F3] and the Hessian convention in [F1], this equals . Applying [F4] through degree to each yields the component forward bound ; the nonnegative-square comparison from step 1.1 gives the sum bound, and [F5] then yields .
Applying [F4] through degree at and to each cancels the even terms and yields component error at most . The same nonnegative-square comparison from step 1.1, together with [F5], gives the central Hessian-vector bound.
Combining the two Jacobian-vector truncation bounds in steps 1.1 and 2.1, the two Hessian-vector truncation bounds in steps 2.2 and 2.3, and the corresponding evaluation bounds in step 1.2 by the Euclidean triangle inequality [F5] gives all four hatted-estimate bounds in the Statement. For random errors, the covariance identity in step 1.3 applies; absent centering/covariance hypotheses no root-sum-square conclusion follows.
A collision-free column coloring recovers every structurally sparse Jacobian entry
Statement
Let the objects and notation be those of The column-interference graph and collision-free coloring for a sparse Jacobian, and suppose is a proper coloring of the graph of a safe structural row pattern. For every row , every color , and every column with ,
Entries with are zero by the safe-pattern hypothesis. Thus all entries are recovered from one compressed product per color. A color collision in a row does not give a general recovery guarantee: two distinct Jacobians supported on that colliding row can have the same compressed product.
Facts & Assumptions
Given: A differentiable map, its Jacobian, a safe row pattern and a proper coloring as in the statement.
The column-interference graph and collision-free coloring for a sparse Jacobian: outside ; an edge joins columns that share some ; a proper coloring assigns different colors to adjacent columns; and is the indicator of color .
The Jacobian matrix of partial derivatives and the gradient in the scalar-valued case: the Jacobian entries are the partial derivatives .
Rectangular matrix multiplication and the identity matrix , including zero-sized shapes: for an matrix and a vector , .
A finite sum in a commutative monoid indexed by an arbitrary finite set and Semigroup and monoid: a finite sum is independent of its enumeration, the empty sum is , and addition is associative with identity .
Proof
Given: The hypotheses listed above.
For a fixed row and color , [F3] gives . By [F1], a summand can be nonzero only when and . [F4] makes this an order-independent finite sum with zero terms off that set.
If two distinct columns of had color , the graph definition in [F1] would make them adjacent, contradicting proper coloring. Thus at most one summand in step 1.1 is nonzero. If the specified has color , it is that sole summand and equals because ; if no such column exists, every summand is zero and the row product is by [F4]. Entries outside the safe pattern are zero by [F1].
To verify the collision caveat, let and , and evaluate both Jacobians at . By [F2], their one-row Jacobians are and , both supported in . Assign columns and the same color, whose seed is by [F1]. Both compressed products equal by [F3], so this color collision cannot determine the entries.
Richardson extrapolation for a central difference with a fourth-order remainder
Definition
For a function with the values required by the central stencils at and , the Richardson extrapolated central difference is
Its fourth-order error guarantee is conditional on a uniform expansion with a remainder bounded by a constant times ; that condition is stated and proved from a bounded fifth derivative in A bounded fifth derivative gives the central-difference expansion required by Richardson extrapolation.
The forward and central error bounds have explicit balancing steps
Statement
Let . Consider the conservative error bounds from Forward and central differences have first- and second-order error bounds on a permitted step interval , where every stencil with stays inside the domain. If and , the forward bound
has the unique unconstrained minimizer and minimum . On the minimizer is . If and , the central conservative bound
has the unique unconstrained minimizer and minimum ; on the minimizer is . These optimize the displayed error bounds, not the unknown actual error.
If and the corresponding truncation constant is positive, the bound has infimum as and no minimizer for . If the corresponding truncation constant is and , the bound decreases with , so its capped minimum is at . If and the corresponding truncation constant are both zero, every permitted step is optimal.
Facts & Assumptions
Given: The derivative bounds, evaluation-error bound and permitted cap described above.
Forward and central differences have first- and second-order error bounds: the forward and central conservative bounds are and .
Square roots exist: a unique with ; the positives are and Existence and uniqueness of -th roots: a unique with : positive real numbers have unique positive square and cube roots.
Proof
Given: The hypotheses listed above.
Set . The identity gives , while . Since , equality holds exactly at . Thus is the unique unconstrained minimizer and its value is .
Set and . From , and . The difference is , with equality only at . Thus uniquely minimizes the unconstrained bound, and the minimum is .
If , then , since . Hence strictly decreases up to ; the global bound from step 1.1 gives the cap minimizer .
If , then , since and . Hence the central bound strictly decreases up to , so the cap minimizer is .
If and the corresponding truncation constant is positive, the bound in [F1] is a positive multiple of or and has infimum as , not attained for . If a truncation constant is and , the bound is a positive multiple of and decreases to as , while on a permitted capped interval it is minimized at . If both constants vanish the bound is identically zero.
Richardson extrapolation cancels the second-order term with a fourth-order remainder
Statement
Let be open, , and with . Suppose that for every the central difference has the actual uniform expansion
where and do not depend on . Then the Richardson estimate of Richardson extrapolation for a central difference with a fourth-order remainder satisfies
In particular, under A bounded fifth derivative gives the central-difference expansion required by Richardson extrapolation the bound holds with and , giving . If each of the four function values at and is evaluated as with , define by replacing those four values in by their evaluations. Then
Facts & Assumptions
Given: The uniform expansion and evaluation-error bounds above.
A bounded fifth derivative gives the central-difference expansion required by Richardson extrapolation: if on the stencil interval, then with .
Forward and central difference stencils with bounded evaluation errors: each function value error has absolute value at most .
Absolute value in an ordered field and Basic properties of the absolute value: absolute values are nonnegative and invariant under sign change.
Proof
Given: The hypotheses listed above.
Write and . Substitution into [F1] cancels both copies of correctly and gives , since .
By [F4]–[F5], .
In the case, [F2] supplies the expansion at every with the same and . Substituting in step 2.1 gives .
By the definition of in the Statement, [F1] and the stencil formulas in [F3], the inexact perturbation is . Each difference has magnitude at most by [F4]–[F5]. The total perturbation is therefore at most . Combining with step 2.1 proves the inexact bound.
5 · Examples, counterexamples and false statements
None yet.
Sources
- Nicholas J. Higham, What Is the Complex Step Approximation?
- Mike Giles, Monte Carlo methods, Lecture 6: Complex Variable Trick
- R. Boudjemaa, M. G. Cox, A. B. Forbes, and P. M. Harris, Automatic Differentiation Techniques and their Application in Metrology, NPL Report CMSC 26/03
- Tobin A. Driscoll and Richard J. Braun, Fundamentals of Numerical Computation, finite differences
- Andreas Buttenschoen, Introduction to Scientific Computing, Numerical Differentiation
- Thomas F. Coleman and Jorge J. Moré, Estimation of Sparse Jacobian Matrices and Graph Coloring Problems, Argonne National Laboratory Report ANL-81-39
- Bradley M. Bell and Kasper Kristensen, Computing Sparse Jacobians and Hessians Using Algorithmic Differentiation