Linearizing the problem¶
Basis sets and coefficients
How does linearization help us in practice? If we can not exactly solve and have an expression for then we can expand the wavefunction in some convenient basis set (e.g bunch of functions indexed by n, like fourier series) and attempt to make it get as closer to realistic energies and wavefunction as possible.
If we have infinite number of basis functions in pricniple that should approximate any funciton and we can get nearly exact numerical solution. However computationally this is not feasible.
Truncating this expansion at any finite leads to an approximate solution. The idea is to keep just the optimal number of basis functions.
The variational principle tells us is that we can minimize the energy with respect to variational paramters and still have .
Gaussians are commonly used as basis sets
Gaussian-type orbitals (GTOs) are a standard example because they make integrals analytically tractable. Consider a simple 1s-like primitive Gaussian:
To represent a more flexible radial shape, we expand the true orbital as a linear combination of Gaussians:
Even though a hydrogenic 1s orbital behaves as , which is not Gaussian, we can approximate its shape remarkably well using only 3 to 6 Gaussians. This is the idea behind the STO-nG basis sets.
Smallest example¶
We will illustrate this idea and the general matrix construction with a simple example of two basis functions ()
There is currently no need to define these functions explicitly so we will leave them as generic functions and . We now solve for the energy
Express problem in terms of coefficients and matrix elements
Let’s investigate the numerator and denomenator separately. We start with the numerator
We note that are real and thus and thus
Finally we recognize that since is Hermitian, we have yielding
We will refer to the integrals above as matrix elements with, generically, . We now consider the denominator of the energy equation above and we utilize similar algebra for the numerator to get
where is another matrix element but this time referred to as the basis function overlap. Now we have that the energy of the trial wavefunction is
Hamiltonian matrix element expressed in basis of
S matrix element or overlap integral expressed in basis of . This one measures how similiar is to .
Eigenvalue Problem¶
Since for any trial function , we can minimize the energy by varying the parameters and .
To minimize with respect to , we differentiate with respect to and set the derivative equal to zero:
Similarly, minimizing with respect to gives:
These two coupled linear equations can be expressed compactly as a matrix equation:
The matrix on the left can be rewritten as the difference between two matrices:
Rearranging, we can write:
Moving S matrix to left hand side we end up with eigenvector eigenvalue problem:
Solving a matrix eigenvalue eigenvector problem
In the equation
represents the identity matrix. Its role in this context is essential to express the equation as a standard eigenvalue problem.
Eigenvalue Problem Form:
In linear algebra, a standard eigenvalue problem is written as:
where:
is a square matrix,
is a scalar eigenvalue,
is the identity matrix, and
is the corresponding eigenvector.
The identity matrix ensures that scales the eigenvector without altering its direction. The eigenvalue problem is about finding the values of and their associated .
Connecting to :
Here, acts as the operator in the standard eigenvalue problem.
is a matrix resulting from left-multiplying by the inverse of .
represents the eigenvector.
is the eigenvalue (corresponding to the energy in the quantum mechanical system).
The identity matrix is explicitly included to highlight that is a scalar multiplying the vector . This ensures that the left-hand side (a matrix operation) matches the right-hand side (a scaled vector).
Why Appears:
Initially, we had:
which cannot directly be interpreted as an eigenvalue problem because of the presence of (the overlap matrix). To transform this into a standard form, we pre-multiply both sides by :
Since , this simplifies to:
How to Interpret This as an Eigenvalue Problem:
The equation now has the form of a standard eigenvalue problem:where:
is the effective matrix to diagonalize,
are the eigenvalues, corresponding to the energy levels,
are the eigenvectors, containing the coefficients of the trial wavefunctions.
Physical Interpretation:
Solving the eigenvalue problem gives the approximate energies () of the quantum system as eigenvalues and the corresponding variational parameters () as eigenvectors. The identity matrix is crucial for preserving the standard form of the eigenvalue problem, ensuring proper mathematical and physical interpretation.
Example: Particle in a Box¶
Let’s consider a free particle in 1D bounded to . The Hamiltonian for such a system is simply the kinetic energy operator
While we can have solved this problem analytically, it will be instructive to see how the variational solution works. We start by approximating as an expansion in two basis functions and
The and are the variational parameters to find them we first construct the Hamiltonian matrix, , and the basis function overlap matrix, .
We will then compute and diagonlize the matrix.
Computing the matrix elements
In this problem, we have two basis functions
and
now the task of computing matrix elements comes down to forming integrals with these two and carrying out integration
where the last equality holds because the second derivative of with respect to x is zero. Let’s now investigate each of these integrals
Similarly we should get
Thus
We can now complete the Hamiltonian matrix, ,
Similarily one could carry out all the integrals for
We have obtaind all matrix elements in previous section and are now ready to obtain eigenvalues
So we see that the smallest energy in this basis is
How does this compare to the analytic solution? Plugging in for the ground state, , and we get
So we can see that our variational solution worked out well for the energy. Now how about the wavefunction?