Algorithm Search⌘K

Theoremcore

Multipole truncation error bound

For charges of total absolute size A within radius r, the p-term multipole error at distance R > r is at most A/(R - r) (r/R)^(p+1) in 3D (1/r) and A/((p+1)(1 - r/R)) (r/R)^(p+1) in 2D (log).

Statement

Let q1,…,qmq_1, \ldots, q_m be real charges and A=∑i=1m∣qi∣A = \sum_{i=1}^{m} |q_i| their total absolute size. All of them lie within distance rr of the center, which is the origin. The order p≥0p \ge 0 is an integer, and the target is at distance R>rR > r from the origin.

Theorem 1 (two dimensions, logarithmic kernel). Let the charges sit at zi∈Cz_i \in \mathbb{C} with ∣zi∣≤r|z_i| \le r, and let u(z)=∑iqilog⁡∣z−zi∣u(z) = \sum_i q_i \log|z - z_i|. Let a0=∑iqia_0 = \sum_i q_i and ak=−∑iqizik/ka_k = -\sum_i q_i z_i^k / k for k≥1k \ge 1. Then for every zz with ∣z∣=R>r|z| = R > r and every p≥1p \ge 1,

∣u(z)−Re(a0log⁡z+∑k=1pakzk)∣≤Ap+1⋅11−r/R(rR)p+1.\left| u(z) - \mathrm{Re}\left( a_0 \log z + \sum_{k=1}^{p} \frac{a_k}{z^k} \right) \right| \le \frac{A}{p + 1} \cdot \frac{1}{1 - r/R} \left( \frac{r}{R} \right)^{p+1}.

Theorem 2 (three dimensions, Coulomb kernel). Let the charges sit at xi∈R3\mathbf{x}_i \in \mathbb{R}^3 with ∣xi∣=ri≤r|\mathbf{x}_i| = r_i \le r, and let Φ(x)=∑iqi/∣x−xi∣\Phi(\mathbf{x}) = \sum_i q_i / |\mathbf{x} - \mathbf{x}_i|. For ∣x∣=R|\mathbf{x}| = R and the angle γi\gamma_i between x\mathbf{x} and xi\mathbf{x}_i, the term of degree nn of the multipole expansion of Φ\Phi is ∑iqi rinPn(cos⁡γi)/Rn+1\sum_i q_i \, r_i^n P_n(\cos \gamma_i) / R^{n+1}, where PnP_n is the Legendre polynomial; written in spherical harmonics, it is the sum over m=−n,…,nm = -n, \ldots, n of the terms MnmYnm(θ,φ)/Rn+1M_n^m Y_n^m(\theta, \varphi) / R^{n+1}. Let Φp\Phi_p be the sum of the terms of degree 00 to pp. Then for every x\mathbf{x} with ∣x∣=R>r|\mathbf{x}| = R > r,

∣Φ(x)−Φp(x)∣≤AR−r(rR)p+1.|\Phi(\mathbf{x}) - \Phi_p(\mathbf{x})| \le \frac{A}{R - r} \left( \frac{r}{R} \right)^{p+1}.

Both bounds depend on the charges only through AA and rr, and on the target only through RR. With c=R/rc = R / r, the 2D bound is A(p+1)(c−1)c−p\frac{A}{(p+1)(c - 1)} c^{-p}, the form of Lemma 4.2 of Beatson and Greengard.

In plain words

Far from a group of charges, the field of the group is smooth, and a short series describes it. The series has one term for each order: the total charge, then the dipole, then the quadrupole, and so on. If you stop after a few terms, you make an error.

The theorem says how large the error can be. It depends on the ratio of the size of the group to the distance of the target. Each extra term multiplies the bound by this ratio. If the target is twice as far as the edge of the group, each term gains about one binary digit. The bound uses only the size of the group, the total of the charges without signs, and the distance, so it holds for every arrangement of the charges inside the group.

Proof

Theorem 1. Fix a charge qiq_i at ziz_i and let t=zi/zt = z_i / z, so ∣t∣≤r/R<1|t| \le r / R < 1. For ∣t∣<1|t| < 1 the power series log⁡(1−t)=−∑k≥1tk/k\log(1 - t) = -\sum_{k \ge 1} t^k / k converges, and log⁡∣z−zi∣=log⁡∣z∣+log⁡∣1−t∣=Re(log⁡z+log⁡(1−t))\log|z - z_i| = \log|z| + \log|1 - t| = \mathrm{Re}\left( \log z + \log(1 - t) \right). So

qilog⁡∣z−zi∣=Re(qilog⁡z−∑k≥1qizikkzk).q_i \log|z - z_i| = \mathrm{Re}\left( q_i \log z - \sum_{k \ge 1} \frac{q_i z_i^k}{k z^k} \right).

Summing over ii gives u(z)=Re(a0log⁡z+∑k≥1akz−k)u(z) = \mathrm{Re}\left( a_0 \log z + \sum_{k \ge 1} a_k z^{-k} \right), where the sums over ii and kk can be exchanged because the series converges absolutely. The error of the truncation after k=pk = p is the real part of −∑iqi∑k>ptik/k-\sum_i q_i \sum_{k > p} t_i^k / k, with ti=zi/zt_i = z_i / z. Its modulus is at most

∑i∣qi∣∑k>p∣ti∣kk≤∑i∣qi∣1p+1∑k>p(rR)k=Ap+1⋅(r/R)p+11−r/R.□\sum_i |q_i| \sum_{k > p} \frac{|t_i|^k}{k} \le \sum_i |q_i| \frac{1}{p + 1} \sum_{k > p} \left( \frac{r}{R} \right)^k = \frac{A}{p + 1} \cdot \frac{(r / R)^{p+1}}{1 - r / R}. \qquad \square

Theorem 2. Fix a charge at xi\mathbf{x}_i, with ri=∣xi∣≤r<Rr_i = |\mathbf{x}_i| \le r < R. The generating function of the Legendre polynomials gives, for ri<Rr_i < R,

1∣x−xi∣=1R2−2Rricos⁡γi+ri2=∑n=0∞rinRn+1Pn(cos⁡γi).\frac{1}{|\mathbf{x} - \mathbf{x}_i|} = \frac{1}{\sqrt{R^2 - 2 R r_i \cos \gamma_i + r_i^2}} = \sum_{n=0}^{\infty} \frac{r_i^n}{R^{n+1}} P_n(\cos \gamma_i).

By the addition theorem for spherical harmonics, Pn(cos⁡γi)P_n(\cos \gamma_i) is a finite sum of products Ynm(θ,φ)Y_n^m(\theta, \varphi) times a function of the direction of xi\mathbf{x}_i, so the degree nn part of this series is the degree nn part of the multipole expansion. Since ∣Pn(s)∣≤1|P_n(s)| \le 1 for ∣s∣≤1|s| \le 1, the tail after degree pp is at most

∑n>prinRn+1=1R⋅(ri/R)p+11−ri/R=(ri/R)p+1R−ri≤(r/R)p+1R−r,\sum_{n > p} \frac{r_i^n}{R^{n+1}} = \frac{1}{R} \cdot \frac{(r_i / R)^{p+1}}{1 - r_i / R} = \frac{(r_i / R)^{p+1}}{R - r_i} \le \frac{(r / R)^{p+1}}{R - r},

because the middle expression grows with rir_i. Multiply by ∣qi∣|q_i| and sum over ii. □\square

Consequences

  • A digit per term at twice the distance. In 2D with c=R/r≥2c = R / r \ge 2, the bound is at most A(1/2)p/(p+1)≤A(1/2)pA (1/2)^p / (p + 1) \le A (1/2)^p, the estimate (4.11) of Beatson and Greengard. So p=⌈log⁡2(1/ε)⌉p = \lceil \log_2(1/\varepsilon) \rceil terms give an error below εA\varepsilon A. In 3D with R≥2rR \ge 2r, the bound is at most (A/r)(1/2)p+1(A / r) (1/2)^{p+1}, since R−r≥rR - r \ge r, with (p+1)2(p + 1)^2 coefficients.
  • Box geometry of the FMM. A square box of side ww fits in a disk of radius w/2w / \sqrt{2}. A target in a box that is not a near neighbour is at distance at least 1.5w1.5 w from the center, so r/R≤2/3≈0.47r / R \le \sqrt{2} / 3 \approx 0.47. For cubes, the ratio is 3/3≈0.58\sqrt{3} / 3 \approx 0.58, which is why 3D codes need more terms (Beatson and Greengard, Section 5). These ratios come from the theorem and the geometry; the error of the full FMM also has the M2L step, which needs both boxes (see multipole-to-local translation).
  • Monopole error. With p=0p = 0, Theorem 2 gives Ar/(R(R−r))A r / (R (R - r)) for the Barnes-Hut monopole about any center inside the ball. About the center of mass of positive masses the dipole term is zero, so the bound for p=1p = 1 applies to the monopole, and the error is at most Ar2/(R2(R−r))A r^2 / (R^2 (R - r)).
  • The bound is relative to A, not to the potential. For charges of both signs, ∣Φ∣|\Phi| can be much smaller than A/RA / R, and the relative error of the potential can be much larger than the bound divided by ∣Φ∣|\Phi|. This matters for neutral systems (a rule of thumb, not a theorem: check against direct summation).
  • Use in acceptance criteria. Error-bound criteria for tree codes choose, for each cell, the order or the opening distance from bounds of this form; see multipole acceptance criterion.

Tightness

The 3D bound is attained. Put one unit charge at distance rr on the axis and the target on the same axis at distance RR. Then cos⁡γ=1\cos \gamma = 1, every Pn(1)=1P_n(1) = 1, and the tail is exactly ∑n>prn/Rn+1=(r/R)p+1/(R−r)\sum_{n > p} r^n / R^{n+1} = (r/R)^{p+1} / (R - r). With r=0.5r = 0.5 and R=1R = 1, the exact potential is 1/0.5=21 / 0.5 = 2, and the truncated series 1+0.5+0.25+⋯1 + 0.5 + 0.25 + \cdots gives:

pp Φp\Phi_p error bound AR−r(r/R)p+1\frac{A}{R - r} (r/R)^{p+1}
0 1 1 1
1 1.5 0.5 0.5
3 1.875 0.125 0.125

In the direction at a right angle to the charge, the odd Legendre terms vanish and the error is much smaller: 0.10560.1056, 0.01940.0194 and 0.00400.0040 for p=1p = 1, 22 and 44, against bounds 0.50.5, 0.250.25 and 0.06250.0625.

The 2D bound is tight up to the factor 1−r/R1 - r/R. One unit charge at z1=rz_1 = r and the target at z=Rz = R on the real axis give the error ∑k>p(r/R)k/k\sum_{k > p} (r/R)^k / k, which is at least (r/R)p+1/(p+1)(r/R)^{p+1} / (p + 1), so the ratio of the error to the bound is at least 1−r/R1 - r/R, and it tends to 1 as pp grows. With r=0.5r = 0.5 and R=1R = 1, the exact value is log⁡0.5=−0.693147\log 0.5 = -0.693147:

pp truncated series error bound error / bound
1 −0.5-0.5 0.193147 0.25 0.77
3 −0.666667-0.666667 0.026481 0.03125 0.85
5 −0.688542-0.688542 0.004606 0.005208 0.88

For p=1p = 1 the series is a0log⁡1+a1/1=−0.5a_0 \log 1 + a_1 / 1 = -0.5, and the bound is 12⋅11−0.5⋅0.25=0.25\frac{1}{2} \cdot \frac{1}{1 - 0.5} \cdot 0.25 = 0.25; both can be checked by hand. The geometric rate r/Rr / R cannot be improved in either dimension, since the error of these examples falls by the factor r/Rr / R per term as pp grows.

History

Greengard and Rokhlin (1987) gave the 2D expansion in complex form with this bound, as the base of the fast multipole method. Greengard's thesis, published by MIT Press in 1988, gave the 3D bound with spherical harmonics. The lecture notes of Beatson and Greengard (1997) state both bounds in the form above, with the box geometries that set the decay rates in practice.

References

  1. Leslie Greengard and Vladimir Rokhlin, A fast algorithm for particle simulations, Journal of Computational Physics 73(2), 1987, 325-348, the multipole expansion of the 2D logarithmic potential and its truncation error bound
  2. Rick Beatson and Leslie Greengard, A short course on fast multipole methods, in Wavelets, Multilevel Methods and Elliptic PDEs, Oxford University Press, 1997, Lemma 4.2 and the bound (4.11) for 2D; Theorem 5.2 for the 3D Coulomb kernel; Section 5 for the decay rates in an FMM box geometry
  3. Leslie Greengard, The Rapid Evaluation of Potential Fields in Particle Systems, MIT Press, 1988, the multipole expansion in spherical harmonics and its error bound in three dimensions

Where this leads

About this page

The build computes these levels from the evidence in the repository. Each row says what the next level needs. Read what the levels mean.

LadderLevelWhat the next level needs
Human proofH0 no proof
  • add a proof in proofs/ (06.5)
LeanL0 no Lean part
  • name a Lean module in the lean field (07)
VisualV0 none
  • add viz/scene.ts or a figure (10)
WritingW0 stub
  • the lead paragraph