Opentopia Directory Encyclopedia Tools

Euler approximation

Encyclopedia : E : EU : EUL : Euler approximation



 

The Euler approximation is a numerical method of solving differential equations, mostly useful when the solution to a differential equation cannot be found analytically. Euler approximations are found using a recursive formula that uses slope information, given by the derivative, to approximate a value on a solution close to an initial point. It is named after the mathematician Leonhard Euler.

If the function is concave, the approximation will be an overestimate, and if the function is convex ("concave up-wards"), the approximation will be an underestimate. These approximations are more accurate with smaller step sizes.

Formulae

Given a differential equation in the form

[ \frac = f(x,y) \Leftrightarrow y' = f(x,y)]
and an initial point [(x_0,y_0)] of the solution [y(x)], an approximate discrete solution is given as a pair of sequences

[x_ = x_n + h \Leftrightarrow x_n = x_0 + hn]
[y_ = y_n + h \times f_n\,]
where

[y_n \approx y(x_n)]
[f_n = f(x_n,y_n)]
[h \in \mathbb^], is the step size
[n \in \mathbb_0]

Reasoning

Near any given [x_n], the function [y(x)] may be approximated by a line tangent to that point. Since the derivative at that point, [y'(x_n) = f_n], is the value of the tangent line slope, we have that

[y(x) \approx y_n + f_n \times (x-x_n)]
using this to determine the value at [x_ = x_n + h] yields the result above.

Further insight comes from evaluating the Taylor series expansion of [y(x)] at [x_], centred in [x_n], at [x_], as above.

[y_ \approx y_n + f_n \times h + \boldsymbol(h^2)]
The first two terms are the same as above, yet now we have an estimate of the order of magnitude of the approximation error at each step, which is of [h^2] for each step.

Uses

One common use is in video games simulating physics. The above equations would give:

[ new position = old position + velocity * time step]
which is certainly the most intuitive method for iteration, especially if your time step is 1.

More commonly used, however, is the verlet integration method, which is considerably more stable.

External links

 


From Wikipedia, the Free Encyclopedia. Original article here. Support Wikipedia by contributing or donating.
All text is available under the terms of the GNU Free Documentation License See Wikipedia Copyrights for details.


Search Titles
0123456789
ABCDEFGHIJ
KLMNOPQRST
UVWXYZ?

E-mail this article to:

Personal Message: