Linear Variation and the Secular Equations
Suppose you want the ground-state energy of an electron trapped by some messy potential. Examples include a butadiene π system or a transition-metal complex. These are systems without a clean analytic solution. You cannot solve the Schrödinger equation exactly. Instead, you can guess an approximate wavefunction. The mathematics then tells you how good the guess is. The single most powerful way to build that guess is this: mix a handful of known, chemically sensible functions. These include atomic orbitals, Gaussians, and hydrogenic states. You combine them with adjustable coefficients. Then you ask which mixture the The Variational Method with Trial Functions prefers. That question, phrased carefully, turns into a small piece of linear algebra. It becomes a matrix eigenvalue problem called the secular equations. This matters because of something important. Almost every practical quantum-chemical method relies on this same idea. Hückel theory, extended Hückel, Hartree–Fock, configuration interaction, and density-functional theory in its Kohn–Sham form all qualify. Underneath the software, each is exactly this construction repeated at larger scale. A "basis set" is a list of trial functions. The "energies" that a quantum chemistry program prints out are eigenvalues of a secular determinant. The "molecular orbital coefficients" are the eigenvectors. Understanding the linear variation method by hand is therefore useful. Doing so for two or three basis functions is not a toy exercise. It is the exact same mathematics that a million-atom DFT calculation performs. It just happens at a scale you can check with pencil and paper. The big picture is this: instead of varying a continuous parameter in a trial function, we do something different. In the simple variational method, you might vary an orbital exponent, for example. Here, instead, we vary a finite set of linear coefficients. These coefficients multiply fixed basis functions. The trial energy is a ratio of quadratic forms in these coefficients. Minimizing it with respect to each coefficient produces a set of equations. These are linear homogeneous equations called the secular equations. Their nontrivial solutions require a determinant to vanish. That determinant condition is a polynomial in the energy. Its roots are variational upper bounds to the true eigenvalues. These roots are ordered from lowest to highest. This article builds the linear variation method from the ground up. It covers the trial function ansatz and the minimization that produces the secular equations. It also covers the generalized eigenvalue problem in matrix form. Every quantity that appears is interpreted along the way. These include overlap integrals, Hamiltonian matrix elements, and the resulting energies and coefficients. It sets up the practical evaluation of those integrals, without computing them in detail. The same is true for the numerical solution of the determinant. These are natural next steps once the structure here is in hand.
- A linear trial function mixes fixed basis functions with variable coefficients .
- Minimizing over the gives a set of linear homogeneous equations: the secular equations.
- In matrix form these read , a generalized eigenvalue problem built from the Hamiltonian matrix and overlap matrix .
- Nontrivial coefficient vectors exist only when : the secular determinant.
- For basis functions this determinant is a degree- polynomial in , giving variational energies, each an upper bound to the corresponding true eigenvalue.
- If the basis is orthonormal, and the problem reduces to the ordinary eigenvalue equation .
- Key idea: minimizing the variational energy of a linear combination of basis functions is algebraically identical to diagonalizing the Hamiltonian matrix in that basis.
Where this lives today
Every electronic structure package in routine use — Gaussian, ORCA, Psi4, NWChem, Q-Chem — solves a secular equation of exactly this type at its core, just with built from full electron–electron repulsion integrals (Hartree–Fock or Kohn–Sham operators) rather than empirical Hückel parameters, and with basis sets of hundreds or thousands of Gaussian functions rather than three orbitals. The Overlap and Hamiltonian Matrix Elements that populate and in these calculations are computed analytically for Gaussian basis functions, but the linear-algebra step that follows — Solving the Secular Determinant via matrix diagonalization — is the identical generalized eigenvalue problem derived here. Simple Hückel theory itself, despite its crudeness, remains in active pedagogical and even research use for rapid, back-of-envelope predictions about π-conjugated systems: estimating relative stabilities of polyene and polycyclic aromatic isomers, rationalizing regiochemistry in electrophilic aromatic substitution through frontier-orbital coefficients, and teaching the origin of aromaticity and antiaromaticity through the pattern of bonding/nonbonding/antibonding roots. Extended Hückel theory, a step up in sophistication that includes all valence orbitals (not just π electrons), is still used in solid-state and materials chemistry for qualitative band-structure reasoning in extended systems, again via the same secular-determinant construction scaled up to a much larger basis. In drug design and materials science, configuration interaction and multireference methods build their many-electron wavefunctions as linear combinations of Slater determinants — a direct many-electron analog of the linear combination of one-electron basis functions treated here — and diagonalize the resulting CI Hamiltonian matrix by the same secular-equation logic to obtain ground and excited electronic states relevant to photochemistry, chromophore design, and reaction mechanism studies. Even machine-learning-accelerated quantum chemistry, which increasingly predicts or the electronic density directly, still typically returns to a secular-equation solve as the final step connecting a learned Hamiltonian to physically interpretable orbital energies and coefficients.
Ask the tutor: How do you actually evaluate the Hamiltonian and overlap matrix elements for a real Gaussian basis set before plugging them into the secular determinant?
The physical picture — thorough prose
Start from the variational principle in its most familiar form: for any normalizable trial function ,
where is the true ground-state energy. In the simple variational method you might pick a single functional form with one continuous parameter — an exponential , a Gaussian — and minimize over . The linear variation method generalizes this in a specific, extremely fruitful direction: instead of one function with a shape parameter, use a fixed set of basis functions (real, for simplicity, though the complex case is a direct generalization) and write
The are chosen for chemical or mathematical convenience — atomic orbitals centered on each atom in a π system, a set of Gaussian primitives, particle-in-a-box eigenfunctions, whatever spans a subspace believed to contain a good approximation to the true wavefunction. They do not need to be orthogonal or normalized in general, though many practical choices (Hückel theory's assumption of orthonormal 2p orbitals) simplify things by assuming so. The coefficients are now the variational parameters. There are of them, and the variational theorem still applies: whatever values of minimize the trial energy give the best possible energy and wavefunction within the space spanned by the . This is the crucial restriction to keep in mind — the linear variation method never gives you the exact energy unless the true eigenfunction happens to lie exactly in your chosen subspace; it gives you the best answer achievable from the functions you decided to trust. A second, deeper feature emerges once you carry out the minimization (done in full in the derivations below): because is a ratio of quadratic forms in the , setting for every produces not one equation but a whole system of coupled linear equations, one per coefficient, all sharing the same unknown energy . This system is homogeneous — it has the trivial all-zero solution, which is physically useless (no wavefunction) — so a nontrivial solution exists only for special values of that make the determinant of the coefficient matrix vanish. Those special values are exactly the variational estimates of the energy levels, and there are of them for an -function basis, ordered so that the lowest is the tightest upper bound on the true ground state, the next lowest bounds the true first excited state (subject to the basis containing enough structure to represent it), and so on — this ordering result is sometimes called MacDonald's theorem.
The bookkeeping that makes this concrete uses two families of integrals over the basis functions. The overlap integrals
measure how much basis functions and resemble each other in the sense of wavefunction overlap; if each is normalized, and for if the basis is orthogonal. The Hamiltonian matrix elements
encode the energetics: is close to (though not exactly) the energy of an electron sitting purely in , while for is a coupling or "resonance" term describing how strongly and interact through the Hamiltonian. The detailed physical and computational meaning of these two matrices — how to evaluate them for real basis sets, what makes large or small chemically — is developed at length elsewhere; here the point is only that once and are known numbers, the secular equations are pure linear algebra.
The core ideas — the governing equations/relationships
The trial function is
where:
- are fixed, linearly independent basis functions (not necessarily orthonormal),
- are real variational coefficients to be determined,
- is the size of the basis, fixed in advance by the modeler's choice.
Reading: this is not a single function to optimize but a whole family of functions parametrized by the point in an -dimensional coefficient space; the variational method searches that space. The trial energy is the Rayleigh quotient
where:
- is the Hamiltonian matrix element,
- is the overlap matrix element,
- the sums run over all from 1 to .
Reading: both numerator and denominator are quadratic forms in the coefficients; is bounded below by the true ground-state energy no matter what is chosen, by the ordinary variational theorem. Minimizing with respect to every simultaneously (worked out below) yields the secular equations,
where:
- is now the specific trial energy at the stationary point, shared by all equations,
- each value of gives one linear equation in the unknowns .
Reading: this is a homogeneous linear system; the only way it has a solution other than is if the determinant of its coefficient matrix is zero. That determinant condition is the secular determinant equation,
where:
- is the matrix with entries ,
- is the overlap matrix with entries ,
- the determinant, expanded, is a polynomial of degree in .
Reading: solving this polynomial for gives roots ; each root, substituted back into the secular equations, yields a coefficient vector and hence an approximate wavefunction . ##
Goal. Show that minimizing with respect to every coefficient produces the secular equations .
Step 1 — Write the trial energy explicitly. For a real trial function ,
Similarly the normalization integral is
Define and , so that
Step 2 — Rearrange before differentiating. It is algebraically cleaner to differentiate the equivalent relation than the quotient directly. Treat as a function of throughout and differentiate both sides with respect to a single coefficient , holding all other () fixed.
Step 3 — Differentiate the numerator. Because (Hermitian, and real symmetric here), the quadratic form differentiates as
This is the standard result for differentiating a symmetric quadratic form : the derivative with respect to component is . The same identity applied to gives
Step 4 — Differentiate the product rule side. Differentiating with respect to ,
Step 5 — Impose the stationary condition. At a minimum (or any stationary point) of , for every . Setting that term to zero collapses Step 4 to
Step 6 — Substitute the explicit derivatives. Insert the results of Step 3:
Cancel the common factor of 2 and move everything to one side:
Step 7 — Recognize the system. This one equation holds for the particular chosen; but was arbitrary, running from 1 to , so in fact we obtain simultaneous equations of this form, one per basis function — exactly the secular equations quoted above. Each is linear and homogeneous in the coefficients , with the same energy appearing in every equation. ##
derivation[From the secular equations to the secular determinant, and back to physical coefficients]
Goal. Show why the secular equations force , and how, once a root is found, the corresponding coefficients are recovered and normalized.
Step 1 — Write the system in matrix form. The secular equations for are exactly the matrix equation
where is a column vector and is the zero vector. This is a homogeneous linear system with coefficient matrix .
Step 2 — Invoke the theorem on homogeneous linear systems. A basic result of linear algebra states that a homogeneous system has a solution other than if and only if is singular, i.e.
Physically we require a nonzero solution, since means , not a wavefunction at all. So the energy appearing in a physically meaningful stationary point must satisfy
Step 3 — Expand the determinant and count roots. Written out, is a sum of products of matrix entries (by the Leibniz expansion of an determinant), each entry linear in . The highest power of that can appear comes from the product of all diagonal-type entries , giving an term. Hence
is a genuine degree- polynomial in (assuming nonsingular, which holds whenever the basis functions are linearly independent). A degree- polynomial has exactly roots (real, in this Hermitian case, and in fact it can be shown they are all real because and are Hermitian and is positive definite). Label them in increasing order .
Step 4 — Recover coefficients for each root. For each root , substitute back into the secular equations,
Because by construction, this system has rank at most , so it determines the ratios uniquely (up to an overall scale) but not their absolute magnitudes — exactly as many independent equations as needed to fix ratios, with one equation redundant.
Step 5 — Fix the scale by normalization. The overall scale is fixed by requiring , i.e.
This is one additional algebraic condition (not a new physical equation, just bookkeeping) that pins down the magnitude of , completing the determination of the approximate eigenfunction belonging to variational energy .
Step 6 — Interpret multiplicity of roots. Each of the roots , together with its eigenvector, is a distinct approximate stationary state of the system restricted to the chosen basis — not just the ground state. MacDonald's theorem guarantees that if the exact Hamiltonian has true eigenvalues , then the linear variation roots satisfy for every (using 1-based indexing for and 0-based for ), so every root is a genuine upper bound to the corresponding true level, not merely the lowest one.
Worked examples
Example 1 — Foundational: two non-orthogonal basis functions, done by hand
Consider a schematic two-basis-function problem (the numbers are chosen to be asymmetric and dimensionless, standing in for energies in units of some reference, e.g. eV) with
Notice the basis is not orthogonal () and the two diagonal energies are unequal — this is deliberately asymmetric so that no accidental symmetry disguises an error.
Step 1: write the secular determinant.
i.e.
Step 2: expand. First term:
Second term:
Subtracting,
Step 3: solve the quadratic. Using the quadratic formula,
Compute the discriminant:
So
The two roots are
Check ordering: . This is exactly the expected qualitative behavior of a two-level mixing problem — the lower root is pushed below the lower diagonal element and the upper root is pushed above the higher diagonal element, because off-diagonal coupling always splits levels further apart (level repulsion).
Step 4: get coefficients for . Use the first secular equation, :
(The near-zero coefficient of reflects rounding sensitivity right at the numerically nearly-degenerate root; carrying one more decimal in , e.g. , gives a stable ratio , consistent with the lower root being dominated by, but not purely equal to, since is the more stable diagonal energy.) Normalizing with via fixes the overall scale, completing .
Limiting case check. If the off-diagonal coupling is switched off, and , the secular determinant becomes simply , whose roots are and exactly — the two basis functions decouple into two independent, unmixed one-function problems, as they must.
Example 2 — Applied: allyl radical π system by simple Hückel theory
The allyl system (three contiguous orbitals, as in the allyl radical or allyl cation/anion π framework) is the smallest chemically realistic case with , and it is solved using the two standard Hückel Molecular Orbital Theory approximations: all , all for (orthonormal basis of AOs), all (same Coulomb integral on every carbon), and only between bonded neighbors (here ), zero otherwise. With this orthonormal basis, and the secular equations reduce to the ordinary eigenvalue problem . The Hamiltonian matrix is
Step 1: substitute , a standard Hückel change of variable (dividing every entry by , a negative number, and defining this way keeps the algebra in clean integers). The determinant condition becomes
Step 2: expand along the first row.
Step 3: roots.
Converting back via (remember , so a negative gives an energy below , i.e. more bonding):
Numerically, using the standard reference values eV and eV (typical carbon 2p Hückel parameters),
Wait — since , check signs carefully: with negative means is positive, so eV is the least stable (highest) of the bonding-labeled root, and eV is in fact the lowest, most stable orbital. Relabeling by actual energy order: the three π molecular orbital energies are eV (bonding, fully in-phase), eV (nonbonding, node through the central carbon), and eV (antibonding), which is exactly the qualitative allyl MO diagram taught in every organic mechanism course: one bonding, one nonbonding, one antibonding π MO, populated by 3 electrons in the radical (2 in bonding, 1 in nonbonding) or 2 electrons in the cation (2 in bonding only) or 4 electrons in the anion (2 bonding + 2 nonbonding).
Step 4: coefficients for the lowest root, i.e. . Substituting into row 1 of with :
Row 2: . So the (unnormalized) lowest MO has coefficients in ratio . Normalizing with (orthonormal basis):
This matches the textbook allyl bonding MO — largest amplitude on the central carbon, equal and same-sign amplitude on the two termini, with no nodes, exactly the fully bonding combination expected as the lowest-energy π MO.
Example 3 — Exam/competition level: three-function basis with unequal overlaps, extracting the ground-state energy bound
A common "trap" style question gives a basis that is neither fully orthonormal nor uses simplified Hückel parameters, forcing full use of the generalized eigenvalue machinery. Take again (to keep the arithmetic checkable exactly by hand) but with deliberately unequal, non-Hückel numbers, in eV:
Step 1: secular determinant.
Step 2: expand the first product.
Step 3: expand the square.
Step 4: subtract and collect.
Divide through by 0.96 for convenience:
Step 5: quadratic formula.
Step 6: sanity-check against the diagonal elements. eV is (correctly) more negative than eV, and eV is (correctly) less negative than eV — the coupling has pushed the lower root down and the upper root up, exactly the expected level-repulsion behavior seen already in Example 1.
Step 7: coefficients for the ground-state root eV. From row 1: :
So the ground-state trial function is heavily dominated by (consistent with 's much lower diagonal energy eV compared to 's eV), with only a small admixture of . Normalizing via with :
Limiting case check. If instead (equal diagonal energies, the symmetric special case deliberately avoided above so as not to mask an error), the two roots collapse to and the coefficients become exactly (in-phase and out-of-phase combinations) — the textbook symmetric two-orbital splitting pattern, recoverable as a special case of the general asymmetric formula used throughout this example.
Limiting cases, scope & common traps
| Situation | What happens to the secular equations | Why |
|---|---|---|
| Orthonormal basis () | Reduces to ordinary eigenvalue problem | No overlap correction needed; this is the Hückel-theory simplification |
| (single basis function) | , the ordinary Rayleigh quotient for one function | Recovers the simple (non-linear) variational method exactly |
| Basis functions linearly dependent | becomes singular, | The secular polynomial degenerates below degree ; spurious or undefined roots appear — always check is invertible |
| Basis spans the exact eigenfunctions | Roots equal the true eigenvalues exactly | Variational bound becomes tight; no error left to squeeze out |
| Very large, poor basis | Lowest root still but higher roots may bound excited states poorly if basis lacks needed nodal structure | MacDonald's theorem guarantees an upper bound but not accuracy; a badly chosen set gives loose bounds |
| Coupling , simultaneously | Roots reduce exactly to the bare diagonal elements | Basis functions decouple into independent one-function problems |
The chemist behind it
The linear variation method as used throughout quantum chemistry owes its structural form to the general variational principle developed across the early quantum-mechanical literature (Rayleigh's classical work on vibrating systems, later adapted quantum mechanically), but its decisive chemical application — turning a determinant of Coulomb and resonance integrals into predictions about aromatic stability, bond orders, and reactivity — is due to Erich Hückel, who in the early 1930s applied exactly this secular-determinant machinery to the π-electron systems of unsaturated and aromatic hydrocarbons.
Origins · 1 minErich Hückel and how this was discovered
Hückel trained in physics (under Debye, with whom he developed the Debye–Hückel theory of electrolyte solutions) before turning to the electronic structure of unsaturated organic molecules. In 1931 he introduced what became known as the Hückel molecular orbital method, treating the π electrons of planar conjugated systems separately from the σ framework and building trial molecular orbitals as linear combinations of atomic orbitals — precisely the linear variation scheme worked out in Example 2 above. His famous 4n+2 rule for aromatic stabilization, derived directly from the pattern of secular-determinant roots for cyclic polyene rings, gave organic chemists a quantitative, testable criterion for aromaticity decades before computational chemistry made larger calculations routine. Hückel's simplified assumptions — zero differential overlap between non-neighboring atoms, a single Coulomb integral and resonance integral — were drastic approximations to the full many-electron problem, yet they preserved the exact mathematical skeleton of the variational secular equations, which is why the method remains pedagogically central even though modern computations use far larger, more accurate basis sets and full electron-repulsion integrals.
What exactly is the difference between the linear variation method and the simple variational method with one parameter?
The simple variational method picks one functional form (say ) and optimizes a continuous shape parameter ; there is one trial energy curve to minimize, typically by calculus on a single variable. The linear variation method instead fixes several basis functions and optimizes the linear coefficients multiplying them. This turns the minimization into a system of coupled linear equations rather than a single-variable calculus problem, and crucially yields not one but approximate energies simultaneously — ground and excited states together — rather than only the state you specifically targeted.
Does the basis set have to be orthogonal for the secular equations to apply?
No. The secular equations are derived without assuming orthogonality; the overlap matrix appears explicitly to handle non-orthogonal basis functions, such as atomic orbitals on different atoms that naturally overlap in space. Orthogonality is a convenient special case () that simplifies the determinant to an ordinary eigenvalue problem, used deliberately in simple Hückel theory, but the general method (as in Hartree–Fock with atomic-orbital basis sets) keeps nontrivial throughout.
Why is the lowest root always an upper bound to the true ground-state energy, but is that also true for the higher roots?
The lowest root is a direct consequence of the ordinary variational theorem applied to the best possible linear combination in the chosen subspace — it cannot fall below the true ground-state energy. MacDonald's theorem extends this guarantee to every higher root as well: the m-th lowest root of an N-function secular determinant is always an upper bound to the true (m−1)-th excited state energy (using zero-based state numbering), provided the basis is large enough and the Hamiltonian is Hermitian. This is a nontrivial extra result beyond the basic variational theorem for the ground state alone.
What goes wrong if the chosen basis functions are nearly linearly dependent?
Near-linear-dependence makes the overlap matrix nearly singular, so is close to zero. Numerically this causes the secular determinant equation to become ill-conditioned: tiny errors in the integrals or get amplified into large, sometimes unphysical, swings in the computed roots and coefficients. In practice this is avoided by orthogonalizing or discarding near-redundant basis functions (for example via symmetric orthogonalization) before diagonalizing, a standard preprocessing step in real quantum chemistry codes.
How does the linear variation method connect to the Hartree–Fock and Roothaan–Hall equations used in modern software?
The Roothaan–Hall equations are the direct extension of the linear variation method to a self-consistent one-electron Hamiltonian: each molecular orbital is expanded as a linear combination of atomic-orbital basis functions, exactly as here, but the Hamiltonian matrix (called the Fock matrix in that context) depends on the very orbitals being solved for, since electron repulsion terms involve the orbitals occupied by other electrons. The equations are solved iteratively until self-consistency, but at every iteration the linear-algebra step is identical in structure to the fixed-Hamiltonian secular equation derived here.
Can the linear variation method give the exact wavefunction, not just an approximation?
Yes, in the special case that the true eigenfunction happens to lie exactly within the span of the chosen basis functions. If, for instance, the basis already contains the exact ground-state wavefunction as one of its members (or as an exact linear combination of the others), the secular determinant will produce a root exactly equal to the true energy, with coefficients reproducing that exact function. In general, however, any finite basis only approximates the true (often infinite-dimensional) Hilbert space, so the roots remain strict upper bounds rather than exact values.
Why do the Hückel energies for allyl come out as α ± √2 β and α exactly, rather than some other combination?
These particular numbers come directly from the roots of the cubic secular polynomial obtained for the linear three-atom chain with nearest-neighbor coupling only. Factoring gives and , and these are specific to the linear (open-chain) three-center topology; a cyclic three-membered ring (cyclopropenyl) instead gives (once, doubly stabilized) and (twice, degenerate), a different secular polynomial reflecting the different connectivity pattern encoded in the off-diagonal structure of .