ArticleslgStudy

mathematics

Leapfrog integration

Leapfrog integration is a mathematics topic covered in the lgStudy science library. This page brings together a partial reference excerpt, illustrations, worked examples, real-world applications and a short study plan, so you can understand Leapfrog integration rather than just read about it. In short: In numerical analysis, leapfrog integration is a method for numerically integrating differential equations of the form x¨=d2xdt2=A(x), or equivalently of the form v˙=dvdt=A(x),x˙=dxdt=v, particularly in the case of a dynamical system of classical mechanics. The method is known by different names in different disciplines.

Leapfrog integration — main illustration
Leapfrog integration — illustration

Key takeaways

  • Leapfrog integration belongs to mathematics; place it in that map before memorising details.
  • Learn the definition first, then one example that makes the definition concrete.
  • Connect Leapfrog integration to a quantity you can measure, compute or draw — that is where exam questions come from.
  • Reproduce the core statement of Leapfrog integration from memory before moving on to harder problems.

Reference excerpt

In numerical analysis, leapfrog integration is a method for numerically integrating differential equations of the form x¨=d2xdt2=A(x), or equivalently of the form v˙=dvdt=A(x),x˙=dxdt=v, particularly in the case of a dynamical system of classical mechanics.

The method is known by different names in different disciplines. In particular, it is similar to the velocity Verlet method, which is a variant of Verlet integration. Leapfrog integration is equivalent to updating positions x(t) and velocities v(t)=x˙(t) at different interleaved time points, staggered in such a way that they "leapfrog" over each other. In atmospheric science, a central finite difference scheme is sometimes referred to as a leapfrog scheme. Leapfrog integration is a second-order method, in contrast to Euler integration, which is only first-order, yet requires the same number of function evaluations per step. Unlike Euler integration, it is stable for oscillatory motion, as long as the time-step Δt is constant, and Δt<2/ω. Using Yoshida coefficients, applying the leapfrog integrator multiple times with the correct timesteps, a much higher order integrator can be generated.

Algorithm In leapfrog integration, the equations for updating position and velocity are ai=A(xi),vi+1/2=vi−1/2+aiΔt,xi+1=xi+vi+1/2Δt, where xi is position at step i, vi+1/2 is the velocity, or first derivative of x, at step i+1/2, ai=A(xi) is the acceleration, or second derivative of x, at step i, and Δt is the size of each time step. These equations can be expressed in a form that gives velocity at integer steps as well: xi+1=xi+viΔt+12aiΔt2,vi+1=vi+12(ai+ai+1)Δt. However, in this synchronized form, the time-step Δt must be constant to maintain stability. The synchronised form can be re-arranged to the 'kick-drift-kick' form; vi+1/2=vi+12aiΔt,xi+1=xi+vi+1/2Δt,vi+1=vi+1/2+12ai+1Δt, which is primarily used where variable time-steps are required. The separation of the acceleration calculation onto the beginning and end of a step means that if time resolution is increased by a factor of two (Δt→Δt/2), then only one extra (computationally expensive) acceleration calculation is required. One use of this equation is in Newtonian gravity simulations, since in that case the acceleration depends only on the positions of the gravitating masses (and not on their velocities). There are two primary strengths to leapfrog integration when applied to mechanics problems. The first is the time-reversibility of the Leapfrog method. One can integrate forward n steps, and then reverse the direction of integration and integrate backwards n steps to arrive at the same starting position. The second strength is its symplectic nature, which implies that it conserves the (slightly modified; see symplectic integrator) energy of a Hamiltonian dynamical system. This is especially useful when computing orbital dynamics, as many other integration schemes, such as the (order-4) Runge–Kutta method, do not conserve energy and allow the system to drift substantially over time. Because of its time-reversibility, and because it is a symplectic integrator, leapfrog integration is also used in Hamiltonian Monte Carlo, a method for drawing random samples from a probability distribution whose overall normalization is unknown.

Yoshida algorithms The leapfrog integrator can be converted into higher order integrators using techniques due to Haruo Yoshida. In this approach, the leapfrog is applied over a number of different timesteps. It turns out that when the correct timesteps are used in sequence, the errors cancel and far higher order integrators can be easily produced.

4th order Yoshida integrator One step under the 4th order Yoshida integrator requires four intermediary steps. The position and velocity are computed at different times. Only three (computationally expensive) acceleration calculations are required. The equations for the 4th order integrator to update position and velocity are xi1=xi+c1viΔt,vi1=vi+d1a(xi1)Δt,xi2=xi1+c2vi1Δt,vi2=vi1+d2a(xi2)Δt,xi3=xi2+c3vi2Δt,vi3=vi2+d3a(xi3)Δt,xi+1≡xi4=xi3+c4vi3Δt,vi+1≡vi4=vi3 where xi,vi are the starting position and velocity, xin,vin are intermediary position and velocity at intermediary step n, a(xin) is the acceleration at the position xin, and xi+1,vi+1 are the final position and velocity under one 4th order Yoshida step. Coefficients (c1,c2,c3,c4) and (d1,d2,d3) are derived in (see the equation (4.6)) w0≡−232−23,w1≡12−23,c1=c4≡w12,c2=c3≡w0+w12,d1=d3≡w1,d2≡w0 All intermediary steps form one Δt step which implies that coefficients sum up to one: ∑i=14ci=1 and ∑i=13di=1. Note that position and velocity are computed at different times and some intermediary steps are backwards in time. To illustrate this, we give the numerical values of cn coefficients: c1=0.6756, c2=−0.1756, c3=−0.1756, c4=0.6756.

See also Numerical methods for ordinary differential equations Symplectic integration Euler integration Verlet integration Runge–Kutta integration

References

External links "Leapfrog Integrator". physics.drexel.edu. Archived from the original on 2010-06-21. Retrieved 2026-10-27.

Illustrations

Leapfrog integration: Comparison of Euler's and Leapfrog integration energy conserving properties for N bodies orbiting a point source mass. Same time-step used in both simulations.
Comparison of Euler's and Leapfrog integration energy conserving properties for N bodies orbiting a point source mass. Same time-step used in both simulations.

Worked examples

Example 1 — a first encounter with Leapfrog integration

Start with the simplest possible case. Write down what Leapfrog integration claims or describes in one sentence, then invent the smallest concrete situation in which that sentence is true. In mathematics, the smallest case is usually a single object, a single equation or a single measurement. Check that every symbol or term in your sentence has a meaning in that case.

Example 2 — changing one variable

Take the situation from Example 1 and change exactly one quantity: double it, halve it, or set it to zero. Predict what should happen to Leapfrog integration before you calculate. Comparing your prediction with the result is the fastest way to find out whether you understand the idea or only the words.

Example 3 — an exam-style question

Typical questions about Leapfrog integration ask you to (a) state it precisely, (b) apply it to given data, and (c) explain a limitation. Practise writing all three answers in under five minutes; the third part is what separates a full-mark answer from an average one.

Applications of Leapfrog integration

In research
Leapfrog integration appears in mathematics research whenever the underlying quantities have to be modelled precisely. Papers usually cite it as a starting assumption and then explore where it breaks down.
In technology and industry
Engineering practice reuses Leapfrog integration in design rules, simulations and safety margins. Knowing the idea lets you read a specification sheet and understand why the numbers look the way they do.
In the classroom
Leapfrog integration is common in secondary-school and first-year university syllabi. It links to neighbouring topics Time reversible numerical differential equations, so understanding it makes those chapters shorter.
In everyday life
Look for Leapfrog integration outside the textbook — in sport, cooking, traffic, electronics or the sky above you. An example you found yourself is remembered far longer than one you were given.
Ask Teacher Smith questions about this articleOpens your AI tutor with a question about “Leapfrog integration” →

How to study Leapfrog integration in 20 minutes

  1. Read the reference excerpt below once, without taking notes.
  2. Close the page and write down what Leapfrog integration means in your own words.
  3. Compare your version with the excerpt and mark what you missed.
  4. Work through the three examples above with pen and paper.
  5. Explain Leapfrog integration out loud to somebody else — or to Teacher Smith in the lgStudy chat.

Frequently asked questions

What is Leapfrog integration in simple terms?

In numerical analysis, leapfrog integration is a method for numerically integrating differential equations of the form x¨=d2xdt2=A(x), or equivalently of the form v˙=dvdt=A(x),x˙=dxdt=v, particularly in the case of a dynamical system of classical mechanics. The method is known by different names in…

Why does Leapfrog integration matter?

Because it connects several mathematics ideas at once: it gives you a definition you can apply, a quantity you can calculate, and a way to check whether a result is plausible.

How should I study Leapfrog integration?

Read the excerpt, restate it from memory, then work through the examples and applications listed on this page. The five-step study plan above takes about twenty minutes.

What does this page cover?

It gives you a compact reference excerpt plus original lgStudy explanations, examples, applications and study material on Leapfrog integration.

Tags

  • Time reversible numerical differential equations

Keep exploring