Truncation errors in numerical integration are of two kinds:
Suppose we have a continuous differential equation
y'=f(t,y), y(t0)=y0, t\geqt0
and we wish to compute an approximation
yn
y(tn)
t1,t2,\ldots,tN
h=tn-tn-1, n=1,2,\ldots,N.
Suppose we compute the sequence
yn
yn=yn-1+hA(tn-1,yn-1,h,f).
The function
A
y(tn)-y(tn-1) | |
h |
The local truncation error
\taun
A
More formally, the local truncation error,
\taun
n
yn ≈ yn-1+hA(tn-1,yn-1,h,f)
\taun=y(tn)-y(tn-1)-hA(tn-1,y(tn-1),h,f).
The numerical method is consistent if the local truncation error is
o(h)
\varepsilon>0
H
|\taun|<\varepsilonh
h<H
A
A(t,y,0,f)=f(t,y)
Furthermore, we say that the numerical method has order
p
O(hp+1)
C
H
|\taun|<Chp+1
h<H
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
tn
\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
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.
L
t
y1
y2
|A(t,y1,h,f)-A(t,y2,h,f)|\leL|y1-y2|.
|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
A
h
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}
yn+s=-
s-1 | |
\sum | |
k=0 |
akyn+k+h
s | |
\sum | |
k=0 |
bkf(tn+k,yn+k).
\taun=y(tn+s)+
s-1 | |
\sum | |
k=0 |
aky(tn+k)-h
s | |
\sum | |
k=0 |
bkf(tn+k,y(tn+k)).
\taun=o(h)
\taun=O(hp+1)
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)
en=O(hp)