Calling $\bf v$ the velocities, $\bf a$ the accelerations, and $\bf b$ the third derivatives of ${\bf r}$ with respect to t, one has:

\begin{displaymath}
{\bf r} (t+\Delta t) = {\bf r} (t) + {\bf v} (t) \Delta t
 +...
 ...(t) \Delta t^2 + (1/6) {\bf b} (t) \Delta t^3
 + O(\Delta t^4) \end{displaymath}

\begin{displaymath}
{\bf r} (t-\Delta t) = {\bf r} (t) - {\bf v} (t) \Delta t
 +...
 ...(t) \Delta t^2 - (1/6) {\bf b} (t) \Delta t^3
 + O(\Delta t^4) \end{displaymath}

Adding the two expressions gives
\begin{displaymath}
{\bf r} (t+\Delta t) = 2{\bf r} (t) - {\bf r} (t-\Delta t)
 + {\bf a} (t) \Delta t^2 + O(\Delta t^4) \end{displaymath}
This is the basic form of the Verlet algorithm.

As one can immediately see, the truncation error of the algorithm when evolving the system by $\Delta t$ is of the order of $\Delta t^4$, even if third derivatives do not appear explicitly. This algorithm is at the same time simple to implement, accurate and stable, explaining its large popularity among molecular dynamics simulators.

A problem with this version of the Verlet algorithm is that velocities are not directly generated. While they are not needed for the time evolution, their knowledge is sometimes necessary. Moreover, they are required to compute the kinetic energy K, whose evaluation is necessary to test the conservation of the total energy E=K+V. This is one of the most important tests to verify that a MD simulation is proceeding correctly. One could compute the velocities from the positions by using

\begin{displaymath}
{\bf v} (t) = \frac { {\bf r}(t+\Delta t) - {\bf r}(t-\Delta t) }
 { 2 \Delta t } . \end{displaymath}

However, the error associated to this expression is of order $\Delta t^2$ rather than $\Delta t^4$.

To overcome this difficulty, some variants of the Verlet algorithm have been developed. They give rise to exactly the same trajectory, and differ in what variables are stored in memory and at what times. The leap-frog algorithm, not reported here, is one of such variants