Hellmann–Feynman Theorem
The Hellmann–Feynman theorem converts the derivative of an exact energy eigenvalue into the expectation value of the Hamiltonian’s parameter derivative. It is simultaneously a spectral theorem, the differential form of first-order perturbation theory, and the foundation for interpreting energy gradients as generalized forces.
Its familiar one-line formula is easy to remember:
Using it correctly is less automatic. One must identify a differentiable eigenvalue branch, control degeneracy, distinguish exact from approximate states, include parameter dependence in bases and domains, and keep the operator derivative separate from the total state response.
The theorem is commonly associated with Hellmann’s 1937 quantum-chemistry text and Feynman’s 1939 analysis of molecular forces. The compound name records the standard modern attribution; the mathematical idea also has earlier perturbative antecedents.
Statement
Section titled “Statement”Let be a differentiable family of self-adjoint operators on a Hilbert space. Suppose that, on an interval of , there is a normalized differentiable eigenbranch
with
If the operator derivative is meaningful on the branch, then
For several real parameters , the componentwise form is
Equivalently,
provided the same differentiability and domain assumptions hold in each parameter direction.
Assumptions
Section titled “Assumptions”The textbook statement packages several hypotheses.
Exact eigenstate
Section titled “Exact eigenstate”The state must satisfy the eigenvalue equation for the Hamiltonian being differentiated. For a generic normalized trial state, an additional residual-response term appears.
Differentiable branch
Section titled “Differentiable branch”and a representative of must be differentiable locally. A sorted list of eigenvalues can develop cusps at crossings even when smooth branch labels exist.
Spectral isolation or resolved degeneracy
Section titled “Spectral isolation or resolved degeneracy”A simple isolated eigenvalue has a locally well-defined branch under standard perturbative conditions. At a degeneracy, the derivative is obtained only after resolving the perturbation inside the degenerate subspace.
Fixed Hilbert-space identification
Section titled “Fixed Hilbert-space identification”States at nearby parameter values must be compared in one fixed Hilbert space, or by an explicitly specified unitary identification. If a boundary, integration measure, or operator domain moves with , its contribution cannot be silently discarded.
Differentiable operator or quadratic form
Section titled “Differentiable operator or quadratic form”For bounded matrices, entrywise differentiability is enough. For unbounded Hamiltonians, one commonly assumes a common dense domain or works with differentiable quadratic forms. Kato’s analytic perturbation theory gives rigorous frameworks for isolated spectral branches.
Derivation from the Eigenvalue Equation
Section titled “Derivation from the Eigenvalue Equation”Suppress the branch label and write a prime for . Differentiate
to obtain
Left-multiply by :
Self-adjointness and the eigenvalue equation imply
The terms involving therefore cancel. Since the state is normalized,
The cancellation is the theorem’s essential content. The state generally changes with , but its derivative is unnecessary for the first derivative of an exact eigenvalue.
Derivation from the Rayleigh Quotient
Section titled “Derivation from the Rayleigh Quotient”For a normalized exact eigenstate,
Differentiation gives
Using on both state-response terms,
The norm derivative vanishes, leaving the theorem. This proof also shows why normalization and exact stationarity matter when the state is approximate.
Phase Choice and State Derivatives
Section titled “Phase Choice and State Derivatives”The eigenstate may be rephased:
This changes by a component parallel to , but it does not change . The energy derivative is gauge invariant.
For a distinct nondegenerate eigenstate , project the differentiated eigenvalue equation with :
Thus
The diagonal theorem determines an energy derivative; this off-diagonal identity determines the physically relevant complementary part of the state derivative. The parallel part remains a phase convention and underlies geometric connections such as the Berry connection.
Generalized Forces
Section titled “Generalized Forces”If is a generalized coordinate, define the conjugate force by
The theorem gives
The minus sign follows the convention that force is minus the energy gradient. Examples include:
- mechanical force for a spatial coordinate or nuclear position;
- electric polarization or dipole response for an applied electric field;
- magnetization for an applied magnetic field;
- pressure-like response for a volume or strain parameter;
- expectation value of an interaction when is a coupling constant.
The interpretation depends on how the Hamiltonian is parameterized. If
then
The dipole moment is therefore with this sign convention.
Coupling-Constant Integration
Section titled “Coupling-Constant Integration”For
the theorem applies at every regular point of the branch:
Integrating from to gives
This exact coupling-constant integral replaces an energy difference by expectation values along a path. It does not remove the need to know the interacting branch, but it is useful for formal identities, numerical thermodynamic integration, and adiabatic-connection constructions. “Adiabatic” here describes a parameter path, not necessarily real-time evolution under the adiabatic theorem.
Connection to First-Order Perturbation Theory
Section titled “Connection to First-Order Perturbation Theory”For the Rayleigh–Schrödinger expansion
the coefficient of is
Since ,
First-order perturbation theory is therefore the Hellmann–Feynman theorem evaluated at the reference point. The theorem is stronger in one sense: when the exact eigenstate at a finite is known, it gives the exact local slope there, not merely a coefficient about .
First-Order Energy Corrections owns the interpretation and examples of the linear coefficient. Rayleigh–Schrödinger Perturbation Theory owns the full order-by-order construction.
Curvature and Second-Order Response
Section titled “Curvature and Second-Order Response”Differentiate the theorem once more:
Insert a complete set of discrete eigenstates and use the off-diagonal state-derivative identity. For a simple discrete level,
A continuum contributes the corresponding spectral integral. If , then and, at ,
This makes the hierarchy transparent:
- the first derivative is a diagonal matrix element;
- the second derivative requires the first-order change of the state;
- higher derivatives require progressively more response information.
See Second-Order Energy Corrections for signs, polarizabilities, continuum terms, and sum-over-states convergence.
Degenerate Eigenvalues
Section titled “Degenerate Eigenvalues”At a -fold degeneracy, there is no unique eigenvector branch before the perturbation direction is specified. Let project onto the degenerate eigenspace at , and choose any orthonormal basis . Form
The eigenvalues of are the first derivatives of the branches that split linearly:
The corresponding eigenvectors of identify the combinations to which the ordinary theorem applies on either side of the degeneracy. Taking the expectation of in an arbitrary basis vector of the degenerate subspace generally gives a basis-dependent number, not a branch derivative.
There is another labeling subtlety. For
the analytic branches are . If instead the levels are sorted by size, the ground-state energy is
which is not differentiable at . The theorem has not failed; the sorted ground-state label does not define a differentiable branch at the crossing.
Degenerate Perturbation Theory is the canonical treatment of and higher-order corrections.
Approximate States and the Residual Term
Section titled “Approximate States and the Residual Term”Let be normalized but not necessarily an eigenstate, and define its energy expectation
Differentiating and using normalization gives
Define the residual
Then the difference between the true energy derivative and the naive Hellmann–Feynman expectation is controlled by the response overlap
For an exact eigenstate, . For an approximate state, a small energy error alone does not guarantee a small force error: the residual can couple strongly to the parameter derivative of the state.
This identity is a practical diagnostic. Report both the eigenvalue residual and the stability of the derivative under improvement of the variational space or basis.
Variational Stationarity
Section titled “Variational Stationarity”Internal ansatz gradients, tangent metrics, Hessians, and moving-basis overlap derivatives are developed in Variational Parameters. This section isolates the derivative with respect to an external physical parameter.
Suppose a normalized trial state depends on internal parameters and on an external parameter . Let
Along optimized parameters ,
If the optimization is fully stationary,
so response of the optimized coefficients does not contribute explicitly to the first derivative:
This is an envelope-theorem form of the same cancellation. It does not imply that every approximate calculation obeys the bare Hellmann–Feynman formula. The variational manifold itself may depend on , the optimization may be incomplete, or some orbital and basis degrees of freedom may not be stationary.
Molecular Forces
Section titled “Molecular Forces”Within the Born–Oppenheimer electronic problem, let be a nuclear coordinate and write the potential-energy surface as
For an exact normalized electronic eigenstate on a fixed representation,
This is the molecular-force interpretation emphasized by Feynman. It says that an exact electronic energy gradient can be evaluated from the derivative of the electronic Hamiltonian, without explicitly differentiating the exact wavefunction.
The formula does not make molecular force calculations trivial. Electronic states are approximate, atom-centered basis functions move with the nuclei, electron correlation is truncated, and near-degenerate surfaces can be non-smooth or require a multistate description.
Parameter-Dependent Bases and Pulay Terms
Section titled “Parameter-Dependent Bases and Pulay Terms”Consider a finite nonorthogonal basis and the generalized eigenproblem
with
Here
Differentiating the generalized eigenvalue equation gives
is the total matrix derivative: it includes the operator derivative and derivatives of the basis functions. The term accounts for the changing overlap metric. In atom-centered electronic-structure calculations, the basis-response contributions are commonly called Pulay terms.
Three formulas must not be conflated:
- The exact Hilbert-space theorem uses for an exact eigenstate in a fixed representation.
- The finite generalized eigenproblem uses with total matrix derivatives.
- A bare expectation of only the operator derivative can miss basis motion, incomplete variational response, or both.
Pulay’s force analysis explains why apparently well-converged energies can still yield inaccurate gradients when the basis response is neglected.
Changing Domains and Boundary Conditions
Section titled “Changing Domains and Boundary Conditions”The theorem’s derivative is not merely the derivative of a differential expression. The operator includes its domain and boundary conditions.
Consider a particle in an infinite well on :
with Dirichlet conditions at and . Its energies are
The differential expression contains no visible , but its domain does. Setting would incorrectly predict .
Map the interval to the fixed coordinate , with . The unitarily transformed Hamiltonian is
Now
and the theorem gives
in agreement with direct differentiation. The fixed-domain transformation has made the hidden boundary dependence explicit.
Worked Example: Oscillator Width from an Energy Derivative
Section titled “Worked Example: Oscillator Width from an Energy Derivative”Let
The exact energies are
Differentiate the Hamiltonian:
The Hellmann–Feynman theorem yields
Therefore
Multiplying by gives
The kinetic and potential expectations are equal, consistent with the Virial Theorem. The example illustrates a common use: differentiate a known spectrum to recover an expectation value without integrating the wavefunction explicitly.
When the Theorem Does Not Apply Directly
Section titled “When the Theorem Does Not Apply Directly”The elementary Hermitian statement must be modified or replaced for:
- non-normalizable continuum states without an appropriate box, wave-packet, or spectral regularization;
- resonances described by non-Hermitian effective Hamiltonians, which require left and right eigenvectors;
- parameter-dependent inner products or metrics not included in the derivative;
- moving domains or boundary conditions not mapped to a fixed space;
- a sorted eigenvalue at a non-differentiable crossing;
- approximate states whose residual-response or basis-response terms are nonzero;
- time-dependent forces away from an instantaneous stationary eigenstate.
These are changes of hypothesis, not paradoxes. State which spectral object and derivative are being used before applying the formula.
Practical Checklist
Section titled “Practical Checklist”- Define the parameter. State what is held fixed when changes.
- Track a branch. Use symmetry or overlap, not only sorted energy order.
- Check degeneracy. Diagonalize in a degenerate subspace.
- Fix the representation. Expose moving measures, bases, boundaries, and domains.
- Separate exact and approximate formulas. Compute residual and response terms when the state is not exact.
- Differentiate every explicit dependence. Include higher-order Hamiltonian terms, overlap matrices, and external potentials.
- Validate the gradient. Compare with symmetric finite differences over a converged step-size window.
- Report numerical layers. Distinguish eigensolver, basis, correlation, and finite-difference errors.
Common Mistakes
Section titled “Common Mistakes”- Writing a partial derivative of the eigenvalue where a total branch derivative is intended.
- Differentiating the wavefunction explicitly even though the exact eigenvalue equation already cancels its first-order response.
- Applying the theorem to an arbitrary vector in a degenerate eigenspace.
- Treating the sorted ground-state energy as differentiable through a level crossing.
- Using an approximate state while omitting the residual-response term.
- Calling all gradient corrections “Pulay terms” without identifying basis, overlap, orbital, or correlation response.
- Ignoring parameter dependence in boundary conditions or the operator domain.
- Assuming the theorem gives derivatives of arbitrary observables; those usually require the state derivative.
- Forgetting the sign convention between an energy gradient and its conjugate force.
Exercises
Section titled “Exercises”1. Prove the theorem without choosing a phase
Section titled “1. Prove the theorem without choosing a phase”Derive the Hellmann–Feynman formula directly from the differentiated eigenvalue equation and explain why no condition on is needed.
Solution
Differentiate:
Left-multiplication by gives
The state-derivative terms cancel directly, leaving
A parameter-dependent phase changes , but only inside the two terms that cancel. No parallel-transport phase convention is required.
2. Obtain an oscillator expectation value
Section titled “2. Obtain an oscillator expectation value”Use the theorem with rather than for
at fixed . Recover a relation between kinetic and potential energy.
Solution
The exact energy is independent of , so
The Hamiltonian derivative is
Therefore
Multiplying by gives
3. Derive the curvature formula
Section titled “3. Derive the curvature formula”For a simple discrete eigenvalue, derive
Solution
Differentiate the first-derivative theorem:
Insert completeness into the response term. The real part of the parallel component vanishes because normalization implies
For ,
Substitution gives the stated sum. A continuous spectrum adds its spectral integral.
4. Resolve a degenerate derivative
Section titled “4. Resolve a degenerate derivative”At , let
Find the two branch derivatives and explain why is not, in general, one of them.
Solution
Inside the degenerate subspace,
Its eigenvalues are
Thus
The vector is not an eigenvector of when . Its expectation depends on a basis choice within the degenerate eigenspace and does not label a differentiable eigenbranch.
5. Quantify failure for an approximate state
Section titled “5. Quantify failure for an approximate state”Let be normalized with residual . Show that
Solution
The approximate-state identity gives
Use
and the Cauchy–Schwarz inequality:
Combining them gives the bound. A small residual helps only when the state response is also controlled.
6. Repair the moving-wall paradox
Section titled “6. Repair the moving-wall paradox”For the infinite well of width , explain why differentiating the differential expression at fixed gives the wrong answer and verify the result after mapping to .
Solution
At fixed , the expression
has no explicit dependence, but the domain and the boundary condition at do. The elementary fixed-domain hypothesis is therefore violated.
After mapping to ,
so
The theorem now gives
which agrees with direct differentiation of .
Cross-Links
Section titled “Cross-Links”- Time-Independent Perturbation Theory for the chapter-level framework.
- First-Order Energy Corrections for diagonal shifts, symmetry, and examples.
- Second-Order Energy Corrections for curvature and response sums.
- Degenerate Perturbation Theory for branch derivatives inside a multiplet.
- Variational Principle for stationarity and energy bounds.
- Berry Connection for the phase-sensitive parallel part of state derivatives.
- Molecular Physics for rotational, vibrational, and electronic applications.
- Hellmann–Feynman Theorem Reference Card for compact lookup.
References
Section titled “References”- H. Hellmann, Einführung in die Quantenchemie, Franz Deuticke, Leipzig and Vienna, 1937.
- R. P. Feynman, “Forces in Molecules,” Physical Review 56, 340–343 (1939), doi:10.1103/PhysRev.56.340.
- T. Kato, Perturbation Theory for Linear Operators, 2nd ed., Springer, 1976; reprint 1995, doi:10.1007/978-3-642-66282-9.
- P. Pulay, “Ab Initio Calculation of Force Constants and Equilibrium Geometries in Polyatomic Molecules. I. Theory,” Molecular Physics 17, 197–204 (1969), doi:10.1080/00268976900100941.
- F. M. Fernández, “Generalization of the Hellmann–Feynman Theorem,” Physics Letters A 374, 819–822 (2010), doi:10.1016/j.physleta.2009.12.005.
- C. Cohen-Tannoudji, B. Diu, and F. Laloë, Quantum Mechanics, Vol. II, Wiley, 1977.
- R. Shankar, Principles of Quantum Mechanics, 2nd ed., Springer, 1994.
- T. Helgaker, P. Jørgensen, and J. Olsen, Molecular Electronic-Structure Theory, Wiley, 2000, Chapters 10 and 14.