What Does Completing the Square Buy in Quantum Chemistry?
A linear term added to a quadratic one does not change its shape. It moves the centre and lowers the value there. That one rewriting evaluates Gaussian integrals, multiplies Gaussian basis functions, solves an oscillator in a field, and eliminates the electrostatic potential.
1. One Variable
- Start with , . Factor from the terms with : .
- Add and subtract the square of half the linear coefficient: .
- Multiply back: .
- Read off, for : the minimum is at with value . Setting gives the quadratic formula, .
2. Many Variables
Let and be real vectors and a real symmetric positive definite matrix. Then exists and is symmetric.
- Guess the form and expand: . The two cross terms are equal because .
- Match the linear term with : , so .
- Match the constant with zero: .
One Block at a Time
- Split with .
- Complete the square in : .
- The matrix left for , , is the Schur complement. It is what remains after integrating out.
3. The Gaussian Integral
- Let . Square it and use polar coordinates: .
- Rotate to the eigenvectors of , with and eigenvalues . The integral factorizes: .
- Add the linear term, complete the square, and shift the integration variable by .
Numerical check for the and above: a grid sum gives 5.0627218587, the formula gives 5.0627218587.
4. The Gaussian Product Theorem
Take two spherical Gaussians, and , with .
- Add the exponents and expand: .
- Complete the square with and : the expression is .
- Simplify the constant: . Divide by .
This is why Gaussian basis functions are used (Boys 1950): a product on two centres becomes a function on one centre, so overlap, kinetic and Coulomb integrals reduce to closed forms and the one-variable Boys function. The price is the shape at a point nucleus, where a finite sum of Gaussians has no cusp; see Gaussian and exponential bases.
5. A Harmonic Oscillator Dressed by a Field
In atomic units, a unit-mass particle of charge in a uniform static field along has the added potential . For an electron, :
- Complete the square: .
- Shift . The kinetic term is unchanged, since .
- The spectrum is the free one, lowered: , with .
- The mean position is , so the dipole and the polarizability is .
6. The Same Field on a Molecule: H2 and Its Atoms
A molecule is not quadratic, so its density is not moved rigidly. In ℒchem a static external field enters through , with the net charge density of nuclei and electrons, and QTAIM reads the response atom by atom.
The dipole along the axis splits exactly into a charge-transfer part, , and an atomic polarization part, , with and .
| F | bond point z | N(lower H) | N(upper H) | charge transfer | atomic polarization | sum | PySCF dipole |
|---|---|---|---|---|---|---|---|
| 0 | 0.00000 | 1.00000 | 1.00000 | 0.00000 | 0.00000 | 0.00000 | 0.00000 |
| 0.02 | 0.02039 | 1.08478 | 0.91523 | 0.11869 | 0.01424 | 0.13292 | 0.13293 |
| 0.05 | 0.05095 | 1.20959 | 0.79031 | 0.29350 | 0.03976 | 0.33326 | 0.33318 |
- at : −1.0 × 10−4. of the two atoms: 8.2 × 10−5 and 1.9 × 10−6.
- For small fields , the many-electron counterpart of the oscillator result in section 5. From the SCF energies at , the second difference gives 6.6447; the dipole at divided by gives 6.6464.
7. Eliminating φ: The Square in ℒchem
The electrostatic part of ℒBO is , with the microscopic net charge density. Define , so that .
- Expand the square: .
- Integrate the cross term by parts: .
- The last term, by the same rule: .
The first term vanishes at and the second is minus the Coulomb energy, with the self-interaction of point particles dropped by convention. Kept local instead of integrated over all space, the same field terms are where the local three-dimensional IQA energy of an atom comes from.
Hubbard–Stratonovich: The Identity Read Backwards
- For and a number , complete the square in : . Integrating gives .
- Replace by : .
- A repulsive interaction has the weight in imaginary time, so its auxiliary field couples with an imaginary factor. This matches the line above: the field-theory weight built from converges only on an imaginary contour for . In real time, stationary elimination, as in the first steps of this section, gives the result directly.
A Displaced Photon Mode
- One field mode of frequency coupled to a Hermitian matter quantity that commutes with : .
- Complete the square: .
- If is a fixed number, obeys : the mode is displaced and the energy lowered. If is an operator that does not commute with the rest of the matter Hamiltonian, the displacement also dresses that part, and the problem is not solved by this step.
The photon lines are background for extending ℒchem; no quantized field is computed on this page.
8. Exercises
- Complete the square in .
Answer
.
- Where is the product of two Gaussians of equal exponent centred?
Answer
At the midpoint, , with .
- Evaluate .
Answer
, so the integral is .
- For the oscillator, find the work done by switching the field on slowly in the ground state.
Answer
It equals the energy change, .
- S. F. Boys, Proc. R. Soc. Lond. A 200, 542 (1950) [record].
- J. Hubbard, Phys. Rev. Lett. 3, 77 (1959) [record].
- R. F. W. Bader, Atoms in Molecules: A Quantum Theory (Oxford University Press, 1990) [record].