The numerical methods for solving differential equations are based on replacing
the differential equations by algebraic equations. In the case of the popular
finite difference method, this is done by replacing the derivatives by
differences. Below we will demonstrate this with both first- and second-order
derivatives. But first we give a motivational example.