19Oct/090
Euler’s Method in Excel – Very Simple
During Calculus last week, we covered slope fields and Euler’s method of first order initial-value problems of the form
![\begin{array}{rcl} \displaystyle \frac{dy}{dx} & = & f(x,y) \\[2ex] y(x_0) & = & y_0. \end{array} \begin{array}{rcl} \displaystyle \frac{dy}{dx} & = & f(x,y) \\[2ex] y(x_0) & = & y_0. \end{array}](/latexrender/pictures/e2d6721fc2360ffe9c73a4be3b57e8a2.png)
During class we demonstrated the use of slope field to perform a basic qualitative analysis. We utilized a couple of different online applets as well as Maple 13.
Visualizing Slope Fields and solutions
Another similar page, with zoom
Direction Fields - A Maple 13 Worksheet
Below is a short demonstration of how we set up a simple application of Euler's Method in Excel 2007. Consider the simple initial value problem:
![\begin{array}{rcl} \displaystyle \frac{dy}{dx} & = & x(6-y) \\[2ex] y(0) & = & 0. \end{array} \begin{array}{rcl} \displaystyle \frac{dy}{dx} & = & x(6-y) \\[2ex] y(0) & = & 0. \end{array}](/latexrender/pictures/7a3625a90510c457de39cfed09c24f86.png)
Recall that Euler's Method is given by
![\begin{array}{rcl} x_i &=& x_{i-1}+h\\[2ex] y_i &=& y_{i-1} + hf(x_{i-1},y_{i-1}) \end{array} \begin{array}{rcl} x_i &=& x_{i-1}+h\\[2ex] y_i &=& y_{i-1} + hf(x_{i-1},y_{i-1}) \end{array}](/latexrender/pictures/6d696cfe534656930445b1081824362f.png)
This is just a quick and dirty implementation of Euler’s method in Excel but it gets the job done.
