Sturm-Liouville Problems
Self-adjoint form organizes a boundary-value problem
A regular Sturm–Liouville problem has −(p y′)′+qy=λwy with homogeneous self-adjoint boundary conditions and positive p,w. Boundary conditions select discrete eigenvalues and nonzero eigenfunctions.
Eigenfunctions associated with distinct eigenvalues obey ∫abw ymyn dx=0. Within a repeated eigenspace, an orthogonal basis can be chosen, but arbitrary distinct eigenfunctions need not already be orthogonal. Coefficients in an expansion use this weighted inner product: cn=∫wfyn/∫wyn².
As a separate example on [0,2π], sin x and sin 3x have zero ordinary inner product, whereas ∫sin²x dx=π. Keep the weight and boundary terms visible: orthogonality is not a pointwise statement.
For ym(x)=sin(mx) and yn(x)=sin(nx) on [0,π] with weight w=1, evaluate ∫0πy2y5 dx.