Why approximations are needed¶
The Schrodinger equation can be solved analytically only for simple systems.
For atomic systems, the hydrogen atom represents the most complex case with an analytical solution.
For systems with multiple interacting electrons, such as the helium atom or other multi-electron systems, analytical solutions become intractable.
Approximation methods are therefore essential for finding solutions to complex quantum systems. These methods let us estimate solutions and evaluate how close the approximate results are to the true values.
The variational method provides a systematic approach for making approximations and a quantitative way to assess the convergence of predictions toward exact values. Its core idea is simple:
Begin with an educated guess by selecting a trial function to represent the wavefunction of the system.
Adjust the parameters of the trial function to minimize the energy, bringing the solution closer to the exact value.
Variational theorem¶
The variational method states that for any trial (approximate) function , the computed energy always comes out greater than or equal to the exact (true) ground-state energy.
When the trial wavefunction is not normalized, we divide by . The expression simplifies when the trial function is normalized beforehand, so that .
If the true ground-state wavefunction is inserted in place of the trial function, the equality is reached. For all other (trial) wavefunctions the energy expectation value on the left side will always be larger. The ratio is also called the Rayleigh ratio.
Consequences of the variational theorem¶
Ground-state energy is the lowest possible energy for the system.
By minimizing the energy functional we obtain the most accurate prediction for a given trial function.
More parameters give us more handles to vary, and hence more accurate solutions.
Worked examples¶
Solution:
Clearly this is not the correct ground-state wavefunction. First we check that it satisfies the boundary conditions: and (OK). The Hamiltonian for this problem is:
Plugging both the Hamiltonian and into the energy expression gives:
As indicated, this gives an upper limit for the ground-state energy .
Solution:
Plug the trial function into the energy expression, computing the energy as a function of the parameter :
Minimization with respect to the parameter gives the best value of the energy:
Finally, we plug this parameter back into the energy function to obtain the energy minimized with respect to , that is :
This is about 15% error. Not too bad for a start. Adding more parameters and functions will reduce the error.
The helium atom is tough¶
The Schrodinger equation for the helium atom is already extremely complicated mathematically. No analytic solution to this equation has been found. However, with certain approximations, useful results can be obtained. The Hamiltonian for the He atom can be written as:
Here is the Laplacian for the coordinates of electron 1 and for electron 2; is the distance of electron 1 from the nucleus, the distance of electron 2 from the nucleus, and the distance between electrons 1 and 2. For the He atom .
Independent-electron approximation¶
Ignore the tough term containing . In this case the Hamiltonian becomes a sum of two hydrogen-like atoms:
Because the Hamiltonian is a sum of two independent parts, the Schrodinger equation separates into two (each a hydrogen-like atom equation):
The total energy is a sum of and , and the total wavefunction is a product of and . Based on our previous wavefunction table for hydrogen-like atoms:
Consequences of the independent-electron approximation¶
For a ground-state He atom both electrons reside in the lowest-energy orbital, so the total wavefunction is . The energy from this approximation is not sufficiently accurate (it misses electron-electron repulsion), but the wavefunction is useful for qualitative analysis. The variational principle gives a systematic way to assess how good our approximation is.
The exact ground-state energy has been found (by very extensive analytic and numerical calculations) to be -79.0 eV. Using the approximate wavefunction, we can calculate the expectation value of the energy. This yields -74.8 eV, so the error in energy for this wavefunction is 5.2 eV. Note that the approximate value is, in accordance with the variational principle, higher than the true energy.
A better approximation¶
We take the wavefunction from the previous step and use the nuclear charge as a variational parameter. The variational principle states that minimizing the energy expectation value with respect to should approach the true value from above (but will not reach it).
The obtained value of is less than the true (= 2). This can be understood in terms of electrons shielding the nucleus from each other, giving a reduced effective nuclear charge.
To minimize this expression we differentiate with respect to and set it to zero (the extremum here is clearly a minimum):
This gives and eV (compared with -74.8 eV before and -79.0 eV exact). This result could be improved by adding more terms and variables to the trial wavefunction. For example, higher hydrogen-like orbitals with appropriate variational coefficients would yield a much better result.
The linear variational method¶
How does the variational method scale to harder problems in practice? If we cannot solve for exactly, we can expand the wavefunction in a convenient basis set (a set of functions indexed by , like a Fourier series) and tune the expansion to get as close as possible to the true energy and wavefunction.
With an infinite number of basis functions we could in principle approximate any function and obtain a nearly exact numerical solution. Computationally this is not feasible, so we truncate the expansion to a finite number of basis functions and minimize the energy with respect to the coefficients .
Using a linear combination of trial functions transforms a difficult quantum-mechanics problem into a more tractable linear algebra task: instead of solving differential equations for eigenfunctions and eigenvalues, we solve for the eigenvalues and eigenvectors of a matrix.
A two-function example¶
We illustrate the idea and the general matrix construction with a simple example of two basis functions ():
There is no need to define these functions explicitly yet, so we leave them as generic functions and . The energy is:
Expanding the brackets, the numerator and denominator are built from two kinds of matrix elements, the Hamiltonian matrix elements and the overlap matrix elements :
so that
Minimization leads to a generalized eigenvalue problem¶
Since for any trial function , we minimize by varying the parameters and .
Minimizing with respect to means differentiating with respect to and setting the derivative to zero:
Minimizing with respect to gives:
These two coupled linear equations can be written compactly as a matrix equation:
A nontrivial solution exists only when the secular determinant vanishes, . Solving this determinant gives the variational energies. For an orthonormal basis () this reduces to the ordinary eigenvalue problem .
Worked example: particle in a box by linear variation
Consider a free particle in 1D bound to , with Hamiltonian . Although we can solve this analytically, it is instructive to see the variational solution. We approximate as an expansion in two basis functions and :
Computing the matrix elements (by integrating each and over ) gives:
Solving the generalized eigenvalue problem (with ) gives a lowest energy of
which is essentially the exact analytic value . The variational solution captures both the energy and the shape of the ground-state wavefunction. See the demo notebooks at the end of this chapter for the full calculation and plots.