Sturm-Liouville Theory

Why does the heat equation on a rod, solved by Separation of Variables for the Heat Equation, always produce sines? Separation splits the PDE into a time equation and a spatial ODE. Boundary and Initial Conditions for PDEs get attached to that ODE. This spatial ODE is not arbitrary. It belongs to a single unifying family: Sturm–Liouville problems. These are self-adjoint second-order eigenvalue problems on an interval. Recognizing this family explains several things at once. It shows why eigenvalues come out real. It shows why eigenfunctions for different eigenvalues are automatically orthogonal. It also shows why an arbitrary function can be expanded in them. This works the way a periodic function expands in a Fourier series. This matters because it unifies a zoo of special functions. Legendre polynomials, Bessel functions, Chebyshev polynomials, and ordinary trigonometric functions all become instances of one theorem. There is no need to re-derive orthogonality by brute-force integration each time. Sturm–Liouville theory delivers orthogonality, reality of eigenvalues, and completeness of eigenfunctions from one source. That source is the structure of the differential operator alone. Specifically, it is a symmetric ("self-adjoint") second-order operator with respect to a suitable inner product. The big picture is an analogy with linear algebra. A real symmetric matrix has real eigenvalues and an orthogonal eigenbasis. A Sturm–Liouville operator is the infinite-dimensional analogue. It acts on functions instead of vectors. An integral plays the role of the dot product. This analogy is not decorative. It is made precise via a genuine self-adjointness identity (Lagrange's identity). This identity mimics ⟨Ax,y⟩=⟨x,Ay⟩\langle Ax, y\rangle = \langle x, Ay\rangle. This article builds the Sturm–Liouville operator and proves the self-adjointness identity. It then uses that identity to prove two things. First, eigenvalues are real. Second, eigenfunctions are orthogonal with respect to a weight function. It closes by pointing toward Eigenfunction Expansions. There, these eigenfunctions serve as a generalized Fourier basis. It also points toward Green's Functions for Boundary Value Problems. These functions invert the same operator directly.

Key takeaways
  • A Sturm–Liouville (SL) problem is −(py′)′+qy=λwy-(py')' + qy = \lambda w y on [a,b][a,b] with separated boundary conditions.
  • The SL differential expression is formally self-adjoint: Lagrange's identity gives ∫(uLv−vLu) dx=[ p(uv′−vu′) ]ab\int (uLv - vLu)\,dx = [\,p(uv'-vu')\,]_a^b.
  • Regular SL boundary conditions make the boundary term vanish, so LL is symmetric on the space of functions satisfying them.
  • Symmetry forces all eigenvalues λ\lambda to be real numbers, exactly as for real symmetric matrices.
  • Eigenfunctions for distinct eigenvalues are orthogonal with respect to the weight w(x)w(x), not the plain L2L^2 inner product.
  • Eigenfunctions form a complete orthogonal basis (Sturm–Liouville expansion theorem), the engine behind Fourier, Legendre, and Bessel series.
  • Key idea: self-adjointness of a differential operator plays the same role for eigenfunctions that symmetry of a matrix plays for eigenvectors.

Where this lives today

Sturm–Liouville theory is the mathematical spine underneath separation of variables for essentially every linear PDE with variable coefficients on a bounded domain: heat conduction in a non-uniform rod, vibrations of a hanging chain of varying density, and the radial part of the Laplacian in spherical or cylindrical coordinates, where it produces Legendre polynomials and Bessel functions as eigenfunctions. In quantum mechanics, the time-independent Schrödinger equation for a particle in a potential well is literally a Sturm–Liouville eigenvalue problem, and the reality of eigenvalues proved here is the mathematical reason energy levels are real numbers rather than complex ones. Numerical analysts exploit self-adjointness to build stable finite-difference and finite-element discretizations (the resulting stiffness matrices are symmetric, mirroring the continuous operator). In applied statistics and signal processing, weighted orthogonal polynomial families arising from Sturm–Liouville problems (Legendre, Chebyshev, Hermite, Laguerre) underlie Gaussian quadrature rules and orthogonal polynomial regression. The theory also foreshadows Green's Functions for Boundary Value Problems, where the same self-adjoint operator, now inverted rather than diagonalized, produces a symmetric kernel G(x,ξ)=G(ξ,x)G(x,\xi)=G(\xi,x) directly from the identity proved in part (B) above, and it sets up Eigenfunction Expansions, the general machine for writing arbitrary functions as convergent series in these orthogonal eigenfunctions.

Ask the tutor: How do the boundary-term cancellations in Lagrange's identity change if the Sturm–Liouville problem is posed on a half-line with a decay condition at infinity instead of a second endpoint condition?

DefinitionRegular Sturm–Liouville problem

Let [a,b][a,b] be a finite closed interval and let p,q,w:[a,b]→Rp, q, w : [a,b] \to \mathbb{R} satisfy: 1. p∈C1[a,b]p \in C^1[a,b], p(x)>0p(x) > 0 for all x∈[a,b]x \in [a,b]; 2. q∈C[a,b]q \in C[a,b], real-valued; 3. w∈C[a,b]w \in C[a,b], w(x)>0w(x) > 0 for all x∈[a,b]x \in [a,b] (the weight function). The Sturm–Liouville differential expression is

L[y]:=−(p(x)y′)′+q(x)y.L[y] := -\big(p(x) y'\big)' + q(x) y.

A regular Sturm–Liouville problem consists of the eigenvalue equation

L[y]=λ w(x) y,x∈(a,b),L[y] = \lambda\, w(x)\, y, \qquad x \in (a,b),

together with separated boundary conditions

α1y(a)+α2y′(a)=0,β1y(b)+β2y′(b)=0,\alpha_1 y(a) + \alpha_2 y'(a) = 0, \qquad \beta_1 y(b) + \beta_2 y'(b) = 0,

where (α1,α2)≠(0,0)(\alpha_1,\alpha_2) \neq (0,0) and (β1,β2)≠(0,0)(\beta_1,\beta_2)\neq(0,0) are real constants. A number λ\lambda for which this problem has a nontrivial solution y≢0y \not\equiv 0 is an eigenvalue, and any such yy is a corresponding eigenfunction. (The adjectives regular and positive on p,wp,w can be relaxed to give singular Sturm–Liouville problems, e.g. for Legendre's or Bessel's equation, discussed in the Scope table below.)

Intuition

Think of the vector space of smooth functions on [a,b][a,b] satisfying the boundary conditions as an infinite-dimensional analogue of Rn\mathbb{R}^n. The weighted inner product

⟨f,g⟩w:=∫abf(x)g(x) w(x) dx\langle f, g\rangle_w := \int_a^b f(x) g(x)\, w(x)\, dx

plays the role of the dot product. The differential expression LL plays the role of a matrix AA. In linear algebra, symmetry of AA (meaning ⟨Ax,y⟩=⟨x,Ay⟩\langle Ax,y\rangle = \langle x, Ay\rangle for all x,yx,y) is exactly the property that forces real eigenvalues and an orthogonal eigenbasis via the spectral theorem. Sturm–Liouville theory shows that the same symmetry statement, ⟨Lu,v⟩=⟨u,Lv⟩\langle Lu, v \rangle = \langle u, Lv\rangle, holds for LL acting on functions satisfying the boundary conditions — provided the boundary terms that appear from integrating by parts twice cancel out. That cancellation is precisely what "separated boundary conditions" are built to guarantee. The picture below shows the analogy directly: a symmetric matrix diagonalizes into orthogonal eigenvectors on the left, while the Sturm–Liouville operator diagonalizes into an infinite orthogonal family of eigenfunctions (here, the familiar sin⁡(nπx)\sin(n\pi x) family from the Dirichlet problem) on the right.

Figure
Matrix symmetry (left) vs. Sturm–Liouville symmetry (right): both produce orthogonal eigenbases
Symmetric matrix A: Av₁=λ₁v₁, Av₂=λ₂v₂, v₁·v₂=0 v₁ v₂ ⟨v₁,v₂⟩ = 0 SL operator L: Lyₙ = λₙ w yₙ, ⟨yₙ,yₘ⟩_w=0 y₁ = sin(πx) y₂ = sin(2πx)

Central Theorem

TheoremSelf-adjointness, real eigenvalues, and orthogonality for regular Sturm–Liouville problems

Let L[y]=−(py′)′+qyL[y] = -(py')' + qy with p,q,wp,q,w satisfying the hypotheses in the Regular Sturm–Liouville problem definition, on [a,b][a,b] with separated boundary conditions as given there. Then:

(A) (Lagrange's identity / formal self-adjointness). For any u,v∈C2[a,b]u,v \in C^2[a,b],

u L[v]−v L[u]=ddx[p(x)(u v′−v u′)].u\,L[v] - v\,L[u] = \frac{d}{dx}\Big[p(x)\big(u\,v' - v\,u'\big)\Big].

(B) (Symmetry under the boundary conditions). If u,vu,v both satisfy the separated boundary conditions at aa and at bb, then

∫ab(u L[v]−v L[u]) dx=0,\int_a^b \big(u\,L[v] - v\,L[u]\big)\, dx = 0,

equivalently ∫abu L[v] dx=∫abv L[u] dx\displaystyle\int_a^b u\,L[v]\,dx = \int_a^b v\,L[u]\,dx.

(C) (Reality of eigenvalues). Every eigenvalue λ\lambda of the regular Sturm–Liouville problem is real.

(D) (Orthogonality with weight). If y1,y2y_1, y_2 are eigenfunctions corresponding to distinct eigenvalues λ1≠λ2\lambda_1 \neq \lambda_2, then

∫aby1(x) y2(x) w(x) dx=0.\int_a^b y_1(x)\, y_2(x)\, w(x)\, dx = 0.
Proof

We prove (A)–(D) in order; each part is used by the next, and none is circular since (A) is a direct computation, (B) uses only (A) and the boundary conditions, and (C), (D) use only (B).

Proof of (A). This is a direct computation via the product rule, the technique being straightforward differentiation and rearrangement — no appeal to the eigenvalue problem is made yet. Expand:

u L[v]=−u(pv′)′+uqv,v L[u]=−v(pu′)′+vqu.u\,L[v] = -u(pv')' + uqv, \qquad v\,L[u] = -v(pu')' + vqu.

Subtracting, the qq-terms cancel since uqv=vquuqv = vqu:

u L[v]−v L[u]=−u(pv′)′+v(pu′)′.u\,L[v] - v\,L[u] = -u(pv')' + v(pu')'.

Now compute the derivative on the right-hand side of the claimed identity using the product rule twice:

ddx[p(uv′−vu′)]=p′(uv′−vu′)+p(u′v′+uv′′−v′u′−vu′′)=p′(uv′−vu′)+p(uv′′−vu′′).\frac{d}{dx}\big[p(uv' - vu')\big] = p'(uv'-vu') + p(u'v' + uv'' - v'u' - vu'') = p'(uv'-vu') + p(uv''-vu'').

The u′v′u'v' and v′u′v'u' terms cancel. Meanwhile,

−u(pv′)′+v(pu′)′=−u(p′v′+pv′′)+v(p′u′+pu′′)=p′(vu′−uv′)+p(vu′′−uv′′)⋅(−1)⋯-u(pv')' + v(pu')' = -u(p'v' + pv'') + v(p'u' + pu'') = p'(vu'-uv') + p(vu''-uv'') \cdot(-1)\cdots

More carefully: −u(p′v′+pv′′)+v(p′u′+pu′′)=p′(vu′−uv′)+p(vu′′−uv′′)-u(p'v'+pv'') + v(p'u'+pu'') = p'(vu' - uv') + p(vu'' - uv''). This is the negative of p′(uv′−vu′)+p(uv′′−vu′′)p'(uv'-vu') + p(uv''-vu''), but note vu′−uv′=−(uv′−vu′)vu'-uv' = -(uv'-vu') and vu′′−uv′′=−(uv′′−vu′′)vu''-uv''=-(uv''-vu''), so in fact

−u(pv′)′+v(pu′)′=p′(uv′−vu′)+p(uv′′−vu′′),-u(pv')'+v(pu')' = p'(uv'-vu') + p(uv''-vu''),

which matches ddx[p(uv′−vu′)]\dfrac{d}{dx}[p(uv'-vu')] exactly. This proves (A).

Proof of (B). Integrate identity (A) from aa to bb and apply the Fundamental Theorem of Calculus:

∫ab(uL[v]−vL[u]) dx=[p(x)(u(x)v′(x)−v(x)u′(x))]ab.\int_a^b \big(uL[v]-vL[u]\big)\,dx = \Big[p(x)\big(u(x)v'(x) - v(x)u'(x)\big)\Big]_a^b.

It remains to show the right-hand side vanishes when u,vu,v satisfy the separated boundary conditions. At x=bx=b: since (β1,β2)≠(0,0)(\beta_1,\beta_2)\neq(0,0), suppose first β2≠0\beta_2 \neq 0. Then u(b)=−β1β2u′(b)u(b) = -\frac{\beta_1}{\beta_2}u'(b) and v(b)=−β1β2v′(b)v(b) = -\frac{\beta_1}{\beta_2}v'(b), so

u(b)v′(b)−v(b)u′(b)=−β1β2u′(b)v′(b)+β1β2v′(b)u′(b)=0.u(b)v'(b) - v(b)u'(b) = -\tfrac{\beta_1}{\beta_2}u'(b)v'(b) + \tfrac{\beta_1}{\beta_2}v'(b)u'(b) = 0.

If instead β2=0\beta_2 = 0 (so β1≠0\beta_1\neq 0), the boundary condition forces u(b)=v(b)=0u(b)=v(b)=0 directly, and again u(b)v′(b)−v(b)u′(b)=0u(b)v'(b)-v(b)u'(b)=0. Either way the term at bb vanishes; the identical argument at x=ax=a (using α1,α2\alpha_1,\alpha_2) shows the term at aa vanishes too. Hence

[p(uv′−vu′)]ab=0,\Big[p(uv'-vu')\Big]_a^b = 0,

which proves (B).

Proof of (C). Let λ\lambda be an eigenvalue with eigenfunction yy, a nontrivial (possibly complex-valued) solution of L[y]=λwyL[y]=\lambda w y satisfying the boundary conditions. Since p,q,wp,q,w are real, if yy is a complex solution then its complex conjugate yˉ\bar y satisfies

L[yˉ]=L[y]‾=λwy‾=λˉ w yˉ,L[\bar y] = \overline{L[y]} = \overline{\lambda w y} = \bar\lambda\, w\, \bar y,

using that ww is real, and yˉ\bar y satisfies the same (real-coefficient) boundary conditions since yy does. Apply part (B) with u=yu = y, v=yˉv = \bar y (both satisfy the boundary conditions, both are in C2C^2):

∫ab(y L[yˉ]−yˉ L[y]) dx=0.\int_a^b \big(y\,L[\bar y] - \bar y\,L[y]\big)\,dx = 0.

Substitute L[yˉ]=λˉwyˉL[\bar y] = \bar\lambda w \bar y and L[y]=λwyL[y] = \lambda w y:

∫ab(y λˉwyˉ−yˉ λwy) dx=(λˉ−λ)∫abw ∣y∣2 dx=0.\int_a^b \big(y\,\bar\lambda w \bar y - \bar y \,\lambda w y\big)\,dx = (\bar\lambda - \lambda)\int_a^b w\,|y|^2\,dx = 0.

Because w(x)>0w(x) > 0 on [a,b][a,b] and y≢0y \not\equiv 0 is continuous, ∫abw∣y∣2 dx>0\int_a^b w|y|^2\,dx > 0. Dividing, λˉ−λ=0\bar\lambda - \lambda = 0, i.e. λ=λˉ\lambda = \bar\lambda, so λ∈R\lambda \in \mathbb{R}. This proves (C).

Proof of (D). Let y1,y2y_1, y_2 be eigenfunctions for eigenvalues λ1≠λ2\lambda_1 \neq \lambda_2; by (C) both eigenvalues, and (choosing eigenfunctions real, which is always possible once eigenvalues are real, since the real and imaginary parts of a complex eigenfunction each independently solve the real ODE and boundary conditions) both eigenfunctions may be taken real-valued. Apply (B) with u=y1u=y_1, v=y2v=y_2:

∫ab(y1L[y2]−y2L[y1]) dx=0.\int_a^b \big(y_1 L[y_2] - y_2 L[y_1]\big)\,dx = 0.

Substitute L[y2]=λ2wy2L[y_2] = \lambda_2 w y_2 and L[y1]=λ1wy1L[y_1] = \lambda_1 w y_1:

∫ab(y1λ2wy2−y2λ1wy1) dx=(λ2−λ1)∫abw y1y2 dx=0.\int_a^b\big(y_1 \lambda_2 w y_2 - y_2\lambda_1 w y_1\big)\,dx = (\lambda_2-\lambda_1)\int_a^b w\,y_1y_2\,dx = 0.

Since λ2≠λ1\lambda_2 \neq \lambda_1, we may divide by (λ2−λ1)≠0(\lambda_2-\lambda_1) \neq 0, giving

∫aby1(x)y2(x)w(x) dx=0.\int_a^b y_1(x) y_2(x) w(x)\,dx = 0.

This proves (D) and completes the proof of the theorem. ■\blacksquare

∎
CorollaryReal, simple eigenfunctions and a countable spectrum — stated

For a regular Sturm–Liouville problem as above, it is a standard further fact (proved using oscillation theory / Prüfer substitution, beyond the scope of this proof) that the eigenvalues form an increasing sequence

λ1<λ2<λ3<⋯→∞,\lambda_1 < \lambda_2 < \lambda_3 < \cdots \to \infty,

each eigenvalue is simple (its eigenspace is one-dimensional), and the corresponding eigenfunctions {yn}n=1∞\{y_n\}_{n=1}^\infty, orthogonal by part (D), form a complete orthogonal system in the weighted space Lw2(a,b)L^2_w(a,b): every piecewise-smooth ff on [a,b][a,b] satisfying the boundary conditions has a convergent generalized Fourier expansion

f(x)=∑n=1∞cn yn(x),cn=∫abf(x)yn(x)w(x) dx∫abyn(x)2w(x) dx.f(x) = \sum_{n=1}^{\infty} c_n\, y_n(x), \qquad c_n = \frac{\displaystyle\int_a^b f(x) y_n(x) w(x)\,dx}{\displaystyle\int_a^b y_n(x)^2 w(x)\,dx}.

This completeness statement is the subject of Eigenfunction Expansions and is stated here, proof beyond scope — it requires compactness of the resolvent operator, not just the algebraic symmetry proved above.

Worked examples

Example 1 — Robin (radiation) boundary conditions, asymmetric interval. Consider y′′+λy=0y'' + \lambda y = 0 on [0,L][0, L] with

y(0)=0,y′(L)+h y(L)=0,h>0 constant.y(0) = 0, \qquad y'(L) + h\,y(L) = 0, \qquad h > 0 \text{ constant}.

Here p(x)=1p(x)=1, q(x)=0q(x)=0, w(x)=1w(x)=1, so this is a regular Sturm–Liouville problem (p≡1>0p\equiv 1 > 0, w≡1>0w\equiv 1>0 continuous, boundary conditions separated with (α1,α2)=(1,0)(\alpha_1,\alpha_2)=(1,0) at x=0x=0 and (β1,β2)=(h,1)(\beta_1,\beta_2)=(h,1) at x=Lx=L). By part (C) all eigenvalues are real, so we search over real λ\lambda and rule out λ≤0\lambda \le 0 first. Case λ≤0\lambda \le 0: write λ=−μ2\lambda = -\mu^2, μ≥0\mu\ge 0. General solution y=Acosh⁡(μx)+Bsinh⁡(μx)y = A\cosh(\mu x) + B\sinh(\mu x). The condition y(0)=0y(0)=0 forces A=0A=0, so y=Bsinh⁡(μx)y = B\sinh(\mu x). Then y′(L)+hy(L)=B[μcosh⁡(μL)+hsinh⁡(μL)]=0y'(L) + hy(L) = B\big[\mu\cosh(\mu L) + h\sinh(\mu L)\big] = 0. Since μ,h,cosh⁡,sinh⁡≥0\mu, h, \cosh, \sinh \ge 0 with cosh⁡>0\cosh > 0 always, the bracket is strictly positive unless μ=0\mu = 0 and then it equals 00 trivially, but μ=0\mu=0 makes y≡0y\equiv 0. So no nontrivial solution for λ≤0\lambda \le 0: all eigenvalues are strictly positive, consistent with q≥0q \ge 0 intuition. Case λ=μ2>0\lambda = \mu^2 > 0: general solution y=Acos⁡(μx)+Bsin⁡(μx)y = A\cos(\mu x) + B \sin(\mu x). The condition y(0)=0y(0) = 0 gives A=0A = 0, so y=Bsin⁡(μx)y = B\sin(\mu x), B≠0B\neq 0. The right boundary condition:

y′(L)+hy(L)=B[μcos⁡(μL)+hsin⁡(μL)]=0  ⟹  tan⁡(μL)=−μh.y'(L) + h y(L) = B\big[\mu\cos(\mu L) + h \sin(\mu L)\big] = 0 \;\Longrightarrow\; \tan(\mu L) = -\frac{\mu}{h}.

This transcendental equation has infinitely many positive roots μ1<μ2<⋯\mu_1 < \mu_2 < \cdots (one in each interval where tan⁡(μL)\tan(\mu L) decreases through −μ/h-\mu/h), giving eigenvalues λn=μn2\lambda_n = \mu_n^2 and eigenfunctions yn(x)=sin⁡(μnx)y_n(x) = \sin(\mu_n x). By part (D), for m≠nm \neq n,

∫0Lsin⁡(μmx)sin⁡(μnx) dx=0,\int_0^L \sin(\mu_m x)\sin(\mu_n x)\, dx = 0,

even though μn\mu_n are not the simple multiples nπ/Ln\pi/L of the pure Dirichlet problem — orthogonality here is a structural consequence of self-adjointness, not a lucky trigonometric identity. This is exactly the situation for a rod radiating heat into its surroundings (Newton cooling) at x=Lx=L.

Example 2 — Legendre's equation on [−1,1][-1,1]: a genuinely singular Sturm–Liouville problem. Legendre's equation,

[(1−x2)y′]′+n(n+1)y=0,x∈(−1,1),\big[(1-x^2) y'\big]' + n(n+1) y = 0, \qquad x \in (-1,1),

is the Sturm–Liouville equation L[y]=λwyL[y] = \lambda w y with p(x)=1−x2p(x) = 1-x^2, q(x)=0q(x) = 0, w(x)=1w(x) = 1, λ=n(n+1)\lambda = n(n+1). Notice p(±1)=0p(\pm 1) = 0: the regularity hypothesis p>0p > 0 on the closed interval fails at both endpoints, so this is a singular Sturm–Liouville problem, not covered directly by the theorem above. Boundedness at x=±1x=\pm1 replaces a boundary condition. Nevertheless the Lagrange identity computation in part (A) is purely algebraic and does not use positivity of pp, only that p∈C1p \in C^1. So for any two solutions u,vu,v bounded on [−1,1][-1,1],

∫−11(uL[v]−vL[u]) dx=[(1−x2)(uv′−vu′)]−11=0,\int_{-1}^1 (uL[v]-vL[u])\,dx = \Big[(1-x^2)(uv'-vu')\Big]_{-1}^{1} = 0,

because the factor (1−x2)(1-x^2) itself vanishes at x=±1x=\pm1, killing the boundary term automatically — no separated boundary condition is even needed, provided u,vu,v and their derivatives stay bounded there (true for the Legendre polynomials Pn(x)P_n(x), which are polynomials, hence bounded, and it is a fact, provable by Frobenius analysis, that any second linearly independent solution blows up logarithmically at x=±1x=\pm1 and must be excluded). Repeating the argument of part (D) with u=Pmu = P_m, v=Pnv = P_n, λm=m(m+1)\lambda_m = m(m+1), λn=n(n+1)\lambda_n = n(n+1) for m≠nm\neq n gives, exactly as before,

(n(n+1)−m(m+1))∫−11Pm(x)Pn(x) dx=0.\big(n(n+1) - m(m+1)\big)\int_{-1}^1 P_m(x) P_n(x)\,dx = 0.

Since m≠n⇒m(m+1)≠n(n+1)m \ne n \Rightarrow m(m+1)\neq n(n+1) for nonnegative integers m,nm,n (the map k↦k(k+1)k\mapsto k(k+1) is strictly increasing on k≥0k\ge 0), we conclude

∫−11Pm(x)Pn(x) dx=0,m≠n,\int_{-1}^1 P_m(x) P_n(x)\,dx = 0, \qquad m \neq n,

the classical orthogonality of Legendre polynomials — obtained here without a single integration by parts beyond Lagrange's identity, and without ever invoking the closed-form Rodrigues formula for PnP_n.

CounterexampleDropping separated boundary conditions destroys symmetry: periodic BCs need not vanish the boundary term the same way, and non-separated or mismatched conditions can produce complex eigenvalues

Consider y′′+λy=0y'' + \lambda y = 0 on [0,2π][0, 2\pi], i.e. p=1,q=0,w=1p=1,q=0,w=1, but replace the separated boundary conditions with the mixed, non-self-adjoint pair

y(0)=0,y′(2π)=y(0)(coupling both endpoints in one condition, not "separated").y(0) = 0, \qquad y'(2\pi) = y(0) \quad (\text{coupling both endpoints in one condition, not "separated"}).

This is not of the separated form β1y(2π)+β2y′(2π)=0\beta_1 y(2\pi)+\beta_2 y'(2\pi)=0 required by the theorem, since the right-hand condition involves y(0)y(0), mixing endpoints. Check part (B) fails: take u(x)=xu(x) = x (satisfies u(0)=0u(0)=0, and u′(2π)=1=u(0)=0u'(2\pi) = 1 = u(0) = 0? — no, u(0)=0≠1u(0)=0\ne 1, so uu does not even satisfy the boundary condition). Instead exhibit directly that the boundary term in the proof of (B),

[p(uv′−vu′)]02π=(u(2π)v′(2π)−v(2π)u′(2π))−(u(0)v′(0)−v(0)u′(0)),\Big[p(uv'-vu')\Big]_0^{2\pi} = \big(u(2\pi)v'(2\pi)-v(2\pi)u'(2\pi)\big) - \big(u(0)v'(0)-v(0)u'(0)\big),

need not vanish under a condition coupling y′(2π)y'(2\pi) to y(0)y(0) rather than to y(2π)y(2\pi): the substitution used in the theorem's proof (isolating u(b)u(b) or u′(b)u'(b) purely in terms of data at bb) is unavailable, because the condition at b=2πb=2\pi references the other endpoint. Concretely, solving y′′+λy=0y'' + \lambda y = 0 with y(0)=0y(0)=0 gives y=Bsin⁡(λx)y = B\sin(\sqrt\lambda x) (for λ>0\lambda>0); imposing y′(2π)=y(0)=0y'(2\pi) = y(0) = 0 forces Bλcos⁡(2πλ)=0B\sqrt\lambda\cos(2\pi\sqrt\lambda) = 0, so either B=0B=0 (trivial) or cos⁡(2πλ)=0\cos(2\pi\sqrt\lambda)=0, giving a discrete but perfectly real spectrum in this particular example — so to see genuine failure one must go further and consider a condition such as

y(0)=y(2π),y′(0)=−y′(2π)y(0) = y(2\pi), \qquad y'(0) = -y'(2\pi)

(periodic-like but with a sign flip, an anti-periodic, non-separated pairing). Direct substitution of y=eiμxy=e^{i\mu x} solutions shows the resulting characteristic equation can force μ\mu off the real axis for suitable sign choices, and more importantly the boundary term

(u(2π)v′(2π)−v(2π)u′(2π))−(u(0)v′(0)−v(0)u′(0))\big(u(2\pi)v'(2\pi) - v(2\pi)u'(2\pi)\big) - \big(u(0)v'(0)-v(0)u'(0)\big)

computed with u(2π)=u(0),u′(2π)=−u′(0)u(2\pi) = u(0), u'(2\pi) = -u'(0) becomes −2(u(0)v′(0)−v(0)u′(0))-2\big(u(0)v'(0) - v(0)u'(0)\big), a nonzero twisted boundary pairing in general rather than the clean cancellation the separated case guarantees. The moral, made precise by the theorem's proof: it is the separated form (each condition confined to a single endpoint) that is exactly tailored to make every term in [p(uv′−vu′)]ab[p(uv'-vu')]_a^b cancel individually; remove that structure and the cancellation — hence symmetry, hence real eigenvalues and orthogonality — is no longer guaranteed by the argument (periodic boundary conditions on a genuinely periodic problem, p(a)=p(b)p(a)=p(b), are a special coupled case that happens to still work, which is precisely why the article restricts attention to the separated case for the general theorem).

Scope, edge cases & common traps

SituationWhat happensWhy
p(x)→0p(x) \to 0 at an endpoint (Legendre, Bessel)Singular SL problem; boundedness replaces a boundary conditionBoundary term in Lagrange's identity vanishes automatically via p=0p=0
w(x)w(x) vanishes or is unbounded at an endpointStill singular; convergence of ∫fynw dx\int f y_n w\,dx needs careWeighted inner product may fail to be finite without boundedness assumptions
Periodic boundary conditions y(a)=y(b), y′(a)=y′(b)y(a)=y(b),\,y'(a)=y'(b) with p(a)=p(b)p(a)=p(b)Symmetry does hold (special coupled case)The boundary term telescopes to zero even though conditions are not separated
Non-separated, non-periodic mixed conditionsSymmetry can fail; complex eigenvalues possibleSee the counterexample above
q(x)<0q(x) < 0 somewhereEigenvalues can be negativePositivity of λ\lambda is not guaranteed by the theorem, only reality
Confusing L2L^2 orthogonality with Lw2L^2_w orthogonalityWrong inner product used in Fourier coefficient formulaOrthogonality proved is with respect to w(x) dxw(x)\,dx, not dxdx

The mathematician behind it

Origins · 1 minJacques Charles François Sturm and how this was discovered
JC
Jacques Charles François Sturm
1803–1855 · 19th-century France, alongside Joseph Liouville

Sturm, a Swiss-born mathematician working in Paris, and Joseph Liouville, his close collaborator and fellow editor of mathematical journals, developed the theory jointly in a series of papers in the 1830s. Sturm's independent work on the number of real roots of polynomials (Sturm's theorem in algebra) fed directly into the oscillation theory underlying eigenvalue counting for these boundary value problems, while Liouville's expertise in analysis supplied the rigorous machinery for expansions in eigenfunctions — the two strands merged into what is now inseparably called Sturm–Liouville theory.

History
- 1829: Sturm begins publishing on the oscillation properties of solutions to second-order linear ODEs.
- 1836: Sturm and Liouville jointly publish foundational papers in the Journal de Mathématiques Pures et Appliquées establishing the eigenvalue theory.
- 1837: Liouville extends the framework to prove expansion theorems for arbitrary functions in eigenfunction series.
- 1890s: Techniques are systematized and connected to the emerging spectral theory of integral equations (Hilbert, Fredholm).
- 1900s–1930s: Hilbert space methods (self-adjoint operators, spectral theorem) recast Sturm–Liouville theory as a special case of operator theory on L2L^2.
What exactly does "self-adjoint" mean for a differential operator, and how is it different from a symmetric matrix?

For a matrix AA, symmetry means ⟨Ax,y⟩=⟨x,Ay⟩\langle Ax,y\rangle = \langle x, Ay\rangle for the standard dot product, for all vectors x,yx,y. For the Sturm–Liouville operator LL, "formally self-adjoint" means the differential expression itself, L[y]=−(py′)′+qyL[y]=-(py')'+qy, produces the Lagrange identity uL[v]−vL[u]=ddx[p(uv′−vu′)]uL[v]-vL[u] = \frac{d}{dx}[p(uv'-vu')] for any two functions, with no boundary conditions imposed yet. Genuine self-adjointness — the operator equalling its own adjoint on a specific domain — additionally requires the boundary term to vanish, which is where separated boundary conditions enter. So self-adjointness is a joint property of the differential expression and the boundary conditions together, not of the expression alone.

Why must the boundary conditions be "separated" rather than just any two linear conditions?

Separated means each condition involves function values only at a single endpoint: one condition purely in y(a),y′(a)y(a), y'(a), the other purely in y(b),y′(b)y(b), y'(b). The proof of part (B) isolates u(b)u(b) or u′(b)u'(b) using only the endpoint-bb condition and substitutes directly into the boundary term evaluated at bb, and does the same independently at aa. If a condition mixes both endpoints (as in the counterexample), this isolation step breaks, and the two contributions to [p(uv′−vu′)]ab[p(uv'-vu')]_a^b no longer cancel term-by-term. Periodic boundary conditions are a notable exception that still work, but for a different, coincidental reason tied to p(a)=p(b)p(a)=p(b).

Are all eigenvalues of a regular Sturm–Liouville problem necessarily positive?

No. The theorem proves eigenvalues are real, not that they are positive. Positivity requires an additional hypothesis, typically q(x)≥0q(x)\ge 0 together with boundary conditions of a compatible sign (e.g. Dirichlet, Neumann with the right sign, or Robin with α2β2≥0\alpha_2\beta_2\ge0 type conditions), which make the associated quadratic form ∫ab(p(y′)2+qy2) dx\int_a^b (p(y')^2+qy^2)\,dx nonnegative. Without such extra structure, qq can be sufficiently negative to force some eigenvalues negative, as happens for certain Schrödinger-type potentials with deep wells.

How does this connect to the completeness claims used in Fourier series?

Ordinary Fourier series (sines and cosines on [0,L][0,L]) are the special case p=w=1p=w=1, q=0q=0, with Dirichlet, Neumann, or periodic boundary conditions. Orthogonality of sin⁡(nπx/L)\sin(n\pi x/L) functions, usually verified by a direct trigonometric integral in introductory courses, is revealed here as one instance of part (D) of the general theorem. The deeper fact that these eigenfunctions form a complete basis (every reasonable function is a convergent sum of them) is the content of Eigenfunction Expansions, which builds on the orthogonality proved here but needs additional analytic tools (compactness, oscillation counting) beyond the algebraic symmetry argument given in this article.

Can a Sturm–Liouville problem have complex-valued eigenfunctions?

For a regular problem with the hypotheses stated (real p,q,wp,q,w, real separated boundary conditions), every eigenvalue is real by part (C), and one can always choose a real eigenfunction: if yy is a complex eigenfunction, both Re⁡(y)\operatorname{Re}(y) and Im⁡(y)\operatorname{Im}(y) independently satisfy the same real linear ODE and the same real boundary conditions (since λ\lambda is real, the ODE has real coefficients once λ\lambda is substituted), so at least one of them is nontrivial and serves as a real eigenfunction. In practice one always works with real eigenfunctions for regular problems; complex eigenfunctions only enter as a proof device, as in the proof of part (C) itself.

What breaks if the interval is infinite or p,wp,w are unbounded — does the theorem still apply?

Not directly. The theorem as stated requires a finite closed interval [a,b][a,b] with p,wp,w continuous and strictly positive throughout, including the endpoints, which is the "regular" case. Problems on infinite intervals (like the Hermite or Laguerre equations on (−∞,∞)(-\infty,\infty) or (0,∞)(0,\infty)) or with pp or ww vanishing/blowing up at an endpoint (Legendre, Bessel, Chebyshev) are "singular" Sturm–Liouville problems. The Lagrange identity computation in part (A) still holds pointwise since it never used positivity, but establishing that the boundary term vanishes — and hence recovering parts (B)–(D) — requires separate, case-by-case analysis of the behavior of solutions near the singular endpoint, as illustrated in Worked Example 2.

Why does Sturm–Liouville theory guarantee real eigenvalues but real symmetric matrices are the finite-dimensional version — is this an exact analogy or just a loose one?

It is an exact and rigorous analogy, not merely a mnemonic. The weighted inner product ⟨f,g⟩w=∫abfgw dx\langle f,g\rangle_w=\int_a^b fgw\,dx makes Lw2(a,b)L^2_w(a,b) a genuine (infinite-dimensional) real inner product space, and part (B) proves ⟨Lu,v⟩w=⟨u,Lv⟩w\langle Lu,v\rangle_w = \langle u, Lv\rangle_w for all u,vu,v in the domain (functions satisfying the boundary conditions) — the exact defining property of a symmetric linear operator. The proofs of reality of eigenvalues (part C) and orthogonality (part D) are verbatim translations of the standard linear-algebra proofs for symmetric matrices, with the dot product replaced by ⟨⋅,⋅⟩w\langle\cdot,\cdot\rangle_w and matrix-vector multiplication replaced by LL.

Before this

Where this leads