Truncation error (numerical integration) explained

Truncation errors in numerical integration are of two kinds:

Definitions

Suppose we have a continuous differential equation

y'=f(t,y),    y(t0)=y0,    t\geqt0

and we wish to compute an approximation

yn

of the true solution

y(tn)

at discrete time steps

t1,t2,\ldots,tN

. For simplicity, assume the time steps are equally spaced:

h=tn-tn-1,    n=1,2,\ldots,N.

Suppose we compute the sequence

yn

with a one-step method of the form

yn=yn-1+hA(tn-1,yn-1,h,f).

The function

A

is called the increment function, and can be interpreted as an estimate of the slope
y(tn)-y(tn-1)
h

.

Local truncation error

The local truncation error

\taun

is the error that our increment function,

A

, causes during a single iteration, assuming perfect knowledge of the true solution at the previous iteration.

More formally, the local truncation error,

\taun

, at step

n

is computed from the difference between the left- and the right-hand side of the equation for the increment

ynyn-1+hA(tn-1,yn-1,h,f)

:

\taun=y(tn)-y(tn-1)-hA(tn-1,y(tn-1),h,f).

[1] [2]

The numerical method is consistent if the local truncation error is

o(h)

(this means that for every

\varepsilon>0

there exists an

H

such that

|\taun|<\varepsilonh

for all

h<H

; see little-o notation). If the increment function

A

is continuous, then the method is consistent if, and only if,

A(t,y,0,f)=f(t,y)

.

Furthermore, we say that the numerical method has order

p

if for any sufficiently smooth solution of the initial value problem, the local truncation error is

O(hp+1)

(meaning that there exist constants

C

and

H

such that

|\taun|<Chp+1

for all

h<H

).

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,

en

, at time

tn

is defined by:

\begin{align} en&=y(tn)-yn\\ &=y(tn)-(y0+hA(t0,y0,h,f)+hA(t1,y1,h,f)++hA(tn-1,yn-1,h,f)). \end{align}

The numerical method is convergent if global truncation error goes to zero as the step size goes to zero; in other words, the numerical solution converges to the exact solution:

\limh\to0maxn|en|=0

.

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.

The global truncation error satisfies the recurrence relation:

en+1=en+h(A(tn,y(tn),h,f)-A(tn,yn,h,f))+\taun+1.

This follows immediately from the definitions. Now assume that the increment function is Lipschitz continuous in the second argument, that is, there exists a constant

L

such that for all

t

and

y1

and

y2

, we have:

|A(t,y1,h,f)-A(t,y2,h,f)|\leL|y1-y2|.

Then the global error satisfies the bound

|en|\le

maxj\tauj
hL

\left(

L(tn-t0)
e

-1\right).

It follows from the above bound for the global error that if the function

f

in the differential equation is continuous in the first argument and Lipschitz continuous in the second argument (the condition from the Picard–Lindelöf theorem), and the increment function

A

is continuous in all arguments and Lipschitz continuous in the second argument, then the global error tends to zero as the step size

h

approaches zero (in other words, the numerical method converges to the exact solution).

Extension to linear multistep methods

Now consider a linear multistep method, given by the formula

\begin{align} &yn+s+as-1yn+s-1+as-2yn+s-2++a0yn\\ &    {}=hl(bsf(tn+s,yn+s)+bs-1f(tn+s-1,yn+s-1)++b0f(tn,yn)r), \end{align}

Thus, the next value for the numerical solution is computed according to

yn+s=-

s-1
\sum
k=0

akyn+k+h

s
\sum
k=0

bkf(tn+k,yn+k).

The next iterate of a linear multistep method depends on the previous s iterates. Thus, in the definition for the local truncation error, it is now assumed that the previous s iterates all correspond to the exact solution:

\taun=y(tn+s)+

s-1
\sum
k=0

aky(tn+k)-h

s
\sum
k=0

bkf(tn+k,y(tn+k)).

[3] Again, the method is consistent if

\taun=o(h)

and it has order p if

\taun=O(hp+1)

. The definition of the global truncation error is also unchanged.

The relation between local and global truncation errors is slightly different from in the simpler setting of one-step methods. For linear multistep methods, an additional concept called zero-stability is needed to explain the relation between local and global truncation errors. Linear multistep methods that satisfy the condition of zero-stability have the same relation between local and global errors as one-step methods. In other words, if a linear multistep method is zero-stable and consistent, then it converges. And if a linear multistep method is zero-stable and has local error

\taun=O(hp+1)

, then its global error satisfies

en=O(hp)

.

See also

References

External links

Notes and References

  1. Gupta. G. K.. Sacks-Davis . R. . Tischer . P. E. . A review of recent developments in solving ODEs. Computing Surveys. March 1985. 17. 1. 5–47. 10.1.1.85.783. 10.1145/4078.4079.
  2. , calls

    \taun/h

    the truncation error.
  3. , uses a different definition, dividing this by essentially by h