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′′ and y′, and we still need orthogonal eigenfunctions to find the series coefficients cn.
For the constant-coefficient problem y′′+λy=0 on [0,π] with y(0)=0 and y(π)=0, the eigenfunctions yn(x)=sin(nx) cancel out whenever we multiply two different modes and integrate:
∫0πsin(nx)sin(mx)dx=0(n=m)
When variable coefficients appear in A(x)y′′+B(x)y′+C(x)y+λy=0, the eigenfunctions stretch unevenly from left to right, and the plain integral of y1(x)y2(x) no longer equals zero:
∫aby1(x)y2(x)dx=0
1
Passing Derivatives by Integration by Parts
To get orthogonality back for variable coefficients, we first need to see why y′′=−λ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
When two eigenfunctions u(x) and v(x) have their first and second derivatives bundled into a single product rule dxd[p(x)y′] and the boundary terms at a and b equal zero, integrating by parts twice passes the entire derivative dxd[p(x)⋅′] cleanly from u onto v:
Most second-order equations don't start out with the coefficient of y′ equal to the derivative of the coefficient of y′′. We want to bundle any second-order linear equation A(x)y′′+B(x)y′+C(x)y+λy=0 into a single product rule and see what that step does to the orthogonality integral.
Sturm-Liouville Form and the Weight Function
dxd[p(x)y′]=p(x)y′′+p′(x)y′
x2y′′+3xy′+λy=0
dxd[?y′]+⋯=0
Dividing by A(x) and multiplying the entire equation by the integrating factor p(x)=e∫A(x)B(x)dx turns the derivative terms into dxd[p(x)y′] and puts the equation into Sturm-Liouville form:
Because the left-hand side dxd[p(x)y′]+q(x)y passes directly from u onto v under integration by parts, substituting −λ1w(x)u and −λ2w(x)v when λ1=λ2 forces the integral containing w(x) to equal zero:
On a string with uneven thickness, the waves u(x) and v(x) bunch up on the heavier side, so the plain arches of u(x)v(x) don't cancel out. Multiplying by the local density w(x) scales those bunched-up arches back up so the weighted area of u(x)v(x)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 cn in the eigenfunction expansion f(x)=∑n=1∞cnyn(x):
x2y′′+3xy′+(1+λ)y=0,y(1)=0,y(e)=0(1≤x≤e)
Solving a Sturm-Liouville Problem and Expanding a Function
Text solution
Multiply by x to bundle the derivatives and read off w(x) Multiplying the equation by x makes 3x2 the derivative of x3, putting the equation into Sturm-Liouville form with weight function w(x)=x:
x3y′′+3x2y′+xy+λxy⟹dxd[x3y′]+xy+λw(x)xy=0=0
Substitute y=xr to find the general solution for λ>0 Plugging y=xr into the Cauchy-Euler equation gives complex roots r=−1±iλ, which produce sine and cosine terms in lnx:
Apply y(1)=0 and y(e)=0 to find λn and yn(x) Plugging in x=1 gives A=0, and plugging in x=e requires sin(λ)=0, so λ=nπ:
λn=n2π2,yn(x)=x1sin(nπlnx)(n=1,2,3,…)
Multiply by yn(x)w(x) and integrate to solve for cn Multiplying f(x)=∑m=1∞cmym(x) by yn(x)w(x) and integrating from 1 to e makes every m=n term integrate to zero, and the weight w(x)=x cancels one x1 in the denominator so u=lnx gives ∫01sin2(nπu)du=21:
Mixed Boundary Conditions and Graphical Eigenvalues
Up to now, our endpoints were pinned (y=0) or insulated (y′=0). Next, we want to see whether eigenfunctions stay orthogonal when a boundary condition mixes y and y′ together in αy(b)+βy′(b)=0, and how to find the eigenvalues in an example like
y′′+λy=0,y(0)=0,y(1)+y′(1)=0(0≤x≤1)
Mixed Boundary Conditions and Graphical Eigenvalues
Integrating ∫abdxd[p(x)u′]vdx by parts twice produces the boundary term
[p(x)(u′(x)v(x)−u(x)v′(x))]ab=0
At an endpoint where both u and v satisfy αy(b)+βy′(b)=0 with β=0, both eigenfunctions have the same ratio y(b)y′(b)=−βα, so the two terms inside the bracket cancel out:
Use y(0)=0 to drop the cosine term Starting from y(x)=Acos(λx)+Bsin(λx), the left boundary condition forces A=0 and leaves the sine wave:
y(x)=sin(λx)
Plug into y(1)+y′(1)=0 and rewrite in terms of tan(k) Setting k=λ and dividing by cos(k) gives an equation for k that cannot be solved by algebra:
sin(k)+kcos(k)=0⟹tan(k)=−k
Read the eigenvalues λn=kn2 from the intersections of tan(k) and −k Each intersection k1≈2.0288,k2≈4.9132,… gives an eigenvalue λn=kn2, and because u′v−uv′=0 at both ends, the eigenfunctions yn(x)=sin(knx) are still orthogonal on [0,1]:
∫01sin(knx)sin(kmx)dx=0(n=m)
Changing the ratio y(1)y′(1) at x=1 slides the intersections k1,k2,k3 along the 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) on [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) sitting in front of the boundary term [p(x)(u′v−uv′)]ab. When p(x) itself equals zero at an endpoint, we have a singular Sturm-Liouville problem: as long as we require y(x) and y′(x) to stay bounded as x approaches that endpoint, p(x)=0 makes the boundary term zero automatically without needing a pinned or mixed condition there.
We can use this to find the eigenfunctions and orthogonality relations for Legendre's equation on [−1,1] and the parametric Bessel equation on [0,R]:
(1−x2)y′′−2xy′+λy=0(−1≤x≤1)
x2y′′+xy′+(λx2−ν2)y=0,y(R)=0(0≤x≤R)
Singular Problems: Legendre and Bessel Equations
p(x)
p(a)=0
a
b
p(a)(u′(a)v(a)−u(a)v′(a))=0?
Text solution
Bundle Legendre's equation directly and apply boundedness at x=±1 Since dxd(1−x2)=−2x already matches the y′ coefficient, Legendre's equation is already in Sturm-Liouville form with p(x)=1−x2 equaling zero at both x=−1 and x=1, and requiring y(x) to stay finite at ±1 sets λn=n(n+1), drops Qn(x), and leaves Pn(x) orthogonal with weight w(x)=1:
Divide Bessel's equation by x to put it into Sturm-Liouville form Dividing every term by x makes the y′ coefficient 1=dxd(x), giving p(x)=x (which equals zero at the drumhead center x=0) and weight function w(x)=x:
Use boundedness at x=0 and y(R)=0 to get Bessel orthogonality Staying bounded as x→0+ drops Yν(λx), pinning the rim y(R)=0 selects λn from the zeros Jν(λnR)=0, and the weight w(x)=x next to λy gives the orthogonality integral on [0,R]:
∫0RJν(λnx)Jν(λmx)xdx=0(n=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
dxd[p(x)y′]+q(x)y+λw(x)y=0
a≤x≤b
a Sturm-Liouville problem?
λn,yn(x):?
Once an equation on [a,b] is written in Sturm-Liouville form
dxd[p(x)y′]+q(x)y+λw(x)y=0
it is a regular Sturm-Liouville problem if it passes three checks:
Smoothness:p(x),p′(x),q(x), and w(x) are real-valued and continuous on the closed interval [a,b].
Positivity:p(x)>0 and w(x)>0 everywhere on [a,b], including both endpoints a and b.
Separated boundary conditions:α1y(a)+β1y′(a)=0 and α2y(b)+β2y′(b)=0, where αi and βi are not both zero at either end.
If p(x)=0 at an endpoint (with boundedness replacing the boundary condition there) or the interval is infinite, the problem is singular.
y1
0 zeros
y2
1 zero
y3
2 zeros
a
b
a
b
f(x)
∑cnyn
21[f(x−)+f(x+)]
Passing the checklist guarantees five properties:
Real eigenvalues: Every λn is a real number.
Ordered, unbounded sequence:λ1<λ2<λ3<⋯<λn→+∞.
One eigenfunction per eigenvalue (with n−1 interior zeros): Each λn has a single linearly independent yn(x) up to a constant multiple, and yn(x) crosses zero n−1 times inside the open interval (a,b).
Weighted orthogonality:∫abyn(x)ym(x)w(x)dx=0 for n=m.
Fourier-style completeness and convergence: Any piecewise smooth f(x) on [a,b] has the series expansion
which converges to f(x) at each point of (a,b) where f is continuous and to the average 21[f(x−)+f(x+)] at any jump discontinuity.
Key concepts
Every Sturm-Liouville question starts with the same first step: bundle the y′′ and y′ terms into a single product rule so the equation reads
dxd[p(x)y′]+q(x)y+λw(x)y=0
Before using the integrating factor formula p(x)=e∫A(x)B(x)dx, check if you can bundle the derivatives by inspection. Sometimes the coefficient of y′ is already the derivative of the coefficient of y′′, as in (1−x2)y′′−2xy′+λy=0 where dxd(1−x2)=−2x. Other times, multiplying or dividing by a simple power of x does the job in one step, like dividing x2y′′+xy′+λx2y=0 by x to get dxd[xy′]+λxy=0. Use p(x)=e∫A(x)B(x)dx when you cannot spot the factor right away, such as multiplying y′′+4y′+λy=0 by e4x to get dxd[e4xy′]+λe4xy=0.
Once the derivatives are bundled, read p(x) inside the bracket and the weight w(x) directly beside λy. Checking p(x) at the endpoints tells you which boundary condition applies:
Key concept
If p(x)>0 and w(x)>0 on the entire closed interval [a,b] with separated endpoint conditions αy+βy′=0, the problem is regular. A mixed condition like y(1)+y′(1)=0 turns the eigenvalue equation into a graph intersection like tan(k)=−k, while keeping the eigenfunctions orthogonal.
Key concept
If p(x)=0 at an endpoint, such as p(0)=0 in dxd[xy′]−xν2y+λxy=0, the problem is singular, and the condition at that endpoint is that y(x) stays bounded, which drops the solution Yν(λx) that blows up.
In both cases, w(x) goes into the orthogonality integral and into both integrals for the series coefficients:
And for a regular problem, the n-th eigenfunction yn(x) crosses zero n−1 times inside (a,b), while the series for a piecewise smooth f(x) converges to f(x) at points of (a,b) where f is continuous and to 21[f(x−)+f(x+)] at any jump.
7
Practice
1
Put the equation y′′+4y′+3y+λy=0 on 0≤x≤π with y(0)=0 and y(π)=0 into standard Sturm-Liouville form, identify p(x),q(x), and the weight function w(x), and write the orthogonality integral satisfied by two eigenfunctions u(x) and v(x) with different eigenvalues.
Look at the coefficients of y′′ and y′: what integrating factor e∫(B/A)dx makes the second coefficient the derivative of the first?
The equation already has A(x)=1 and B(x)=4, so the integrating factor is
p(x)=e∫4dx=e4x
Multiply every term of the equation by e4x and bundle the first two terms into a single derivative (watch out: forgetting to multiply the 3y+λy terms by e4x is the most common mistake and gives the wrong weight w(x)=1 and the wrong integral ∫0πu(x)v(x)dx=0):
Reading the functions from Sturm-Liouville form gives
p(x)=e4x,q(x)=3e4x,w(x)=e4x
and the orthogonality integral on [0,π] is
∫0πu(x)v(x)e4xdx=0
2
For the boundary value problem y′′+λy=0 on 0≤x≤1 with y′(0)=0 and y(1)+2y′(1)=0, find the equation satisfied by k=λ>0, write the eigenfunctions yn(x), and state their orthogonality relation on [0,1].
Be careful not to drop the chain-rule factor of k on y′(1), which would give tan(k)=21.
Differentiate y(x)=Acos(kx)+Bsin(kx) first to see which term stays when y′(0)=0.
With k=λ>0, the general solution and its derivative are
y(x)=Acos(kx)+Bsin(kx),y′(x)=−Aksin(kx)+Bkcos(kx)
Applying y′(0)=0 gives Bk=0⟹B=0, so y(x)=cos(kx) up to a constant multiple (don't treat y′(0)=0 like y(0)=0 and keep sin(kx), which would lead to tan(k)=−2k). Substituting y(x)=cos(kx) and y′(x)=−ksin(kx) into y(1)+2y′(1)=0 gives (be careful not to drop the chain-rule factor of k on y′(1), which would give tan(k)=21):
cos(k)−2ksin(k)=0⟹tan(k)=2k1
If kn are the positive solutions of tan(k)=2k1, then λn=kn2, the eigenfunctions are yn(x)=cos(knx), and with w(x)=1 their orthogonality relation is
∫01cos(knx)cos(kmx)dx=0(n=m)
3
Consider x2y′′+xy′+(λx2−9)y=0 on 0≤x≤2 with y(2)=0 and y(x) bounded as x→0+. Put the equation into Sturm-Liouville form, explain why the problem is singular, find the eigenfunctions yn(x) and the equation for λn in terms of Bessel functions, and write the weighted orthogonality relation on [0,2].
What power of x can you divide the whole equation by so that the coefficient of y′ becomes the derivative of the coefficient of y′′?
Divide the entire equation by x so that the coefficient of y′ becomes 1=dxd(x) (do not read the weight function off the original λx2y term before dividing by x, which gives the wrong weight w(x)=x2):
xy′′+y′−x9y+λxy⟹dxd[xy′]−x9y+λxy=0=0
Here p(x)=x,q(x)=−x9, and w(x)=x, and the problem is singular because p(0)=0 at the left endpoint x=0. Since ν2=9⟹ν=3 (watch out for using J9 instead of J3), requiring y(x) to stay bounded as x→0+ drops Y3(λx) and leaves J3(λx). Applying y(2)=0 determines λn from the positive zeros of
J3(2λ)=0
with eigenfunctions yn(x)=J3(λnx) and weighted orthogonality relation
∫02J3(λnx)J3(λmx)xdx=0(n=m)
4
Consider x2y′′+xy′+λy=0 on 1≤x≤eπ with y(1)=0 and y(eπ)=0. Put the equation into Sturm-Liouville form to find w(x), find the eigenvalues λn and eigenfunctions yn(x), and compute the coefficients cn in the expansion f(x)=∑n=1∞cnyn(x) for f(x)=1.
Divide by x to bundle the derivatives into dxd[xy′], then try y=xr to solve the Cauchy-Euler equation.
Dividing the equation by x bundles the derivatives into Sturm-Liouville form:
xy′′+y′+λx1y⟹dxd[xy′]+λx1yw(x)=0=0,=x1
Substituting y=xr into x2y′′+xy′+λy=0 gives r(r−1)+r+λ=r2+λ=0, so r=±iλ and
y(x)=Acos(λlnx)+Bsin(λlnx)
Applying y(1)=A=0 and y(eπ)=Bsin(λπ)=0 gives λπ=nπ, so
λn=n2,yn(x)=sin(nlnx)(n=1,2,3,…)
For f(x)=1, include the weight w(x)=x1 in both integrals and substitute u=lnx,du=x1dx while changing the limits from x∈[1,eπ] to u∈[0,π] (leaving out w(x)=x1, or keeping the old limits 1 and eπ after substituting u=lnx, gives a wrong answer):
Consider dxd[(1+x2)y′]−xy+λexy=0 on 0≤x≤2 with y(0)−y′(0)=0 and y(2)=0. Verify that this is a regular Sturm-Liouville problem, state how many times the fourth eigenfunction y4(x) crosses zero in (0,2), and find the value to which the eigenfunction expansion of f(x)=2x for 0≤x<1 and f(x)=5 for 1<x≤2 converges at x=0.5 and at x=1.
Watch out for answering 4 by forgetting to subtract 1 for the interior crossings.
Check the signs of p(x) and w(x) on the closed interval [0,2], then compare the index n=4 to the number of interior zero crossings of sin(4x) and check whether f(x) is continuous or has a jump at x=0.5 and x=1.
From the equation, p(x)=1+x2,p′(x)=2x,q(x)=−x, and w(x)=ex are all real-valued and continuous on [0,2],p(x)≥1>0 and w(x)=ex>0 on the entire closed interval [0,2], and the boundary conditions y(0)−y′(0)=0 and 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 n-th eigenfunction crosses zero n−1 times in (0,2), for n=4,y4(x) crosses zero 4−1=3 times in (0,2) (watch out for answering 4 by forgetting to subtract 1 for the interior crossings).
At x=0.5,f(x)=2x is continuous, so the series converges to
f(0.5)=2(0.5)=1
At the jump discontinuity x=1, the series converges to the average of the left-hand limit f(1−)=2(1)=2 and the right-hand limit f(1+)=5 (don't just plug x=1 into one piece to get 2 or 5):