In this problem we explore using Fourier series to solve nonhomogeneous boundary value problems. For type un, for derivatives use the prime notation .


Solve the heat equation







To find a series solution u we first must write the function as a Fourier series

Therefore





Now we try to find a solution of the form
Using this series in the PDE we get






Since we want their Fourier coefficients must be equal:
which gives us an ODE in which we solve using constant , to get


Now that we have a general form for u, we can find the constants by using the initial condition . Plugging the formula we just derived for into the series for u we get

Recognizing that this is a Fourier series for , we can solve for :




You can earn partial credit on this problem.