added so from scratch doc :)
[lectures/latex.git] / physics_compact / solid.tex
1 \part{Theory of the solid state}
2
3 \chapter{Atomic structure}
4
5 \chapter{Reciprocal lattice}
6
7 Example of primitive cell ...
8
9 \chapter{Electronic structure}
10
11 \section{Noninteracting electrons}
12
13 \subsection{Bloch's theorem}
14
15 \section{Nearly free and tightly bound electrons}
16
17 \subsection{Tight binding model}
18
19 \section{Interacting electrons}
20
21 \subsection{Density functional theory}
22
23 \subsubsection{Hohenberg-Kohn theorem}
24
25 The Hamiltonian of a many-electron problem has the form
26 \begin{equation}
27 H=T+V+U\text{ ,}
28 \end{equation}
29 where
30 \begin{eqnarray}
31 T & = & \langle\Psi|\sum_{i=1}^N\frac{-\hbar^2}{2m}\nabla_i^2|\Psi\rangle\\
32   & = & \frac{-\hbar^2}{2m} \sum_{i=1}^N \int d\vec{r} d\vec{r}' \,
33         \langle \Psi | \vec{r} \rangle \langle \vec{r} |
34         \nabla_i^2
35         | \vec{r}' \rangle \langle \vec{r}' | \Psi \rangle\\
36   & = & \frac{-\hbar^2}{2m} \sum_{i=1}^N \int d\vec{r} d\vec{r}' \,
37         \langle \Psi | \vec{r} \rangle \nabla_{\vec{r}_i}
38         \langle \vec{r} | \vec{r}' \rangle
39         \nabla_{\vec{r}'_i} \langle \vec{r}' | \Psi \rangle\\
40   & = & \frac{-\hbar^2}{2m} \sum_{i=1}^N \int d\vec{r} d\vec{r}' \,
41         \nabla_{\vec{r}_i} \langle \Psi | \vec{r} \rangle
42         \delta_{\vec{r}\vec{r}'}
43         \nabla_{\vec{r}'_i} \langle \vec{r}' | \Psi \rangle\\
44   & = & \frac{-\hbar^2}{2m} \sum_{i=1}^N \int d\vec{r} \,
45         \nabla_{\vec{r}_i} \Psi^*(\vec{r}) \nabla_{\vec{r}_i} \Psi(\vec{r})
46         \text{ ,} \\
47 V & = & \int V(\vec{r})\Psi^*(\vec{r})\Psi(\vec{r})d\vec{r} \text{ ,} \\
48 U & = & \frac{1}{2}\int\frac{1}{\left|\vec{r}-\vec{r}'\right|}
49         \Psi^*(\vec{r})\Psi^*(\vec{r}')\Psi(\vec{r}')\Psi(\vec{r})
50         d\vec{r}d\vec{r}'
51 \end{eqnarray}
52 represent the kinetic energy, the energy due to the external potential and the energy due to the mutual Coulomb repulsion.
53
54 \begin{remark}
55 As can be seen from the above, two many-electron systems can only differ in the external potential and the number of electrons.
56 The number of electrons is determined by the electron density.
57 \begin{equation}
58 N=\int n(\vec{r})d\vec{r}
59 \end{equation}
60 Now, if the external potential is additionally determined by the electron density, the density completely determines the many-body problem.
61 \end{remark}
62
63 Considering a system with a nondegenerate ground state, there is obviously only one ground-state charge density $n_0(\vec{r})$ that corresponds to a given potential $V(\vec{r})$.
64 \begin{equation}
65 n_0(\vec{r})=\int \Psi_0^*(\vec{r},\vec{r}_2,\vec{r}_3,\ldots,\vec{r}_N)
66                   \Psi_0(\vec{r},\vec{r}_2,\vec{r}_3,\ldots,\vec{r}_N)
67              d\vec{r}_2d\vec{r}_3\ldots d\vec{r}_N
68 \end{equation}
69 In 1964, Hohenberg and Kohn showed the opposite and far less obvious result \cite{hohenberg64}.
70
71 \begin{theorem}[Hohenberg / Kohn]
72 For a nondegenerate ground state, the ground-state charge density uniquely determines the external potential in which the electrons reside.
73 \end{theorem}
74
75 \begin{proof}
76 The proof presented by Hohenberg and Kohn proceeds by {\em reductio ad absurdum}.
77 Suppose two potentials $V_1$ and $V_2$ exist, which yield the same electron density $n(\vec{r})$.
78 The corresponding Hamiltonians are denoted $H_1$ and $H_2$ with the respective ground-state wavefunctions $\Psi_1$ and $\Psi_2$ and eigenvalues $E_1$ and $E_2$.
79 Then, due to the variational principle (see \ref{sec:var_meth}), one can write
80 \begin{equation}
81 E_1=\langle \Psi_1 | H_1 | \Psi_1 \rangle <
82 \langle \Psi_2 | H_1 | \Psi_2 \rangle \text{ .}
83 \label{subsub:hk01}
84 \end{equation}
85 Expressing $H_1$ by $H_2+H_1-H_2$, the last part of \eqref{subsub:hk01} can be rewritten:
86 \begin{equation}
87 \langle \Psi_2 | H_1 | \Psi_2 \rangle =
88 \langle \Psi_2 | H_2 | \Psi_2 \rangle +
89 \langle \Psi_2 | H_1 -H_2 | \Psi_2 \rangle
90 \end{equation}
91 The two Hamiltonians, which describe the same number of electrons, differ only in the potential
92 \begin{equation}
93 H_1-H_2=V_1(\vec{r})-V_2(\vec{r})
94 \end{equation}
95 and, thus
96 \begin{equation}
97 E_1<E2+\int n(\vec{r}) \left( V_1(\vec{r})-V_2(\vec{r}) \right) d\vec{r}
98 \text{ .}
99 \label{subsub:hk02}
100 \end{equation}
101 By switching the indices of \eqref{subsub:hk02} and adding the resulting equation to \eqref{subsub:hk02}, the contradiction
102 \begin{equation}
103 E_1 + E_2 < E_2 + E_1 +
104 \underbrace{
105 \int n(\vec{r}) \left( V_1(\vec{r})-V_2(\vec{r}) \right) d\vec{r} +
106 \int n(\vec{r}) \left( V_2(\vec{r})-V_1(\vec{r}) \right) d\vec{r}
107 }_{=0}
108 \end{equation}
109 is revealed, which proofs the Hohenberg Kohn theorem.% \qed
110 \end{proof}
111
112 \section{Electron-ion interaction}
113
114 \subsection{Pseudopotential theory}
115
116 The basic idea of pseudopotential theory is to only describe the valence electrons, which are responsible for the chemical bonding as well as the electronic properties for the most part.
117
118 \subsubsection{Orthogonalized planewave method}
119
120 Due to the orthogonality of the core and valence wavefunctions, the latter exhibit strong oscillations within the core region of the atom.
121 This requires a large amount of planewaves $\ket{k}$ to adequatley model the valence electrons.
122
123 In a very general approach, the orthogonalized planewave (OPW) method introduces a new basis set
124 \begin{equation}
125 \ket{k}_{\text{OPW}} = \ket{k} - \sum_t \ket{t}\bra{t}k\rangle \text{ ,}
126 \end{equation} 
127 with $\ket{t}$ being the eigenstates of the core electrons.
128 The new basis is orthogonal to the core states $\ket{t}$.
129 \begin{equation}
130 \braket{t}{k}_{\text{OPW}} =
131 \braket{t}{k} - \sum_{t'} \braket{t}{t'}\braket{t'}{k} =
132 \braket{t}{k} - \braket{t}{k}=0
133 \end{equation}
134 The number of planewaves required for reasonably converged electronic structure calculations is tremendously reduced by utilizing the OPW basis set.
135
136 \subsubsection{Pseudopotential method}
137
138 Following the idea of orthogonalized planewaves leads to the pseudopotential idea, which --- in describing only the valence electrons --- effectively removes an undesriable subspace from the investigated problem.
139
140 Let $\ket{\Psi_\text{V}}$ be the wavefunction of a valence electron with the Schr\"odinger equation 
141 \begin{equation}
142 H \ket{\Psi_\text{V}} = \left(\frac{1}{2m}p^2+V\right)\ket{\Psi_\text{V}}=
143 E\ket{\Psi_\text{V}} \text{ .}
144 \end{equation}
145 \ldots projection operatore $P_\text{C}$ \ldots
146
147 \subsubsection{Semilocal form of the pseudopotential}
148
149 Ionic potentials, which are spherically symmteric, suggest to treat each angular momentum $l,m$ separately leading to $l$-dependent non-local (NL) model potentials $V_l(r)$ and a total potential
150 \begin{equation}
151 V=\sum_{l,m}\ket{lm}V_l(\vec{r})\bra{lm} \text{ .}
152 \end{equation}
153 In fact, applied to a function, the potential turns out to be non-local in the angular coordinates but local in the radial variable, which suggests to call it asemilocal (SL) potential.
154
155 Problem of semilocal potantials become valid once matrix elements need to be computed.
156 Integral with respect to the radial component needs to be evaluated for each planewave combination, i.e.\  $N(N-1)/2$ integrals.
157 \begin{equation}
158 \bra{k+G}V\ket{k+G'} = \ldots
159 \end{equation}
160
161 A local potential can always be separated from the potential \ldots
162 \begin{equation}
163 V=\ldots=V_{\text{local}}(\vec{r})+\ldots
164 \end{equation}
165
166 \subsubsection{Norm conserving pseudopotentials}
167
168 HSC potential \ldots
169
170 \subsubsection{Fully separable form of the pseudopotential}
171
172 KB transformation \ldots
173
174 \subsection{Spin-orbit interaction}
175
176 Relativistic effects can be incorporated in the normconserving pseudopotential method up to but not including terms of order $\alpha^2$ \cite{kleinman80,bachelet82} with $\alpha$ being the fine structure constant.
177 This is advantageous since \ldots
178 With the solutions of the all-electron Dirac equations, the new pseudopotential reads
179 \begin{equation}
180 V(\vec{r})=\sum_{l,m}\left[
181 \ket{l+\frac{1}{2},m+{\frac{1}{2}}}V_{l,l+\frac{1}{2}}(\vec{r})
182 \bra{l+\frac{1}{2},m+{\frac{1}{2}}} +
183 \ket{l-\frac{1}{2},m-{\frac{1}{2}}}V_{l,l-\frac{1}{2}}(\vec{r})
184 \bra{l-\frac{1}{2},m-{\frac{1}{2}}}
185 \right] \text{ .}
186 \label{eq:solid:so_bs1}
187 \end{equation}
188 By defining an averaged potential weighted by the different $j$ degeneracies of the $\ket{l\pm\frac{1}{2}}$ states
189 \begin{equation}
190 \bar{V}_l(r)=\frac{1}{2l+1}\left(
191 l V_{l,l-\frac{1}{2}}(\vec{r})+(l+1)V_{l,l+\frac{1}{2}}(\vec{r})\right)
192 \end{equation}
193 and a potential describing the difference in the potential with respect to the spin
194 \begin{equation}
195 V^{\text{SO}}_l(\vec{r})=\frac{2}{2l+1}\left(
196 V_{l,l+\frac{1}{2}}(\vec{r})-V_{l,l-\frac{1}{2}}(\vec{r})\right)
197 \end{equation}
198 the total potential can be expressed as
199 \begin{equation}
200 V(\vec{r})=\sum_l
201 \ket{l,m}\left[\bar{V}_l(\vec{r})+V^{\text{SO}}_l(\vec{r})LS\right]\bra{l,m}
202 \text{ ,}
203 \label{eq:solid:so_bs2}
204 \end{equation}
205 where the first term correpsonds to the mass velocity and Darwin relativistic corrections and the latter is associated with the spin-orbit (SO) coupling.
206 \begin{proof}
207 This can be shown by rewriting the $LS$ operator
208 \begin{equation}
209 J=L+S \Leftrightarrow J^2=L^2+S^2+2LS \Leftrightarrow
210 LS=\frac{1}{2}\left(J^2-L^2-S^2\right)
211 \text{ ,}
212 \end{equation}
213 which, if used in equation~\eqref{eq:solid:so_bs2}, gives the same (diagonal) matrix elements
214 \begin{align}
215 \bra{l\pm\frac{1}{2},m\pm\frac{1}{2}}V(\vec{r})
216 \ket{l\pm\frac{1}{2},m\pm\frac{1}{2}}&=
217 \bar{V}_l(\vec{r})+V^{\text{SO}}_l(\vec{r})
218 \frac{1}{2}\left(l(l+1)-j(j+1)-\frac{3}{4}\right) \\
219 &= \bar{V}_l(\vec{r})+\frac{1}{2}V^{\text{SO}}_l(\vec{r})
220 \left\{\begin{array}{rl}
221 -\left(l+\frac{3}{2}\right) & \text{ for } j=l+\frac{1}{2}\\
222 \left(l-\frac{1}{2}\right) & \text{ for } j=l-\frac{1}{2}
223 \end{array}\right.
224 \end{align}
225 as equation~\eqref{eq:solid:so_bs1}
226 \begin{equation}
227 \text{ .}
228 \end{equation}
229
230 \end{proof}
231
232
233 \subsubsection{Excursus: Real space representation within an iterative treatment}
234
235 In the following, the spin-orbit part is evaluated in real space.
236 Since spin is treated in another subspace, it can be treated separately.
237 The matrix elements of the orbital angular momentum part of the potential in KB form read
238 \begin{equation}
239 \sum_{lm}
240 \bra{\vec{r}'}(r\times p)\ket{\chi_{lm}}E^{\text{SO,KB}}_l
241 \braket{\chi_{lm}}{\vec{r}''}
242 \text{ .}
243 \end{equation}
244 With
245 \begin{eqnarray}
246 \bra{\vec{r}'}r\ket{\chi_{lm}} & = & \vec{r}'\braket{\vec{r}'}{\chi_{lm}}\\
247 \bra{\vec{r}'}p\ket{\chi_{lm}} & = & -i\hbar\nabla_{\vec{r}'}
248 \braket{\vec{r}'}{\chi_{lm}}
249 \end{eqnarray}
250 we get
251 \begin{equation}
252 -i\hbar\sum_{lm}(\vec{r}'\times \nabla_{\vec{r}'})\braket{\vec{r}'}{\chi_{lm}}
253 E^{\text{SO,KB}}_l\braket{\chi_{lm}}{\vec{r}''}
254 \text{ .}
255 \label{eq:solid:so_me}
256 \end{equation}
257 To further evaluate this expression, the KB projectors
258 \begin{equation}
259 \ket{\chi_{lm}}=\frac{\ket{\delta V_l^{\text{SO}}\Phi_{lm}}}
260 {\braket{\delta V_l^{\text{SO}}\Phi_{lm}}
261         {\Phi_{lm}\delta V_l^{\text{SO}}}^{1/2}}
262 \end{equation}
263 must be known in real space (with respect to $\vec{r}'$).
264 \begin{equation}
265 \braket{\vec{r}'}{\chi_{lm}}=
266 \frac{\braket{\vec{r}'}{\delta V_l^{\text{SO}}\Phi_{lm}}}{
267 \braket{\delta V_l^{\text{SO}}\Phi_{lm}}{\Phi_{lm}\delta V_l^{\text{SO}}}
268 ^{1/2}}
269 \end{equation}
270 and
271 \begin{equation}
272 \braket{\vec{r}'}{\delta V_l^{\text{SO}}\Phi_{lm}}=
273 \delta V_l^{\text{SO}}(r')\frac{u_l(r')}{r'}Y_{lm}(\Omega_{\vec{r}'})
274 \text{ .}
275 \label{eq:solid:so_r1}
276 \end{equation}
277 In this expression, only the spherical harmonics are complex functions.
278 Thus, the complex conjugate with respect to $\vec{r}''$ is given by
279 \begin{equation}
280 \braket{\Phi_{lm}\delta V_l^{\text{SO}}}{\vec{r}''}=
281 \delta V_l^{\text{SO}}(r'')\frac{u_l(r'')}{r''}Y^*_{lm}(\Omega_{\vec{r}''})
282 \text{ .}
283 \label{eq:solid:so_r2}
284 \end{equation}
285 Using the orthonormality property 
286 \begin{equation}
287 \int Y^*_{l'm'}(\Omega_r)Y_{lm}(\Omega_r) d\Omega_r = \delta_{ll'}\delta_{mm'}
288 \label{eq:solid:y_ortho}
289 \end{equation}
290 of the spherical harmonics, the squared norm of the $\chi_{lm}$ reduces to
291 \begin{eqnarray}
292 \braket{\delta V_l^{\text{SO}}\Phi_{lm}}{\Phi_{lm}\delta V_l^{\text{SO}}} &=&
293 \int \braket{\delta V_l^{\text{SO}}\Phi_{lm}}{\vec{r}'}
294 \braket{\vec{r}'}{\Phi_{lm}\delta V_l^{\text{SO}}} d\vec{r}'\\
295 &=&\int 
296 {\delta V_l^{\text{SO}}}^2(r')\frac{u_l^2(r')}{r'^2}Y^*_{lm}(\Omega_{\vec{r}'})
297 Y_{lm}(\Omega_{\vec{r}'})
298 r'^2 dr' d\Omega_{\vec{r}'} \\
299 &=&\int_{r'}
300 {\delta V_l^{\text{SO}}}^2(r') u_l^2(r') dr'
301 \int_{\Omega_{\vec{r}'}}Y^*_{lm}(\Omega_{\vec{r}'})Y_{lm}(\Omega_{\vec{r}'}) d\Omega_{\vec{r}'}\\
302 &=&\int_{r'}{\delta V_l^{\text{SO}}}^2(r') u_l^2(r') dr' \text{ .}\\
303 &=&\braket{\delta V_l^{\text{SO}}u_l}{u_l\delta V_l^{\text{SO}}}
304 \end{eqnarray}
305 To obtain a final expression for the matrix elements \eqref{eq:solid:so_me}, the sum of the products of \eqref{eq:solid:so_r1} and \eqref{eq:solid:so_r2} must be further evaluated.
306 \begin{eqnarray}
307 \sum_{lm}
308 \braket{\vec{r}'}{\delta V_l^{\text{SO}}\Phi_{lm}}
309 \braket{\Phi_{lm}\delta V_l^{\text{SO}}}{\vec{r}''}&=&\sum_{lm}
310 \delta V_l^{\text{SO}}(r')\frac{u_l(r')}{r'}Y_{lm}(\Omega_{\vec{r}'})
311 \delta V_l^{\text{SO}}(r'')\frac{u_l(r'')}{r''}Y^*_{lm}(\Omega_{\vec{r}''})\nonumber\\
312 &=&\sum_l
313 \delta V_l^{\text{SO}}(r')\frac{u_l(r')}{r'}
314 \delta V_l^{\text{SO}}(r'')\frac{u_l(r'')}{r''}\sum_m
315 Y^*_{lm}(\Omega_{\vec{r}''})Y_{lm}(\Omega_{\vec{r}'})\nonumber\\
316 &=&\sum_l
317 \delta V_l^{\text{SO}}(r')\frac{u_l(r')}{r'}
318 \delta V_l^{\text{SO}}(r'')\frac{u_l(r'')}{r''}
319 P_l\left(\frac{\vec{r}'\vec{r}''}{r'r''}\right)\frac{2l+1}{4\pi}\nonumber\\
320 \end{eqnarray}
321 due to the vector addition theorem
322 \begin{equation}
323 P_l\left(\frac{\vec{r}'\vec{r}''}{r'r''}\right)=
324 \frac{4\pi}{2l+1}\sum_mY^*_{lm}(\Omega_{\vec{r}''})Y_{lm}(\Omega_{\vec{r}'})
325 \text{ .}
326 \end{equation}
327 In total, the matrix elements of the SO potential can be calculated by
328 \begin{eqnarray}
329 &&-i\hbar\sum_{lm}(\vec{r}'\times \nabla_{\vec{r}'})\braket{\vec{r}'}{\chi_{lm}}
330 E^{\text{SO,KB}}_l\braket{\chi_{lm}}{\vec{r}''}=\nonumber\\
331 &=&-i\hbar\sum_l(\vec{r}'\times \nabla_{\vec{r}'})
332 \delta V_l^{\text{SO}}(r')\frac{u_l(r')}{r'}
333 P_l\left(\frac{\vec{r}'\vec{r}''}{r'r''}\right)\cdot
334 \frac{E^{\text{SO,KB}}_l\delta V_l^{\text{SO}}(r'')\frac{u_l(r'')}{r''}}
335              {\int_{r}{\delta V_l^{\text{SO}}}^2(r) u_l^2(r) dr} \cdot
336 \frac{2l+1}{4\pi}\nonumber\\
337 &=&
338 -i\hbar\sum_l
339 \delta V_l^{\text{SO}}(r')\frac{u_l(r')}{r'}
340 P'_l\left(\frac{\vec{r}'\vec{r}''}{r'r''}\right)\cdot
341 \left(\frac{\vec{r}'\times\vec{r}''}{r'r''}\right)\cdot
342 \frac{E^{\text{SO,KB}}_l\delta V_l^{\text{SO}}(r'')\frac{u_l(r'')}{r''}}
343        {\int_{r}{\delta V_l^{\text{SO}}}^2(r) u_l^2(r) dr} \,
344 \frac{2l+1}{4\pi}\text{ ,}\nonumber\\
345 \label{eq:solid:so_fin}
346 \end{eqnarray}
347 since derivatives of functions that depend on the absolute value of $\vec{r}'$ do not contribute due to the cross product as is illustrated below (equations \eqref{eq:solid:rxp1} and \eqref{eq:solid:rxp2}).
348 \begin{eqnarray}
349 \left(\vec{r}\times\nabla_{\vec{r}}\right)f(r)&=&
350 \left(\begin{array}{l}
351 r_y\frac{\partial}{\partial r_z}f(r)-r_z\frac{\partial}{\partial r_y}f(r)\\
352 r_z\frac{\partial}{\partial r_x}f(r)-r_x\frac{\partial}{\partial r_z}f(r)\\
353 r_x\frac{\partial}{\partial r_y}f(r)-r_y\frac{\partial}{\partial r_x}f(r)
354 \end{array}\right)
355 \label{eq:solid:rxp1}
356 \end{eqnarray}
357 \begin{eqnarray}
358 r_i\frac{\partial}{\partial r_j}f(r)-r_j\frac{\partial}{\partial r_i}f(r)&=&
359 r_if'(r)\frac{\partial}{\partial r_j}(r_x^2+r_y^2+r_z^2)^{1/2}-
360 r_jf'(r)\frac{\partial}{\partial r_i}(r_x^2+r_y^2+r_z^2)^{1/2}\nonumber\\
361 &=&
362 r_if'(r)\frac{1}{2r}2r_j-r_jf'(r)\frac{1}{2r}2r_i=0
363 \label{eq:solid:rxp2}
364 \end{eqnarray}
365
366 If these projectors are considered to be centered around atom positions $\vec{\tau}_{\alpha n}$ of atoms $n$ of species $\alpha$, the variable $\vec{r}'$ in the previous equations is changed to $\vec{r}'_{\alpha n}=\vec{r}'-\vec{\tau}_{\alpha n}$, which implies
367 \begin{eqnarray}
368 r'&\rightarrow&r_{\alpha n}=|\vec{r}'-\vec{\tau}_{\alpha n}|\\
369 \Omega_{\vec{r}'}&\rightarrow&\Omega_{\vec{r'}-\vec{\tau}_{\alpha n}}\\
370 \delta V_l(r')&\rightarrow&\delta V_l(|\vec{r}'-\vec{\tau}_{\alpha n}|)\\
371 u_l(r')&\rightarrow&u_l(|\vec{r}'-\vec{\tau}_{\alpha n}|)\\
372 Y_{lm}(\Omega_{\vec{r}'})&\rightarrow&
373 Y_{lm}(\Omega_{\vec{r}'-\vec{\tau}_{\alpha n}})
374 \text{ .}
375 \end{eqnarray}
376 Within an iterative treatment on a real space grid consisting of $n_{\text{g}}$ grid points, the sum
377 \begin{equation}
378 \sum_{\vec{r}''_{\alpha n}}
379 \sum_{lm}-i\hbar(\vec{r}'_{\alpha n}\times \nabla_{\vec{r}'_{\alpha n}})
380 \braket{\vec{r}'_{\alpha n}}{\chi^{\text{SO}}_{lm}}
381 E^{\text{SO,KB}}_l\braket{\chi^{\text{SO}}_{lm}}{\vec{r}''_{\alpha n}}
382 \braket{\vec{r}''_{\alpha n}}{\Psi}
383 \qquad\forall\,\bra{\vec{r}'_{\alpha n}}
384 \end{equation}
385 to obtain all elements $\bra{\vec{r}'_{\alpha n}}$, involves $n_{\text{g}}^2$ evaluations of equation~\eqref{eq:solid:so_fin} for eeach atom, if the projectors are short-ranged, i.e.\  $\delta V_l=0$ outside a certain cut-off radius.
386 Thus, this method scales linearly with the number of atoms.
387
388 The $E_l^{\text{SO,KB}}$ are given by
389 \begin{equation}
390 E_l^{\text{SO,KB}}=
391 \frac{\braket{\delta V_lu_l}{u_l\delta V_l}}
392      {\bra{u_l}\delta V_l\ket{u_l}}=
393 \frac{\int_{r}\delta V^2_l(r)u^2_l(r)}r^2dr
394      {\int_{r'}\int_{r''}\braket{u_l}{r'}\bra{r'}\delta V_l
395 \ket{r''}\braket{r''}{u_l}}=
396 \end{equation}
397