In the previous section, we found the general solution of the PDE
with the given boundary conditions to be
Now we want to find the coefficients
and
for
all values of
from the initial conditions. That will fully
determine the solution.
To do so, we must first write our initial condition
and
in terms of the eigenfunctions. Writing the Fourier
series for the two functions as
The Fourier series for
becomes now
Now
and
are, supposedly, given functions, but how do we
find their Fourier coefficients? The answer is the following important
formula:
We are done! Or at least, we have done as much as we can do until
someone tells us the actual functions
and
. If they do,
we just do the integrals above to find all the
and
, (maybe
analytically or on a computer), and then we can sum the expression for
for any
and
that strikes our fancy.
Note that we did not have to do anything with the boundary conditions
and
; since every eigenfunction
satisfies them, the expression for
above automatically also
satisfies these homogeneous boundary conditions.