The statement always needs an error measure, a refinement variable and assumptions. “Second order” alone does not specify a price tolerance or guarantee that one implementation is more accurate than another.
The exponent, the constant and the regime
Let be the exact target, its approximation and . An error bound
means that constants and exist such that whenever , with the problem and other relevant parameters held fixed. The exponent expresses the refinement rate; controls its scale. This use of Big-O notation concerns approximation error, rather than algorithmic running time.
The familiar prediction
needs the stronger leading-term behavior with . A Big-O upper bound alone does not establish that ratio or an exact order. For a special input the leading coefficient may vanish, producing faster convergence or even an exact answer.
Higher order also does not settle a comparison at one fixed spacing. A large error constant, extra computational work or a grid that is still too coarse can outweigh the asymptotic advantage.
An exact refinement experiment
The composite trapezoidal rule uses equal panels, with :
For this quadratic, the line joining the endpoints of each panel lies above the curve. On a panel , integrating that line and subtracting the exact quadratic area gives . There are panels, so the total excess is exactly
| Panels | Spacing | Approximation | Absolute error |
|---|---|---|---|
| 2 | |||
| 4 | |||
| 8 |
Each refinement quarters the error. Here that is an exact identity for every positive integer , rather than an approximate small-step pattern.
For a general twice continuously differentiable integrand on a fixed interval , the bound
establishes second-order accuracy. The three rows illustrate the result for one function; they do not prove this general theorem. An affine function, for example, is integrated exactly by the trapezoidal rule and has no nonzero error ratio to measure.
What a refinement study can tell you
When an accurate reference is available, estimate an observed order using
Without a reference, three nested spacings can give the diagnostic
provided a common nonzero leading error term dominates. In the example, successive differences are and , giving an observed order of 2. Agreement across three grids is useful evidence, but cancellation, coarse-grid effects or an inaccurate reference can make it misleading. Zero differences make this logarithmic diagnostic undefined; they do not establish infinite order.
Which error and which variable?
For time stepping, distinguish local truncation error from global truncation error. Euler's method has a one-step solution defect of when started from the exact solution, yet its global error over a fixed time interval is generally under suitable smoothness and stability assumptions. Some authors divide the one-step defect by and call that normalized quantity the local truncation error; under that convention Euler's local truncation error is . State the convention before comparing exponents.
For a pricing equation with both time and space grids, an error statement such as describes two different refinement directions. Refining space alone eventually leaves the time error dominant. Boundary approximation and the choice of price or Greek error norm also matter.
A smaller bump eventually stops helping
Treat a claimed order as a conditional prediction to check on the quantity you actually report. Hold other error sources sufficiently small, refine systematically and stop interpreting a formal exponent as a promise once the observed errors cease to follow it.
Sources
- James Stewart, Single Variable Calculus: Early Transcendentals, 6th edition, Thomson Brooks/Cole, 2008, §7.7, “Approximate Integration”: trapezoidal rule and its second-derivative error bound. The quadratic refinement experiment here is original.
- Tobin A. Driscoll and Richard J. Braun, Fundamentals of Numerical Computation, §5.6: Numerical integration: second-order trapezoid convergence and refinement plots.
- Driscoll and Braun, §6.2: Euler's method: local-error normalization, global-error assumptions and order of accuracy.