Euler's method is a method of numerically estimating a first-order differential equation, given an initial value. It is useful in cases in which a differential equation would be difficult or impossible to solve.
Euler's method calculates an approximate curve by using the slope of the tangent line at any given point. For example, suppose we have the problem
We can break the curve into small line segments. The smaller the segments, the more closely the curve will be approximated. In this case, will use segments of .
The following table shows the first five values for the function and how they compare to the values of the actual function, ex.