1: \begin{abstract}
2: We derive formulas for the Coulomb matrix within the full-potential
3: linearized augmented-plane-wave (FLAPW) method. The Coulomb matrix
4: is a central ingredient in implementations of many-body perturbation
5: theory, such as the Hartree-Fock and $GW$ approximations for the
6: electronic self-energy or the random-phase approximation for the dielectric
7: function. It is represented in the mixed product basis, which combines
8: numerical muffin-tin functions and interstitial plane waves constructed
9: from products of FLAPW basis functions. The interstitial plane waves
10: are here expanded with the Rayleigh formula. The resulting algorithm
11: is very efficient in terms of both computational cost and accuracy
12: and is superior to an implementation with the Fourier transform of
13: the step function. In order to allow an analytic treatment of the
14: divergence at $\mathbf{k}=\mathbf{0}$ in reciprocal space, we expand
15: the Coulomb matrix analytically around this point without resorting
16: to a projection onto plane waves. Without additional approximations,
17: we then apply a basis transformation that diagonalizes the Coulomb
18: matrix and confines the divergence to a single eigenvalue. At the
19: same time, response matrices like the dielectric function separate
20: into head, wings, and body with the same mathematical properties as
21: in a plane-wave basis. As an illustration we apply the formulas to
22: electron-energy-loss spectra (EELS) for nickel at different $\mathbf{k}$
23: vectors including \textbf{$\mathbf{k=0}$}. The convergence of the
24: spectra towards the result at $\mathbf{k=0}$ is clearly seen. Our
25: all-electron treatment also allows to include transitions from $3s$
26: and $3p$ core states in the EELS spectrum that give rise to a shallow
27: peak at high energies and lead to good agreement with experiment.
28: \end{abstract}
29: