The Euler algorithm is possibly the simplest way to solve a differential equation. We start with the original equation and approximate the derivative of the function using the forward difference method.
Here we have assumed the time moves ahead in uniform ``ticks'' of length h.
Figure 1.1: Euler Algorithm
To find we only have to replace with and thereby progressively step outwards to find the solution for arbitrary values of t.