An alternative approach to second order ordinary differential equations is to replace the derivatives with finite differences. The differential equation is replaced by a difference equation.
Using forward divided differences, we obtain
Let’s say that we have the second order differential equation
The corresponding difference equation is