
NUMERICAL STABILITY AND EFFICIENCY OF RESPONSE PROPERTY
CALCULATIONS IN DENSITY FUNCTIONAL THEORY
ERIC CANCÈS1,2, MICHAEL F. HERBST3, GASPARD KEMLIN1,2, ANTOINE LEVITT1,2, AND BENJAMIN STAMM4
Abstract. Response calculations in density functional theory aim at computing the change in ground-state density
induced by an external perturbation. At finite temperature these are usually performed by computing variations
of orbitals, which involve the iterative solution of potentially badly-conditioned linear systems, the Sternheimer
equations. Since many sets of variations of orbitals yield the same variation of density matrix this involves a choice
of gauge. Taking a numerical analysis point of view we present the various gauge choices proposed in the literature
in a common framework and study their stability. Beyond existing methods we propose a new approach, based
on a Schur complement using extra orbitals from the self-consistent-field calculations, to improve the stability and
efficiency of the iterative solution of Sternheimer equations. We show the success of this strategy on nontrivial
examples of practical interest, such as Heusler transition metal alloy compounds, where savings of around 40% in
the number of required cost-determining Hamiltonian applications have been achieved.
1. Introduction
Kohn-Sham (KS) density-functional theory (DFT) [26,32] is the most popular approximation to the electronic
many-body problem in quantum chemistry and materials science. While not perfect, it offers a favourable com-
promise between accuracy and computational efficiency for a vast majority of molecular systems and materials. In
this work, we focus on KS-DFT approaches aiming at computing electronic ground-state (GS) properties. Having
solved the minimization problem underlying DFT directly yields the ground-state density and corresponding energy.
However, many quantities of interest, such as interatomic forces, (hyper)polarizabilities, magnetic susceptibilities,
phonons spectra, or transport coefficients, correspond physically to the response of GS quantities to a change in
external parameters (e.g. nuclear positions, electromagnetic fields). As such their mathematical expressions in-
volve derivatives of the obtained GS solution with respect to these parameters. For example interatomic forces are
first-order derivatives of the GS energy with respect to the atomic positions, and can actually be obtained without
computing the derivatives of the GS density, thanks to the Hellmann-Feynman theorem [21]. On the other hand the
computation of any property corresponding to second- or higher-order derivatives of the GS energy does require the
computation of derivatives of the density. More precisely, it follows from Wigner’s (2n+ 1) theorem that nth-order
derivatives of the GS density are required to compute properties corresponding to (2n)th- and (2n+ 1)st-derivatives
of the KS energy functional. More recent applications, such as the design of machine-learned exchange-correlation
energy functionals, also require the computation of derivatives of the ground-state with respect to parameters, such
as the ones defining the exchange-correlation functional [27,29,34].
Efficient numerical methods for evaluating these derivatives are therefore needed. The application of generic
perturbation theory to the special case of DFT is known as density-functional perturbation theory (DFPT) [2,
15,16,18]. See also [37] for applications to quantum chemistry, [1] for applications to phonon calculations, and
[9] for a mathematical analysis of DFPT within the reduced Hartree-Fock (rHF) approximation (also called the
Hartree approximation in the physics literature). Although the practical implementation of first- and higher-order
derivatives computed by DFPT in electronic structure calculation software can be greatly simplified by Automatic
Differentiation techniques [19], the efficiency of the resulting code crucially depends on the efficiency of a key
building block: the computation of the linear response δρ of the GS density to an infinitesimal variation δV of the
total Kohn-Sham potential.
(1) CERMICS, ENPC, France
(2) MATHERIALS team, Inria Paris, France
(3) Applied and Computational Mathematics, RWTH Aachen University, Germany
(4) IANS, University of Stuttgart, Germany
E-mail addresses:eric.cances@enpc.fr, herbst@acom.rwth-aachen.de, gaspard.kemlin@enpc.fr, antoine.levitt@inria.fr, best@ians.uni-stuttgart.de.
1
arXiv:2210.04512v2 [math.NA] 16 Feb 2023