The Taylor expansions about are
Adding them cancels the odd powers of and gives
Thus the centred finite difference has truncation error , so .
The characteristic equation of a linear recurrence is
Its repeated root gives
Since , this can be written , exactly the discrete form of the continuous solution of .
The identity
shows that is a particular solution. Combining it with the homogeneous solution from part (b) gives
The condition gives , and gives . Hence
The exact initial-value solution is . Since ,
Thus the absolute endpoint error is , consistent with the second-order truncation error of the centred scheme.

Articles by others on the same topic (0)

There are currently no matching articles.