Differential Equations · Undergraduate

Boundary Value Problems and Eigenvalues

Quick answer

A boundary value problem fixes the solution at two different points, such as y(0) = 0 and y(L) = 0, instead of giving y and y′ at one point. Unlike initial value problems, these can have one solution, none, or infinitely many. For y″ + λy = 0 with y(0) = y(L) = 0, nonzero solutions exist only for the eigenvalues λₙ = (nπ/L)², with eigenfunctions sin(nπx/L). These are the building blocks of Fourier series and the heat and wave equations.

What you'll learn

  • Solve a boundary value problem for y″ + k²y = 0
  • Recognize when a boundary value problem has no solution or many
  • Find the eigenvalues of y″ + λy = 0 with y(0) = y(L) = 0
  • Match each eigenvalue with its eigenfunction

Conditions at both ends

A boundary value problem asks for a solution with conditions at two points, such as

y′′+λy=0y(0)=0,y(L)=0y'' + \lambda y = 0 \qquad y(0) = 0, \quad y(L) = 0

The zero function always works. A number λ\lambda for which a nonzero solution exists is an eigenvalue, and that solution is an eigenfunction. For this problem:

λn=(nπL)2yn(x)=sin⁡ ⁣(nπxL)n=1,2,3,…\lambda_n = \left(\frac{n\pi}{L}\right)^2 \qquad y_n(x) = \sin\!\left(\frac{n\pi x}{L}\right) \qquad n = 1, 2, 3, \ldots
The first three eigenfunctions on [0, π] The graphs of sin x, sin 2x and sin 3x from 0 to π. Each is zero at both ends. They have one, two and three humps, matching the eigenvalues 1, 4 and 9. 123−11xy
  • sin x, λ = 1
  • sin 2x, λ = 4
  • sin 3x, λ = 9
The first three eigenfunctions on [0, π]

Why only special λ work

For λ=k2>0\lambda = k^2 > 0, the general solution is y=c1cos⁡(kx)+c2sin⁡(kx)y = c_1\cos(kx) + c_2\sin(kx). The condition y(0)=0y(0) = 0 forces c1=0c_1 = 0, leaving y=c2sin⁡(kx)y = c_2\sin(kx). Then y(L)=c2sin⁡(kL)=0y(L) = c_2\sin(kL) = 0 allows c2≠0c_2 \ne 0 only when sin⁡(kL)=0\sin(kL) = 0, that is kL=nπkL = n\pi, so λ=k2=(nπL)2\lambda = k^2 = \left(\tfrac{n\pi}{L}\right)^2. For λ≤0\lambda \le 0 the solutions are lines or exponentials, and the two conditions force them to be 00.

Worked examples

Common mistakes

Practice problems

  1. Find the smallest eigenvalue of y′′+λy=0y'' + \lambda y = 0, y(0)=y(π)=0y(0) = y(\pi) = 0.

    Answer

    11

    Full solution

    λ1=12\lambda_1 = 1^2.

  2. Find the third eigenvalue for the same problem.

    Answer

    99

    Full solution

    λ3=32\lambda_3 = 3^2.

  3. Find the smallest eigenvalue of y′′+λy=0y'' + \lambda y = 0, y(0)=y(2)=0y(0) = y(2) = 0.

    Answer

    π24\tfrac{\pi^2}{4}

    Full solution

    (π2)2\left(\tfrac{\pi}{2}\right)^2.

  4. Find the second eigenvalue of y′′+λy=0y'' + \lambda y = 0, y(0)=y(1)=0y(0) = y(1) = 0.

    Answer

    4π24\pi^2

    Full solution

    (2π)2(2\pi)^2.

  5. Solve y′′+4y=0y'' + 4y = 0 with y(0)=0y(0) = 0 and y ⁣(π4)=5y\!\left(\tfrac{\pi}{4}\right) = 5, then find y ⁣(π12)y\!\left(\tfrac{\pi}{12}\right).

    Answer

    2.52.5

    Full solution

    y=csin⁡(2x)y = c\sin(2x) with csin⁡π2=5c\sin\tfrac{\pi}{2} = 5, so y=5sin⁡(2x)y = 5\sin(2x) and y ⁣(π12)=5sin⁡π6y\!\left(\tfrac{\pi}{12}\right) = 5\sin\tfrac{\pi}{6}.

  6. Does y′′+y=0y'' + y = 0, y(0)=0y(0) = 0, y(π)=2y(\pi) = 2 have a solution?

    Answer

    No

    Full solution

    Every solution with y(0)=0y(0) = 0 is csin⁡xc\sin x, which is 00 at π\pi.

  7. For y′′+λy=0y'' + \lambda y = 0, y(0)=y(π)=0y(0) = y(\pi) = 0, the eigenvalue λ=16\lambda = 16 has eigenfunction sin⁡(nx)\sin(nx). Find nn.

    Answer

    44

    Full solution

    n2=16n^2 = 16.

  8. A student says λ=0\lambda = 0 is an eigenvalue of y′′+λy=0y'' + \lambda y = 0, y(0)=y(π)=0y(0) = y(\pi) = 0. How many nonzero solutions does λ=0\lambda = 0 give?

    Answer

    00

    Full solution

    y′′=0y'' = 0 gives y=ax+by = ax + b; y(0)=0y(0) = 0 forces b=0b = 0 and y(π)=0y(\pi) = 0 forces a=0a = 0.

Frequently asked questions

How is a boundary value problem different from an initial value problem?

An initial value problem gives y and y′ at one point; a boundary value problem gives conditions at two points.

Can a boundary value problem have no solution?

Yes. y″ + y = 0 with y(0) = 0 and y(π) = 1 has none, since every solution through y(0) = 0 is c sin x, which is 0 at π.

What are the eigenvalues of y″ + λy = 0, y(0) = y(L) = 0?

λₙ = (nπ/L)² for n = 1, 2, 3, …, with eigenfunctions sin(nπx/L).

Is λ = 0 an eigenvalue?

No. Then y = ax + b, and both boundary conditions force a = b = 0.

What to learn next