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)]
- [x_ = x_n + h \Leftrightarrow x_n = x_0 + hn]
- [y_ = y_n + h \times f_n\,]
- [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)]
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)]
Uses
One common use is in video games simulating physics. The above equations would give:
- [ new position = old position + velocity * time step]
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.
