## Section 5.1 Sturm–Liouville problems

¶### Subsection 5.1.1 Boundary value problems

In Chapter 4 we encountered several different eigenvalue problems such as:

with different boundary conditions

For example, these boundary problems came up in the study of the heat equation \(u_t =
k u_{xx}\) when we were trying to solve the equation by the method of separation of variables in Section 4.6. Dirichlet conditions correspond to applying a zero temperature at the ends, Neumann means insulating the ends, etc. Other types of endpoint conditions also arise naturally, such as the *Robin boundary conditions*

for some constant \(h\text{.}\) These conditions come up when the ends are immersed in some medium.

In the separation of variables computation we encountered an eigenvalue problem and found the eigenfunctions \(X_n(x)\text{.}\) We then found the *eigenfunction decomposition* of the initial temperature \(f(x) = u(x,0)\text{,}\)

Once we had this decomposition and found suitable \(T_n(t)\) such that \(T_n(0) = 1\) and such that \(T_n(t)X_n(x)\) were solutions to the heat equation, we wrote the solution to the original problem, including the initial condition, as

To study more general problems with this method, we must study more general eigenvalue problems. First, we study second order linear equations of the form

Essentially any second order linear equation of the form \(a(x) y'' + b(x) y' + c(x) y + \lambda d(x) y = 0\) can be written as (1) after multiplying by a proper factor.

###### Example 5.1.1.

[Bessel] Put the following equation into the form (1):

Multiply both sides by \(\frac{1}{x}\) to obtain

The Bessel equation turns up for example in the solution of the two-dimensional wave equation. If you want to see how one solves the equation, you can look at Subsection 7.3.3.

The so-called *Sturm–Liouville problem*^{ 1 } is to seek nontrivial solutions to

In particular, we seek \(\lambda\)s that allow for nontrivial solutions. The \(\lambda\)s that admit nontrivial solutions are called the *eigenvalues* and the corresponding nontrivial solutions are called *eigenfunctions*. The constants \(\alpha_1\) and \(\alpha_2\) should not be both zero, same for \(\beta_1\) and \(\beta_2\text{.}\)

###### Theorem 5.1.1.

Suppose \(p(x)\text{,}\) \(p'(x)\text{,}\) \(q(x)\) and \(r(x)\) are continuous on \([a,b]\) and suppose \(p(x) > 0\) and \(r(x) > 0\) for all \(x\) in \([a,b]\text{.}\) Then the Sturm–Liouville problem (2) has an increasing sequence of eigenvalues

such that

and such that to each \(\lambda_n\) there is (up to a constant multiple) a single eigenfunction \(y_n(x)\text{.}\)

Moreover, if \(q(x) \geq 0\) and \(\alpha_1, \alpha_2, \beta_1, \beta_2 \geq 0\text{,}\) then \(\lambda_n \geq 0\) for all \(n\text{.}\)

Problems satisfying the hypothesis of the theorem (including the “Moreover”) are called *regular Sturm–Liouville problems*, and we will only consider such problems here. That is, a regular problem is one where \(p(x)\text{,}\) \(p'(x)\text{,}\) \(q(x)\) and \(r(x)\) are continuous, \(p(x) > 0\text{,}\) \(r(x) > 0\text{,}\) \(q(x) \geq 0\text{,}\) and \(\alpha_1, \alpha_2, \beta_1, \beta_2 \geq 0\text{,}\) where neither \(\alpha_1\) and \(\alpha_2\) are both zero, nor \(\beta_1\) and \(\beta_2\) are both zero. Note: Be careful about the signs. Also be careful about the inequalities for \(r\) and \(p\text{,}\) they must be strict for all \(x\) in the interval \([a,b]\text{,}\) including the endpoints!

When zero is an eigenvalue, we usually start labeling the eigenvalues at 0 rather than at 1 for convenience. That is we label the eigenvalues \(\lambda_0 < \lambda_1 < \lambda_2 < \cdots\text{.}\)

###### Example 5.1.2.

The problem \(y''+\lambda y\text{,}\) \(0 < x < L\text{,}\) \(y(0) = 0\text{,}\) and \(y(L) = 0\) is a regular Sturm–Liouville problem: \(p(x) = 1\text{,}\) \(q(x) = 0\text{,}\) \(r(x) = 1\text{,}\) and we have \(p(x) = 1 > 0\) and \(r(x) = 1 > 0\text{.}\) We also have \(a=0\text{,}\) \(b=L\text{,}\) \(\alpha_1 = \beta_1 = 1\text{,}\) \(\alpha_2 = \beta_2 = 0\text{.}\) The eigenvalues are \(\lambda_n = \frac{n^2 \pi^2}{L^2}\) and eigenfunctions are \(y_n(x) = \sin\bigl(\frac{n\pi}{L} x\bigr)\text{.}\) All eigenvalues are nonnegative as predicted by the theorem.

###### Exercise 5.1.1.

Find eigenvalues and eigenfunctions for

Identify the \(p, q, r, \alpha_j, \beta_j\text{.}\) Can you use the theorem to make the search for eigenvalues easier? (Hint: Consider the condition \(-y'(0)=0\))

###### Example 5.1.3.

Find eigenvalues and eigenfunctions of the problem

These equations give a regular Sturm–Liouville problem.

By Theorem 5.1.1, \(\lambda \geq 0\text{.}\) So the general solution (without boundary conditions) is

Let us see if \(\lambda = 0\) is an eigenvalue: We must satisfy \(0 = hB - A\) and \(A = 0\text{,}\) hence \(B=0\) (as \(h > 0\)). Therefore, 0 is not an eigenvalue (no nonzero solution, so no eigenfunction).

Now let us try \(\lambda > 0\text{.}\) We plug in the boundary conditions:

If \(A=0\text{,}\) then \(B=0\) and vice-versa, hence both are nonzero. So \(B = \frac{hA}{\sqrt{\lambda}}\text{,}\) and \(0 = -A \sqrt{\lambda}\, \sin ( \sqrt{\lambda}) + \frac{hA}{\sqrt{\lambda}} \sqrt{\lambda}\, \cos ( \sqrt{\lambda})\text{.}\) As \(A \not= 0\) we get

or

We use a computer to find \(\lambda_n\text{.}\) There are tables available, though using a computer or a graphing calculator is far more convenient nowadays. Easiest method is to plot the functions \(\nicefrac{h}{x}\) and \(\tan x\) and see for which \(x\) they intersect. There is an infinite number of intersections. Denote the first intersection by \(\sqrt{\lambda_1}\text{,}\) the second intersection by \(\sqrt{\lambda_2}\text{,}\) etc. For example, when \(h=1\text{,}\) we get \(\sqrt{\lambda_1} \approx 0.86\text{,}\) \(\sqrt{\lambda_2} \approx 3.43\text{,}\) .... That is \(\lambda_1 \approx 0.74\text{,}\) \(\lambda_2 \approx 11.73\text{,}\) .... A plot for \(h=1\) is given in Figure 6.1.6. The appropriate eigenfunction (let \(A = 1\) for convenience, then \(B=\nicefrac{h}{\sqrt{\lambda}}\)) is

When \(h=1\) we get (approximately)

### Subsection 5.1.2 Orthogonality

We have seen the notion of orthogonality before. For example, we have shown that \(\sin (nx)\) are orthogonal for distinct \(n\) on \([0,\pi]\text{.}\) For general Sturm–Liouville problems we need a more general setup. Let \(r(x)\) be a *weight function* (any function, though generally we assume it is positive) on \([a,b]\text{.}\) Two functions \(f(x)\text{,}\) \(g(x)\) are said to be *orthogonal* with respect to the weight function \(r(x)\) when

In this setting, we define the *inner product* as

and then say \(f\) and \(g\) are orthogonal whenever \(\langle f , g \rangle = 0\text{.}\) The results and concepts are again analogous to finite-dimensional linear algebra.

The idea of the given inner product is that those \(x\) where \(r(x)\) is greater have more weight. Nontrivial (nonconstant) \(r(x)\) arise naturally, for example from a change of variables. Hence, you could think of a change of variables such that \(d\xi = r(x)\, dx\text{.}\)

Eigenfunctions of a regular Sturm–Liouville problem satisfy an orthogonality property, just like the eigenfunctions in Section 4.1. Its proof is very similar to the analogous Theorem 4.1.1.

###### Theorem 5.1.2.

Suppose we have a regular Sturm–Liouville problem

Let \(y_j\) and \(y_k\) be two distinct eigenfunctions for two distinct eigenvalues \(\lambda_j\) and \(\lambda_k\text{.}\) Then

that is, \(y_j\) and \(y_k\) are orthogonal with respect to the weight function \(r\text{.}\)

### Subsection 5.1.3 Fredholm alternative

The *Fredholm alternative* theorem we talked about before (Theorem 4.1.2) holds for all regular Sturm–Liouville problems. We state it here for completeness.

###### Theorem 5.1.3. Fredholm alternative.

Suppose that we have a regular Sturm–Liouville problem. Then either

has a nonzero solution (\(\lambda\) is an eigenvalue), or

has a unique solution for any \(f(x)\) continuous on \([a,b]\text{.}\)

This theorem is used in much the same way as we did before in Section 4.4. It is used when solving more general nonhomogeneous boundary value problems. The theorem does not help us solve the problem, but it tells us when a unique solution exists, so that we know when to spend time looking for it. To solve the problem we decompose \(f(x)\) and \(y(x)\) in terms of eigenfunctions of the homogeneous problem, and then solve for the coefficients of the series for \(y(x)\text{.}\)

### Subsection 5.1.4 Eigenfunction series

What we want to do with the eigenfunctions once we have them is to compute the *eigenfunction decomposition* of an arbitrary function \(f(x)\text{.}\) That is, we wish to write

where \(y_n(x)\) are eigenfunctions. We wish to find out if we can represent any function \(f(x)\) in this way, and if so, we wish to calculate \(c_n\) (and of course we would want to know if the sum converges). OK, so imagine we could write \(f(x)\) as (3). We will assume convergence and the ability to integrate the series term by term. Because of orthogonality we have

Hence,

Note that \(y_m\) are known up to a constant multiple, so we could have picked a scalar multiple of an eigenfunction such that \(\langle y_m , y_m \rangle = 1\) (if we had an arbitrary eigenfunction \(\tilde{y}_m\text{,}\) divide it by \(\sqrt{\langle \tilde{y}_m , \tilde{y}_m \rangle}\)). When \(\langle y_m , y_m \rangle = 1\) we have the simpler form \(c_m = \langle f, y_m \rangle\text{.}\) The following theorem holds more generally, but the statement given is enough for our purposes.

###### Theorem 5.1.4.

Suppose \(f\) is a piecewise smooth continuous function on \([a,b]\text{.}\) If \(y_1, y_2, \ldots\) are eigenfunctions of a regular Sturm–Liouville problem, one for each eigenvalue, then there exist real constants \(c_1, c_2, \ldots\) given by (4) such that (3) converges and holds for \(a < x < b\text{.}\)

###### Example 5.1.4.

Consider

The above is a regular Sturm–Liouville problem, and Theorem 5.1.1 says that if \(\lambda\) is an eigenvalue then \(\lambda \geq 0\text{.}\)

Suppose \(\lambda = 0\text{.}\) The general solution is \(y(x) = Ax + B\text{.}\) We plug in the initial conditions to get \(0=y(0) = B\text{,}\) and \(0 = y'(\nicefrac{\pi}{2}) = A\text{.}\) Hence \(\lambda = 0\) is not an eigenvalue.

So let us consider \(\lambda > 0\text{,}\) where the general solution is

Plugging in the boundary conditions we get \(0 = y(0) = A\) and \(0 = y'(\nicefrac{\pi}{2}) = \sqrt{\lambda} \, B \cos \bigl(\sqrt{\lambda} \, \frac{\pi}{2}\bigr)\text{.}\) Since \(A\) is zero, then \(B\) cannot be zero. Hence \(\cos \bigl( \sqrt{\lambda} \, \frac{\pi}{2}\bigr) = 0\text{.}\) This means that \(\sqrt{\lambda} \,\frac{\pi}{2}\) is an odd integral multiple of \(\nicefrac{\pi}{2}\text{,}\) i.e. \((2n-1)\frac{\pi}{2} = \sqrt{\lambda_n} \,\frac{\pi}{2}\text{.}\) Solving for \(\lambda_n\) we get

We can take \(B = 1\text{.}\) Our eigenfunctions are

A little bit of calculus shows

So any piecewise smooth function \(f(x)\) on \([0,\nicefrac{\pi}{2}]\) can be written as

where

Note that the series converges to an odd \(2\pi\)-periodic extension of \(f(x)\text{.}\) With the regular sine series we would expect a function with period \(2 \, \frac{\pi}{2} = \pi\text{.}\)

Let us compute an example. Consider \(f(x) = x\) for \(0 < x < \nicefrac{\pi}{2}\text{.}\) Some calculus later we find

and so for \(x\) in \([0,\nicefrac{\pi}{2}]\text{,}\)

This is different from the \(\pi\)-periodic regular sine series which can be computed to be

Both sums converge are equal to \(f(x)\) for \(0 < x < \nicefrac{\pi}{2}\text{,}\) but the eigenfunctions involved come from different eigenvalue problems.

### Subsection 5.1.5 Exercises

###### Exercise 5.1.4.

Find eigenvalues and eigenfunctions of

###### Exercise 5.1.5.

Expand the function \(f(x) = x\) on \(0 \leq x \leq 1\) using eigenfunctions of the system

###### Exercise 5.1.6.

Suppose that you had a Sturm–Liouville problem on the interval \([0,1]\) and came up with \(y_n(x) = \sin (\gamma n x)\text{,}\) where \(\gamma > 0\) is some constant. Decompose \(f(x) = x\text{,}\) \(0 < x < 1\) in terms of these eigenfunctions.

###### Exercise 5.1.7.

Find eigenvalues and eigenfunctions of

This problem is not a Sturm–Liouville problem, but the idea is the same.

###### Exercise 5.1.8.

*(more challenging)* Find eigenvalues and eigenfunctions for

Hint: First write the system as a constant coefficient system to find general solutions. Do note that Theorem 5.1.1 guarantees \(\lambda \geq 0\text{.}\)

###### Exercise 5.1.101.

Find eigenvalues and eigenfunctions of

\(\lambda_n = \frac{(2n-1)\pi}{2}\text{,}\) \(n=1,2,3,\ldots\text{,}\) \(y_n = \cos\left(\frac{(2n-1)\pi}{2} x\right)\)

###### Exercise 5.1.102.

Put the following problems into the standard form for Sturm–Liouville problems, that is, find \(p(x)\text{,}\) \(q(x)\text{,}\) \(r(x)\text{,}\) \(\alpha_1\text{,}\) \(\alpha_2\text{,}\) \(\beta_1\text{,}\) and \(\beta_2\text{,}\) and decide if the problems are regular or not.

\(x y'' + \lambda y = 0\) for \(0 < x < 1\text{,}\) \(y(0) = 0\text{,}\) \(y(1) = 0\text{.}\)

\((1+x^2) y'' + 2xy' + (\lambda-x^2) y = 0\) for \(-1 < x < 1\text{,}\) \(y(-1) = 0\text{,}\) \(y(1)+y'(1) = 0\text{.}\)

^{ 2 }

a) \(p(x) = 1\text{,}\) \(q(x) = 0\text{,}\) \(r(x) = \frac{1}{x}\text{,}\) \(\alpha_1 = 1\text{,}\) \(\alpha_2 = 0\text{,}\) \(\beta_1 = 1\text{,}\) \(\beta_2 = 0\text{.}\) The problem is not regular. b) \(p(x) = 1+x^2\text{,}\) \(q(x) = x^2\text{,}\) \(r(x) = 1\text{,}\) \(\alpha_1 = 1\text{,}\) \(\alpha_2 = 0\text{,}\) \(\beta_1 = 1\text{,}\) \(\beta_2 = 1\text{.}\) The problem is regular.