Appendix A — Mathematical Reference¶
This appendix gathers the formulae, identities and unit conversions that appear throughout the book. It is intended as a lookup resource; none of the material is derived in detail here. Where a result is non-trivial, a chapter cross-reference points to the derivation.
A.1 Physical constants¶
In what follows, SI denotes the International System of Units and a.u. denotes Hartree atomic units, in which \(\hbar = m_e = e = 1/(4\pi\epsilon_0) = 1\).
| Constant | Symbol | SI value | Atomic units |
|---|---|---|---|
| Speed of light in vacuum | \(c\) | \(2.998 \times 10^8\) m·s\(^{-1}\) | \(137.036\ (\alpha^{-1})\) |
| Planck constant | \(h\) | \(6.626 \times 10^{-34}\) J·s | \(2\pi\) |
| Reduced Planck constant | \(\hbar\) | \(1.055 \times 10^{-34}\) J·s | \(1\) |
| Elementary charge | \(e\) | \(1.602 \times 10^{-19}\) C | \(1\) |
| Electron mass | \(m_e\) | \(9.109 \times 10^{-31}\) kg | \(1\) |
| Proton mass | \(m_p\) | \(1.673 \times 10^{-27}\) kg | \(1836.15\) |
| Boltzmann constant | \(k_B\) | \(1.381 \times 10^{-23}\) J·K\(^{-1}\) | \(3.167 \times 10^{-6}\) Ha·K\(^{-1}\) |
| Vacuum permittivity | \(\epsilon_0\) | \(8.854 \times 10^{-12}\) F·m\(^{-1}\) | \(1/(4\pi)\) |
| Avogadro number | \(N_A\) | \(6.022 \times 10^{23}\) mol\(^{-1}\) | — |
| Fine-structure constant | \(\alpha\) | \(7.297 \times 10^{-3}\) | \(1/c\) |
| Bohr radius | \(a_0\) | \(5.292 \times 10^{-11}\) m | \(1\) |
| Hartree energy | \(E_h\) | \(4.360 \times 10^{-18}\) J | \(1\) |
A.2 Unit conversions¶
Energy¶
| From | To | Multiply by |
|---|---|---|
| Ha (Hartree) | eV | \(27.2114\) |
| Ha | kcal·mol\(^{-1}\) | \(627.509\) |
| Ha | kJ·mol\(^{-1}\) | \(2625.50\) |
| Ha | J | \(4.3597 \times 10^{-18}\) |
| Ha | K (via \(k_B\)) | \(3.158 \times 10^{5}\) |
| Ha | cm\(^{-1}\) | \(2.1947 \times 10^{5}\) |
| eV | J | \(1.602 \times 10^{-19}\) |
| eV | K | \(1.160 \times 10^{4}\) |
| eV | cm\(^{-1}\) | \(8065.5\) |
| kcal·mol\(^{-1}\) | meV | \(43.36\) |
| kJ·mol\(^{-1}\) | meV | \(10.36\) |
The conversion energy \(\leftrightarrow\) temperature is $$ E = k_B T, $$ so \(1\) Ha corresponds to a temperature of \(E_h / k_B \approx 3.158 \times 10^5\) K, and room temperature (\(T = 300\) K) corresponds to \(k_B T \approx 25.85\) meV \(\approx 0.95 \times 10^{-3}\) Ha.
Length¶
| From | To | Multiply by |
|---|---|---|
| bohr (\(a_0\)) | Å | \(0.52918\) |
| bohr | nm | \(0.052918\) |
| bohr | m | \(5.2918 \times 10^{-11}\) |
| Å | bohr | \(1.8897\) |
| Å | nm | \(0.1\) |
Time¶
| From | To | Multiply by |
|---|---|---|
| atomic time unit | s | \(2.4189 \times 10^{-17}\) |
| atomic time unit | fs | \(0.02419\) |
| ps | fs | \(10^3\) |
| ns | ps | \(10^3\) |
The atomic unit of time is \(\hbar / E_h\), the time taken by an electron in the ground state of hydrogen (Bohr orbit) to traverse \(1\) radian of phase.
Force, pressure, dipole moment¶
| From | To | Multiply by |
|---|---|---|
| Ha / bohr | eV / Å | \(51.422\) |
| Ha / bohr\(^3\) | GPa | \(2.942 \times 10^4\) |
| eV / Å\(^3\) | GPa | \(160.218\) |
| a.u. (dipole) | Debye | \(2.5418\) |
A.3 Linear algebra cheatsheet¶
Throughout this section, \(A, B, C\) are square matrices of compatible dimension; \(\mathbf{x}, \mathbf{y}\) are column vectors.
Matrix identities¶
Eigenvalues¶
If \(A\mathbf{v} = \lambda\mathbf{v}\):
For a Hermitian (or symmetric real) matrix, all eigenvalues are real and eigenvectors for distinct eigenvalues are orthogonal. Any Hermitian \(A\) admits a spectral decomposition $$ A = U \Lambda U^\dagger, $$ with \(U\) unitary and \(\Lambda\) diagonal.
The Rayleigh quotient \(R_A(\mathbf{x}) = \mathbf{x}^\dagger A \mathbf{x} / \mathbf{x}^\dagger \mathbf{x}\) is bounded between \(\lambda_\text{min}\) and \(\lambda_\text{max}\), with equality on the corresponding eigenvectors. This underlies the variational principle of Chapter 4.
Matrix derivatives¶
For \(\mathbf{x} \in \mathbb{R}^n\) and constant \(A\):
For a scalar function \(f\) of a matrix \(X\):
Block matrix inversion¶
$$ \begin{pmatrix} A & B \ C & D \end{pmatrix}^{-1} = \begin{pmatrix} A^{-1} + A^{-1} B S^{-1} C A^{-1} & -A^{-1} B S^{-1} \ -S^{-1} C A^{-1} & S^{-1} \end{pmatrix}, $$ where \(S = D - C A^{-1} B\) is the Schur complement. Useful for deriving the equations of constrained optimisation and for manipulating Kohn–Sham systems with non-orthogonal bases.
The Woodbury identity¶
Used whenever a low-rank update to a covariance or Fock matrix must be inverted cheaply.
A.4 Vector calculus¶
Standard differential operators¶
In Cartesian coordinates, for a scalar field \(f\) and a vector field \(\mathbf{A}\):
Identities¶
For any smooth \(f\) and \(\mathbf{A}\):
For vector fields \(\mathbf{A}, \mathbf{B}\):
Integral theorems¶
Divergence (Gauss) theorem. For a vector field \(\mathbf{F}\) defined on a region \(V\) with boundary \(\partial V\): $$ \int_V \nabla \cdot \mathbf{F} \mathrm{d}V = \oint_{\partial V} \mathbf{F} \cdot \mathbf{n} \mathrm{d}S. $$
Stokes' theorem. For a vector field \(\mathbf{F}\) on a surface \(S\) with boundary \(\partial S\): $$ \int_S (\nabla \times \mathbf{F}) \cdot \mathbf{n} \mathrm{d}S = \oint_{\partial S} \mathbf{F} \cdot \mathrm{d}\boldsymbol{\ell}. $$
Green's theorem (2D special case): $$ \oint_{\partial D} (P\,\mathrm{d}x + Q\,\mathrm{d}y) = \iint_D \left(\frac{\partial Q}{\partial x} - \frac{\partial P}{\partial y}\right) \mathrm{d}A. $$
Green's identities (for scalar fields \(\phi, \psi\)): $$ \int_V (\phi \nabla^2 \psi + \nabla\phi \cdot \nabla\psi) \mathrm{d}V = \oint_{\partial V} \phi\,\nabla\psi \cdot \mathbf{n} \mathrm{d}S, $$ $$ \int_V (\phi \nabla^2 \psi - \psi \nabla^2 \phi) \mathrm{d}V = \oint_{\partial V} (\phi\nabla\psi - \psi\nabla\phi)\cdot\mathbf{n} \mathrm{d}S. $$
The second of these underlies the derivation of the Hellmann–Feynman theorem and the divergence-form Poisson solver of Chapter 6.
A.5 Common integrals¶
Gaussian integrals¶
In \(d\) dimensions, for a positive-definite matrix \(A\): $$ \int_{\mathbb{R}^d} e^{-\tfrac12 \mathbf{x}^\top A \mathbf{x} + \mathbf{b}^\top \mathbf{x}} \mathrm{d}^d x = \frac{(2\pi)^{d/2}}{\sqrt{\det A}}\, \exp!\left(\tfrac12 \mathbf{b}^\top A^{-1} \mathbf{b}\right). $$
Exponential / gamma integrals¶
The last appears in the derivation of the Debye model in Chapter 8.
Useful trigonometric / spherical integrals¶
The Coulomb integral¶
The cornerstone evaluation underlying every Slater-type integral in quantum chemistry. Used in Chapter 4.
A.6 Taylor series¶
For a sufficiently smooth \(f\) about \(x_0\):
Common one-variable series (\(|x|\) small):
Multivariate Taylor expansion to second order about \(\mathbf{x}_0\): $$ f(\mathbf{x}) \approx f(\mathbf{x}_0) + \nabla f(\mathbf{x}_0)^\top \delta\mathbf{x} + \tfrac12 \delta\mathbf{x}^\top H \delta\mathbf{x}, $$ where \(H_{ij} = \partial_i\partial_j f(\mathbf{x}_0)\) is the Hessian. The harmonic approximation to vibrations (Chapter 8) and the second-order optimisation schemes (Chapter 6) are direct applications.
A.7 Probability and statistics¶
For a random variable \(X\) with density \(p(x)\):
For independent \(X, Y\): $$ \mathrm{Var}(X+Y) = \mathrm{Var}(X) + \mathrm{Var}(Y). $$
Gaussian density in one dimension: $$ p(x) = \frac{1}{\sqrt{2\pi\sigma^2}} \exp!\left(-\frac{(x-\mu)2}{2\sigma2}\right). $$
Multivariate Gaussian: $$ p(\mathbf{x}) = \frac{1}{\sqrt{(2\pi)^d \det \Sigma}} \exp!\left(-\tfrac12 (\mathbf{x}-\boldsymbol{\mu})^\top \Sigma^{-1} (\mathbf{x}-\boldsymbol{\mu})\right). $$
The Boltzmann distribution at temperature \(T\) for a system with energies \(\{E_i\}\): $$ p_i = \frac{e^{-\beta E_i}}{Z}, \qquad \beta = 1/(k_B T), \qquad Z = \sum_i e^{-\beta E_i}. $$
The connection to thermodynamic free energy is \(F = -k_B T \ln Z\).
A.8 Useful inequalities¶
Cauchy–Schwarz. $$ |\langle \mathbf{x}, \mathbf{y}\rangle| \le |\mathbf{x}|\,|\mathbf{y}|. $$
Triangle. $$ |\mathbf{x}+\mathbf{y}| \le |\mathbf{x}| + |\mathbf{y}|. $$
Jensen. For convex \(\varphi\) and any random variable \(X\), $$ \varphi(\mathbb{E}[X]) \le \mathbb{E}[\varphi(X)]. $$
Variational (Rayleigh–Ritz). For any normalised trial state \(|\psi\rangle\) and Hermitian \(H\), $$ \langle\psi|H|\psi\rangle \ge E_0. $$
This is the principle that underwrites every variational method in this book — Hartree–Fock, DFT, configuration interaction, quantum Monte Carlo.
The remainder of the appendix turns to operational matters: how to run these methods on real hardware (Appendix B), what the terminology means (Appendix C), where to read further (Appendix D), and a consolidated bibliography (Appendix E).