Euler method
Euler integration is the most basic kind of numerical integration for calculating trajectories from forces at discrete timesteps.
Derivation
Euler integration is simply derived from equations for the derivatives of the position and velocity of an object.
and
become
and
Error
The magnitude of the errors arising from Euler integration can best be demonstrated by comparison to a Taylor expansion of the trajectory of an object. If we assume that a(t), v(t) and x(t) are all known exactly at a time , then Euler integration gives the position at time as:
In comparison, the Taylor expansion of the trajectory gives:
The error introduced by Euler integration is thus given by the difference between these equations:
Even if the term is removed through a common adjustment to the Euler integrator, the error still contains third-order terms in . This make Euler integration less accurate than Verlet integration or Runge-Kutta integration, which have errors of fourth- and fifth-order respectively.