Truncation error (numerical integration)
Truncation errors in numerical integration are of two kinds:
- local truncation errors – the error caused by one iteration, and
- global truncation errors – the cumulative error cause by many iterations.
Definitions
Suppose we have a continuous differential equation
and we wish to compute an approximation of the true solution at discrete time steps . For simplicity, assume the time steps are equally spaced
Suppose we compute the sequence with
Note: A is called an increment function, and can be interpreted as an estimate of the slope of y(t).
Local truncation error
The local truncation error is the error that our increment function, A, causes during a given iteration, assuming perfect knowledge of the true solution at the previous iteration.
More formally, the local truncation error, , at step is defined by:
Global truncation error
The global truncation error is the accumulation of the local truncation error over all of the iterations, assuming perfect knowledge of the true solution at the initial time step.
More formally, the global truncation error, , after steps is defined by:
Relationship between local and global truncation errors
Sometimes it is possible to calculate an upper bound on the global truncation error, if we already know the local truncation error. This requires our increment function be sufficiently well-behaved.