3.2. Truncation Error#
The accuracy of the algebraic approximation to \(du/dt\) (3.3) can be determined with the help of the Taylor series expansion of \(u(t)\) around the point \(a=t^n\). Here, \(t^n\) is reprecenting a chosen time step. Note that \(u^{n+1}=u(t^{n+1})=u(t^n+\Delta t)\) and \(u^{n}=u(t^n)\).
Note that \(u'(t^n)\) can also be written \(\frac{du}{dt}|_{t^n}\). You will find that some references omit displaying the \(|_{t^n}\) in the derivative terms. We will include them here for completeness.
We are interested in the time step coming after \(t^n\). We, therefore, write out the equation for \(t=t^{n+1}\), and note that \((t^{n+1}-t^n)=\Delta t\):
Rearranging for \(du/dt\), we obtain:
The difference between the exact derivative (1.38) and our algebraic approximation (3.3) is the second term of the right hand side of (3.6). Expanding this term up to \(p=3\), we see its general form:
where \(O(\Delta t^3)\) represents terms proportional to \(\Delta t^3\) and to higher powers of \(\Delta t\).
Expression (3.7) is the truncation error, which is the error we incurr when we approximate the exact derivative (1.38) with the algebraic expression (3.3).
The algebraic approximation (3.3) can thus be written as:
where \(O(\Delta t)\) represents the truncation error of the approximation, whose first term, the leading order term is proportional to \(\Delta t\). Since the leading order term is proportional to the first power of \(\Delta t\), we say that this approximation is a first order approximation to the first derivative.
