A general spectral solver for the axisymmetric Jeans equations: fast galaxy modelling with arbitrary anisotropy
Michele Cappellari
TL;DR
This paper addresses the computational bottleneck in axisymmetric Jeans modelling by introducing a general spectral solver that can handle arbitrary anisotropy $\beta(r,\theta)$. The method solves directly for the radial velocity dispersion $\bar v_r^2$ on a logarithmic grid using Chebyshev collocation, and enforces asymptotic behavior via a Robin boundary condition, enabling exponential convergence with modest grid sizes. It recovers intrinsic moments with sub-percent accuracy and is orders of magnitude faster than traditional high-accuracy quadratures, with implementation designed for GPUs and integration into the JamPy package. Validations against analytic isotropic solutions and comparisons with JAM_sph show the solver's accuracy across regimes, including high central cusps and varying anisotropy, making it a robust, scalable tool for exploring large parameter spaces in galaxy dynamics.
Abstract
Dynamical modelling is a fundamental tool for measuring galaxy masses and density profiles in the era of large integral-field spectroscopic surveys and Bayesian inference. Solutions based on the Jeans equations are popular due to their robustness and computational efficiency. However, traditional semi-analytic Jeans solvers often require restrictive assumptions about the velocity anisotropy to remain computationally tractable. This paper presents a new spectral solver for the axisymmetric Jeans equations designed to overcome these limitations. I first illustrate, using orbit integrations in realistic potentials, that spherical alignment of the velocity ellipsoid is a physically well-motivated approximation for galaxy modelling. The new method employs a spectral technique to solve the Jeans partial differential equations directly. Two design choices are critical for accuracy and speed: (i) solving for the slowly-varying velocity dispersion rather than the rapidly varying pressure, and (ii) imposing a Robin boundary condition to enforce the asymptotic decay on a finite domain. This formulation supports arbitrary anisotropy distributions beta(r, theta) while simultaneously increasing computational speed by orders of magnitude compared to standard high-accuracy quadratures. Validated against exact analytic benchmarks, the solver recovers intrinsic moments with sub-percent accuracy. The implementation will be included in the public JamPy package and is structured to be optimally suited for massive parallelization on specialized hardware such as GPUs, enabling the rigorous exploration of complex parameter spaces.
