ArticleslgStudy

computer science

Beeman's algorithm

Beeman's algorithm is a computer science 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 Beeman's algorithm rather than just read about it. In short: Beeman's algorithm is a method for numerically integrating ordinary differential equations of order 2, more specifically Newton's equations of motion x¨=A(x). It was designed to allow high numbers of particles in simulations of molecular dynamics.

Key takeaways

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

Reference excerpt

Beeman's algorithm is a method for numerically integrating ordinary differential equations of order 2, more specifically Newton's equations of motion x¨=A(x). It was designed to allow high numbers of particles in simulations of molecular dynamics. There is a direct or explicit and an implicit variant of the method. The direct variant was published by Schofield in 1973 as a personal communication from Beeman. This is what is commonly known as Beeman's method. It is a variant of the Verlet integration method. It produces identical positions, but uses a different formula for the velocities. Beeman in 1976 published a class of implicit (predictor–corrector) multi-step methods, where Beeman's method is the direct variant of the third-order method in this class.

Equation The formula used to compute the positions at time t+Δt in the full predictor-corrector scheme is:

Predict x(t+Δt) from data at times t and t−Δt x(t+Δt)=x(t)+v(t)Δt+16[4a(t)−a(t−Δt)]Δt2+O(Δt4). Correct position and velocities at time t+Δt from data at times t and t+Δt by repeated evaluation of the differential equation to get the acceleration a(t+Δt) and of the equations of the implicit system x(t+Δt)=x(t)+v(t)Δt+16[a(t+Δt)+2a(t)]Δt2+O(Δt4);v(t+Δt)Δt=x(t+Δt)−x(t)+16[2a(t+Δt)+a(t)]Δt2+O(Δt4); In tests it was found that this corrector step needs to be repeated at most twice. The values on the right are the old values of the last iterations, resulting in the new values on the left. Using only the predictor formula and the corrector for the velocities one obtains a direct or explicit method which is a variant of the Verlet integration method: x(t+Δt)=x(t)+v(t)Δt+16[4a(t)−a(t−Δt)]Δt2+O(Δt4)v(t+Δt)=v(t)+16[2a(t+Δt)+5a(t)−a(t−Δt)]Δt+O(Δt3); This is the variant that is usually understood as Beeman's method. Beeman also proposed to alternatively replace the velocity update in the last equation by the second order Adams–Moulton method: v(t+Δt)=v(t)+112[5a(t+Δt)+8a(t)−a(t−Δt)]Δt+O(Δt3) where

t is present time (i.e.: independent variable) Δt is the time step size x(t) is the position at time t v(t) is the velocity at time t a(t) is the acceleration at time t, computed as a function of x(t) the last term is the error term, using the big O notation

Predictor–corrector modifications In systems where the forces are a function of velocity in addition to position, the above equations need to be modified into a predictor–corrector form whereby the velocities at time t+Δt are predicted and the forces calculated, before producing a corrected form of the velocities. An example is: x(t+Δt)=x(t)+v(t)Δt+23a(t)Δt2−16a(t−Δt)Δt2+O(Δt4). The velocities at time t=t+Δt are then calculated (predicted) from the positions. v(t+Δt) (predicted)=v(t)+32a(t)Δt−12a(t−Δt)Δt+O(Δt3). The accelerations a(t+Δt) at time t=t+Δt are then calculated from the positions and predicted velocities, and the velocities are corrected. v(t+Δt) (corrected)=v(t)+512a(t+Δt)Δt+23a(t)Δt−112a(t−Δt)Δt+O(Δt3).

Error term As shown above, the local error term is O(Δt4) for position and O(Δt3) velocity, resulting in a global error of O(Δt3). In comparison, Verlet is O(Δt2) for position and velocity. In exchange for greater accuracy, Beeman's algorithm is moderately computationally more expensive.

Memory requirements The simulation must keep track of position, velocity, acceleration and previous acceleration vectors per particle (though some clever workarounds for storing the previous acceleration vector are possible), keeping its memory requirements on par with velocity Verlet and slightly more expensive than the original Verlet method.

References

Worked examples

Example 1 — a first encounter with Beeman's algorithm

Start with the simplest possible case. Write down what Beeman's algorithm claims or describes in one sentence, then invent the smallest concrete situation in which that sentence is true. In computer science, 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 Beeman's algorithm 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 Beeman's algorithm 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 Beeman's algorithm

In research
Beeman's algorithm appears in computer science 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 Beeman's algorithm 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
Beeman's algorithm is common in secondary-school and first-year university syllabi. It links to neighbouring topics Numerical differential equations, so understanding it makes those chapters shorter.
In everyday life
Look for Beeman's algorithm 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 “Beeman's algorithm” →

How to study Beeman's algorithm in 20 minutes

  1. Read the reference excerpt below once, without taking notes.
  2. Close the page and write down what Beeman's algorithm 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 Beeman's algorithm out loud to somebody else — or to Teacher Smith in the lgStudy chat.

Frequently asked questions

What is Beeman's algorithm in simple terms?

Beeman's algorithm is a method for numerically integrating ordinary differential equations of order 2, more specifically Newton's equations of motion x¨=A(x). It was designed to allow high numbers of particles in simulations of molecular dynamics.

Why does Beeman's algorithm matter?

Because it connects several computer science 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 Beeman's algorithm?

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 Beeman's algorithm.

Tags

  • Numerical differential equations

Keep exploring