28. The Variational Method
Introduction¶
Very few realistic problems in quantum mechanics are exactly solvable, so approximation methods are a virtual necessity for understanding the physics of real systems. In 23. Bound-State Perturbation Theory\ we considered bound state perturbation theory, which allows us to find the discrete energy eigenvalues and eigenstates of a system that is close to a solvable system. But what do we do when there is no exactly solvable system close to a given system, as often happens in practice? One answer is the variational method, which we discuss in these notes.
The variational method is particularly useful for finding approximations to the ground state energy and eigenfunction of a system. It is harder to use for excited states, with some exceptions that we will mention in this set of notes. Nevertheless, the variational method is a vital one in the repertoire of techniques useful in quantum mechanics.
A Theorem on Variational Estimates to the Ground State Energy¶
The variational method is based on a certain theorem regarding variational estimates to the ground state energy. As we state and prove the theorem, we will make some remarks indicating how it is used in practice.
Let be a Hamiltonian which is assumed to have some bound states. Let the discrete (bound state) energy eigenvalues be ordered . The eigenvalues are allowed to be degenerate. There may also be a continuous spectrum above some energy, as often happens in practice.
Let be any normalizable state. We do not assume it is normalized because unnormalized states are convenient in practice. Then the theorem states that
That is, the expectation value of energy with respect to the state is an upper bound to the ground state energy.
The theorem does not tell us how far above the ground state energy the left hand side of the inequality (1) is, so it would not seem to be of much help in estimating the ground state energy. It would be better if we also had a lower bound, so would be bracketed between two numbers. There are methods for finding lower bounds to energy levels, but they require some extra information and extra work. See Ballentine, Quantum Mechanics, for more details. In practice the state is chosen to be an approximation to the ground state, based on physical intuition or other criteria, and the upper bound on that is obtained is often quite useful.
To prove the theorem let be a normalized version of the state ,
so that
and
Now let us decompose into a component lying in the ground state eigenspace and a component orthogonal to this eigenspace. We write the decomposition as
where is a normalized state lying in the ground eigenspace,
where is a complex number, and where is the component orthogonal to the ground state eigenspace, so that
If the ground state is nondegenerate, then can be taken to be the normalized ground state itself. Then by squaring (5) and using (7), we have
since the cross terms vanish.
Now (4) becomes
where again the cross terms cancel. We add and subtract from in the second term, using (8), to obtain
The operator is a nonnegative definite operator (see (67), so the second term is . This is because the eigenvalues of are just those of , shifted downward by , that is, they are , which are all nonnegative. This proves (1).
Notice that if the wave function is a good approximation to the ground state wave function, so that is small, then the error in the energy (the second term in (10) is of second order in . Thus, rather crude approximations to the ground state wave function often give rather good estimates of the ground state energy.
Families of Trial Wave Functions¶
If we compute the expectation value of the energy with respect to a family of wave functions then all the answers are upper bounds to the true ground state energy, and the lowest one must be the closest. This leads to a criterion for the best estimate for the ground state wave function: it is the one that minimizes the energy. We call the members of the family “trial wave functions.”
In practice we often choose a continuous family of trial wave functions. Let be a continuous parameter, and let us write the family as . Then we define a function of , really an energy function,
We minimize this by finding the root of
so that the best estimate to the ground state wave function out of the family is and the best estimate for the ground state energy is . Of course we must check that the root of (12) is actually a minimum. This procedure is easily generalized to the case of multiple parameters, , for which we find the roots of (the critical points of the function ).
We note that a critical point of the function is not necessarily a minimum. It could be a maximum, a saddle point, or something more complicated. The choices are partially classified by the second derivative matrix, , evaluated at the critical point. If this matrix has all positive eigenvalues, then the critical point is a minimum; if it has all negative eigenvalues, then the critical point is a maximum; if some eigenvalues are positive and some negative, then the critical point is a saddle; and if some eigenvalues vanish, then the second derivative matrix alone is not sufficient to classify the critical point.
A One-Dimensional Example¶
As an example suppose we wish to find the ground state energy and wave function of a particle in one dimension moving in the well . We take , so the Hamiltonian is
This problem can be solved exactly in terms of Airy functions, which shows that the ground state energy is , where is the first negative root (moving away from zero) of . This gives , approximately.
As a crude trial wave function let us use the Gaussian,
where is the variational parameter. Actually we know that Gaussians are the exact ground state wave functions of harmonic oscillators, not the potential in (13). But at least the trial wave function and the exact ground state wave function have no nodes (see Interleaving of the Nodes), so they have that in common.
The calculation is straightforward. The normalization integral is
the integral for the kinetic energy is
and that for the potential energy is
Altogether, the function we wish to minimize is
We differentiate, finding
which has the root
This gives the estimate for the ground state energy,
This compares favorably with (and is an upper bound to) the exact ground state energy of . Notice how good the estimate of the energy is, in spite of the crudeness of the trial wave function.
Lagrange Multipliers for Normalization¶
In practice the normalization denominators in (11) are often inconvenient. One possibility is simply to normalize each member of the set of trial wave functions so those denominators are not present. But often it is easier to enforce normalization by using Lagrange multipliers. This means that out of some family of trial wave functions , of which only a subset is normalized, we minimize the expectation value of the Hamiltonian with respect to the normalized subset.
To use the Lagrange multiplier method, we introduce the function,
and then require
The Lagrange multiplier is in effect another variational parameter. The second equation implies normalization.
As an example of the Lagrange multiplier method, let be any orthonormal basis (not usually the eigenbasis of , since we don’t know what that is). For example, might be a one-dimensional oscillator in a potential we cannot handle easily, and might be the eigenbasis of the harmonic oscillator. Then the unknown ground state can be expanded in the orthonormal basis,
There is no approximation in this, but we do not know what the coefficients are.
But in practice, for example, on computers, we can only handle a finite basis, so we write
where is finite, and we regard the coefficients , not as the exact expansion coefficients in the given basis, but rather as parameters of a trial wave function. Then the function of (22) becomes
The coefficients are complex, so we want to vary with respect to their real and imaginary parts. An equivalent procedure is to vary with respect to and , treated as independent complex variables. This gives
The second equation is the complex conjugate of the first equation and gives no additional information. The first equation shows that the Lagrange multiplier is the eigenvalue of the truncated, matrix of matrix elements of with respect to the given basis, while the coefficients are the eigenvectors of this matrix. The third equation shows that the eigenvectors are normalized. Let us denote the eigenvalues of this matrix by , ordered so that . We see that the eigenvalues of truncated matrix and the corresponding, normalized eigenvectors are critical points of the energy function (26). The minimum eigenvalue and corresponding eigenvector are a true minimum of the functional.
When finding the energy eigenvalues of a Hamiltonian on a computer it is natural to truncate an infinite basis set to some finite size and to diagonalize that matrix, because there is little choice. It is also natural to hope that the eigenvalues of the truncated matrix will be good approximations to the exact eigenvalues of the Hamiltonian, and to hope that they will converge to those exact eigenvalues as . What the theorem proved in A Theorem on Variational Estimates to the Ground State Energy adds to this is the fact that the minimum eigenvalue of the truncated matrix, , is actually an upper bound to the true ground state energy, . Moreover, if we increase the size of the truncation, this minimum eigenvalue can only decrease, thereby coming closer to the true eigenvalue. This is because when we increase we are considering a larger family of trial wave functions that includes all the trial wave functions at a lower level of truncation. The minimum energy of the larger set must be less than or equal to the minimum energy of the smaller set contained in it.
The variational parameters in the example (25) can be regarded as linear parameters, that is, coefficients in a linear combination of wave functions, while the parameter in the example (14) can be regarded as a nonlinear parameter, because the trial wave function depends nonlinearly on it. The parameters of trial wave functions can be of either kind, and in general the set of trial wave functions is not a vector subspace of the Hilbert space but rather some other type of subset.
The Hylleraas-Undheim Theorem¶
In the case of purely linear parameters, as in the trial wavefunction (25), a theorem proved by Hylleraas and Undheim goes considerably beyond the simple theorem proved in A Theorem on Variational Estimates to the Ground State Energy. In the following it is convenient to reinterpret the notation , by indicating degeneracies by repetitions of the values for successive . For example, if the ground state were 2-fold degenerate and the first excited state nondegenerate, then we would have , etc. Then it turns out that not only is an upper bound to , but in fact for all . That is, all the eigenvalues of the truncated matrix are upper bounds to the corresponding exact eigenvalues.
Moreover, if we consider two different truncations of the exact expansion (24), one with the first basis states and the second with the first basis states, with , then it can be shown that
for , where the dimension of the matrix is indicated in parentheses. In particular, if , then
for . In other words, the eigenvalues of the truncated matrix of size and that of size interleave each other.
In (24) we imagined that the Hilbert space was infinite-dimensional, as it often is in practice. But if it has dimension where is finite, then the first basis states span the whole space, and the eigenvalues of the matrix of the Hamiltonian are the exact eigenvalues. In that case, (30) becomes (for a truncation ),
for , and we get not only upper bounds but also lower bounds on some of the exact energies (but still only an upper bound for the ground state energy).
Variational Estimates for the Excited States¶
If the family of trial wave function contains any nonlinear parameters, then in general we obtain only an upper bound to the ground state energy, and no bounds at all, either upper or lower, on the excited state energies. Nevertheless, there are circumstances when we can obtain rigorous upper bounds on some excited state energies, even with nonlinear variational parameters. Suppose for example that the ground state (assumed nondegenerate, for simplicity) were exactly known. Then by choosing trial wave functions that are orthogonal to the exact ground state, , we would obtain an upper bound to the first excited state energy . This is easily proved by same methods used to prove (1). Unfortunately, if we are using the variational method, we probably do not know what the ground state wave function is. Of course we can find an estimate to it by using the variational method, but making our trial wave functions orthogonal to an estimate of the ground state is not good enough to give us a bound on the excited states. So this idea is not very useful in practice.
Sometimes however it is possible to find trial wave functions that are orthogonal to the exact ground state, without knowing what that ground state is. Suppose for example we have a one-dimensional potential that is invariant under parity, . Then we know that the ground state is even under parity and the first excited state is odd. By choosing a family of trial wave functions that are odd under parity, they are guaranteed to be orthogonal to the ground state, and the variational method with this set will give an upper bound to the first excited state energy .
More generally in any system with an exact symmetry the variational method can be used to obtain an upper bound to the minimum energy level in each symmetry class, for example, in each set of wave functions with a given value , in a system with rotational invariance (where is the quantum number of the total angular momentum of the system).
Problems¶
Problem 1.
I borrowed this problem from Professor Eugene Commins. First some background. The Coulomb potential gives to an infinite number of bound states, because it is a long-range potential. Other, short range, potentials have only a finite number of bound states. In a 3-dimensional problem, the number of bound states can range from zero to infinity. If the potential is weak enough and short range enough, there may not be any bound states at all. In one dimension, however, a potential which is overall attractive, in a certain sense, always possesses at least one bound state, even if it is very weak.
Consider a 1-dimensional problem, with Hamiltonian
where . Assume that vanishes for . For , the potential is allowed to do almost anything (it may be positive in some places, and negative in others). Write down an expression for the expectation value of the energy for the Gaussian wave function,
and evaluate the integrals you can evaluate. Use the result to show that a bound state exists if the potential satisfies
We may call such a potential “overall attractive.”
Now try the same trick in 3 dimensions and show that it does not work. Assume for , and use the wave function
Problem 2.
Consider a central force problem in three dimensions, with potential . Suppose that it has at least one bound state. Use the variational principle to prove that the ground state is an -wave.
Problem 3.
Consider a system with a nondegenerate ground state. According to nondegenerate perturbation theory (see Eq.~(\eqr\pertth.23)), the second order correction to the ground state energy is always . Does this imply that the first order estimate to the energy, , is an upper bound to the ground state energy? No, because we have no control over the higher order terms of the series, which in any case may not converge.
(a) Find a proof that the first order estimate to the ground state energy is actually an upper bound to the true ground state energy.
(b) Now allow the ground state to be degenerate. When we turn on the perturbation }, the ground state will in general split. Show that the estimate in first order perturbation theory for the lowest of these levels is a rigorous upper bound to the ground state energy.