Differential EquationsFourier Series and Boundary Value Problems6 of 6
Fourier Series and Boundary Value Problems · 6

Sturm-Liouville Theory and Orthogonal Eigenfunctions

When we solve partial differential equations on rods whose thickness changes, circular drums, or spheres, the differential equation picks up variable coefficients in front of y′′\unk{y}'' and y′\unk{y}', and we still need orthogonal eigenfunctions to find the series coefficients cnc_n.

Why Variable Coefficients Break Simple Orthogonality
y′′+λy=0,y(0)=0,y(π)=0\htmlClass{lc-blue}{y}'' + \lambda \htmlClass{lc-blue}{y} = 0,\quad \htmlClass{lc-blue}{y}(0) = 0,\quad \htmlClass{lc-blue}{y}(\pi) = 0
sin⁡x\htmlClass{lc-green}{\sin x}
sin⁡3x\sin 3x
sin⁡2x\htmlClass{lc-violet}{\sin 2x}
0\htmlClass{lc-mute}{0}
π\htmlClass{lc-mute}{\pi}

For the constant-coefficient problem y′′+λy=0\unk{y}'' + \lambda \unk{y} = 0 on [0,π][0, \pi] with y(0)=0\unk{y}(0) = 0 and y(π)=0\unk{y}(\pi) = 0, the eigenfunctions yn(x)=sin⁡(nx)\eigu{y_n(x)} = \eigu{\sin(nx)} cancel out whenever we multiply two different modes and integrate:

∫0πsin⁡(nx)sin⁡(mx) dx\displaystyle \int_0^\pi \eigu{\sin(nx)}\eigv{\sin(mx)}\,dx =0(n≠m)\displaystyle = 0 \quad (n \neq m)

When variable coefficients appear in A(x)y′′+B(x)y′+C(x)y+λy=0\pcoef{A(x)}\unk{y}'' + B(x)\unk{y}' + C(x)\unk{y} + \lambda \unk{y} = 0, the eigenfunctions stretch unevenly from left to right, and the plain integral of y1(x)y2(x)\eigu{y_1(x)}\eigv{y_2(x)} no longer equals zero:

∫aby1(x)y2(x) dx≠0\displaystyle \int_a^b \eigu{y_1(x)}\eigv{y_2(x)}\,dx \neq 0
1

Passing Derivatives by Integration by Parts

To get orthogonality back for variable coefficients, we first need to see why y′′=−λy\unk{y}'' = -\lambda \unk{y} gave us orthogonal eigenfunctions in the first place, and what has to match in a variable-coefficient equation for that same setup to work.

Passing Derivatives by Integration by Parts
u′′=−λ1u,v′′=−λ2v,λ1≠λ2\htmlClass{lc-green}{u}'' = -\lambda_1 \htmlClass{lc-green}{u},\quad \htmlClass{lc-violet}{v}'' = -\lambda_2 \htmlClass{lc-violet}{v},\quad \lambda_1 \ne \lambda_2
u\htmlClass{lc-green}{u}
v\htmlClass{lc-violet}{v}
a\htmlClass{lc-mute}{a}
b\htmlClass{lc-mute}{b}
∫abu′′ v dx\int_a^b \htmlClass{lc-green}{u}''\,\htmlClass{lc-violet}{v}\,dx

When two eigenfunctions u(x)\eigu{u(x)} and v(x)\eigv{v(x)} have their first and second derivatives bundled into a single product rule ddx[p(x)y′]\frac{d}{dx}[\pcoef{p(x)}\unk{y}'] and the boundary terms at aa and bb equal zero, integrating by parts twice passes the entire derivative ddx[p(x) ⋅ ′]\frac{d}{dx}[\pcoef{p(x)}\,\cdot\,'] cleanly from u\eigu{u} onto v\eigv{v}:

∫abddx[p(x)u′]v dx=−∫abp(x)u′v′ dx=∫abu ddx[p(x)v′] dx\displaystyle \begin{aligned}&\int_a^b \frac{d}{dx}\bigl[\pcoef{p(x)}\eigu{u}'\bigr]\eigv{v}\,dx \\ &= -\int_a^b \pcoef{p(x)}\eigu{u}'\eigv{v}'\,dx \\ &= \int_a^b \eigu{u}\,\frac{d}{dx}\bigl[\pcoef{p(x)}\eigv{v}'\bigr]\,dx\end{aligned}
2

Sturm-Liouville Form and the Weight Function

Most second-order equations don't start out with the coefficient of y′\unk{y}' equal to the derivative of the coefficient of y′′\unk{y}''. We want to bundle any second-order linear equation A(x)y′′+B(x)y′+C(x)y+λy=0\pcoef{A(x)}\unk{y}'' + B(x)\unk{y}' + C(x)\unk{y} + \lambda \unk{y} = 0 into a single product rule and see what that step does to the orthogonality integral.

Sturm-Liouville Form and the Weight Function
ddx[p(x) y′]\displaystyle \frac{d}{dx}\bigl[\pcoef{p(x)}\,\unk{y}'\bigr] =p(x) y′′+p′(x) y′\displaystyle = \pcoef{p(x)}\,\unk{y}'' + \pcoef{p'(x)}\,\unk{y}'
x2 y′′+3x y′+λy\displaystyle \pcoef{x^2}\,\unk{y}'' + 3x\,\unk{y}' + \lambda\unk{y} =0\displaystyle = 0
ddx[  ?  y′]+⋯\displaystyle \frac{d}{dx}\bigl[\;\pcoef{?}\;\unk{y}'\bigr] + \cdots =0\displaystyle = 0

Dividing by A(x)\pcoef{A(x)} and multiplying the entire equation by the integrating factor p(x)=e∫B(x)A(x) dx\pcoef{p(x)} = e^{\int \frac{B(x)}{\pcoef{A(x)}}\,dx} turns the derivative terms into ddx[p(x)y′]\frac{d}{dx}[\pcoef{p(x)}\unk{y}'] and puts the equation into Sturm-Liouville form:

ddx[p(x)y′]⏟bundled derivative+q(x)y+λw(x)⏟weight functiony\displaystyle \underbrace{\frac{d}{dx}\bigl[\pcoef{p(x)}\unk{y}'\bigr]}_{\text{bundled derivative}} + q(x)\unk{y} + \lambda \underbrace{\wt{w(x)}}_{\wt{\text{weight function}}}\unk{y} =0\displaystyle = 0

Because the left-hand side ddx[p(x)y′]+q(x)y\frac{d}{dx}[\pcoef{p(x)}\unk{y}'] + q(x)\unk{y} passes directly from u\eigu{u} onto v\eigv{v} under integration by parts, substituting −λ1w(x)u-\lambda_1 \wt{w(x)}\eigu{u} and −λ2w(x)v-\lambda_2 \wt{w(x)}\eigv{v} when λ1≠λ2\lambda_1 \neq \lambda_2 forces the integral containing w(x)\wt{w(x)} to equal zero:

−λ1∫abu(x)v(x)w(x) dx=−λ2∫abu(x)v(x)w(x) dx  ⟹  ∫abu(x)v(x)w(x) dx=0\displaystyle \begin{aligned}&-\lambda_1 \int_a^b \eigu{u(x)}\eigv{v(x)}\wt{w(x)}\,dx \\ &= -\lambda_2 \int_a^b \eigu{u(x)}\eigv{v(x)}\wt{w(x)}\,dx \\ &\implies \int_a^b \eigu{u(x)}\eigv{v(x)}\wt{w(x)}\,dx = 0\end{aligned}

On a string with uneven thickness, the waves u(x)\eigu{u(x)} and v(x)\eigv{v(x)} bunch up on the heavier side, so the plain arches of u(x)v(x)\eigu{u(x)}\eigv{v(x)} don't cancel out. Multiplying by the local density w(x)\wt{w(x)} scales those bunched-up arches back up so the weighted area of u(x)v(x)w(x)\eigu{u(x)}\eigv{v(x)}\wt{w(x)} balances to zero.

Making one end of the string heavier squeezes the waves there so the plain product stops canceling out, but weighting by the string's density stretches that squeezed side taller so the weighted area still adds up to zero.
3

Solving a Sturm-Liouville Problem and Expanding a Function

Now we want to solve a variable-coefficient boundary value problem from start to finish and use weighted orthogonality to find the coefficients cnc_n in the eigenfunction expansion f(x)=∑n=1∞cnyn(x)\fshape{f(x)} = \sum_{n=1}^\infty c_n \eigu{y_n(x)}:

x2y′′+3xy′+(1+λ)y\displaystyle \pcoef{x^2}\unk{y}'' + 3x\unk{y}' + (1 + \lambda)\unk{y} =0,y(1)\displaystyle = 0, \quad \unk{y}(1) =0,y(e)\displaystyle = 0, \quad \unk{y}(e) =0(1≤x≤e)\displaystyle = 0 \quad (1 \le x \le e)
Solving a Sturm-Liouville Problem and Expanding a Function
x2 y′′+3x y′+(1+λ) y=0\htmlClass{lc-orange}{x^2}\,\htmlClass{lc-blue}{y}'' + 3x\,\htmlClass{lc-blue}{y}' + (1 + \lambda)\,\htmlClass{lc-blue}{y} = 0
y(1)=0,y(e)=0\htmlClass{lc-blue}{y}(1) = 0,\quad \htmlClass{lc-blue}{y}(e) = 0
1\htmlClass{lc-mute}{1}
e\htmlClass{lc-mute}{e}
w(x)=  ?λn, yn(x)=  ?\htmlClass{lc-pink}{w(x)} = \;?\qquad \lambda_n,\ \htmlClass{lc-green}{y_n(x)} = \;?
cn=  ?c_n = \;?
Text solution
Multiply by xx to bundle the derivatives and read off w(x)\wt{w(x)} Multiplying the equation by xx makes 3x2\pcoef{3x^2} the derivative of x3\pcoef{x^3}, putting the equation into Sturm-Liouville form with weight function w(x)=x\wt{w(x)} = \wt{x}:
x3y′′+3x2y′+xy+λxy=0  ⟹  ddx[x3y′]+xy+λx⏟w(x)y=0\displaystyle \begin{aligned}\pcoef{x^3}\unk{y}'' + \pcoef{3x^2}\unk{y}' + x\unk{y} + \lambda \wt{x}\unk{y} &= 0 \\ \implies \frac{d}{dx}\bigl[\pcoef{x^3}\unk{y}'\bigr] + x\unk{y} + \lambda \underbrace{\wt{x}}_{\wt{w(x)}}\unk{y} &= 0\end{aligned}
Substitute y=xr\unk{y} = x^r to find the general solution for λ>0\lambda > 0 Plugging y=xr\unk{y} = x^r into the Cauchy-Euler equation gives complex roots r=−1±iλr = -1 \pm i\sqrt{\lambda}, which produce sine and cosine terms in ln⁡x\ln x:
r(r−1)+3r+1+λ=0  ⟹  (r+1)2=−λ  ⟹  y(x)=x−1[Acos⁡(λln⁡x)+Bsin⁡(λln⁡x)]\displaystyle \begin{aligned}&r(r - 1) + 3r + 1 + \lambda = 0 \\ &\implies (r + 1)^2 = -\lambda \\ &\implies \unk{y}(x) = x^{-1}\bigl[A\cos(\sqrt{\lambda}\ln x) \\ &\qquad\qquad + B\sin(\sqrt{\lambda}\ln x)\bigr]\end{aligned}
Apply y(1)=0\unk{y}(1) = 0 and y(e)=0\unk{y}(e) = 0 to find λn\lambda_n and yn(x)\eigu{y_n(x)} Plugging in x=1x = 1 gives A=0A = 0, and plugging in x=ex = e requires sin⁡(λ)=0\sin(\sqrt{\lambda}) = 0, so λ=nπ\sqrt{\lambda} = n\pi:
λn\displaystyle \lambda_n =n2π2,yn(x)\displaystyle = n^2\pi^2, \quad \eigu{y_n(x)} =1xsin⁡(nπln⁡x)(n=1,2,3,… )\displaystyle = \eigu{\frac{1}{x}\sin(n\pi \ln x)} \quad (n = 1, 2, 3, \dots)
Multiply by yn(x)w(x)\eigu{y_n(x)}\wt{w(x)} and integrate to solve for cnc_n Multiplying f(x)=∑m=1∞cmym(x)\fshape{f(x)} = \sum_{m=1}^\infty c_m \eigv{y_m(x)} by yn(x)w(x)\eigu{y_n(x)}\wt{w(x)} and integrating from 11 to ee makes every m≠nm \neq n term integrate to zero, and the weight w(x)=x\wt{w(x)} = \wt{x} cancels one 1x\eigu{\frac{1}{x}} in the denominator so u=ln⁡xu = \ln x gives ∫01sin⁡2(nπu) du=12\int_0^1 \sin^2(n\pi u)\,du = \frac{1}{2}:
cn=∫1ef(x)yn(x)w(x) dx∫1e[yn(x)]2w(x) dx=∫1ef(x)(1xsin⁡(nπln⁡x))x dx∫1esin⁡2(nπln⁡x) 1x dx=2∫1ef(x)sin⁡(nπln⁡x) dx\displaystyle \begin{aligned}c_n &= \frac{\int_1^e \fshape{f(x)}\eigu{y_n(x)}\wt{w(x)}\,dx}{\int_1^e [\eigu{y_n(x)}]^2 \wt{w(x)}\,dx} \\ &= \frac{\int_1^e \fshape{f(x)}\bigl(\eigu{\frac{1}{x}\sin(n\pi\ln x)}\bigr)\wt{x}\,dx}{\int_1^e \sin^2(n\pi\ln x)\,\frac{1}{x}\,dx} \\ &= 2\int_1^e \fshape{f(x)}\sin(n\pi\ln x)\,dx\end{aligned}
4

Mixed Boundary Conditions and Graphical Eigenvalues

Up to now, our endpoints were pinned (y=0\unk{y} = 0) or insulated (y′=0\unk{y}' = 0). Next, we want to see whether eigenfunctions stay orthogonal when a boundary condition mixes y\unk{y} and y′\unk{y}' together in αy(b)+βy′(b)=0\alpha \unk{y}(b) + \beta \unk{y}'(b) = 0, and how to find the eigenvalues in an example like

y′′+λy\displaystyle \unk{y}'' + \lambda \unk{y} =0,y(0)\displaystyle = 0, \quad \unk{y}(0) =0,y(1)+y′(1)\displaystyle = 0, \quad \unk{y}(1) + \unk{y}'(1) =0(0≤x≤1)\displaystyle = 0 \quad (0 \le x \le 1)
Mixed Boundary Conditions and Graphical Eigenvalues
a\htmlClass{lc-mute}{a}
b\htmlClass{lc-mute}{b}
α y(b)+β y′(b)=0\alpha\,\htmlClass{lc-blue}{y}(b) + \beta\,\htmlClass{lc-blue}{y}'(b) = 0
u′(b) v(b)−u(b) v′(b)=0   ?\htmlClass{lc-green}{u}'(b)\,\htmlClass{lc-violet}{v}(b) - \htmlClass{lc-green}{u}(b)\,\htmlClass{lc-violet}{v}'(b) = 0\;\,?

Integrating ∫abddx[p(x)u′]v dx\int_a^b \frac{d}{dx}[\pcoef{p(x)}\eigu{u}']\eigv{v}\,dx by parts twice produces the boundary term

[p(x)(u′(x)v(x)−u(x)v′(x))]ab\displaystyle \Bigl[\pcoef{p(x)}\bigl(\eigu{u}'(x)\eigv{v}(x) - \eigu{u}(x)\eigv{v}'(x)\bigr)\Bigr]_a^b =0\displaystyle = 0

At an endpoint where both u\eigu{u} and v\eigv{v} satisfy αy(b)+βy′(b)=0\alpha \unk{y}(b) + \beta \unk{y}'(b) = 0 with β≠0\beta \neq 0, both eigenfunctions have the same ratio y′(b)y(b)=−αβ\frac{\unk{y}'(b)}{\unk{y}(b)} = -\frac{\alpha}{\beta}, so the two terms inside the bracket cancel out:

u′(b)v(b)−u(b)v′(b)=(−αβu(b))v(b)−u(b)(−αβv(b))=0\displaystyle \begin{aligned}&\eigu{u}'(b)\eigv{v}(b) - \eigu{u}(b)\eigv{v}'(b) \\ &= \left(-\frac{\alpha}{\beta}\eigu{u}(b)\right)\eigv{v}(b) - \eigu{u}(b)\left(-\frac{\alpha}{\beta}\eigv{v}(b)\right) \\ &= 0\end{aligned}
Text solution
Use y(0)=0\unk{y}(0) = 0 to drop the cosine term Starting from y(x)=Acos⁡(λx)+Bsin⁡(λx)\unk{y}(x) = A\cos(\sqrt{\lambda}x) + B\sin(\sqrt{\lambda}x), the left boundary condition forces A=0A = 0 and leaves the sine wave:
y(x)\displaystyle \unk{y}(x) =sin⁡(λx)\displaystyle = \eigu{\sin(\sqrt{\lambda}x)}
Plug into y(1)+y′(1)=0\unk{y}(1) + \unk{y}'(1) = 0 and rewrite in terms of tan⁡(k)\rootcurve{\tan(k)} Setting k=λk = \sqrt{\lambda} and dividing by cos⁡(k)\cos(k) gives an equation for kk that cannot be solved by algebra:
sin⁡(k)+kcos⁡(k)\displaystyle \sin(k) + k\cos(k) =0  ⟹  tan⁡(k)\displaystyle = 0 \implies \rootcurve{\tan(k)} =−k\displaystyle = -k
Read the eigenvalues λn=kn2\lambda_n = k_n^2 from the intersections of tan⁡(k)\rootcurve{\tan(k)} and −k-k Each intersection k1≈2.0288,k2≈4.9132,…k_1 \approx 2.0288, k_2 \approx 4.9132, \dots gives an eigenvalue λn=kn2\lambda_n = k_n^2, and because u′v−uv′=0\eigu{u}'\eigv{v} - \eigu{u}\eigv{v}' = 0 at both ends, the eigenfunctions yn(x)=sin⁡(knx)\eigu{y_n(x)} = \eigu{\sin(k_n x)} are still orthogonal on [0,1][0, 1]:
∫01sin⁡(knx)sin⁡(kmx) dx\displaystyle \int_0^1 \eigu{\sin(k_n x)}\eigv{\sin(k_m x)}\,dx =0(n≠m)\displaystyle = 0 \quad (n \neq m)

Changing the ratio y′(1)y(1)\frac{\unk{y}'(1)}{\unk{y}(1)} at x=1x = 1 slides the intersections k1,k2,k3k_1, k_2, k_3 along the tan⁡(k)\rootcurve{\tan(k)} curves and changes how the waves bend at the right end. Even so, every mode still shares that same ratio at the boundary, so the positive and negative areas of y1(x)y2(x)\eigu{y_1(x)}\eigv{y_2(x)} on [0,1][0, 1] still cancel to zero.

No matter how you tilt the line through the origin, the crossings pick out modes with the same slope-to-height ratio at the right wall, so the positive and negative areas of their product always cancel out to zero.
5

Singular Problems: Legendre and Bessel Equations

Look at the p(x)\pcoef{p(x)} sitting in front of the boundary term [p(x)(u′v−uv′)]ab\bigl[\pcoef{p(x)}(\eigu{u}'\eigv{v} - \eigu{u}\eigv{v}')\bigr]_a^b. When p(x)\pcoef{p(x)} itself equals zero at an endpoint, we have a singular Sturm-Liouville problem: as long as we require y(x)\unk{y}(x) and y′(x)\unk{y}'(x) to stay bounded as xx approaches that endpoint, p(x)=0\pcoef{p(x)} = 0 makes the boundary term zero automatically without needing a pinned or mixed condition there.

x\htmlClass{lc-mute}{x}
Legendre, n=2\text{Legendre, } n = 2
−1\htmlClass{lc-mute}{-1}
1\htmlClass{lc-mute}{1}
Pn(x)\htmlClass{lc-green}{P_n(x)}
Qn(x)Q_n(x)
x\htmlClass{lc-mute}{x}
Bessel, ν=0\text{Bessel, } \nu = 0
0\htmlClass{lc-mute}{0}
R\htmlClass{lc-mute}{R}
Jν(λ x)\htmlClass{lc-green}{J_\nu(\sqrt{\lambda}\,x)}
Yν(λ x)Y_\nu(\sqrt{\lambda}\,x)

We can use this to find the eigenfunctions and orthogonality relations for Legendre's equation on [−1,1][-1, 1] and the parametric Bessel equation on [0,R][0, R]:

(1−x2)y′′−2xy′+λy\displaystyle \pcoef{(1 - x^2)}\unk{y}'' - \pcoef{2x}\unk{y}' + \lambda \unk{y} =0(−1≤x≤1)\displaystyle = 0 \quad (-1 \le x \le 1)
x2y′′+xy′+(λx2−ν2)y\displaystyle \pcoef{x^2}\unk{y}'' + x\unk{y}' + (\lambda x^2 - \nu^2)\unk{y} =0,y(R)\displaystyle = 0, \quad \unk{y}(R) =0(0≤x≤R)\displaystyle = 0 \quad (0 \le x \le R)
Singular Problems: Legendre and Bessel Equations
p(x)\htmlClass{lc-orange}{p(x)}
p(a)=0\htmlClass{lc-orange}{p(a) = 0}
a\htmlClass{lc-mute}{a}
b\htmlClass{lc-mute}{b}
p(a)(u′(a) v(a)−u(a) v′(a))=0   ?\htmlClass{lc-orange}{p(a)}\bigl(\htmlClass{lc-green}{u}'(a)\,\htmlClass{lc-violet}{v}(a) - \htmlClass{lc-green}{u}(a)\,\htmlClass{lc-violet}{v}'(a)\bigr) = 0\;\,?
Text solution
Bundle Legendre's equation directly and apply boundedness at x=±1x = \pm 1 Since ddx(1−x2)=−2x\frac{d}{dx}\pcoef{(1 - x^2)} = \pcoef{-2x} already matches the y′\unk{y}' coefficient, Legendre's equation is already in Sturm-Liouville form with p(x)=1−x2\pcoef{p(x)} = \pcoef{1 - x^2} equaling zero at both x=−1x = -1 and x=1x = 1, and requiring y(x)\unk{y}(x) to stay finite at ±1\pm 1 sets λn=n(n+1)\lambda_n = n(n + 1), drops Qn(x)Q_n(x), and leaves Pn(x)\eigu{P_n(x)} orthogonal with weight w(x)=1\wt{w(x)} = \wt{1}:
ddx[(1−x2)y′]+λ⋅1⏟w(x)⋅y=0  ⟹  ∫−11Pn(x)Pm(x) dx=0(n≠m)\displaystyle \begin{aligned}&\frac{d}{dx}\bigl[\pcoef{(1 - x^2)}\unk{y}'\bigr] + \lambda \cdot \underbrace{\wt{1}}_{\wt{w(x)}} \cdot \unk{y} = 0 \\ &\implies \int_{-1}^1 \eigu{P_n(x)}\eigv{P_m(x)}\,dx = 0 \\ &\qquad\qquad (n \neq m)\end{aligned}
Divide Bessel's equation by xx to put it into Sturm-Liouville form Dividing every term by xx makes the y′\unk{y}' coefficient 1=ddx(x)\pcoef{1} = \frac{d}{dx}(\pcoef{x}), giving p(x)=x\pcoef{p(x)} = \pcoef{x} (which equals zero at the drumhead center x=0x = 0) and weight function w(x)=x\wt{w(x)} = \wt{x}:
xy′′+1⋅y′−ν2xy+λxy=0  ⟹  ddx[xy′]−ν2xy+λx⏟w(x)y=0\displaystyle \begin{aligned}\pcoef{x}\unk{y}'' + \pcoef{1}\cdot \unk{y}' - \tfrac{\nu^2}{x}\unk{y} + \lambda \wt{x}\unk{y} &= 0 \\ \implies \frac{d}{dx}\bigl[\pcoef{x}\unk{y}'\bigr] - \tfrac{\nu^2}{x}\unk{y} + \lambda \underbrace{\wt{x}}_{\wt{w(x)}}\unk{y} &= 0\end{aligned}
Use boundedness at x=0x = 0 and y(R)=0\unk{y}(R) = 0 to get Bessel orthogonality Staying bounded as x→0+x \to 0^+ drops Yν(λx)Y_\nu(\sqrt{\lambda}x), pinning the rim y(R)=0\unk{y}(R) = 0 selects λn\lambda_n from the zeros Jν(λnR)=0\eigu{J_\nu(\sqrt{\lambda_n}R)} = 0, and the weight w(x)=x\wt{w(x)} = \wt{x} next to λy\lambda \unk{y} gives the orthogonality integral on [0,R][0, R]:
∫0RJν(λnx)Jν(λmx) x dx\displaystyle \int_0^R \eigu{J_\nu(\sqrt{\lambda_n}x)}\eigv{J_\nu(\sqrt{\lambda_m}x)}\,\wt{x}\,dx =0(n≠m)\displaystyle = 0 \quad (n \neq m)
6

The Sturm-Liouville Checklist and Five Guarantees

Even when we cannot solve a second-order equation by hand, checking that it is a Sturm-Liouville problem tells us right away how its eigenvalues, eigenfunctions, zero crossings, and series expansions behave.

The Sturm-Liouville Checklist and Five Guarantees
ddx[p(x) y′]+q(x) y+λ w(x) y=0\displaystyle \begin{aligned}\frac{d}{dx}\bigl[\pcoef{p(x)}\,\unk{y}'\bigr] &+ q(x)\,\unk{y}\\ &+ \lambda\,\wt{w(x)}\,\unk{y} = 0\end{aligned}
a\displaystyle a ≤x\displaystyle \le x ≤b\displaystyle \le b
a Sturm-Liouville problem?\displaystyle \text{a Sturm-Liouville problem?}
λn, yn(x) :   ?\displaystyle \lambda_n,\ \eigu{y_n(x)}\,:\ \;?

Once an equation on [a,b][a, b] is written in Sturm-Liouville form

ddx[p(x)y′]+q(x)y+λw(x)y\displaystyle \frac{d}{dx}\bigl[\pcoef{p(x)}\unk{y}'\bigr] + q(x)\unk{y} + \lambda \wt{w(x)}\unk{y} =0\displaystyle = 0

it is a regular Sturm-Liouville problem if it passes three checks:

If p(x)=0\pcoef{p(x)} = 0 at an endpoint (with boundedness replacing the boundary condition there) or the interval is infinite, the problem is singular.

y1\htmlClass{lc-green}{y_1}
0 zeros\text{0 zeros}
y2\htmlClass{lc-violet}{y_2}
1 zero\text{1 zero}
y3\htmlClass{lc-ink}{y_3}
2 zeros\text{2 zeros}
a\htmlClass{lc-mute}{a}
b\htmlClass{lc-mute}{b}
a\htmlClass{lc-mute}{a}
b\htmlClass{lc-mute}{b}
f(x)\htmlClass{lc-blue}{f(x)}
∑cn yn\htmlClass{lc-green}{\textstyle\sum c_n\, y_n}
12[f(x−)+f(x+)]\tfrac{1}{2}\bigl[\htmlClass{lc-blue}{f}(x^-) + \htmlClass{lc-blue}{f}(x^+)\bigr]

Passing the checklist guarantees five properties:

Key concepts

Every Sturm-Liouville question starts with the same first step: bundle the y′′\unk{y}'' and y′\unk{y}' terms into a single product rule so the equation reads

ddx[p(x)y′]+q(x)y+λw(x)y\displaystyle \frac{d}{dx}\bigl[\pcoef{p(x)}\unk{y}'\bigr] + q(x)\unk{y} + \lambda \wt{w(x)}\unk{y} =0\displaystyle = 0

Before using the integrating factor formula p(x)=e∫B(x)A(x) dx\pcoef{p(x)} = e^{\int \frac{B(x)}{\pcoef{A(x)}}\,dx}, check if you can bundle the derivatives by inspection. Sometimes the coefficient of y′\unk{y}' is already the derivative of the coefficient of y′′\unk{y}'', as in (1−x2)y′′−2xy′+λy=0\pcoef{(1 - x^2)}\unk{y}'' - \pcoef{2x}\unk{y}' + \lambda \unk{y} = 0 where ddx(1−x2)=−2x\frac{d}{dx}\pcoef{(1 - x^2)} = \pcoef{-2x}. Other times, multiplying or dividing by a simple power of xx does the job in one step, like dividing x2y′′+xy′+λx2y=0\pcoef{x^2}\unk{y}'' + x\unk{y}' + \lambda x^2 \unk{y} = 0 by xx to get ddx[xy′]+λxy=0\frac{d}{dx}[\pcoef{x}\unk{y}'] + \lambda \wt{x} \unk{y} = 0. Use p(x)=e∫B(x)A(x) dx\pcoef{p(x)} = e^{\int \frac{B(x)}{\pcoef{A(x)}}\,dx} when you cannot spot the factor right away, such as multiplying y′′+4y′+λy=0\unk{y}'' + 4\unk{y}' + \lambda \unk{y} = 0 by e4x\pcoef{e^{4x}} to get ddx[e4xy′]+λe4xy=0\frac{d}{dx}[\pcoef{e^{4x}}\unk{y}'] + \lambda \wt{e^{4x}}\unk{y} = 0.

Once the derivatives are bundled, read p(x)\pcoef{p(x)} inside the bracket and the weight w(x)\wt{w(x)} directly beside λy\lambda \unk{y}. Checking p(x)\pcoef{p(x)} at the endpoints tells you which boundary condition applies:

Key concept

If p(x)>0\pcoef{p(x)} > 0 and w(x)>0\wt{w(x)} > 0 on the entire closed interval [a,b][a, b] with separated endpoint conditions αy+βy′=0\alpha \unk{y} + \beta \unk{y}' = 0, the problem is regular. A mixed condition like y(1)+y′(1)=0\unk{y}(1) + \unk{y}'(1) = 0 turns the eigenvalue equation into a graph intersection like tan⁡(k)=−k\rootcurve{\tan(k)} = -k, while keeping the eigenfunctions orthogonal.

Key concept

If p(x)=0\pcoef{p(x)} = 0 at an endpoint, such as p(0)=0\pcoef{p(0)} = 0 in ddx[xy′]−ν2xy+λxy=0\frac{d}{dx}[\pcoef{x}\unk{y}'] - \frac{\nu^2}{x}\unk{y} + \lambda \wt{x}\unk{y} = 0, the problem is singular, and the condition at that endpoint is that y(x)\unk{y}(x) stays bounded, which drops the solution Yν(λx)Y_\nu(\sqrt{\lambda}x) that blows up.

In both cases, w(x)\wt{w(x)} goes into the orthogonality integral and into both integrals for the series coefficients:

∫abyn(x)ym(x)w(x) dx=0(n≠m),cn=∫abf(x)yn(x)w(x) dx∫ab[yn(x)]2w(x) dx\displaystyle \begin{aligned}&\int_a^b \eigu{y_n(x)}\eigv{y_m(x)}\wt{w(x)}\,dx = 0 \quad (n \neq m), \\ &c_n = \frac{\int_a^b \fshape{f(x)}\eigu{y_n(x)}\wt{w(x)}\,dx}{\int_a^b [\eigu{y_n(x)}]^2 \wt{w(x)}\,dx}\end{aligned}

And for a regular problem, the nn-th eigenfunction yn(x)\eigu{y_n(x)} crosses zero n−1n - 1 times inside (a,b)(a, b), while the series for a piecewise smooth f(x)\fshape{f(x)} converges to f(x)\fshape{f(x)} at points of (a,b)(a, b) where f\fshape{f} is continuous and to 12[f(x−)+f(x+)]\frac{1}{2}\bigl[\fshape{f}(x^-) + \fshape{f}(x^+)\bigr] at any jump.

7

Practice

1

Put the equation y′′+4y′+3y+λy=0\unk{y}'' + 4\unk{y}' + 3\unk{y} + \lambda \unk{y} = 0 on 0≤x≤π0 \le x \le \pi with y(0)=0\unk{y}(0) = 0 and y(π)=0\unk{y}(\pi) = 0 into standard Sturm-Liouville form, identify p(x)\pcoef{p(x)}, q(x)q(x), and the weight function w(x)\wt{w(x)}, and write the orthogonality integral satisfied by two eigenfunctions u(x)\eigu{u(x)} and v(x)\eigv{v(x)} with different eigenvalues.

Look at the coefficients of y′′\unk{y}'' and y′\unk{y}': what integrating factor e∫(B/A) dxe^{\int (B/A)\,dx} makes the second coefficient the derivative of the first?

The equation already has A(x)=1\pcoef{A(x)} = \pcoef{1} and B(x)=4B(x) = 4, so the integrating factor is
p(x)\displaystyle \pcoef{p(x)} =e∫4 dx\displaystyle = e^{\int 4\,dx} =e4x\displaystyle = \pcoef{e^{4x}}
Multiply every term of the equation by e4x\pcoef{e^{4x}} and bundle the first two terms into a single derivative (watch out: forgetting to multiply the 3y+λy3\unk{y} + \lambda \unk{y} terms by e4x\pcoef{e^{4x}} is the most common mistake and gives the wrong weight w(x)=1\wt{w(x)} = 1 and the wrong integral ∫0πu(x)v(x) dx=0\int_0^\pi \eigu{u(x)}\eigv{v(x)}\,dx = 0):
e4xy′′+4e4xy′+3e4xy+λe4xy=0  ⟹  ddx[e4xy′]+3e4xy+λe4xy=0\displaystyle \begin{aligned}\pcoef{e^{4x}}\unk{y}'' + \pcoef{4e^{4x}}\unk{y}' + 3e^{4x}\unk{y} + \lambda \wt{e^{4x}}\unk{y} &= 0 \\ \implies \frac{d}{dx}\bigl[\pcoef{e^{4x}}\unk{y}'\bigr] + 3e^{4x}\unk{y} + \lambda \wt{e^{4x}}\unk{y} &= 0\end{aligned}
Reading the functions from Sturm-Liouville form gives
p(x)\displaystyle \pcoef{p(x)} =e4x,q(x)\displaystyle = \pcoef{e^{4x}}, \quad q(x) =3e4x,w(x)\displaystyle = 3e^{4x}, \quad \wt{w(x)} =e4x\displaystyle = \wt{e^{4x}}
and the orthogonality integral on [0,π][0, \pi] is
∫0πu(x)v(x)e4x dx\displaystyle \int_0^\pi \eigu{u(x)}\eigv{v(x)}\wt{e^{4x}}\,dx =0\displaystyle = 0
2

For the boundary value problem y′′+λy=0\unk{y}'' + \lambda \unk{y} = 0 on 0≤x≤10 \le x \le 1 with y′(0)=0\unk{y}'(0) = 0 and y(1)+2y′(1)=0\unk{y}(1) + 2\unk{y}'(1) = 0, find the equation satisfied by k=λ>0k = \sqrt{\lambda} > 0, write the eigenfunctions yn(x)\eigu{y_n(x)}, and state their orthogonality relation on [0,1][0, 1].

Differentiate y(x)=Acos⁡(kx)+Bsin⁡(kx)\unk{y}(x) = A\cos(kx) + B\sin(kx) first to see which term stays when y′(0)=0\unk{y}'(0) = 0.

With k=λ>0k = \sqrt{\lambda} > 0, the general solution and its derivative are
y(x)\displaystyle \unk{y}(x) =Acos⁡(kx)+Bsin⁡(kx),y′(x)\displaystyle = A\cos(kx) + B\sin(kx), \quad \unk{y}'(x) =−Aksin⁡(kx)+Bkcos⁡(kx)\displaystyle = -Ak\sin(kx) + Bk\cos(kx)
Applying y′(0)=0\unk{y}'(0) = 0 gives Bk=0  ⟹  B=0Bk = 0 \implies B = 0, so y(x)=cos⁡(kx)\unk{y}(x) = \eigu{\cos(kx)} up to a constant multiple (don't treat y′(0)=0\unk{y}'(0) = 0 like y(0)=0\unk{y}(0) = 0 and keep sin⁡(kx)\sin(kx), which would lead to tan⁡(k)=−2k\rootcurve{\tan(k)} = -2k). Substituting y(x)=cos⁡(kx)\unk{y}(x) = \eigu{\cos(kx)} and y′(x)=−ksin⁡(kx)\unk{y}'(x) = -k\sin(kx) into y(1)+2y′(1)=0\unk{y}(1) + 2\unk{y}'(1) = 0 gives (be careful not to drop the chain-rule factor of kk on y′(1)\unk{y}'(1), which would give tan⁡(k)=12\rootcurve{\tan(k)} = \frac{1}{2}):
cos⁡(k)−2ksin⁡(k)\displaystyle \cos(k) - 2k\sin(k) =0  ⟹  tan⁡(k)\displaystyle = 0 \implies \rootcurve{\tan(k)} =12k\displaystyle = \frac{1}{2k}
If knk_n are the positive solutions of tan⁡(k)=12k\rootcurve{\tan(k)} = \frac{1}{2k}, then λn=kn2\lambda_n = k_n^2, the eigenfunctions are yn(x)=cos⁡(knx)\eigu{y_n(x)} = \eigu{\cos(k_n x)}, and with w(x)=1\wt{w(x)} = \wt{1} their orthogonality relation is
∫01cos⁡(knx)cos⁡(kmx) dx\displaystyle \int_0^1 \eigu{\cos(k_n x)}\eigv{\cos(k_m x)}\,dx =0(n≠m)\displaystyle = 0 \quad (n \neq m)
3

Consider x2y′′+xy′+(λx2−9)y=0x^2 \unk{y}'' + x\unk{y}' + (\lambda x^2 - 9)\unk{y} = 0 on 0≤x≤20 \le x \le 2 with y(2)=0\unk{y}(2) = 0 and y(x)\unk{y}(x) bounded as x→0+x \to 0^+. Put the equation into Sturm-Liouville form, explain why the problem is singular, find the eigenfunctions yn(x)\eigu{y_n(x)} and the equation for λn\lambda_n in terms of Bessel functions, and write the weighted orthogonality relation on [0,2][0, 2].

What power of xx can you divide the whole equation by so that the coefficient of y′\unk{y}' becomes the derivative of the coefficient of y′′\unk{y}''?

Divide the entire equation by xx so that the coefficient of y′\unk{y}' becomes 1=ddx(x)\pcoef{1} = \frac{d}{dx}(\pcoef{x}) (do not read the weight function off the original λx2y\lambda x^2 \unk{y} term before dividing by xx, which gives the wrong weight w(x)=x2\wt{w(x)} = x^2):
xy′′+y′−9xy+λxy=0  ⟹  ddx[xy′]−9xy+λxy=0\displaystyle \begin{aligned}\pcoef{x}\unk{y}'' + \unk{y}' - \frac{9}{x}\unk{y} + \lambda \wt{x}\unk{y} &= 0 \\ \implies \frac{d}{dx}\bigl[\pcoef{x}\unk{y}'\bigr] - \frac{9}{x}\unk{y} + \lambda \wt{x}\unk{y} &= 0\end{aligned}
Here p(x)=x\pcoef{p(x)} = \pcoef{x}, q(x)=−9xq(x) = -\frac{9}{x}, and w(x)=x\wt{w(x)} = \wt{x}, and the problem is singular because p(0)=0\pcoef{p(0)} = 0 at the left endpoint x=0x = 0. Since ν2=9  ⟹  ν=3\nu^2 = 9 \implies \nu = 3 (watch out for using J9J_9 instead of J3\eigu{J_3}), requiring y(x)\unk{y}(x) to stay bounded as x→0+x \to 0^+ drops Y3(λx)Y_3(\sqrt{\lambda}x) and leaves J3(λx)\eigu{J_3(\sqrt{\lambda}x)}. Applying y(2)=0\unk{y}(2) = 0 determines λn\lambda_n from the positive zeros of
J3(2λ)\displaystyle \eigu{J_3(2\sqrt{\lambda})} =0\displaystyle = 0
with eigenfunctions yn(x)=J3(λnx)\eigu{y_n(x)} = \eigu{J_3(\sqrt{\lambda_n}x)} and weighted orthogonality relation
∫02J3(λnx)J3(λmx)x dx\displaystyle \int_0^2 \eigu{J_3(\sqrt{\lambda_n}x)}\eigv{J_3(\sqrt{\lambda_m}x)}\wt{x}\,dx =0(n≠m)\displaystyle = 0 \quad (n \neq m)
4

Consider x2y′′+xy′+λy=0x^2 \unk{y}'' + x\unk{y}' + \lambda \unk{y} = 0 on 1≤x≤eπ1 \le x \le e^\pi with y(1)=0\unk{y}(1) = 0 and y(eπ)=0\unk{y}(e^\pi) = 0. Put the equation into Sturm-Liouville form to find w(x)\wt{w(x)}, find the eigenvalues λn\lambda_n and eigenfunctions yn(x)\eigu{y_n(x)}, and compute the coefficients cnc_n in the expansion f(x)=∑n=1∞cnyn(x)\fshape{f(x)} = \sum_{n=1}^\infty c_n \eigu{y_n(x)} for f(x)=1\fshape{f(x)} = 1.

Divide by xx to bundle the derivatives into ddx[xy′]\frac{d}{dx}[x\unk{y}'], then try y=xr\unk{y} = x^r to solve the Cauchy-Euler equation.

Dividing the equation by xx bundles the derivatives into Sturm-Liouville form:
xy′′+y′+λ1xy=0  ⟹  ddx[xy′]+λ1xy=0,w(x)=1x\displaystyle \begin{aligned}\pcoef{x}\unk{y}'' + \unk{y}' + \lambda \wt{\frac{1}{x}}\unk{y} &= 0 \\ \implies \frac{d}{dx}\bigl[\pcoef{x}\unk{y}'\bigr] + \lambda \wt{\frac{1}{x}}\unk{y} &= 0, \\ \wt{w(x)} &= \wt{\frac{1}{x}}\end{aligned}
Substituting y=xr\unk{y} = x^r into x2y′′+xy′+λy=0\pcoef{x^2}\unk{y}'' + x\unk{y}' + \lambda \unk{y} = 0 gives r(r−1)+r+λ=r2+λ=0r(r - 1) + r + \lambda = r^2 + \lambda = 0, so r=±iλr = \pm i\sqrt{\lambda} and
y(x)\displaystyle \unk{y}(x) =Acos⁡(λln⁡x)+Bsin⁡(λln⁡x)\displaystyle = A\cos(\sqrt{\lambda}\ln x) + B\sin(\sqrt{\lambda}\ln x)
Applying y(1)=A=0\unk{y}(1) = A = 0 and y(eπ)=Bsin⁡(λπ)=0\unk{y}(e^\pi) = B\sin(\sqrt{\lambda}\pi) = 0 gives λπ=nπ\sqrt{\lambda}\pi = n\pi, so
λn\displaystyle \lambda_n =n2,yn(x)\displaystyle = n^2, \quad \eigu{y_n(x)} =sin⁡(nln⁡x)(n=1,2,3,… )\displaystyle = \eigu{\sin(n\ln x)} \quad (n = 1, 2, 3, \dots)
For f(x)=1\fshape{f(x)} = 1, include the weight w(x)=1x\wt{w(x)} = \wt{\frac{1}{x}} in both integrals and substitute u=ln⁡xu = \ln x, du=1x dxdu = \wt{\frac{1}{x}}\,dx while changing the limits from x∈[1,eπ]x \in [1, e^\pi] to u∈[0,π]u \in [0, \pi] (leaving out w(x)=1x\wt{w(x)} = \wt{\frac{1}{x}}, or keeping the old limits 11 and eπe^\pi after substituting u=ln⁡xu = \ln x, gives a wrong answer):
cn=∫1eπ1⋅sin⁡(nln⁡x)1x dx∫1eπsin⁡2(nln⁡x)1x dx=∫0πsin⁡(nu) du∫0πsin⁡2(nu) du=[−1ncos⁡(nu)]0ππ2=2(1−(−1)n)nπ\displaystyle \begin{aligned}c_n &= \frac{\int_1^{e^\pi} \fshape{1} \cdot \eigu{\sin(n\ln x)}\wt{\frac{1}{x}}\,dx}{\int_1^{e^\pi} \eigu{\sin^2(n\ln x)}\wt{\frac{1}{x}}\,dx} \\ &= \frac{\int_0^\pi \sin(nu)\,du}{\int_0^\pi \sin^2(nu)\,du} \\ &= \frac{\bigl[-\frac{1}{n}\cos(nu)\bigr]_0^\pi}{\frac{\pi}{2}} \\ &= \frac{2\bigl(1 - (-1)^n\bigr)}{n\pi}\end{aligned}
5

Consider ddx[(1+x2)y′]−xy+λexy=0\frac{d}{dx}[(1 + x^2)\unk{y}'] - x\unk{y} + \lambda e^x \unk{y} = 0 on 0≤x≤20 \le x \le 2 with y(0)−y′(0)=0\unk{y}(0) - \unk{y}'(0) = 0 and y(2)=0\unk{y}(2) = 0. Verify that this is a regular Sturm-Liouville problem, state how many times the fourth eigenfunction y4(x)\eigu{y_4(x)} crosses zero in (0,2)(0, 2), and find the value to which the eigenfunction expansion of f(x)=2x\fshape{f(x)} = 2x for 0≤x<10 \le x < 1 and f(x)=5\fshape{f(x)} = 5 for 1<x≤21 < x \le 2 converges at x=0.5x = 0.5 and at x=1x = 1.

Check the signs of p(x)\pcoef{p(x)} and w(x)\wt{w(x)} on the closed interval [0,2][0, 2], then compare the index n=4n = 4 to the number of interior zero crossings of sin⁡(4x)\sin(4x) and check whether f(x)\fshape{f(x)} is continuous or has a jump at x=0.5x = 0.5 and x=1x = 1.

From the equation, p(x)=1+x2\pcoef{p(x)} = \pcoef{1 + x^2}, p′(x)=2x\pcoef{p'(x)} = \pcoef{2x}, q(x)=−xq(x) = -x, and w(x)=ex\wt{w(x)} = \wt{e^x} are all real-valued and continuous on [0,2][0, 2], p(x)≥1>0\pcoef{p(x)} \ge 1 > 0 and w(x)=ex>0\wt{w(x)} = \wt{e^x} > 0 on the entire closed interval [0,2][0, 2], and the boundary conditions y(0)−y′(0)=0\unk{y}(0) - \unk{y}'(0) = 0 and y(2)=0\unk{y}(2) = 0 are separated with at least one nonzero coefficient at each end, so the problem is regular.
Because a regular Sturm-Liouville problem's nn-th eigenfunction crosses zero n−1n - 1 times in (0,2)(0, 2), for n=4n = 4, y4(x)\eigu{y_4(x)} crosses zero 4−1=34 - 1 = 3 times in (0,2)(0, 2) (watch out for answering 44 by forgetting to subtract 11 for the interior crossings).
At x=0.5x = 0.5, f(x)=2x\fshape{f(x)} = 2x is continuous, so the series converges to
f(0.5)\displaystyle \fshape{f}(0.5) =2(0.5)\displaystyle = 2(0.5) =1\displaystyle = 1
At the jump discontinuity x=1x = 1, the series converges to the average of the left-hand limit f(1−)=2(1)=2\fshape{f}(1^-) = 2(1) = 2 and the right-hand limit f(1+)=5\fshape{f}(1^+) = 5 (don't just plug x=1x = 1 into one piece to get 22 or 55):
12[f(1−)+f(1+)]\displaystyle \frac{1}{2}\bigl[\fshape{f}(1^-) + \fshape{f}(1^+)\bigr] =12(2+5)\displaystyle = \frac{1}{2}(2 + 5) =72\displaystyle = \frac{7}{2}