Supplement to Section 10.4 of Boyce & Diprima

Solving linear boundary value problems using Fourier series

Example 1

Let’s try to solve the simple inhomogeneous boundary value problem y(x)=f(x);0<x<π y(0)=y(π)=0.

First of all, let’s find the eigenfunctions. These solve y(x)=λy(x). We know from section 10.2 of Boyce that the eigenvalues are negative, so let λ=ν2. The general solution is y=asinνx+bcosνx. The boundary conditions then require b=0 and ν=n=1,2,3, Therefore we look for solutions y=n=1cnsinnx. So far everything we are doing is straight out of section 10.2. If this part has been difficult, go back there and review.

Then y(x)=n=1n2cnsinnx. Now, following section 10.3 of Boyce, we can expand f(x) in Fourier sine series on 0xπ, so that we must use L=π in our computations. The formulas give f(x)=n=1bnsinnx, where bn=2π0πf(x)sinnx dx.

Equating the coefficients of sinnx gives n2cn=bn=2π0πf(x)sinnx dx so that the coefficients are cn=bnn2=2n2π0πf(x)sinnx dx.

If we specify the right-hand side, we may arrive at a closed form solution. For example, we follow Example 1 on page 484, letting f(x)=x and taking L=π, then bn=2(1)n+1n and cn=2n2(1)n+1n=2(1)nn3. In fact, we can solve this problem exactly using undetermined coefficients and the ideas in the first set of supplementary notes. The exact solution is y=16(π2x+x3). The coefficients cn match those of the Fourier sine coefficients of the odd extension of this function.

Example 2

Modify the problem slightly to y(x)+cy=f(x);0<x<π y(0)=y(π)=0 Once again, we find the eigenfunctions are yn=sinnx, but the eigenvalues are λn=cn2. Plugging in the same expansion as before, we now find that (cn2)cn=2π0πf(x)sinnx dx So if c=m2 for any integer m, this equation clearly has no solution. However, as long as this condition is not satisfied, we can solve for the coefficients: cn=2π(cn2)0πf(x)sinnx dx. Note that if c=n2 for any positive integer n then the problem has no solution (at least not in the form of a Fourier sine series).

Exercises

  1. Find the Fourier sine-coefficients if we use f(x)=x and c=1 in Example 2. Find the exact solution using the method of undetermined coefficients. Suppose c=+1. Then the problem can’t be solved unless b1=0. Why not?
  2. Modify the above examples to satisfy Neumann boundary conditions, y(0)=y(π)=0. This will give a Fourier cosine series, and will correspond to an even extension. You will find that Example 1 does not yield a solvable problem unless the term a0=0.

Solutions to Exercises

Solutions will appear here after the due date.

My solution (pdf).

Previous