ArticleslgStudy

mathematics

Fast multipole method

Fast multipole method 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 Fast multipole method rather than just read about it. In short: The fast multipole method (FMM) is a numerical technique that was developed to speed up the calculation of long-ranged forces in the n-body problem. It does this by expanding the system Green's function using a multipole expansion, which allows one to group sources that lie close together and treat them as if they were a single source.

Fast multipole method — main illustration
Fast multipole method — illustration

Key takeaways

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

Reference excerpt

The fast multipole method (FMM) is a numerical technique that was developed to speed up the calculation of long-ranged forces in the n-body problem. It does this by expanding the system Green's function using a multipole expansion, which allows one to group sources that lie close together and treat them as if they were a single source. The FMM has also been applied in accelerating the iterative solver in the method of moments (MoM) as applied to computational electromagnetics problems, and in particular in computational bioelectromagnetism. The FMM was first introduced in this manner by Leslie Greengard and Vladimir Rokhlin Jr. and is based on the multipole expansion of the vector Helmholtz equation. By treating the interactions between far-away basis functions using the FMM, the corresponding matrix elements do not need to be explicitly stored, resulting in a significant reduction in required memory. If the FMM is then applied in a hierarchical manner, it can improve the complexity of matrix-vector products in an iterative solver from 𝒪(N2) to 𝒪(N) in finite arithmetic, i.e., given a tolerance ε, the matrix-vector product is guaranteed to be within a tolerance ε. The dependence of the complexity on the tolerance ε is 𝒪(log⁡(1/ε)), i.e., the complexity of FMM is 𝒪(Nlog⁡(1/ε)). This has expanded the area of applicability of the MOM to far greater problems than were previously possible. The FMM, introduced by Rokhlin Jr. and Greengard has been said to be one of the top ten algorithms of the 20th century. The FMM algorithm reduces the complexity of matrix-vector multiplication involving a certain type of dense matrix which can arise out of many physical systems. The FMM has also been applied for efficiently treating the Coulomb interaction in the Hartree–Fock method and density functional theory calculations in quantum chemistry.

Sketch of the algorithm

In its simplest form, the fast multipole method seeks to evaluate the following function: f(y)=∑α=1Nϕαy−xα, where xα∈[−1,1] are a set of poles, and ϕα∈ℂ are the corresponding pole weights on a set of points {y1,…,yM} with yβ∈[−1,1]. This is the one-dimensional form of the problem, but the algorithm can be easily generalized to multiple dimensions and kernels other than (y−x)−1. Naively, evaluating f(y) on M points requires 𝒪(MN) operations. The crucial observation behind the fast multipole method is that if the distance between y and x is large enough, then (y−x)−1 is well-approximated by a polynomial. Specifically, let −1<t1<…<tp<1 be the Chebyshev nodes of order p≥2, and let u1(y),…,up(y) be the corresponding Lagrange basis polynomials. One can show that the interpolating polynomial 1y−x=∑i=1p1ti−xui(y)+ϵp(y) converges quickly with polynomial order, |ϵp(y)|<5−p, provided that the pole is far enough away from the region of interpolation, |x|≥3 and |y|<1. This is known as the "local expansion". The speed-up of the fast multipole method derives from this interpolation: provided that all the poles are "far away", we evaluate the sum only on the Chebyshev nodes at a cost of 𝒪(Np), and then interpolate it onto all the desired points at a cost of 𝒪(Mp): ∑α=1Nϕαyβ−xα=∑i=1pui(yβ)∑α=1N1ti−xαϕα. Since p=−log5ϵ, where ϵ is the numerical tolerance, the total cost is 𝒪((M+N)log⁡(1/ϵ)). To ensure that the poles are indeed well-separated, one recursively subdivides the unit interval such that only 𝒪(p) poles end up in each interval. One then uses the explicit formula within each interval and interpolation for all intervals that are well-separated. This does not spoil the scaling, since one needs at most log⁡(1/ϵ) levels within the given tolerance.

See also Barnes–Hut simulation Multipole expansion n-body simulation

References

Further reading Yijun Liu: Fast Multipole Boundary Element Method: Theory and Applications in Engineering, Cambridge Univ. Press, ISBN 978-0-521-11659-6 (2009).

External links Gibson, Walton C. The Method of Moments in Electromagnetics (3rd ed.), Chapman & Hall/CRC, 2021. ISBN 9780367365066. Abstract of Greengard and Rokhlin's original paper A short course on fast multipole methods by Rick Beatson and Leslie Greengard. JAVA Animation of the Fast Multipole Method Nice animation of the Fast Multipole Method with different adaptations.

Free software Puma-EM A high performance, parallelized, open source Method of Moments / Multilevel Fast Multipole Method electromagnetics code. KIFMM3d The Kernel-Independent Fast Multipole 3d Method (kifmm3d) is a new FMM implementation which does not require the explicit multipole expansions of the underlying kernel, and it is based on kernel evaluations. PVFMM An optimized parallel implementation of KIFMM for computing potentials from particle and volume sources. FastBEM Free fast multipole boundary element programs for solving 2D/3D potential, elasticity, stokes flow and acoustic problems. FastFieldSolvers maintains the distribution of the tools, called FastHenry and FastCap, developed at M.I.T. for the solution of Maxwell equations and extraction of circuit parasites (inductance and capacitance) using the FMM. ExaFMM ExaFMM is a CPU/GPU capable 3D FMM code for Laplace/Helmholtz kernels that focuses on parallel scalability. ScalFMM Archived 2017-05-02 at the Wayback Machine ScalFMM is a C++ software library developed at Inria Bordeaux with high emphasis on genericity and parallelization (using OpenMP/MPI). DASHMM DASHMM is a C++ Software library developed at Indiana University using Asynchronous Multi-Tasking HPX-5 runtime system. It provides a unified execution on shared and distributed memory computers and provides 3D Laplace, Yukawa, and Helmholtz kernels. RECFMM Adaptive FMM with dynamic parallelism on multicores. FMM3D A library for efficient 3D N-body interaction computation on multicore machines.

Worked examples

Example 1 — a first encounter with Fast multipole method

Start with the simplest possible case. Write down what Fast multipole method 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 Fast multipole method 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 Fast multipole method 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 Fast multipole method

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

How to study Fast multipole method in 20 minutes

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

Frequently asked questions

What is Fast multipole method in simple terms?

The fast multipole method (FMM) is a numerical technique that was developed to speed up the calculation of long-ranged forces in the n-body problem. It does this by expanding the system Green's function using a multipole expansion, which allows one to group sources that lie close together and treat…

Why does Fast multipole method 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 Fast multipole method?

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 Fast multipole method.

Tags

  • Computational science
  • Numerical analysis
  • Numerical differential equations

Keep exploring