Analytical Differentiation is Easy, Numerical Differentiation is Hard
Published: on LinkedIn
Over the past three years I have had many conversations along the lines of:
“How is the PhD project going?”
“Great, but I’m still losing precision for >fourteenth-order derivatives.” This then invites the obvious response that no physicist needs more than four anyway, which did not deter me. Now I can present our new preprint with benchmarks up to 60th-order derivatives in 3D.
The story of our new preprint begins with [1] where we aimed to establish the core underlying analytic object, the Epstein zeta function, as a new standard function; there we derive its analytic properties, present efficiently computable representations and showcase applications to quantum systems. With the convenient implementation [2], one may efficiently evaluate many expressions containing Epstein zeta functions, e.g. integrals of Epstein zeta functions that appear in theoretical chemistry [3].
Such integrals over Epstein zeta functions are computable because powerful machinery for numerical integration exists! Of course the devil is in the details, and some work needs to be done to efficiently evaluate such singular integrals which correspond to so-called many-body zeta functions [4] (and a whole lot more work when considering the very recent generalization to graphs [5]).
Now, the computation of lattice sums with anisotropic interaction kernels, which appear, among other places, when taking derivatives of isotropic interaction kernels, is not covered by the aforementioned discussion. Taking mid- to high-order derivatives from point values is numerically unstable and even exact analytic representations such as in [6] suffer from unavoidable loss of precision in floating-point arithmetic for high-order derivatives.
In other words, unlike integration, numerical differentiation is hard. So I’m very proud we discovered an algorithm based on a harmonic decomposition of the derivative operator, benchmarked up to (absurdly) high-order derivatives.
This text first appeared on LinkedIn with punctuation and links adjusted to this blog's style with AI. The words are my own.
References
- Buchheit, A. A., Busse, J. K., & Gutendorf, R. (2026). Computation and properties of the Epstein zeta function with applications to quantum systems. IMA Journal of Numerical Analysis. DOI: 10.1093/imanum/drag057
- Buchheit, A. A., Busse, J. K., Gutendorf, R., & Schmitz, J. (2024). EpsteinLib: Fast and Efficient Computation of the Epstein Zeta Function. GitHub. github.com/epsteinlib/epsteinlib
- Robles-Navarro, A., Cooper, S., Buchheit, A. A., Busse, J. K., Burrows, A., Smits, O., & Schwerdtfeger, P. (2025). Exact lattice summations for Lennard-Jones potentials coupled to a three-body Axilrod–Teller–Muto term applied to cuboidal phase transitions. Journal of Chemical Physics. DOI: 10.1063/5.0276677
- Buchheit, A. A., & Busse, J. K. (2026). Epstein zeta method for many-body lattice sums. Numerische Mathematik. DOI: 10.1007/s00211-026-01558-y
- Buchheit, A. A., & Rupp, A. (2026). Graph lattice sums and graph zeta functions for long-range interacting quantum lattice models. arXiv. DOI: 10.48550/arXiv.2609.18918
- Buchheit, A. A., Busse, J. K., Keßler, T., & Rybakov, F. N. (2026). Zeta expansion for long-range interactions under periodic boundary conditions with applications to micromagnetics. Journal of Computational Physics. DOI: 10.1016/j.jcp.2026.114885
- Buchheit, A. A., & Busse, J. K. (2026). Computation of anisotropic singular sums from high-order derivatives of Epstein zeta functions. arXiv. DOI: 10.48550/arXiv.2609.28282
