Summary: Whatever potential we are considering, we can always obtain an upper bound on the ground-state energy.
Suppose we know the Hamiltonian of a bound system but don’t have any idea what the energy of the ground state is, or the wave function. The variational principle states that if we simply guess the wave function, the expectation value of the Hamiltonian in that wave function will be greater than the true ground-state energy:
This initially surprising result is more obvious if we consider expanding the (normalised) in the true energy eigenstates , which gives . Since all the probabilities are non-negative, and all the greater than or equal to , this is obviously not less than .
It is also clear that the better the guess (in the sense of maximising the overlap with the true ground state) the lower the energy bound, till successively better guesses converge on the true result.
As a very simple example, consider the infinite square well with and otherwise. As a trial function, we use and otherwise. Then
This is spectacularly good! Obviously it helped that our trial wave function looked a lot like what we’d expect of the true solution - symmetric about the midpoint, obeying the boundary conditions, no nodes....
In general, we will do better if we have an adjustable parameter, because then we can find the value which minimises our upper bound. So we could try (with our previous guess corresponding to ). Letting Mathematica do the dirty work, we get an energy bound which is a function of , which takes its minimum value of at . Not much room for further improvement here!
Above we have plotted, on the left, the true and approximate wave functions (except that the true one is hidden under the second approximation, given in blue) and on the right, the deviations of the approximate wave functions from the true one (except that for the second approximation the deviation has been multiplied by 5 to render it visible!) This illustrates a general principle though: the wave function does have deviations from the true one on the part-per-mil scale, while the energy is good to 1 part in . This is because the error in the energy is proportional to the coefficients squared of the admixture of “wrong” states, whereas the error in the wave function is linear in them.
Another example, for which the analytic solution is not known, is the quartic potential, . Here a Gaussian trial wave function gives an upper bound for the ground energy state of in units of . (The value obtained from numerical solution of the equation is ).