Calculus/Euler's Method

From testwiki
Jump to navigation Jump to search

Template:Calculus/Top Nav

Euler's Method is a method for estimating the value of a function based upon the values of that function's first derivative.

The general algorithm for finding a value of y(x) is:

Template:Calculus/Def where f is y(x) . In other words, the new value, yn+1 , is the sum of the old value yn and the step size Δxstep times the change, f(xn,yn) .

You can think of the algorithm as a person traveling with a map: Now I am standing here and based on these surroundings I go that way 1 km. Then, I check the map again and determine my direction again and go 1 km that way. I repeat this until I have finished my trip.

The Euler method is mostly used to solve differential equations of the form

Template:Calculus/Def

Examples

A simple example is to solve the equation:

Template:Calculus/Def This yields f=y=x+y and hence, the updating rule is: Template:Calculus/Def Step size Δxstep=0.1 is used here.

The easiest way to keep track of the successive values generated by the algorithm is to draw a table with columns for n,xn,yn,yn+1 .

The above equation can be e.g. a population model, where y is the population size and x is time.

Template:Calculus/Top Nav Template:Calculus/TOC Template:Calculus/Stub