Differential EquationsFourier Series and Boundary Value Problems1 of 6
Fourier Series and Boundary Value Problems · 1
Boundary Value Problems
In a boundary value problem, we want to find a solution to a differential equation that matches conditions at both ends of an interval instead of just at the start.
1
One, None, or Infinitely Many Solutions
In an initial value problem, we are given the starting height y(0) and starting slope y′(0) at a single point, which locks in one unique curve. In a boundary value problem, we are given conditions at two separate points, a left boundary and a right boundary, and we want to find all curves y(x) that satisfy the differential equation and hit both boundary targets.
Let's see how changing the right boundary condition for y′′+y=0 with y(0)=0 can produce one unique solution, no solution, or infinitely many solutions.
Boundary Value Problems: One, None, or Infinitely Many Solutions
Text solution
Find the general solution from the characteristic equationThe roots of r2+1=0 are r=±i, which gives a combination of cosine and sine waves.
r2+1⟹r⟹y(x)=0=±i=Acos(x)+Bsin(x)
Apply the left boundary condition y(0)=0Plugging x=0 into y(x) eliminates the cosine term because cos(0)=1 while sin(0)=0.
y(0)⟹y(x)=Acos(0)+Bsin(0)=A(1)+B(0)=A=0=Bsin(x)
Case 1: Right boundary y(2π)=3 (one unique solution)At x=2π,sin(2π)=1, which solves for a single wave amplitude B.
y(2π)⟹y(x)=Bsin(2π)=B(1)=B=3=3sin(x)
Case 2: Right boundary y(π)=3 (no solution)Every wave Bsin(x) passes through height 0 at x=π, so no choice of B can reach height 3.
y(π)=Bsin(π)=B(0)=0=3(impossible, so no solution)
Case 3: Right boundary y(π)=0 (infinitely many solutions)Because sin(π)=0 already matches the target height 0, the equation holds for every constant B.
y(π)⟹y(x)=Bsin(π)=B(0)=0=0=Bsin(x) for any B
For y(x)=Bsin(x), changing the amplitude B (which is also the starting slope y′(0)=B) reaches every target height at x=2π, while sin(π)=0 pins every curve to height 0 at x=π.
For sine waves pinned at the origin, changing the starting slope reaches every height at the first boundary line, while the fixed wavelength keeps the wave at zero at the second.
2
Pinned Ends and Eigenvalues
Now suppose both ends of the interval [0,L] are pinned to height zero, and the differential equation contains an unknown constant λ:
y′′+λy=0,homogeneous boundariesy(0)=0,y(L)=0
Because both boundary values are zero, the flat line trivial solutiony(x)=0 always satisfies the equation and both boundaries for every value of λ. We want to find the values of λ where y(x)=0 is the only solution, and the special values of λ (called eigenvalues) that allow non-flat solutions y(x)=0 (called eigenfunctions).
First, let's check what happens when λ is negative or zero.
Homogeneous Boundaries: Why Negative and Zero Lambda Give Only the Flat Line
Text solution
Test negative values by setting λ=−k2 (k>0)Writing λ=−k2 guarantees λ<0 and gives real roots r=±k, so the general solution is a combination of ekx and e−kx.
y′′−k2y⟹r2−k2⟹r⟹y(x)=0=0=±k=c1ekx+c2e−kx
Apply y(0)=0 and y(L)=0 to the exponential solutionThe left boundary gives c2=−c1, and because ekL>1 and e−kL<1 for k,L>0, their difference at x=L is nonzero, which forces c1=0.
Test λ=0When y′′=0, the general solution is a straight line y(x)=Ax+B, and pinning both ends at (0,0) and (L,0) forces the line to lie flat on the axis.
y′′=0⟹y(x)=Ax+B
y(0)y(L)⟹A⟹y(x)=A(0)+B=B=0,=A(L)+B=AL=0=0=0
(Writing λ=−k2 with k>0 lets you check every negative λ at once instead of plugging in a single number like λ=−4. You might also see the λ=−k2 general solution written as y(x)=Acosh(kx)+Bsinh(kx), where y(0)=A=0 and y(L)=Bsinh(kL)=0 immediately gives B=0.)
Since negative λ curves away from the axis and λ=0 goes straight, neither can leave (0,0) and turn back to hit (L,0). Now let's make λ positive, where y′′=−λy pulls the curve back toward the axis as a wave.
Positive Lambda: Eigenvalues and Sine Standing Waves
Text solution
Test positive values by setting λ=k2 (k>0)Imaginary roots r=±ik give cosine and sine waves with frequency k.
y′′+k2y⟹r2+k2⟹r⟹y(x)=0=0=±ik=Acos(kx)+Bsin(kx)
Eliminate cosine at the left boundary y(0)=0Plugging in x=0 gives A=0, leaving only sine waves starting at (0,0).
When λ≤0, any curve launched upward from (0,0) bends away or goes straight past (L,0); when λ=k2>0, the curve is a sine wave that hits (L,0) only at the eigenvalues where a whole number of half-waves fits between 0 and L.
With both ends pinned at zero, only waves that bend back toward the axis and fit a whole number of half-waves between the pins survive without flattening to zero.
3
Zero-Slope Boundaries
Now let's change both boundary conditions from zero height to zero slope, so the curve is free to sit at any height as long as it meets both walls horizontally:
y′′+λy=0,y′(0)=0,y′(L)=0
We want to find all eigenvalues λ and eigenfunctions y(x) whose derivative y′(x) is zero at x=0 and x=L.
Zero-Slope Boundaries: Cosine Modes and the Zero Eigenvalue
Text solution
Check λ=0 for horizontal linesA straight line y(x)=Ax+B has constant slope y′(x)=A, so requiring zero slope at both ends gives A=0 while leaving the height B free to be any constant.
y(x)=Ax+B⟹y′(x)=A
y′(0)y′(L)⟹y(x)⟹λ0y0(x)=A=0,=A=0=B=0,=1
Eliminate sine at the left boundary y′(0)=0 for λ=k2>0Because the boundary conditions are on the slope y′(x), we differentiate y(x) first; at x=0,cos(0)=1 forces B=0 and keeps cosine, which starts flat at its peak.
Find the allowed frequencies k at the right boundary y′(L)=0For the cosine wave to arrive flat at a peak or valley at x=L without setting A=0, we need sin(kL)=0.
Combine λ0=0 and the positive cosine wavesSquaring k gives the positive eigenvalues, and plugging n=0 into the same formulas gives λ0=0 and cos(0)=1.
λnyn(x)=(Lnπ)2,=cos(Lnπx),n=0,1,2,3,…
Because zero-slope boundaries do not pin the height to zero, any horizontal line y(x)=B satisfies both boundaries for λ0=0, and for n≥1 the eigenfunctions are cosine waves whose peaks or valleys arrive flat against both walls at x=0 and x=L.
When the curve has to meet both walls flat, a flat line above zero already works, and cosine waves only fit when a peak or valley lands right on the far wall.
4
Mixed Boundaries: Quarter-Wave Modes
Now let's mix the two boundary types on the interval 0≤x≤1, pinning the height to zero on the left while requiring the slope to be zero on the right:
y′′+λy=0,y(0)=0,y′(1)=0
We want to find the eigenvalues λn and eigenfunctions yn(x) that start at height zero at x=0 and arrive flat at a peak or valley at x=1.
Mixed Boundaries: Quarter-Wave Modes
Text solution
Check λ=0A straight line y(x)=Ax+B has slope y′(1)=A=0 at the right wall and height y(0)=B=0 at the left wall, leaving only the trivial solution y(x)=0.
y(x)y′(x)⟹y′(1)y(0)⟹y(x)=Ax+B,=A=A=0,=B=0=0
Keep sine at the left boundary y(0)=0 for λ=k2>0Pinning the height at x=0 gives A=0 and eliminates the cosine term.
Set the slope to zero at the right boundary y′(1)=0Differentiating Bsin(kx) gives Bkcos(kx), so keeping B=0 requires cos(k)=0, which happens at odd multiples of 2π.
Pinning height 0 on the left keeps the sine wave, while requiring slope 0 on the right forces the wave to end at a peak or valley, so only odd numbers of quarter-waves (1,3,5,…) fit on [0,1].
A sine wave pinned at the left end arrives flat at the right end only when a peak or valley lands on the boundary, fitting an odd number of quarter-waves.
5
How Boundaries Filter Waves
Rather than memorizing a separate eigenvalue formula for every pair of boundary conditions, we can find the eigenvalues and eigenfunctions of y′′+λy=0 on [0,L], with zero height or zero slope at each end, by plugging the boundaries into the general solution one at a time.
How Boundaries Filter Waves
Key concepts
When solving y′′+λy=0 on [0,L], first notice whether the constant λ is already given or is an eigenvalue you need to find:
Fixed constant (such as y′′+9y=0 with y(0)=0)
You are not solving for λ, because the wave frequency is already fixed at k=3. Use y(0)=0 to narrow the general solution down to y(x)=Bsin(3x), then plug in the right boundary to see whether it solves for a single B (like y(6π)=4⟹B=4), gives a contradiction when sin(kL)=0 meets a nonzero target height (like y(3π)=4⟹0=4, no solution), or gives 0=0 so any B works (like y(3π)=0).
Unknown λ with homogeneous boundaries
The trivial solution y(x)=0 always works, so we check negative, zero, and positive λ to find where nonzero solutions y(x)=0 exist:
Negative (λ=−k2<0): Exponentials c1ekx+c2e−kx curve away from the axis and cannot turn back to hit the right boundary, leaving only y(x)=0.
Zero (λ=0): Straight lines y(x)=Ax+B give a nonzero solution only when neither boundary pins the height to zero. With two zero-slope boundaries y′(0)=0 and y′(L)=0, any nonzero horizontal line works, so λ0=0 is an eigenvalue with y0(x)=1. If even one boundary pins the height (such as y(0)=0 or y(L)=0), the line is forced to y(x)=0.
Positive (λ=k2>0): Start with y(x)=Acos(kx)+Bsin(kx) and apply the two boundaries one at a time:
Left boundary at x=0 picks the wave: Height zero y(0)=0 eliminates cosine and keeps Bsin(kx); slope zero y′(0)=0 eliminates sine and keeps Acos(kx).
Right boundary at x=L finds the allowed frequencies k: Keep the remaining amplitude constant (A or B) nonzero and set the trig factor at x=L to zero:
Consider the differential equation y′′+9y=0 with the left boundary condition y(0)=0. Determine whether the problem has a unique solution, no solution, or infinitely many solutions, and find all solutions when they exist, for each right boundary condition: (a) y(6π)=4, (b) y(3π)=4, and (c) y(3π)=0.
After y(0)=0 narrows the general solution down to Bsin(3x), evaluate sin(3x) at the right endpoint before solving for B.
r2+9⟹r⟹y(x)=0=±3i=Acos(3x)+Bsin(3x)
(Watch out: don't forget to take the square root of 9! Writing cos(9x) and sin(9x) gives sin(9⋅6π)=sin(23π)=−1 and the wrong solution y(x)=−4sin(9x) in part (a).)
y(3π)=Bsin(π)=0=0⟹infinitely many solutions y(x)=Bsin(3x)for any constant B
2
For the boundary value problem y′′+λy=0 on 0≤x≤2 with y(0)=0 and y(2)=0, show algebraically why λ<0 and λ=0 produce only the trivial solution y(x)=0, and find all eigenvalues λn and eigenfunctions yn(x) for λ>0.
Write the three cases as λ=−k2,λ=0, and λ=k2 with k>0, and at the right boundary x=2 for λ=k2, solve for k without setting the wave amplitude B to zero.
For λ=−k2<0 (k>0)
y(x)y(0)=c1ekx+c2e−kx,=c1+c2=0⟹c2=−c1
y(2)⟹c1⟹y(x)=c1(e2k−e−2k)=0(e2k=e−2k for k>0)=c2=0=0
For λ=0
y(x)y(0)y(2)⟹A⟹y(x)=Ax+B,=B=0,=2A=0=B=0=0
For λ=k2>0 (k>0)
y(x)y(0)=Acos(kx)+Bsin(kx),=A=0⟹y(x)=Bsin(kx)
y(2)⟹sin(2k)⟹2k⟹k=Bsin(2k)=0(B=0)=0=nπ=2nπ
(Watch out: don't confuse k with λn and stop at λn=2nπ. Since we set λ=k2, you must square k at the end.)
λnyn(x)=(2nπ)2=4n2π2,=sin(2nπx),n=1,2,3,…
3
Find all eigenvalues and eigenfunctions of y′′+λy=0 on 0≤x≤π subject to the zero-slope boundary conditions y′(0)=0 and y′(π)=0.
Watch out: skipping λ=0 or assuming y=Ax+B always gives y(x)=0 misses λ0=0 and y0(x)=1, leaving you with only n=1,2,3,….
Check whether a horizontal line works at λ=0 before differentiating the λ=k2>0 general solution to apply the slope conditions.
For λ=0
y(x)y′(0)=Ax+B⟹y′(x)=A,=y′(π)=A=0⟹y(x)=B
(Watch out: skipping λ=0 or assuming y=Ax+B always gives y(x)=0 misses λ0=0 and y0(x)=1, leaving you with only n=1,2,3,….)
Find all eigenvalues and eigenfunctions of y′′+λy=0 on 0≤x≤L when the left boundary has zero slope, y′(0)=0, and the right boundary is pinned at zero height, y(L)=0.
Which wave starts with zero slope at x=0, and where does that wave cross height zero at x=L?
For λ≤0At λ=0,y(x)=Ax+B with y′(0)=A=0 and y(L)=B=0 gives y(x)=0 (and λ<0 likewise gives y(x)=0).
Consider y′′+λy=0 on 0≤x≤3 with mixed boundary conditions y(0)=0 and y′(3)=0. Find the general formulas for the eigenvalues λn and eigenfunctions yn(x), and determine which eigenvalue and eigenfunction correspond to the standing wave that crosses the x-axis exactly twice inside the open interval 0<x<3 before arriving flat at x=3, along with the x-coordinates of those two crossings.
Count how many quarter-waves must fit between x=0 and x=3 for a sine wave to cross the axis twice before reaching a peak or valley at x=3.
For the wave to cross the x-axis twice inside (0,3), the angle kx must pass through π and 2π before reaching its peak at 25π when x=3 (fitting 5 quarter-waves, which is n=3):
(Watch out: plugging in n=2 because there are 2 crossings inside (0,3) gives y2(x)=sin(2πx) and λ2=4π2, which fits only 3 quarter-waves and crosses the axis only once inside (0,3) at x=2.)