Efficient Exact Quadrature of Regular Solid Harmonics Times Polynomials Over Simplices in
Abstract
A generalization of a recently introduced recursive numerical method [1] for the exact evaluation of integrals of regular solid harmonics and their normal derivatives over simplex elements in is presented. The original Quadrature to Expansion (Q2X) method [1] achieves optimal per-element asymptotic complexity, however, it considered only constant density functions over the elements. Here, we generalize this method to support arbitrary degree polynomial density functions, which is achieved in an extended recursive framework while maintaining the optimality of the complexity. The method is derived for 1- and 2- simplex elements in and can be used for the boundary element method and vortex methods coupled with the fast multipole method.
1 Introduction
Recently, Gumerov et al. introduced Quadrature to Expansion (Q2X), a recursive method for the analytical evaluation of integrals of spherical basis functions for the Laplace equation in , aka solid harmonics, over -simplex elements for with constant densities [1]. This method achieves exact integration of all bases up to truncation degree with optimal complexity per element for any in . This is useful for the Boundary Element Method (BEM) [2] coupled with the Fast Multipole Method (FMM) [3]. The conventional FMM performs an approximate summation of monopoles and dipoles centered at points distributed in space, by expanding them into truncated multipole expansions centered at points . Many such expansions are consolidated into one to achieve efficiency. In the Q2X approach, recently introduced by Gumerov et al. [1], surface layer potential integrals over a surface or a line discretized via simplices were represented as such expansions, with the expansion coefficients, obtained by quadrature over the simplex, evaluated analytically via an optimal recursive procedure. Fig. 1 shows the geometrical relation of the elements with respect to the expansion center of the solid harmonics, which is typically the centroid of a cell in an octree data structure to which the elements belong. Recursive analytical methods for high order surface elements have been developed for the close evaluation of layer potential integrals [4], and such a method is also desired for the integration of regular solid harmonics commonly arising in the FMM-BEM. [5] discusses a related method for quadrilateral elements, however a full algorithm for computing integrals for all harmonics and all monomial densities with finite degrees has not been described. Here, we extend the Q2X method to elements with polynomial densities which allows the evaluation of integrals for all regular solid harmonics up to degree and all monomial density functions up to degree with optimal complexity per element. All formulation is done for .

2 Potential integrals in BEM and vortex methods
The BEM is widely used for numerical solution of partial differential equations, e.g. the Poisson equation:
(1) |
with field in domain , and source ( for Laplace). The weak form of 1 can be written in terms of single- and double layer potentials , [2]:
(2) | ||||
with on a smooth boundary, the outward unit normal, and the boundary trace and normal derivative operators, respectively, the Newton potential operator, and the Green function for the Laplace equation:
(3) | ||||
In the BEM the boundary is discretized into boundary elements which can be either flat or curved surfaces. The layer potential integrals over these elements are evaluated to form the linear system of equations. The densities are approximated via local, typically polynomial, functions with unknown coefficients which must be determined. In the present work we assume the boundary is a union of boundary elements , where each is a flat triangular element with polynomial density functions.
Similarly, in vortex methods the Bio-Savart integral is used to compute potentials due to line elements :
(4) | ||||
where is the circulation of the -th line element.
2.1 Multipole expansion of potentials
We summarize the formulation also used in [1]. The following definition of regular and singular spherical basis functions, and is accepted:
(5) | ||||
respectively, where are the spherical coordinates of and are the associated Legendre functions [6],
(6) |
for nonnegative . and obey the symmetry:
(7) |
where the bar indicates the complex conjugate. In these bases the Green’s function can be expanded as
(8) |
given where is the center of expansion. The integrals of the spherical basis functions over element are defined as:
(9) | ||||
and are used to expand the layer potentials for as:
(10) |
where . satisfies (see e.g., [7]):
(11) | ||||
Thus, with we have:
(12) | |||
3 Problem statement
For , we denote the vertices of the 2-simplex element as and use the parametrization:
(13) | ||||
In contrast to [1] which used constant parametrization, we extend the method to density functions defined over the elements which are polynomials of the form:
(14) |
The integrand of the integrals have the form:
(15) |
We set the origin of the coordinate system so that . The goal is to derive an algorithm for efficient analytical evaluation of integrals 16 for :
(16) | ||||
for all index tuples satisfying , , , , and . The coefficients for the case can be expressed by setting , , and replacing by in .
4 Q2XP: Q2X for Polynomial elements
We first describe the case . The Q2X method [1] was derived by utilizing the fact that the regular spherical basis functions are homogeneous polynomials of degree of arguments . Similarly, are also homogeneous polynomials of with degree . Hence, by considering and as functions of , Euler’s homogeneous function theorem gives:
(17) | ||||
With the entry of , , the -th row of , and we obtain:
(18) | ||||
We define , , and , where the subscripts and denote partial derivatives with respect to these variables, and
(19) | ||||
4.1 Recursions
Lemma 1.
The coefficients satisfy the recursion:
(20) |
Proof.
Lemma 2.
The coefficients satisfy the recursion:
(22) | ||||
Proof.
The recursion for directly follows from 18 by substituting and .
(23) | ||||
The expansion coefficients and then can be computed from the coefficients using :
(24) | ||||
Remark 3.
Q2XP achieves optimal per-element complexity for evaluating all index tuples in question ( for and for ), whereas a naive application of Gauss-Legendre quadrature requires for exact evaluation.
4.2 Starting values for recursions
Note that in all recursions , , and should be set to zero for . This follows from the fact that for . The starting values are:
(25) |
where table can be computed using recursion:
(26) |
Lastly, the starting values for are given by:
(27) | ||||
From 23, 22, and 20 follows algorithm 1.
The case can be easily obtained by minor modifications to the case , i.e. setting , , , modifying the recursions accordingly, skipping step 4 and 5 in algorithm 1, and computing the result by:
(28) |
5 Numerical experiment
Q2XP was tested for the case on a configuration given by: , , , and . The wall clock times for running a Python implementation of Q2XP for polynomial degrees of up to are shown in Fig. 2. Given a complexity expression with the computation time and a constant, the exponents are extracted as and from the numerical experiment.

The maximum relative difference over the and coefficients for truncation degrees computed by exact Gauss-Legendre quadrature and Q2XP was , indicating good accuracy.
6 Conclusion
We have extended the recursive algorithm presented in [1] for the analytical evaluation of integrals of spherical basis functions over high order -simplex elements arising in the FMM-BEM for the Laplace equation in to the case of polynomial density functions. All multipole expansion coefficients are evaluated analytically up to spherical basis degree of and the density’s polynomial degree of with optimal complexity . This complexity was confirmed via numerical experiments. While we limited the discussion to , the case could also be supported by following the formulation presented here and in [1].
Acknowledgments
This work is supported by Cooperative Research Agreement W911NF2020213 between the University of Maryland and the Army Research Laboratory, with David Hull and Steven Vinci as Technical monitors. Shoken Kaneko thanks Japan Student Services Organization and Watanabe Foundation for scholarships.
References
- [1] Nail A Gumerov, Shoken Kaneko, and Ramani Duraiswami. Recursive Computation of the Multipole Expansions of Layer Potential Integrals over Simplices for Efficient Fast Multipole Accelerated Boundary Elements. Journal of Computational Physics, 486(1):112118, 2023.
- [2] Stefan A Sauter and Christoph Schwab. Boundary element methods. In Boundary Element Methods, pages 183–287. Springer, 2010.
- [3] Leslie Greengard and Vladimir Rokhlin. A fast algorithm for particle simulations. Journal of computational physics, 73(2):325–348, 1987.
- [4] Shoken Kaneko, Nail A Gumerov, and Ramani Duraiswami. Recursive Analytical Quadrature of Laplace and Helmholtz Layer Potentials in . arXiv preprint arXiv:2302.02196, 2023.
- [5] John Nicholas Newman. Distributions of sources and normal dipoles over a quadrilateral panel. Journal of Engineering Mathematics, 20(2):113–126, 1986.
- [6] Milton Abramowitz, Irene A Stegun, and Robert H Romer. Handbook of mathematical functions with formulas, graphs, and mathematical tables, volume 56. Americal Journal of Physics, 1988.
- [7] Nail A. Gumerov and Ramani Duraiswami. Fast multipole method for the biharmonic equation in three dimensions. Journal of Computational Physics, 215(1):363–383, 2006.