Eigenfunction Expansions
Can you solve a heated rod with a distributed heat source, in closed form? The equation with fixed-temperature ends looks elementary. But as soon as is a general function — not a sine wave — direct antidifferentiation becomes clumsy. The method does not generalize to variable-coefficient operators like . Eigenfunction expansions solve this once and for all. They diagonalize the differential operator by expressing every function in the natural orthogonal basis it supplies. This turns a differential equation into an infinite, uncoupled system of algebraic equations, one per mode. This idea is the PDE-solver's workhorse. It is the reason separation of variables works. It is the reason Fourier series are not a lucky coincidence. Instead, they are a special case of a much broader phenomenon. It is also the reason heat, wave, and Laplace equations on bounded domains all yield to the same three-step strategy. First, find the eigenfunctions of the spatial operator. Then expand the data in that basis. Finally, read off the answer term by term. The big picture is spectral: a self-adjoint Sturm–Liouville operator on a bounded interval has an orthogonal basis of eigenfunctions . This is exactly like a real symmetric matrix having an orthonormal basis of eigenvectors. Solving becomes solving for each Fourier coefficient of the unknown . This holds provided is not itself an eigenvalue. This article builds that machinery rigorously: the generalized Fourier series, the completeness theorem it rests on, and the full solution algorithm for inhomogeneous two-point boundary value problems. This includes the resonance case when is an eigenvalue. This article delivers a precise statement and proof of the eigenfunction expansion method, two fully worked non-symmetric examples, and a careful treatment of the solvability (Fredholm alternative) obstruction. It also builds a bridge to the Green's Functions for Boundary Value Problems viewpoint, where the same operator is inverted once and for all by an integral kernel.
- A regular Sturm–Liouville operator has a countable, real, orthogonal set of eigenfunctions that is complete in .
- Any admissible function has a generalized Fourier series with .
- To solve with the same boundary conditions, expand both sides in and solve mode by mode.
- If is an eigenvalue, the equation is solvable only when is orthogonal to the corresponding eigenfunction — the Fredholm alternative.
- Convergence of the series is guaranteed in the mean-square sense by completeness, and pointwise under mild smoothness of .
- Key idea: eigenfunctions diagonalize a self-adjoint differential operator exactly as eigenvectors diagonalize a symmetric matrix, turning into scalar equations .
Where this lives today
Eigenfunction expansions are the computational engine behind separation of variables for the heat, wave, and Laplace equations on bounded domains — the spatial eigenfunctions of the Laplacian (or of a Sturm–Liouville operator obtained after separating variables) supply the basis in which the time-dependent or harmonic problem is solved mode by mode. In quantum mechanics, the time-independent Schrödinger equation is literally a Sturm–Liouville eigenvalue problem, and any wavefunction is expanded in energy eigenstates — the same formula computes transition amplitudes. In acoustics and structural engineering, normal modes of a vibrating beam or membrane are Sturm–Liouville eigenfunctions, and forced vibration problems are solved by exactly the resonance analysis of Case 2 above — a driving frequency equal to a natural frequency produces unbounded resonant response unless the forcing is orthogonal to that mode. In numerical analysis and scientific computing, spectral methods approximate PDE solutions by truncating an eigenfunction expansion, achieving exponential convergence for smooth data. The Fredholm alternative appearing in Case 2 recurs throughout functional analysis, integral equations, and the study of Green's Functions for Boundary Value Problems, where the same solvability dichotomy governs invertibility of compact self-adjoint operators.
:::quiz[Which quantity determines whether the inhomogeneous problem has a unique solution, no solution, or infinitely many?]
- The sign of on
- Whether coincides with an eigenvalue , and if so whether ✓
- Whether is bounded
- The parity (even/odd) of the boundary conditions
:::quiz[The classical Fourier sine series on with Dirichlet conditions is a special case of eigenfunction expansion with]
- , , , and Dirichlet boundary conditions giving ✓
- , ,
- chosen so that
- Any weight so long as is negative
Ask the tutor: How does the eigenfunction expansion method change if the boundary conditions are periodic instead of separated, and what happens to the Fredholm alternative in that case?
Let
where with , , and with is a weight function. Consider the regular Sturm–Liouville problem
with , , all constants real. Sturm–Liouville theory (assumed known) guarantees a countable increasing sequence of real eigenvalues with corresponding real eigenfunctions , pairwise orthogonal with respect to the weighted inner product
Given (i.e. ), its generalized Fourier series (eigenfunction expansion) in is
The series converges to in the mean-square sense with weight :
Intuition
Think of — square-integrable functions on weighted by — as an infinite-dimensional vector space with inner product . The eigenfunctions of a self-adjoint operator play exactly the role that an orthogonal eigenbasis plays for a symmetric matrix : every vector decomposes as , and . Solving becomes solving coordinate by coordinate — trivial, provided no is zero. The eigenfunction expansion method is this exact linear-algebra fact, lifted to function space, where "coordinates" are Fourier coefficients and "vectors" are functions on . The classical Fourier sine and cosine series are the special case , , , with Dirichlet or Neumann conditions — the eigenfunctions are or . What makes the general Sturm–Liouville framework powerful is that the same three-step recipe — expand the source, divide by the eigenvalue, resum — works for any self-adjoint second-order operator on any bounded interval, with any separated boundary conditions, and any weight. This is precisely why the method of separation of variables, applied to the heat, wave, or Laplace equation on a finite rod, disk, or box, always terminates in a Fourier-type series: the spatial part of the separated PDE is always a Sturm–Liouville problem.
Let with , , , and let , . Let be the eigenvalues and orthogonal eigenfunctions of the associated regular Sturm–Liouville problem with separated, homogeneous boundary conditions , (as in the definition above). Suppose (or more generally ), and consider the inhomogeneous problem
for a fixed real parameter .
Case 1 ( not an eigenvalue). If for every , then has a unique solution satisfying the boundary conditions, given by the eigenfunction expansion
which converges in ; if in addition is Hölder continuous, the series converges uniformly on to the classical solution.
Case 2 ( is an eigenvalue, say ). The problem has a solution if and only if
i.e. is orthogonal (in the -weighted sense) to every eigenfunction belonging to . When this solvability condition holds, the solution is
for an arbitrary constant ; when it fails, no solution exists.
The proof uses completeness of the eigenfunction system (a standard consequence of Sturm–Liouville theory, assumed known) together with term-by-term matching of Fourier coefficients, justified by self-adjointness of .
Step 1: Self-adjointness and orthogonality. For satisfying and , Lagrange's identity gives
because the separated boundary conditions force the boundary term to vanish at each endpoint (this is the standard computation underlying self-adjointness of regular Sturm–Liouville operators). Hence for all such , where is the unweighted inner product. Applying this with , eigenfunctions, , gives
so . Since the are distinct for (they are strictly increasing), for . This is the orthogonality already assumed from Sturm–Liouville theory; we re-derive it here because the same computation is reused below.
Step 2: Expand and the (assumed) solution in the eigenbasis. By completeness of in (the Sturm–Liouville completeness theorem), write the generalized Fourier series
Suppose is a solution of with satisfying the boundary conditions. Since then also lies in the domain of compatible with the boundary conditions, expand
Step 3: Term-by-term identity from self-adjointness. Using Step 1 with , (both satisfy the same homogeneous boundary conditions, since is required to satisfy ):
On the other hand, from the differential equation ,
(using with weight absorbed into the definitions, consistent with the weighted inner product throughout — both sides carry the -weighted pairing since is an identity of functions, and pairing an identity of functions against with respect to Lebesgue measure equals pairing against with weight after absorbing into appropriately; concretely, gives , i.e. ). Equating the two expressions for and simplifying by :
This is the diagonalized system: the differential equation has become an infinite, uncoupled family of scalar linear equations, one for each Fourier coefficient .
Step 4: Case 1 — is not an eigenvalue. For every , , so has the unique solution
Hence, if a solution exists, its Fourier coefficients are forced to be exactly these, so the solution is unique and its expansion must be
This proves uniqueness. For existence: since , the tail coefficients faster than itself relative to , and one shows (by the standard completeness/Parseval argument) that since , so the series converges in to some function ; this satisfies in the weak (mean-square) sense by construction, since termwise it solves . When is Hölder continuous, standard elliptic-regularity/Sturm–Liouville estimates on the decay of and (Weyl asymptotics for regular problems) give absolute and uniform convergence of and its derivatives up to order two, which upgrades the solution to a genuine classical solution satisfying the boundary conditions termwise (each individually satisfies , and uniform convergence of the series and its first derivative passes the boundary conditions to the limit). This establishes existence, completing Case 1.
Step 5: Case 2 — is an eigenvalue. Now equation for reads
which has a solution (in fact infinitely many, any real number) if and only if , i.e.
This is precisely the stated solvability condition. If the equation is false, so no coefficients satisfy for all , hence by the forcing argument of Step 4 no solution of can exist: necessity of the condition is proved. For sufficiency, suppose . For , again gives the unique value , while for , becomes , satisfied by any real number . Define
By the same convergence argument as Step 4 (the sum over converges in , and under Hölder continuity of converges uniformly with two derivatives), is a well-defined function satisfying the boundary conditions (each term does, individually, and uniform convergence passes this to the sum). One checks directly, by reversing Step 3's computation, that this satisfies : indeed for every by construction (including , where both sides are ), and since is complete, an function with all these Fourier coefficients matching 's must equal a.e., hence (both being continuous) everywhere. This proves solves , establishing sufficiency and the explicit family of solutions parametrized by .
∎Worked examples
Example 1 (Dirichlet rod with a non-symmetric, non-resonant load). Solve
on , using eigenfunction expansion, and compare to direct integration. Here , so the equation is with and (rewriting as , i.e. with ; to avoid sign bookkeeping we instead work directly with the operator as given). Take on with Dirichlet conditions. The eigenpairs of , , are the classical ones:
The ODE is , i.e. in the form with and . Since is not of the form for any integer (as , so , never equal to ), we are in Case 1: a unique solution exists. Compute the Fourier coefficients of :
Using the standard moments , and (by integration by parts twice more, or tables) the exact value
(a direct computation via three integrations by parts of against , tracking boundary terms which vanish since and its relevant antiderivative structure vanish appropriately at for the polynomial parts — the algebra is routine and each step is a standard reduction formula for ), we get
By Case 1 of the theorem, with ,
and the solution is
Consistency check. For even, , so , which decays like ; for odd, , dominant term also . Since is a polynomial vanishing at both endpoints (so effectively with matching boundary values), the coefficients decay like as expected for a function whose second derivative does not itself vanish at the boundary — consistent with the general Fourier-decay heuristics, and the series converges absolutely and uniformly by comparison with , confirming a genuine classical solution as guaranteed by the theorem.
Example 2 (Robin condition at one end, weight — a genuinely non-symmetric Sturm–Liouville setting, resonant case). Consider the Cauchy–Euler-type Sturm–Liouville problem coming from on with weight , i.e. the eigenvalue problem
Substituting turns into (the standard reduction for Euler-type operators: with , , and one checks under this substitution, so , matching exactly when ), and ranges over as ranges over . With becoming , we recover
as eigenfunctions of the original problem in , with weight :
Now solve the resonant inhomogeneous problem at :
Here ; in the -variable (matching the weight correctly, since the pairing ). Compute :
So . By Case 2 of the theorem with : since (equivalently ), the solvability condition fails, so this resonant problem has no solution at all — the eigenfunction expansion method correctly detects and certifies non-existence, which direct integration would only reveal after a much longer computation (or would obscure entirely). Contrast this with , i.e. exactly: then also fails, so that choice is resonant and unsolvable too — whereas gives (orthogonal distinct modes), so the solvability condition holds, and the problem , , has the family of solutions
with contributing the term and all other , so explicitly
The proof of the theorem rests entirely on Step 1: the boundary term must vanish for every pair satisfying the same separated boundary conditions. Suppose instead we deliberately use mismatched conditions — impose at but test against functions satisfying a different condition at , say instead of — while still trying to expand in the "wrong" family. Concretely, on take , , and let be the genuine Dirichlet eigenfunctions (), with . Now try to solve
a Robin condition at , by (incorrectly) expanding in the Dirichlet eigenfunctions , since they are the "familiar" basis. Take . Formally following the Case-1 formula with the wrong eigenfunctions gives , hence a candidate
But termwise for every , so identically, forcing to also have to satisfy — but direct solution of , gives for the general solution consistent with , and imposing the true Robin condition forces -type algebra yielding generically, so the true solution does not vanish at in general — contradicting forced by using the wrong basis. The mismatch is exactly because Step 1's boundary term fails to vanish when obeys a Robin condition at but obeys Dirichlet there: in general, since . Self-adjointness — and with it, orthogonality, diagonalization, and the entire method — collapses the moment the trial and test functions satisfy different boundary conditions.
Scope, edge cases & common traps
| Situation | What to check | Consequence if ignored |
|---|---|---|
| equals an eigenvalue | Compute | Method silently gives a divergent or nonexistent "" coefficient |
| Boundary conditions of vs. of | Must be identical separated conditions | Orthogonality (self-adjointness) fails; series is meaningless |
| Check | Fourier coefficients may not even be defined | |
| Weight dropped or mis-set | Every inner product, norm, and solvability test uses | Wrong coefficients, wrong orthogonality claims |
| Non-self-adjoint operator (mixed/periodic w/o symmetry) | Confirm the Lagrange boundary term vanishes | Eigenfunctions need not be orthogonal at all |
| Pointwise vs. mean-square convergence | Need Hölder/ smoothness of for uniform convergence | Series may converge in but not to at a point of discontinuity |
The mathematician behind it
Origins · 1 minCharles-François Sturm and how this was discovered
Sturm, working alongside Joseph Liouville in the 1830s, studied the qualitative behavior of solutions to second-order linear differential equations arising from problems in heat conduction and vibrating strings. Their joint theory — what we now call Sturm–Liouville theory — established the existence of countably many real eigenvalues and orthogonal eigenfunctions for a broad class of boundary value problems, laying the foundation for every eigenfunction expansion used in physics and engineering since.
What exactly makes an eigenfunction expansion "generalized" compared to an ordinary Fourier series?
An ordinary Fourier series expands in sines and cosines, which are the eigenfunctions of the specific operator with periodic or Dirichlet/Neumann conditions and weight . A generalized (eigenfunction) expansion replaces with the eigenfunctions of any regular Sturm–Liouville operator — possibly with variable coefficients and a nontrivial weight — such as Legendre polynomials, Bessel functions, or Chebyshev polynomials. The coefficient formula, orthogonality relation, and convergence theory are structurally identical; only the specific basis functions and weight change.
Why does the method fail when equals an eigenvalue, and what does that failure mean physically?
When , the diagonalized equation for the -th mode becomes , which is either impossible (if ) or satisfied by any (if ). Physically, means the forcing is applied at exactly a natural frequency/mode of the system — resonance. If any component of the forcing lies along that resonant mode (), a bounded steady-state solution cannot exist (physically, the amplitude would grow without bound over time in the corresponding time-dependent problem). If the forcing happens to be orthogonal to the resonant mode, the system tolerates the resonance and a (non-unique) bounded solution exists.
Do I need to verify completeness of the eigenfunctions every time I use this method?
No. Completeness of in is a general theorem for any regular Sturm–Liouville problem (self-adjoint, , continuous, separated boundary conditions on a finite interval), proved once in Sturm-Liouville Theory. You verify the hypotheses of that general theorem (regularity of , the interval being bounded, separated boundary conditions), not completeness itself for each new problem.
How does this method relate to solving a linear system by diagonalizing a symmetric matrix ?
The analogy is exact. A symmetric matrix has an orthonormal eigenbasis with real eigenvalues ; writing , , the equation becomes for each . This is invertible (unique solution) exactly when no ; when some , is solvable iff (Fredholm alternative in finite dimensions), matching Case 2 of the theorem exactly. Sturm–Liouville eigenfunction expansion is this finite-dimensional fact carried over to the infinite-dimensional space , with playing the role of .
Can this method handle boundary conditions that are inhomogeneous, e.g. ?
Not directly — the theorem as stated requires to satisfy the same homogeneous boundary conditions as the eigenfunctions, since that is what makes the self-adjointness (Lagrange identity) argument work. The standard fix is to first subtract off any smooth function satisfying the inhomogeneous boundary data (e.g. a linear function matching , ), reducing to a new unknown that satisfies homogeneous conditions and an inhomogeneous ODE , which the theorem now applies to directly.
What is the connection to Green's functions?
Case 1 of the theorem gives a solution as a series . Writing out as an integral and interchanging sum and integral (justified under suitable convergence) shows that for the kernel . This kernel is exactly the Green's function for the operator with the given boundary conditions: the eigenfunction expansion is the spectral (series) representation of the same inverse operator that the Green's function represents as an integral kernel.
Does the method work if or change sign, or the interval is infinite?
Not as stated. The theorem requires , on a bounded interval (a regular Sturm–Liouville problem), which guarantees a discrete, unbounded, increasing sequence of real eigenvalues. If the interval is infinite or or vanishes/blows up at an endpoint (a singular Sturm–Liouville problem, e.g. Bessel's or Legendre's equation on natural domains), the spectrum can become partly or wholly continuous, the sums must be replaced by integrals over a continuous spectral parameter, and separate convergence theorems (Weyl's theory of singular Sturm–Liouville problems) are required; the discrete-sum theorem proved here does not apply verbatim.