[Go to the Notes on Diffy Qs home page] [PDF version]
[next] [prev] [prev-tail] [tail] [up]
Note: 2 lectures, similar to §3.8 in EP
Before we tackle the Fourier series, we need to study the so-called boundary value problems (or endpoint problems). For example, suppose we have
![]() |
for some constant
, where
is defined for
in the interval
. Unlike before, when we specified
the value of the solution and its derivative at a single point, we now specify the value of the solution at two
different points. Note that
is a solution to this equation, so existence of solutions is not an issue
here. Uniqueness of solutions is another issue. The general solution to
will have two
arbitrary constants present. It is, therefore, natural (but wrong) to believe that requiring two conditions
will guarantee a unique solution.
Example 4.1.1: Take
,
,
. That is,
![]() |
Then
is another solution (besides
) satisfying both boundary conditions. There are more.
Write down the general solution of the differential equation, which is
. The condition
forces
. Letting
does not give us any more information as
already
satisfies both boundary conditions. Hence, there are infinitely many solutions of the form
,
where
is an arbitrary constant.
Example 4.1.2: On the other hand, change to
.
![]() |
Then the general solution is
. Letting
still forces
. We apply
the second condition to find
. As
we obtain
. Therefore
is the unique solution to this problem.
What is going on? We will be interested in finding which constants
allow a nonzero solution, and
we will be interested in finding those solutions. This problem is an analogue of finding eigenvalues and
eigenvectors of matrices.
For basic Fourier series theory we will need the following three eigenvalue problems. We will consider more general equations, but we will postpone this until chapter 5.
![]() | (4.1) |
![]() | (4.2) |
and
![]() | (4.3) |
A number
is called an eigenvalue of (4.1) (resp. (4.2) or (4.3)) if and only if there exists a nonzero (not
identically zero) solution to (4.1) (resp. (4.2) or (4.3)) given that specific
. The nonzero solution we
found is called the corresponding eigenfunction.
Note the similarity to eigenvalues and eigenvectors of matrices. The similarity is not just coincidental.
If we think of the equations as differential operators, then we are doing the same exact thing. For example,
let
. We are looking for nonzero functions
satisfying certain endpoint conditions that solve
. A lot of the formalism from linear algebra can still apply here, though we will not pursue
this line of reasoning too far.
Example 4.1.3: Let us find the eigenvalues and eigenfunctions of
![]() |
For reasons that will be clear from the computations, we will have to handle the cases
,
,
separately. First suppose that
, then the general solution to
is
![]() |
The condition
implies immediately
. Next
![]() |
If
is zero then
is not a nonzero solution. So to get a nonzero solution we must have that
. Hence,
must be an integer multiple of
. In other words,
for a positive
integer
. Hence the positive eigenvalues are
for all integers
. The corresponding
eigenfunctions can be taken as
. Just like for eigenvectors, we get all the multiples of an
eigenfunction, so we only need to pick one.
Now suppose that
. In this case the equation is
and the general solution is
.
The condition
implies that
, and
implies that
. This means that
is
not an eigenvalue.
Finally, suppose that
. In this case we have the general solution
![]() |
Letting
implies that
(recall
and
). So our solution must be
and satisfy
. This is only possible if
is zero. Why? Because
is only
zero for
, you should plot sinh to see this. We can also see this from the definition of sinh. We get
. Hence
, which implies
and that is only true if
. So there are no
negative eigenvalues.
In summary, the eigenvalues and corresponding eigenfunctions are
![]() |
Example 4.1.4: Let us compute the eigenvalues and eigenfunctions of
![]() |
Again we will have to handle the cases
,
,
separately. First suppose that
.
The general solution to
is
. So
![]() |
The condition
implies immediately
. Next
![]() |
Again
cannot be zero if
is to be an eigenvalue, and
is only zero if
for a positive
integer
. Hence the positive eigenvalues are again
for all integers
. And the corresponding
eigenfunctions can be taken as
.
Now suppose that
. In this case the equation is
and the general solution is
so
.
implies that
. Obviously setting
does not get us anything new.
This means that
could be anything (let us take it to be 1). So
is an eigenvalue and
is a
corresponding eigenfunction.
Finally, let
. In this case we have the general solution
and
hence
![]() |
We have already seen (with roles of
and
switched) that for this to be zero at
and
it
implies that
. Hence there are no negative eigenvalues.
In summary, the eigenvalues and corresponding eigenfunctions are
![]() |
and there is another eigenvalue
![]() |
The following problem is the one that leads to the general Fourier series.
Example 4.1.5: Let us compute the eigenvalues and eigenfunctions of
![]() |
You should notice that we have not specified the values or the derivatives at the endpoints, but rather that they are the same at the beginning and at the end of the interval.
Let us skip
. The computations are the same and again we find that there are no negative
eigenvalues.
For
, the general solution is
. The condition
implies that
(
implies
). The second condition
says nothing about
and
hence
is an eigenvalue with a corresponding eigenfunction
.
For
we get that
. Now
![]() |
We remember that
and
. Therefore,
![]() |
and hence either
or
. Similarly (exercise) if we differentiate
and plug in the
second condition we find that
or
. Therefore, unless we want
and
to both be
zero (which we do not) we must have
. Therefore,
is an integer and hence the
eigenvalues are yet again
for an integer
. In this case however,
is an
eigenfunction for any
and any
. So we have two linearly independent eigenfunctions
and
. Remember that for a matrix we could also have had two eigenvectors corresponding to an
eigenvalue if the eigenvalue was repeated.
In summary, the eigenvalues and corresponding eigenfunctions are

Something that will be very useful in the next section is the orthogonality property of the
eigenfunctions. This is an analogue of the following fact about eigenvectors of a matrix. A matrix is
called symmetric if
. Eigenvectors for two distinct eigenvalues of a symmetric matrix
are orthogonal. That symmetry is required. We will not prove this fact here. The differential
operators we are dealing with act much like a symmetric matrix. We, therefore, get the following
theorem.
Theorem 4.1.1. Suppose that
and
are two eigenfunctions of the problem (4.1),
(4.2) or (4.3) for two different eigenvalues
and
. Then they are orthogonal in the sense
that
![]() |
Note that the terminology comes from the fact that the integral is a type of inner product. We will expand on this in the next section. The theorem has a very short, elegant, and illuminating proof so let us give it here. First note that we have the following two equations.
![]() |
Multiply the first by
and the second by
and subtract to get
![]() |
Now integrate both sides of the equation.
![]() |
The last equality holds because of the boundary conditions. For example, if we consider (4.1) we have
and so
is zero at both
and
. As
, the
theorem follows.
Exercise 4.1.1 (easy): Finish the theorem (check the last equality in the proof) for the cases (4.2) and (4.3).
We have seen previously that
was an eigenfunction for the problem
,
,
. Hence we have the integral
![]() |
Similarly
![]() |
And finally we also get
![]() |
![]() |
and
![]() |
We now touch on a very useful theorem in the theory of differential equations. The theorem holds in a more general setting than we are going to state it, but for our purposes the following statement is sufficient. We will give a slightly more general version in chapter 5.
Theorem 4.1.2 (Fredholm alternative
).
Exactly one of the following statements holds. Either
![]() | (4.4) |
has a nonzero solution, or
![]() | (4.5) |
has a unique solution for every function
continuous on
.
The theorem is also true for the other types of boundary conditions we considered. The theorem means
that if
is not an eigenvalue, the nonhomogeneous equation (4.5) has a unique solution for
every right hand side. On the other hand if
is an eigenvalue, then (4.5) need not have a
solution for every
, and furthermore, even if it happens to have a solution, the solution is not
unique.
We also want to reinforce the idea here that linear differential operators have much in common with
matrices. So it is no surprise that there is a finite dimensional version of Fredholm alternative
for matrices as well. Let
be an
matrix. The Fredholm alternative then states that
either
has a nontrivial solution, or
has a solution for every
.
A lot of intuition from linear algebra can be applied for linear differential operators, but one must be careful of course. For example, one obvious difference we have already seen is that in general a differential operator will have infinitely many eigenvalues, while a matrix has only finitely many.
Let us consider a physical application of an endpoint problem. Suppose we have a tightly stretched
quickly spinning elastic string or rope of uniform linear density
. Let us put this problem into the
-plane. The
axis represents the position on the string. The string rotates at angular velocity
, so
we will assume that the whole
-plane rotates at angular velocity
along. We will assume that the
string stays in this
-plane and
will measure its deflection from the equilibrium position,
, on
the
axis. Hence, we will find a graph which gives the shape of the string. We will idealize the string to
have no volume to just be a mathematical curve. If we take a small segment and we look at the tension at
the endpoints, we see that this force is tangential and we will assume that the magnitude is the same at
both end points. Hence the magnitude is constant everywhere and we will call its magnitude
. If we assume that the deflection is small then we can use Newton’s second law to get an
equation
![]() |
Let
be the length of the string and the string is fixed at the beginning and end points. Hence,
and
. See Figure 4.1.
We rewrite the equation as
. The setup is similar to Example 4.1.3, except for the
interval length being
instead of
. We are looking for eigenvalues of
where
. As before there are no nonpositive eigenvalues. With
, the general solution to the
equation is
. The condition
implies that
as before. The
condition
implies that
and hence
for some integer
,
so
![]() |
What does this say about the shape of the string? It says that for all parameters
,
,
not
satisfying the above equation, the string is in the equilibrium position,
. When
, then the
string will “pop out” some distance
at the midpoint. We cannot compute
with the information we
have.
Let us assume that
and
are fixed and we are changing
. For most values of
the string is in
the equilibrium state. When the angular velocity
hits a value
, then the string will pop out
and will have the shape of a sin wave crossing the
axis
times. When
changes again, the string
returns to the equilibrium position. You can see that the higher the angular velocity the more times it
crosses the
axis when it is popped out.
Hint for the following exercises: Note that
and
are also solutions of the
homogeneous equation.
Exercise 4.1.6: We have skipped the case of
for the boundary value problem
. Finish the calculation and show that there are no
negative eigenvalues.
Note: 2 lectures, §9.1 in EP
As motivation for studying Fourier series, suppose we have the problem
![]() | (4.6) |
for some periodic function
. We have already solved
![]() | (4.7) |
One way to solve (4.6) is to decompose
as a sum of cosines (and sines) and then solve many
problems of the form (4.7). We then use the principle of superposition, to sum up all the solutions we got
to get a solution to (4.6).
Before we proceed, let us talk a little bit more in detail about periodic functions. A function is said to
be periodic with period
if
for all
. For brevity we will say
is
-periodic. Note
that a
-periodic function is also
-periodic,
-periodic and so on. For example,
and
are
-periodic. So are
and
for all integers
. The constant functions are an extreme
example. They are periodic for any period (exercise).
Normally we will start with a function
defined on some interval
and we will want to
extend periodically to make it a
-periodic function. We do this extension by defining a new function
such that for
in
,
. For
in
, we define
, for
in
,
, and so on.
You should be careful to distinguish between
and its extension. A common mistake is to assume
that a formula for
holds for its extension. It can be confusing when the formula for
is periodic,
but with perhaps a different period.
Exercise 4.2.1: Define
on
. Now take the
-periodic extension and sketch
its graph. How does it compare to the graph of
.
Suppose we have a symmetric matrix, that is
. We have said before that the eigenvectors of
are
then orthogonal. Here the word orthogonal means that if
and
are two distinct eigenvectors of
,
then
. In this case the inner product
is the dot product, which can be computed as
.
To decompose a vector
in terms of mutually orthogonal vectors
and
we write
![]() |
Let us find the formula for
and
. First let us compute
![]() |
Therefore,
![]() |
Similarly
![]() |
You probably remember this formula from vector calculus.
Example 4.2.2: Write
as a linear combination of
and
.
First note that
and
are orthogonal as
. Then
![]() |
![]() |
Hence
![]() |
Now instead of decomposing a vector in terms of the eigenvectors of a matrix, we will decompose a function in terms of eigenfunctions of a certain eigenvalue problem. In particular, the eigenvalue problem we will use for the Fourier series is
![]() |
We have previously computed that the eigenfunctions are 1,
,
. That is, we will want to find
a representation of a
-periodic function
as
![]() |
This series is called the Fourier series
or trigonometric series for
. Note that here we have used the eigenfunction
instead of 1. This is for
convenience. We could also think of
, so that we only need to look at
and
.
Just like for matrices we will want to find a projection of
onto the subspace generated by the
eigenfunctions. So we will want to define an inner product of functions. For example, to find
we want
to compute
. We define the inner product as
![]() |
With this definition of the inner product, we have seen in the previous section that the eigenfunctions
(this includes the constant eigenfunction), and
are orthogonal in the sense
that

(except for
) and
. For
the constant we get that
. The coefficients are given by
![]() |
Compare these expressions with the finite dimensional example. The formula above also works for
, or more simply
![]() |
Let us check the formulas using the orthogonality properties. Suppose for a moment that
![]() |
Then for
we have
![]() |
And hence
.
Example 4.2.3: Take the function
![]() |
for
in
. Extend
periodically and write it as a Fourier series. This function is called the
sawtooth.
The plot of the extended periodic function is given in Figure 4.3. Now we compute the coefficients.
Let us start with
![]() |
We will often use the result from calculus that the integral of an odd function over a symmetric
interval is zero. Recall that an odd function is a function
such that
. For
example the function
, the function
, or more to the point the function
are all
odd.
![]() |
Let us move to
. Another useful fact from calculus is that the integral of an even function
over a symmetric interval is twice the integral of the same function over half the interval.
Recall an even function is a function
such that
. For example
is
even.
![]() |
We have used the fact that
![]() |
The series, therefore, is
![]() |
Let us write out the first 3 harmonics of the series for
.
![]() |
The plot of these first three terms of the series, along with a plot of the first 20 terms is given in Figure 4.4.
Example 4.2.4: Take the function
![]() |
Extend
periodically and write it as a Fourier series. This function or its variants appear often in
applications and the function is called the square wave.
The plot of the extended periodic function is given in Figure 4.5. Now we compute the coefficients.
Let us start with
![]() |
Next,
![]() |
And finally
![]() |
The series, therefore, is
![]() |
Let us write out the first 3 harmonics of the series for
.
![]() |
The plot of these first three terms of the series, along with a plot of the first 20 harmonics is given in Figure 4.6.
We have so far skirted the issue of convergence. It turns out that for example for the sawtooth function
, the equation
![]() |
is only an equality for
where the sawtooth is continuous. That is, we do not get an equality for
and all the other discontinuities of
. It is not hard to see that when
is an integer multiple
of
(which includes all the discontinuities), then
![]() |
We redefine
on
as
![]() |
and extend periodically. The series equals this extended
everywhere, including the discontinuities.
We will generally not worry about changing the function values at several (finitely many)
points.
We will say more about convergence in the next section. Let us however mention briefly an effect of
the discontinuity. Let us zoom in near the discontinuity in the square wave. Further, let us plot the first 100
harmonics, see Figure 4.7. You will notice that while the series is a very good approximation away
from the discontinuities, the error (the overshoot) near the discontinuity at
does not
seem to be getting any smaller. This behavior is known as the Gibbs phenomenon. The region
where the error is large gets smaller and smaller, however, the more terms in the series you
take.
We can think of a periodic function as a “signal” being a superposition of many signals of pure frequency. That is, we could think of say the square wave as a tone of certain frequency. It will be in fact a superposition of many different pure tones of frequency which are multiples of the base frequency. On the other hand a simple sine wave is only the pure tone. The simplest way to make sound using a computer is the square wave, and the sound will be a very different from nice pure tones. If you have played video games from the 1980s or so you have heard what square waves sound like.
There is another form of the Fourier series using complex exponentials that is sometimes easier to work with.
![]() |
Use Euler’s formula
, show that there exist complex numbers
such
that
![]() |
Note that the sum now ranges over all the integers including negative ones. Do not worry about convergence in this calculation. Hint: It may be better to start from the complex exponential form and write the series as
![]() |
Note: 2 lectures, §9.2 – §9.3 in EP
Before reading the lecture, it may be good to first try Project IV (Fourier series) from the IODE website: http://www.math.uiuc.edu/iode/. After reading the lecture it may be good to continue with Project V (Fourier series again).
-periodic functionsWe have computed the Fourier series for a
-periodic function, but what about functions of different
periods. Well, fear not, the computation is a simple case of change of variables. We can just rescale the
independent axis. Suppose that you have the
-periodic function
(
is called the half period). Let
, then the function
![]() |
is
-periodic. We want to also rescale all our sines and cosines. We will want to write
![]() |
If we change variables to
we see that
![]() |
So we can compute
and
as before. After we write down the integrals we change variables back to
.
![]() |
The two most common half periods that show up in examples are
and 1 because of the simplicity.
We should stress that we have done no new mathematics, we have only changed variables. If you
understand the Fourier series for
-periodic functions, you understand it for
-periodic
functions. All that we are doing is moving some constants around, but all the mathematics is the
same.
![]() |
extended periodically. The plot of the periodic extension is given in Figure 4.8. Compute the Fourier
series of
.
We will write
. For
we note that
is even and
hence
![]() |
Next we find
![]() |
You should be able to find this integral by thinking about the integral as the area under the graph without
doing any computation at all. Finally we can find
. Here, we notice that
is odd and,
therefore,
![]() |
Hence, the series is
![]() |
Let us explicitly write down the first few terms of the series up to the
harmonic.
![]() |
The plot of these few terms and also a plot up to the
harmonic is given in Figure 4.9. You should
notice how close the graph is to the real function. You should also notice that there is no “Gibbs
phenomenon” present as there are no discontinuities.
We will need the one sided limits of functions. We will use the following notation
![]() |
If you are unfamiliar with this notation,
means we are taking a limit of as
approaches
from below (i.e.
) and
means we are taking a limit of as
approaches
from above
(i.e.
). For example, for the square wave function
![]() | (4.8) |
we have
and
.
Let
be a function defined on an interval
. Suppose that we find finitely many points
,
,
, …,
in the interval, such that
is continuous on the intervals
,
, …,
. Also suppose that
and
exists for each of these points. Then we say
is
piecewise continuous.
If moreover,
is differentiable at all but finitely many points, and
is piecewise continuous,
then
is said to be piecewise smooth.
Example 4.3.2: The square wave function (4.8) is piecewise smooth on
or any other
interval. In such a case we just say that the function is just piecewise smooth.
Example 4.3.4: The function
is not piecewise smooth on
(or any other interval
containing zero). In fact, it is not even piecewise continuous.
Example 4.3.5: The function
is not piecewise smooth on
(or any other interval
containing zero).
is continuous, but the derivative of
is unbounded near zero and hence
not piecewise continuous.
Piecewise smooth functions have an easy answer on the convergence of the Fourier series.
Theorem 4.3.1. Suppose
is a
-periodic piecewise smooth function. Let
![]() |
be the Fourier series for
. Then the series converges for all
. If
is continuous near
,
then
![]() |
Otherwise
![]() |
If we happen to have that
at all the discontinuities, the Fourier series converges to
everywhere. We can always just redefine
by changing the value at each discontinuity
appropriately. Then we can write an equals sign between
and the series without any worry. We
mentioned this fact briefly at the end last section.
Note that the theorem does not say how fast the series converges. Think back the discussion of the Gibbs phenomenon in last section. The closer you get to the discontinuity, the more terms you need to take to get an accurate approximation to the function.
Not only does Fourier series converge nicely, but it is easy to differentiate and integrate the series. We can do this just by differentiating or integrating term by term.
![]() |
is a piecewise smooth continuous function and the derivative
is piecewise smooth. Then the
derivative can be obtained by differentiating term by term.
![]() |
It is important that the function is continuous. It can have corners, but no jumps. Otherwise the differentiated series will fail to converge. For an exercise, take the series obtained for the square wave and try to differentiate the series. Similarly, we can also integrate a Fourier series.
![]() |
is a piecewise smooth function. Then the antiderivative is obtained by antidifferentiating term by term and so
![]() |
where
and
is an arbitrary constant.
Note that the series for
is no longer a Fourier series as it contains the
term. The
antiderivative of a periodic function need no longer be periodic and so we should not expect a Fourier
series.
Let us do an example of a periodic function with one derivative everywhere.
Example 4.3.6: Take the function
![]() |
and extend to a 2-periodic function. The plot is given in Figure 4.10.
Note that this function has a derivative everywhere, but it does not have two derivatives at all the integers.
Let us compute the Fourier series coefficients. The actual computation involves several integration by parts and is left to student.

This series converges very fast. If you plot up to the third harmonic, that is the function
![]() |
it is almost indistinguishable from the plot of
in Figure 4.10. In fact, the coefficient
is already
just 0.0096 (approximately). The reason for this behavior is the
term in the denominator. The
coefficients
in this case go to zero as fast as
goes to zero.
It is a general fact that if you have one derivative, the Fourier coefficients will go to zero
approximately like
. If you have only a continuous function, then the Fourier coefficients will go to
zero as
, and if you have discontinuities then the Fourier coefficients will go to zero approximately as
. Therefore, we can tell a lot about the smoothness of a function by looking at its Fourier
coefficients.
To justify this behavior take for example the function defined by the Fourier series
![]() |
When we differentiate term by term we notice
![]() |
Therefore, the coefficients now go down like
, which we said means that we have a continuous
function. That is, the derivative of
may be defined at most points, but at least at some points it is not
defined. If we differentiate again we find that
really is not defined at some points as we get a
piecewise differentiable function
![]() |
This function is similar to the sawtooth. If we tried to differentiate again we would obtain
![]() |
which does not converge!
Exercise 4.3.2: Use a computer to plot
,
and
. That is, plot say the first 5
harmonics of the functions. At what points does
have the discontinuities.
![]() |
extended periodically. a) Compute the Fourier series for
. b) Write out the series explicitly up to the
harmonic.
![]() |
extended periodically. a) Compute the Fourier series for
. b) Write out the series explicitly up to the
harmonic.
![]() |
extended periodically (period is 20). a) Compute the Fourier series for
. b) Write out the series
explicitly up to the
harmonic.
Exercise 4.3.6: Let
. Is
continuous and differentiable everywhere?
Find the derivative (if it exists) or justify if it does not exist.
Exercise 4.3.7: Let
. Is
differentiable everywhere? Find the
derivative (if it exists) or justify if it does not exist.
Note: 2 lectures, §9.3 in EP
You may have noticed by now that an odd function has no cosine terms in the Fourier series and an even function has no sine terms in the Fourier series. This observation is not a coincidence. Let us look at even and odd periodic function in more detail.
Recall a function
is odd if
. A function
is even if
. For
example,
is even and
is odd. Similarly the function
is even if
is even and odd when
is odd.
Exercise 4.4.1: Take two functions
and
and define their product
. a)
Suppose both are odd, is
odd or even? b) Suppose one is even and one is odd, is
odd or
even? c) Suppose both are even, is
odd or even?
If
is odd and
we cannot in general say anything about the sum
. In fact, the
Fourier series of any function is really a sum of an odd (the sine terms) and an even (the cosine terms)
function.
In this section we are interested in odd and even periodic functions. We have previously defined the
-periodic extension of a function defined on the interval
. Sometimes we are only interested in
the function in the range
and it would be convenient to have an odd (resp. even) function. If the
function is odd, all the sine (resp. cosine) terms will disappear. What we can do is take the odd
(resp. even) extension of the function to
and then we can extend periodically to a
-periodic
function.
Take a function
defined on
. On
define the functions

and
to be
-periodic. Then
is called the odd periodic extension of
, and
is called the even periodic extension of
.
Example 4.4.1: Take the function
defined on
. Figure 4.11 shows the plots
of the odd and even extensions of
.
Let
be an odd
-periodic function. We write the Fourier series for
, we compute the
coefficients
(including
) and get
![]() |
That is, there are no cosine terms in a Fourier series of an odd function. The integral is zero because
is an odd function (product of an odd and an even function is odd) and the integral
of an odd function over a symmetric interval is always zero. Furthermore, the integral of an
even function over a symmetric interval
is twice the integral of the function over
the interval
. The function
is the product of two odd functions and hence
even.
![]() |
We can now write the Fourier series of
as
![]() |
Similarly, if
is an even
-periodic function. For the same exact reasons as above, we find that
and
![]() |
The formula still works for
in which case it becomes
![]() |
The Fourier series is then
![]() |
An interesting consequence is that the coefficients of the Fourier series of an odd (or even) function can be computed by just integrating over the half interval. Therefore, we can compute the odd (or even) extension of a function as a Fourier series by computing certain integrals over the interval where the original function is defined.
Theorem 4.4.1. Let
be a piecewise smooth function defined on
. Then the odd extension of
has the Fourier series
![]() |
where
![]() |
The even extension of
has the Fourier series
![]() |
where
![]() |
The series
is called the sine series of
and the series
is
called the cosine series of
. It is often the case that we do not actually care what happens outside of
. In this case, we can pick whichever series fits our problem better.
It is not necessary to start with the full Fourier series to obtain the sine and cosine series.
The sine series is really the eigenfunction expansion of
using the eigenfunctions of the
eigenvalue problem
,
,
. The cosine series is the eigenfunction
expansion of
using the eigenfunctions of the eigenvalue problem
,
,
. We could have, therefore, have gotten the same formulas by defining the inner
product
![]() |
and following the procedure of § 4.2. This point of view is useful because many times we use a specific series because our underlying question will lead to a certain eigenvalue problem. In fact, if the eigenvalue value problem is not one of the three we covered so far, you can still do an eigenfunction expansion, generalizing the results of this chapter. We will deal with such a generalization in chapter 5.
Example 4.4.2: Find the Fourier series of the even periodic extension of the function
for
.
We will write
![]() |
where
![]() |
and
![]() |
Note that we have detected the “continuity” of the extension since the coefficients decay as
. That is,
the even extension of
has no jump discontinuities. Although it will have corners, since the derivative
(which will be on odd function and a sine series) will have a series whose coefficients decay only as
so
it will have jumps.
Explicitly, the first few terms of the series are
![]() |
Exercise 4.4.3: a) Compute the derivative of the even extension of
above and verify it has
jump discontinuities. Use the actual definition of
, not its cosine series! b) Why is it that the
derivative of the even extension of
is the odd extension of
.
We have said that Fourier series ties in to the boundary value problems we studied earlier. Let us see this connection in more detail.
Suppose we have the boundary value problem for
,
![]() |
for the Dirichlet boundary conditions
,
. By using the Fredholm alternative
(Theorem 4.1.2) we note that as long as
is not an eigenvalue of the underlying homogeneous problem,
there will exist a unique solution. Note that the eigenfunctions of this eigenvalue problem were the
functions
. Therefore, to find the solution, we first find
in terms of the Fourier sine series. We
write
as a sine series as well with unknown coefficients. We substitute into the equation and solve for
the Fourier coefficients of
.
If on the other hand we have the Neumann boundary conditions
,
. We do the
same procedure using the cosine series. These methods are best seen by examples.
Example 4.4.3: Take the boundary value problem for
,
![]() |
where
on
. We want to look for a solution
satisfying the Dirichlet conditions
,
. We write
as a sine series
![]() |
where
![]() |
We write
as
![]() |
We plug in to obtain
![]() |
Therefore,
![]() |
or
![]() |
We have thus obtained a Fourier series for the solution
![]() |
Example 4.4.4: Similarly we handle the Neumann conditions. Take the same boundary value problem for
,
![]() |
where
on
. However, let us now consider the Neumann conditions
,
. We write
as a cosine series
![]() |
where
![]() |
and
![]() |
We write
as a cosine series
![]() |
We plug in to obtain
![]() |
Therefore,
,
for
even and for
odd (
)
![]() |
or
![]() |
We have thus obtained a Fourier series for the solution
![]() |
Exercise 4.4.4: Take
defined on
. a) Sketch the plot of the even periodic
extension of
. b) Sketch the plot of the odd periodic extension of
.
Exercise 4.4.5: Find the Fourier series of both the odd and even periodic extension of the function
for
. Can you tell which extension is continuous from the Fourier series
coefficients?
Exercise 4.4.6: Find the Fourier series of both the odd and even periodic extension of the function
for
.
![]() |
where
on
. a) Solve for the Dirichlet conditions
. b) Solve for the
Neumann conditions
.
![]() |
for
on
. a) Solve for the Dirichlet conditions
. b) Solve for the
Neumann conditions
.
![]() |
where
. Write the solution
as a Fourier series, where the coefficients are given
in terms of
.
Note: 2 lectures, §9.4 in EP
Let us return to the forced oscillations. We have a mass spring system as before, where we have a mass
on a spring with spring constant
, with damping
, and a force
applied to the mass. Now suppose
that the forcing function
is
-periodic for some
. We have already seen this
problem in chapter 2 with a simple
. The equation that governs this particular setup
is
![]() | (4.9) |
We know that the general solution will consist of
which solves the associated homogeneous equation
, and a particular solution of (4.9) we will call
. Since the complementary solution
will decay as time goes on, we are mostly interested in the part of
which does not decay. We call
this
the steady periodic solution as before. The difference in what we will do now is that we consider
an arbitrary forcing function
.
For simplicity, let us suppose that
. The problem with
is very similar. The
equation
![]() |
has the general solution
![]() |
where
. So any solution to
will be of the form
,
where
is the particular steady periodic solution. The steady periodic solution will always have the
same period as
.
In the spirit of the last section and the idea of undetermined coefficients we will first write
![]() |
Then we write
![]() |
and we plug in
into the differential equation and solve for
and
in terms of
and
. This is
perhaps best seen by example.
Example 4.5.1: Suppose that
, and
. The units are the mks
units (meters-kilograms-seconds) again. There is a jetpack strapped to the mass, which fires with
a force of 1 Newtons for 1 second and then is off for 1 second. We want to find the steady periodic
solution.
The equation is, therefore,
![]() |
where
is the step function
![]() |
extended periodically.
We write
![]() |
It is not hard to see that
for
:
![]() |
On the other hand
![]() |
And
![]() |
So
![]() |
We want to try
![]() |
Once we plug into the differential equation
, it is clear that
for
as there
are no corresponding terms in the series for
. Similarly
for
even. Hence we
try
![]() |
We plug into the differential equation and obtain
![]() |
So
,
for even
, and for odd
we get
![]() |
The steady periodic solution has the Fourier series
![]() |
We know this is the steady periodic solution as it contains no terms of the complementary solution and it
is periodic with the same period as
itself. See Figure 4.12 for the plot of this solution.
Just like when the forcing function was a simple cosine, resonance could still happen. Let us assume
and we will discuss only pure resonance. Again, take the equation
![]() |
When we expand
and find that some of its terms coincide with the complementary solution to
, we cannot use those terms in the guess. Just like before, they will disappear when we
plug into the left hand side and we will get a contradictory equation (such as
). That is,
suppose
![]() |
where
for some positive integer
. In this case we have to modify our guess and
try
![]() |
In other words, we multiply the offending term by
. From then on, we proceed as before.
Of course, the solution will not be a Fourier series (it will not even be periodic) since it contains
these terms multiplied by
. Further, the terms
will eventually
dominate and lead to wild oscillations. As before, this behavior is called pure resonance or just
resonance.
Note that there now may be infinitely many resonance frequencies to hit. That is, as we change the
frequency of
(we change
), different terms from the Fourier series of
may interfere with the
complementary solution and will cause resonance. However, we should note that since everything is an
approximation and in particular
is never actually zero but something very close to zero, only the first
few resonance frequencies will matter.
Example 4.5.2: Find the steady periodic solution to the equation
![]() |
where
![]() |
extended periodically. We note that
![]() |
The solution must look like
![]() |
for some particular solution
.
We note that if we just tried a Fourier series with
as usual, we would get duplication when
. Therefore, we pull out that term and multiply by
. And we have add a cosine term to get
everything right. That is, we must try
![]() |
Let us compute the second derivative.
![]() |

![]() |
This series has to equal to the series for
. We equate the coefficients and solve for
and
.

That is,
![]() |
When
, you will not have to worry about pure resonance. That is, there will never be any
conflicts and you do not need to multiply any terms by
. There is a corresponding concept of practical
resonance and it is very similar to the ideas we already explored in chapter 2. We will not go into details
here.
Exercise 4.5.2: Let
. Find the steady periodic solution to
. Express your solution as a Fourier series.
Exercise 4.5.3:
Let
. Find the steady periodic solution to
. Express your
solution as a Fourier series.
Exercise 4.5.4: Let
. Find the steady periodic solution to
.
Express your solution as a Fourier series.
Exercise 4.5.5: Let
for
and extended periodically. Find the steady periodic
solution to
. Express your solution as a Fourier series.
Exercise 4.5.6: Let
for
and extended periodically. Find the steady periodic
solution to
. Express your solution as a Fourier series.
Note: 2 lectures, §9.5 in EP
Let us recall that a partial differential equation or PDE is an equation containing the partial derivatives with respect to several independent variables. Solving PDEs will be our main application of Fourier series.
A PDE is said to be linear if the dependent variable and its derivatives appear at most to the first power and in no functions. We will only talk about linear PDEs. Together with a PDE, we usually have specified some boundary conditions, where the value of the solution or its derivatives is specified along the boundary of a region, and/or some initial conditions where the value of the solution or its derivatives is specified for some initial time. Sometimes such conditions are mixed together and we will refer to them simply as side conditions.
We will study three specific partial differential equations, each one representing a more general class of equations. First, we will study the heat equation, which is an example of a parabolic PDE. Next, we will study the wave equation, which is an example of a hyperbolic PDE. Finally, we will study the Laplace equation, which is an example of an elliptic PDE. Each of our examples will illustrate behavior that is typical for the whole class.
Let us first study the heat equation. Suppose that we have a wire (or a thin metal rod) that is insulated
except at the endpoints. Let
denote the position along the wire and let
denote time. See
Figure 4.13.
Now let
denote the temperature at point
at time
. The equation governing this system is
the so-called one-dimensional heat equation:
![]() |
where
is a constant. That is, the change in heat at a specific point is proportional to
the second derivative of the heat along the wire. This makes sense; if the heat distribution
has a maximum (the graph is concave down), then heat flows away from the maximum. And
vice-versa.
We will generally use a more convenient notation for partial derivatives. We will write
instead of
, and we will write
instead of
. With this notation the heat equation
becomes
![]() |
For the heat equation, we must also have some boundary conditions. We assume that the wire is of
length
and the ends are either exposed and touching some body of constant heat, or the ends are
insulated. If the ends of the wire are for example kept at temperature 0, then we must have the
conditions
![]() |
If, on the other hand, the ends are also insulated we get the conditions
![]() |
In other words, heat is not flowing in nor out of the wire at the ends. Note that we always have two
conditions along the
axis as there are two derivatives in the
direction. These side conditions are
called homogeneous (that is,
or a derivative of
is set to zero).
Furthermore, we will suppose we know the initial temperature distribution.
![]() |
for some known function
. This initial condition is not a homogeneous side condition.
The heat equation is linear, since
and its derivatives do not appear to any powers or in any
functions. Thus the principle of superposition still applies for the heat equation (without side
conditions). If
and
are solutions and
,
are constants, then
is also a
solution.
Superposition also preserves some of the side conditions. In particular, if
and
are solutions that
satisfy
and
, and
,
are constants, then
is still a solution that
satisfies
and
. Similarly for the side conditions
and
. In
general, superposition preserves all homogeneous side conditions.
The method of separation of variables is to try to find solutions that are sums or products of functions of one variable. For example, for the heat equation, we try to find solutions of the form
![]() |
That the desired solution we are looking for is of this form is too much to hope for. What is perfectly
reasonable to ask, however, is to find enough “building-block” solutions
using this
procedure so that the desired solution to the PDE is somehow constructed from these building blocks by
the use of superposition.
Let us try to solve the heat equation
![]() |
Let us guess
. We plug into the heat equation to obtain
![]() |
We rewrite as
![]() |
This equation is supposed to hold for all
and all
. But the left hand side does not depend on
and the right hand side does not depend on
. Therefore, each side must be a constant.
Let us call this constant
(the minus sign is for convenience later). We obtain the two
equations
![]() |
Or in other words

implies
. We are looking for a nontrivial
solution and so we can assume that
is not identically zero. Hence
. Similarly,
implies
. We are looking for nontrivial solutions
of the eigenvalue problem
,
,
. We have previously found that the only eigenvalues
are
, for integers
, where eigenfunctions are
. Hence, let us pick the
solutions
![]() |
The corresponding
must satisfy the equation
![]() |
By the method of integrating factor, the solution of this problem is
![]() |
It will be useful to note that
. Our building-block solutions are
![]() |
We note that
. Let us write
as the sine series
![]() |
That is, we find the Fourier series of the odd periodic extension of
. We used the sine series as it
corresponds to the eigenvalue problem for
above. Finally, we use superposition to write the solution
as
![]() |
Why does this solution work? First note that it is a solution to the heat equation by superposition. It
satisfies
and
, because
or
makes all the sines vanish. Finally,
plugging in
, we notice that
and so
![]() |
Example 4.6.1: Suppose that we have an insulated wire of length 1, such that the ends of the wire
are embedded in ice (temperature 0). Let
. Then suppose that initial heat distribution is
. See Figure 4.14.
We want to find the temperature function
. Let us suppose we also want to find when (at what
) does the maximum temperature in the wire drop to one half of the initial maximum of
12.5.
We are solving the following PDE problem:

for
. That is,
where
![]() |
The solution
, plotted in Figure 4.15 for
, is given by the following
series:
![]() |
Finally, let us answer the question about the maximum temperature. It is relatively easy to see that the
maximum temperature will always be at
, in the middle of the wire. The plot of
confirms
this intuition.
If we plug in
we get
![]() |
For
and higher (remember we are taking only odd
), the terms of the series are insignificant
compared to the first term. The first term in the series is already a very good approximation of the function
and hence
![]() |
The approximation gets better and better as
gets larger as the other terms decay much faster. Let us plot
the function
, the temperature at the midpoint of the wire at time
, in Figure 4.16. The figure
also plots the approximation by the first term.
It would be hard to tell the difference after
or so between the first term of the series
representation of
and the real solution. This behavior is a general feature of solving the heat
equation. If you are interested in behavior for large enough
, only the first one or two terms may be
necessary.
Getting back to the question of when is the maximum temperature one half of the initial maximum
temperature. That is, when is the temperature at the midpoint
. We notice from the graph
that if we use the approximation by the first term we will be close enough. Therefore, we
solve
![]() |
That is,
![]() |
So the maximum temperature drops to half at about
.
Now suppose the ends of the wire are insulated. In this case, we are solving the equation
![]() |
Yet again we try a solution of the form
. By the same procedure as before we plug into
the heat equation and arrive at the following two equations

implies
. Hence
. Similarly,
implies
. We are looking for nontrivial solutions
of the
eigenvalue problem
,
,
. We have previously found that the only
eigenvalues are
, for integers
, where eigenfunctions are
(we include the
constant eigenfunction). Hence, let us pick solutions
![]() |
The corresponding
must satisfy the equation
![]() |
For
, as before,
![]() |
For
, we have
and hence
. Our building-block solutions will be
![]() |
and
![]() |
We note that
. Let us write
using the cosine series
![]() |
That is, we find the Fourier series of the even periodic extension of
.
We use superposition to write the solution as
![]() |
Example 4.6.2: Let us try the same example as before, but for insulated ends. We are solving the following PDE problem

For this problem, we must find the cosine series of
. For
we have
![]() |
The calculation is left to the reader. Hence, the solution to the PDE problem, plotted in Figure 4.17, is given by the series
![]() |
Note in the graph that the temperature evens out across the wire. Eventually, all the terms except the
constant die out, and you will be left with a uniform temperature of
along the entire length of
the wire.
Exercise 4.6.2: Suppose you have a wire of length 2, with
and an initial temperature
distribution of
. Suppose that both the ends are embedded in ice (temperature 0).
Find the solution as a series.
Exercise 4.6.6: Find a series solution of

is a solution satisfying
,
,
. Then use
superposition.
Exercise 4.6.7: Find the steady state temperature solution as a function of
alone, by letting
in the solution from exercises 4.6.5 and 4.6.6. Verify that it satisfies the equation
.
Exercise 4.6.9 (challenging): Suppose that one end of the wire is insulated (say at
) and the other
end is kept at zero temperature. That is, find a series solution of

.
Note: 1 lecture, §9.6 in EP
Suppose we have a string such as on a guitar of length
. Suppose we only consider vibrations in one
direction. That is let
denote the position along the string, let
denote time and let
denote the
displacement of the string from the rest position. See Figure 4.18.
The equation that governs this setup is the so-called one-dimensional wave equation:
![]() |
for some
. We will assume that the ends of the string are fixed and hence we get
![]() |
Note that we always have two conditions along the
axis as there are two derivatives in the
direction.
There are also two derivatives along the
direction and hence we will need two further conditions
here. We will need to know the initial position and the initial velocity of the string.
![]() |
for some known functions
and
.
As the equation is again linear, superposition works just as it did for the heat equation. And again we will use separation of variables to find enough building-block solutions to get the overall solution. There is one change however. It will be easier to solve two separate problems and add their solutions.
The two problems we will solve are
![]() | (4.10) |
and
![]() | (4.11) |
The principle of superposition will then imply that
solves the wave equation and
furthermore
and
. Hence,
is a
solution to
![]() | (4.12) |
The reason for all this complexity is that superposition only works for homogeneous conditions such
as
,
, or
. Therefore, we will be able to use the idea of
separation of variables to find many building-block solutions solving all the homogeneous
conditions. We can then use them to construct a solution solving the remaining nonhomogeneous
condition.
Let us start with (4.10). We try a solution of the form
again. We plug into the wave
equation to obtain
![]() |
Rewriting we get
![]() |
Again, left hand side depends only on
and the right hand side depends only on
. Therefore, both
equal a constant which we will denote by
.
![]() |
We solve to get two ordinary differential equations

implies
and
implies that
.
Therefore, the only nontrivial solutions for the first equation are when
and they
are
![]() |
The general solution for
for this particular
is
![]() |
We also have the condition that
or
. This implies that
, which in
turn forces
. It will be convenient to pick
and hence
![]() |
Our building-block solution will be
![]() |
We differentiate in
, that is
![]() |
Hence,
![]() |
We expand
in terms of these sines as
![]() |
Now we can just write down the solution to (4.10) as a series
![]() |
Similarly we proceed to solve (4.11). We again try
. The procedure works exactly
the same at first. We obtain

,
. So again
and
![]() |
The condition for
however becomes
. Thus instead of
we get that
and we can
take
![]() |
Our building-block solution will be
![]() |
We expand
in terms of these sines as
![]() |
And we write down the solution to (4.11) as a series
![]() |
Exercise 4.7.2: Fill in the details in the derivation of the solution of (4.11). Check that the solution satisfies all the side conditions.
Putting these two solutions together we will state the result as a theorem.
Theorem 4.7.1. Take the equation
![]() | (4.13) |
where
![]() |
and
![]() |
Then the solution
can be written as a sum of the solutions of (4.10) and (4.11). In other
words,
![]() |
Example 4.7.1: Let us try a simple example of a plucked string. Suppose that the string of length 2 is plucked in the middle such that it has the initial shape
![]() |
See Figure 4.19. Further, suppose that
in the wave equation for simplicity.
We leave it to the reader to compute the sine series of
. The series will be
![]() |
Note that
is the sequence
for
. Therefore,
![]() |
The solution
is given by
![]() |
A plot for
is given in Figure 4.20. Notice that unlike the heat equation, the
solution does not become “smoother.” In fact the edges remain. We will see the reason for this
behavior in the next section where we derive the solution to the wave equation in a different
way.
Make sure you understand what the plot such as the one in the figure is telling you. For each fixed
,
you can think of the function
as just a function of
. This function gives you the shape of the
string at time
.
Exercise 4.7.5: Derive the solution for a general plucked string of length
, where we raise the
string some distance
at the midpoint and let go, and for any constant
.
Exercise 4.7.6: Suppose that a stringed musical instrument falls on the floor. Suppose that the
length of the string is 1 and
. When the musical instrument hits the ground the string was
in rest position and hence
. However, the string was moving at some velocity at impact
(
), say
. Find the solution
for the shape of the string at time
.
Exercise 4.7.7 (challenging): Suppose that you have a vibrating string and that there is air resistance proportional to the velocity. That is, you have
![]() |
Suppose that
. Derive a series solution to the problem. Any coefficients in the series should
be expressed as integrals of
.
Note: 1 lecture, different from §9.6 in EP
We have solved the wave equation by using Fourier series. But it is
often more convenient to use the so-called d’Alembert solution to the wave
equation
.
This solution can be derived using Fourier series as well, but it is really an awkward use of those concepts.
It is much easier to derive this solution by making a correct change of variables to get an equation which
can be solved by simple integration.
Suppose we have the wave equation
![]() | (4.14) |
And we wish to solve the equation (4.14) given the conditions
![]() | (4.15) |
We will transform the equation into a simpler form where it can be solved by simple integration. We
change variables to
,
and we use the chain rule:


. Then we plug into the wave
equation,
![]() |
Therefore, the wave equation (4.14) transforms into
. It is easy to find the
general solution to this equation by integration twice. Let us integrate with respect to
first
and notice that the constant of integration depends on
to get
. Next, we integrate with respect
to
and notice that the constant of integration must depend on
. Thus,
. The
solution must then be of the following form for some functions
and
.
![]() |
We know what any solution must look like, but we need to solve for the given side conditions. We will just
give the formula and see that it works. First let
denote the odd extension of
, and let
denote the odd extension of
. Now define
![]() |
We claim this
and
give the solution. Explicitly, the solution is
or in other words:
![]() | (4.16) |
Let us check that the d’Alembert formula really works.
![]() |
So far so good. Assume for simplicity
is differentiable. By the fundamental theorem of calculus we
have
![]() |
So
![]() |
Yay! We’re smoking now. OK, now the boundary conditions. Note that
and
are odd. Also
is an even function of
because
is odd (to see this fact, do the substitution
).
So
![]() |
Now
and
are
periodic as well. Furthermore,
![]() |
And voilą, it works.
Example 4.8.1: What the d’Alembert solution says is that the solution is a superposition of two functions
(waves) moving in the opposite direction at “speed”
. To get an idea of how it works, let us do an
example. Suppose that we have the simpler setup

is an impulse of height 1 centered at
:
![]() |
The graph of this pulse is the top left plot in Figure 4.21.
Let
be the odd periodic extension of
. Then from (4.16) we know that the solution is given
as
![]() |
It is not hard to compute specific values of
. For example, to compute
we
notice
and
. Now
and
. Hence
. As you can see the d’Alembert solution is much
easier to actually compute and to plot than the Fourier series solution. See Figure 4.21 for plots of the
solution
for several different
.
It is perhaps easier and more useful to memorize the procedure rather than the formula itself. The important thing to remember is that a solution to the wave equation is a superposition of two waves traveling in opposite directions. That is,
![]() |
If you think about it, the exact formulas for
and
are not hard to guess once you realize what kind of
side conditions
is supposed to satisfy. Let us give the formula again, but slightly differently.
Best approach is to do this in stages. When
(and hence
) we have the
solution
![]() |
On the other hand, when
(and hence
), we let
![]() |
The solution in this case is
![]() |
By superposition we get a solution for the general side conditions (4.15) (when neither
nor
are
identically zero).
![]() | (4.17) |
Do note the minus sign before the
.
Warning: Make sure you use the odd extensions
and
, when you have formulas for
and
. The thing is, those formulas in general hold only for
, and are not usually equal to
and
for other
.
Exercise 4.8.2: Using the d’Alembert solution solve
,
,
,
,
, and
. Hint: note that
is the odd
extension of
and
.
Exercise 4.8.4: Take
,
,
,
,
, and
. a) Solve using the d’Alembert formula (Hint: You can use the sine series for
.)
b) Find the solution as a function of
for a fixed
,
, and
. Do not use the sine
series here.
Exercise 4.8.5: Derive the d’Alembert solution for
,
,
,
,
, and
, using the Fourier series solution of
the wave equation, by applying an appropriate trigonometric identity.
Exercise 4.8.6: The d’Alembert solution still works if there are no boundary conditions and the initial
condition is defined on the whole real line. Suppose that
(for all
on the real line and
),
, and
, where
![]() |
Solve using the d’Alembert solution. That is, write down a piecewise definition for the solution. Then
sketch the solution for
,
,
, and
.
Note: 1 lecture, §9.7 in EP
Suppose we have an insulated wire, a plate, or a 3-dimensional object. We apply certain fixed temperatures on the ends of the wire, the edges of the plate or on all sides of the 3-dimensional object. We wish to find out what is the steady state temperature distribution. That is, we wish to know what will be the temperature after long enough period of time.
We are really looking for a solution to the heat equation that is not dependent on time. Let us first do
this in one space variable. We are looking for a function
that satisfies
![]() |
but such that
for all
and
. Hence, we are looking for a function of
alone that satisfies
. It is easy to solve this equation by integration and we see that
for some constants
and
.
Suppose we have an insulated wire, and we apply constant temperature
at one end (say where
) and
and the other end (at
where
is the length of the wire). Then our steady state
solution is
![]() |
This solution agrees with our common sense intuition with how the heat should be distributed in the wire. So in one dimension, the steady state solutions are basically just straight lines.
Things are more complicated in two or more space dimensions. Let us restrict to two space dimensions for simplicity. The heat equation in two variables is
![]() | (4.18) |
or more commonly written as
or
. Here the
and
symbols mean
. We
will use
from now on. The reason for that notation is that you can define
to be the right thing for
any number of space dimensions and then the heat equation is always
. The
is called the
Laplacian.
OK, now that we have notation out of the way, let us see what does an equation for the steady state
solution look like. We are looking for a solution to (4.18) which does not depend on
. Hence we are
looking for a function
such that
![]() |
This equation is called the Laplace equation
.
Solutions to the Laplace equation are called harmonic functions and have many nice properties and
applications far beyond the steady state heat problem.
Harmonic functions in two variables are no longer just linear (plane graphs). For example, you can
check that the functions
and
are harmonic. However, if you remember your multi-variable
calculus we note that if
is positive,
is concave up in the
direction, then
must be negative
and
must be concave down in the
direction. Therefore, a harmonic function can never have any
“hilltop” or “valley” on the graph. This observation is consistent with our intuitive idea of steady state heat
distribution.
Commonly the Laplace equation is part of a so-called Dirichlet
problem
.
That is, we have some region in the
-plane and we specify certain values along the boundaries of the
region. We then try to find a solution
defined on this region such that
agrees with the values we
specified on the boundary.
For simplicity, we will consider a rectangular region. Also for simplicity we will specify boundary values to be zero at 3 of the four edges and only specify an arbitrary function at one edge. As we still have the principle of superposition, you can use this simpler solution to derive the general solution for arbitrary boundary values by solving 4 different problems, one for each edge, and adding those solutions together. This setup is left as an exercise.
We wish to solve the following problem. Let
and
be the height and width of our rectangle, with
one corner at the origin and lying in the first quadrant.
The method we will apply is separation of variables. Again, we will come up with enough
building-block solutions satisfying all the homogeneous boundary conditions (all conditions except
(4.23)). We notice that superposition still works for all the equation and all the homogeneous conditions.
Therefore, we can use the Fourier series for
to solve the problem as before.
We try
. We plug into the equation to get
![]() |
We put the
s on one side and the
s on the other to get
![]() |
The left hand side only depends on
and the right hand side only depends on
. Therefore, there is
some constant
such that
. And we get two equations

and
. Taking
the equation for
we have already seen that we have a nontrivial solution if and only if
and the solution is a multiple of
![]() |
For these given
, the general solution for
(one for each
) is
![]() | (4.24) |
We only have one condition on
and hence we can pick one of
or
constants to be whatever is
convenient. It will be useful to have
, so we let
. Setting
and solving for
we get that
![]() |
After we plug the
and
we into (4.24) and simplify, we find
![]() |
We define
. And note that
satisfies (4.19)–(4.22).
Observe that
![]() |
Suppose that
![]() |
Then we get a solution of (4.19)–(4.23) of the following form.
![]() |
As
satisfies (4.19)–(4.22) and any linear combination (finite or infinite) of
must also satisfy
(4.19)–(4.22), we see that
must satisfy (4.19)–(4.22). By plugging in
it is easy to see that
satisfies (4.23) as well.
Example 4.9.1: Suppose that we take
and we let
. We compute the
sine series for the function
(we will get the square wave). We find that for
we
have
![]() |
Therefore the solution
, see Figure 4.22, to the corresponding Dirichlet problem is given
as
![]() |
.
This scenario corresponds to the steady state temperature on a square plate of width
with 3 sides
held at 0 degrees and one side held at
degrees. If we have arbitrary initial data on all sides,
then we solve four problems, each using one piece of nonhomogeneous data. Then we use
the principle of superposition to add up all four solutions to have a solution to the original
problem.
There is another way to visualize the solutions. Take a wire and bend it in just the right way so that it corresponds to the graph of the temperature above the boundary of your region. Then dip the wire in soapy water and let it form a soapy film stretched between the edges of the wire. It turns out that this soap film is precisely the graph of the solution to the Laplace equation. Harmonic functions come up frequently in problems when we are trying to minimize area of some surface or minimize energy in some system.
Exercise 4.9.3: Let
be the region described by
and
. Solve the problem

. Hint: Guess, then check your intuition.
Exercise 4.9.4: Let
be the region described by
and
. Solve
![]() |
Hint: Try a solution of the form
(different separation of variables).
Exercise 4.9.6: Let
be the region described by
and
. Solve the problem

.
Exercise 4.9.7: Let
be the region described by
and
. Solve the problem

.