Euler's Method

Illustration of Euler's Method for approximating the solution to a differential equation. See also: MontessoriMuddle.org: Euler's Method

Your browser does not support the canvas element.

Analytical Solution

If you know the equation for the slope of a curve (the red line for example),

         (1)

you can integrate to find the general equation of the curve:

         (2)

then you can substitute in the x and y values from the given point , that the curve passes through to solve for the coefficient of integration (c):

         (3)

         (4)

to get the specific solution:

         (5)

Numerical Solution (using Euler's Method)

Your browser does not support the canvas element. Taking the starting point,

         (6)

and substitute the x value into the slope equation (Equation (1)), to get:

         (7)

         (8)

Now we use the "step size" parameter we set in the graph. The step size is the horizontal distance that we offset from the original slope, so it is the change in x (dx). Specifically:

         (9)

Using dx to solve for dy (in equation (8)) we get:

         (10)

         (11)

Thus, our total offset in x and y is:

         (12)

If we add the offset to our starting location we get the position of a new point (x1, y1):

         (13)

         (14)

         (15)

Advertisments
Creative Commons LicenseGraphing Equations by Lensyl Urbano is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 3.0 Unported License.
Based on a work at earthsciweb.org.