Start from the general form
a2(x)y′′+a1(x)y′+a0(x)y+λy=0.
We want (py′)′=py′′+p′y′. Divide by a2 and multiply by an integrating factorμ(x):
μy′′+μa2a1y′+⋯
For this to equal (μy′)′=μy′′+μ′y′ we need μ′=μa2a1, so
μ(x)=exp(∫a2a1dx)
Then p=μ, q=μa0/a2, w=μ/a2. Why this step? The integrating factor is exactly what turns two separate terms into one perfect derivative — the same trick as first-order linear ODEs.
Let ym,yn solve the SL equation with eigenvalues λm,λn:
(pym′)′+(q+λmw)ym=0,(pyn′)′+(q+λnw)yn=0.
Multiply the first by yn, the second by ym, subtract:
yn(pym′)′−ym(pyn′)′+(λm−λn)wymyn=0.Why subtract? The qymyn terms cancel, isolating the eigenvalue difference.
Now note Lagrange's identity:
yn(pym′)′−ym(pyn′)′=dxd[p(ynym′−ymyn′)].Why this step? Expand the RHS: p′(ynym′−ymyn′)+p(ynym′′−ymyn′′) — exactly the LHS. It packages everything into a total derivative so we can integrate cleanly.
Integrate from a to b:
[p(ynym′−ymyn′)]ab+(λm−λn)∫abwymyndx=0.
The boundary term is the Wronskian-like bracket[pW(ym,yn)]ab.
Why the boundary term vanishes: At x=a, the separated BC α1ym(a)+α2ym′(a)=0 and α1yn(a)+α2yn′(a)=0 are two equations for (α1,α2)=(0,0). A nonzero solution forces the determinant ym(a)yn′(a)−yn(a)ym′(a)=0, i.e. W(ym,yn)∣a=0. Same at b. Hence the bracket is 0.
Therefore
(λm−λn)∫abwymyndx=0.
Since λm=λn, the integral is zero. ■Orthogonality with weight w.
Take complex y with eigenvalue λ, and its conjugate yˉ with λˉ (since p,q,w real). The same subtraction gives (λ−λˉ)∫w∣y∣2dx=0. As ∫w∣y∣2>0, we get λ=λˉ, i.e. real.
Imagine a guitar string. When you pluck it, it only vibrates in special shapes — one bump, two bumps, three bumps. You can't get "two and a half bumps." Those allowed shapes are the eigenfunctions, and how fast each one wiggles is the eigenvalue. The cool trick: these shapes are so "independent" that any wiggle of the string is just a recipe — some of shape-1, some of shape-2, etc. To find how much of shape-2 you have, you "compare" your wiggle only against shape-2; all the other shapes politely give zero. That polite-zero property is orthogonality. Sturm–Liouville theory is the rulebook that promises these special shapes always exist and always behave this nicely.
Dekho, jab bhi hum koi PDE — heat equation, wave equation, ya Laplace — ko separation of variables se solve karte hain, to space-wala part hamesha ek special ODE ban jaata hai: (py′)′+(q+λw)y=0. Isko Sturm–Liouville problem kehte hain. Yahan λ wo special numbers hain (eigenvalues) jinke liye non-zero solution milta hai, aur wo solutions yn eigenfunctions hain — bilkul guitar string ke alag-alag vibration shapes jaise (ek bump, do bump, teen bump).
Sabse bada point yeh hai: yeh eigenfunctions orthogonal hote hain, lekin ek weight function w(x) ke saath: ∫abymynwdx=0 jab m=n. Yeh exactly vectors ke perpendicular hone jaisa hai. Isi wajah se hum kisi bhi function f ko in eigenfunctions ke combination mein likh sakte hain, aur har coefficient cm ko alag se nikaal sakte hain — kyunki baaki saare terms orthogonality se zero ho jaate hain. Yahi Fourier series, Bessel series, Legendre series sab ke peeche ka asli raaz hai.
Orthogonality ka proof yaad rakhna easy hai: dono equations ko cross-multiply karke subtract karo, Lagrange identity se total derivative banao, integrate karo — to ek boundary term aata hai jo BCs ki wajah se zero ho jaata hai, aur bachta hai (λm−λn)∫wymyn=0. Eigenvalues alag hain to integral zero. Bas yahi pura khel hai.
Sabse common galti: students w(x) ko bhool jaate hain aur weight 1 maan lete hain. Lekin Euler-type ya Bessel mein weight 1/x ya x hota hai. Isliye hamesha pehle ODE ko proper SL form mein likho (integrating factor μ=exp∫(a1/a2)dx se), tabhi sahi w milega. Yeh chhoti si baat exam mein bohot marks bachati hai!