How Is a Variable Removed by Integration, and What Survives?
An -electron wavefunction depends on positions and spins. The electron density depends on three numbers. The route between them is one operation, repeated: integrate over what is not asked about.
1. Two Variables, One at a Time
For a function continuous on a closed bounded region, or absolutely integrable, Fubini's theorem says that a double integral can be done as two single integrals, in either order. The inner integral removes one variable and returns a function of the other:
Worked example: on the triangle . The limits of the inner integral depend on the outer variable, so they change with the order.
- Vertical slices, inner integral: .
- Outer integral: .
- Horizontal slices, inner integral: .
- Outer integral: . The two orders agree.
2. Marginals: What Is Kept and What Is Lost
If integrates to one, the inner integral is the marginal density of . Any average of a function of alone needs only :
- Take on the unit square. Check normalization: .
- Marginal: .
- Average: .
- Information lost: and both have and , because . The correlation between and is not recoverable from the marginals.
3. The Electron Density as a Marginal
Write for space and spin, and let mean . The probability density for all electrons is , normalized to one.
- Probability of electron 1 near , whatever its spin and wherever the others are: .
- Antisymmetry gives unchanged when two labels are swapped, so for every .
- The density of electrons of any label is the sum .
Worked Example: A Closed-Shell Pair
- , with .
- Sum over both spins: .
- Integrate over : .
- Multiply by : .
Worked Example: Two Electrons of the Same Spin
- , with real and orthonormal, and both spins .
- Square: .
- Integrate over : , , and removes the cross term. So .
- Multiply by 2: .
4. Keep Two Coordinates: The Pair Density
Stopping one integration earlier keeps the correlation, with the same normalization as in reduced density matrices and cumulants:
For the same-spin pair, , which vanishes at . Take the two lowest states of a box of unit length, and .
- Mean number in the left half : .
- Overlaps restricted to : , and .
- Probability that both are in : , equal to 0.069873 (midpoint quadrature: 0.069873).
- By the left-right symmetry of , the probability of neither is also . The number in is 0, 1 or 2 with mean 1, so its variance is , equal to 0.1397. The density gives the mean; the variance needs the pair density.
5. Integrating Out a Direction of Space: Formaldehyde
The same operation works on the three coordinates of itself. Integrating the density perpendicular to a molecular plane gives a column density, . It is a different function from the slice that the molecular graph is usually drawn on.
- libqtaim finds 4 attractors, 3 bond critical points, 0 ring and 0 cage points of the three-dimensional ; the alternating sum is 1.
- Fubini checks the marginal: . The two quadratures give 16.000008 and 16.000000.
- Along the C–O axis the minimum of the marginal lies at −0.481 bohr, while the minimum of , the bond critical point, lies at −0.397 bohr (libqtaim: −0.3972). Integrating a direction away moves, and in general can create or destroy, critical points, so topology is analyzed on itself.
6. Gaussian Integrating-Out
One family of integrals stays in its own family after a variable is removed. Take with and .
- Collect the terms containing into a square: (see completing the square).
- Substitute into the exponent: .
- Shift , : .
7. Effective Potentials: What Is Left Behind
Read the exponent as minus a quadratic energy . Setting gives and , the same exponent as the integral. For a quadratic dependence with a constant , integrating a variable out and eliminating it at its stationary point give the same effective function of what remains.
The Electrostatic Potential in ℒBO
In the chemical Lagrangian density the Coulomb field enters locally as , with the microscopic net charge density (nuclei minus electrons, configuration by configuration).
- Vary : .
- Integrate by parts, with the surface term at infinity vanishing: , so .
- On the solution, .
- Add the source term: . This is minus the Coulomb energy. The infinite self-interaction of each point particle is dropped by convention.
Two Things That Are Different
- Clamped nuclei are not integrated out. Their positions are held as parameters. In the Born–Oppenheimer step it is the electronic problem that is solved at each fixed geometry, leaving a function for the nuclei.
- Transverse photons can also be removed in principle, because the field is quadratic. The result couples currents at different times (Feynman 1950). It is mentioned here as an idea; no calculation on this page includes it.
8. Why an Atom Integrates ρ Over Ω
An atom in a molecule is a region of ordinary space. Its population restricts one electron to and leaves all the others unrestricted:
Any partition of space makes the add to . The zero-flux atom, on its surface, has a property that an arbitrary region lacks: its two kinetic energies agree. (This is necessary for such an atom but does not by itself identify one: other special surfaces can have zero net flux by cancellation.) The two kinetic densities differ by , so by Gauss's theorem
Here denotes the on-shell electronic part, integrated over all other electrons. The variational argument for this surface is in calculus of variations.
| Atom | N(Ω), coarse | N(Ω), fine | G(Ω), fine | L(Ω), coarse | L(Ω), fine |
|---|---|---|---|---|---|
| O | 9.28208 | 9.28207 | 75.5502 | −5.0 × 10−5 | −4.9 × 10−5 |
| C | 4.77921 | 4.77935 | 36.9673 | 1.3 × 10−4 | −8.9 × 10−5 |
| H | 0.96933 | 0.96933 | 0.6030 | 4.7 × 10−6 | 5.0 × 10−6 |
| H | 0.96933 | 0.96933 | 0.6030 | 4.7 × 10−6 | 5.0 × 10−6 |
The sum of minus is −4.7 × 10−5 on the coarse angular grid (48, 96) and 8.6 × 10−5 on the fine grid (72, 144); the radial rule of the library's basin integrator is adaptive. The nonzero values measure quadrature error. SCF energy: −113.916561 hartree; largest relative difference between the libqtaim and PySCF densities at 200 test points, each difference divided by the larger of the reference density and 10−3: 9.4 × 10−15.
9. Exercises
- Reverse the order of and evaluate it.
Answer
The region is , so the integral is .
- Show that .
Answer
Integrate the sum rule: .
- For the box pair, evaluate .
Answer
for every .
- Integrate out of .
Answer
, giving .
- R. F. W. Bader, Atoms in Molecules: A Quantum Theory (Oxford University Press, 1990) [record].
- R. McWeeny, Rev. Mod. Phys. 32, 335 (1960) [record].
- R. P. Feynman, Phys. Rev. 80, 440 (1950) [record].