Fourier transform VI - Solving differential equations

Let's try to use everything we know about the Fourier transform to solve some differential equations!

First examples


A humiliating first example

It's always good to start with an example where the answer is already known, to see if our new approach at least recovers that answer. To that end, let's suppose we deploy our massive Fourier transform machinery on the innocent little differential equation

y′+y=0.

The general solution to this differential equation is y(t)=ce−t. Let's see how Fourier does.

Suppose f(t) is a function with all of our "mild assumptions" that is a solution to this differential equation, i.e., such that

f′(t)+f(t)=0.

Applying the Fourier transform, we find that

(2Ī€is)⋅F(s)+F(s)=0,

where as usual F(s)=(Ff)(s). Solving the above equation for F(s) yields

F(s)=02Ī€is+1,

i.e., F(s)=0. But this implies f(t)=F−1(0)=0. In other words, our Fourier transform method only found the trivial (zero function) solution!

What went wrong?! Well, as we noted at the start of this example, the general solution to this particular differential equation is y(t)=ce−t, where c is any real number. Notice that if c≠0, then the function y(t) has the property limt→−∞y(t)=±∞. So those functions do not have the "mild assumptions" necessary for our proof of the derivative property of the Fourier transform. Even worse, you can check that the integral

(F(ce−t))(s)=âˆĢ−∞∞ce−te−2Ī€itsdt

doesn't converge. So none of those functions even have a Fourier transform (yet[1]). Out of all of the solutions to this differential equation, the only one that had a Fourier transform and met our "mild assumption" requirements was the trivial function y(t)=0, and that's the one solution our method found.

Not a great start.

A more encouraging example

Let g(t)=12e−|t|, so that (Fg)(s)=11+4Ī€2s2. Then consider the differential equation

yâ€ŗâˆ’y+h(t)=0,

where h(t) is any function that satisfies our usual "mild assumptions."

Repeating our strategy from the first example should help us find all functions that satisfy our "mild assumptions" and our solutions to the above differential equation. Applying the Fourier transform, we obtain the equation

(2Ī€is)2⋅F(s)−F(s)+(Fh)(s)=0,

which we can solve for F(s):

F(s)=−(Fh)(s)(2Ī€is)2−1=(Fh)(s)1+4Ī€2s2=11+4Ī€2s2⋅(Fh)(s)=(Fg)(s)⋅(Fh)(s).

Applying the inverse Fourier transform then reveals

f(t)=(g∗h)(t)=âˆĢ−∞∞g(t−x)h(x)dx=12âˆĢ−∞∞e−|t−x|h(x)dx.

So our Fourier transform method has found a unique solution, namely the convolution of the functions g and h. This must be the only solution (out of the two-dimensional space of solutions) that satisfies our "mild assumptions."

Maybe they're not so mild after all?[2]

A heat equation example


Suppose u(x,t) measures the temperature at position x and time t along a thin, infinitely long metal rod, and let f(x)=u(x,0) denote the initial temperature of the rod. Assume also:

  1. The function u(x,t) satisfies the differential equation ut=12uxx
  2. For each fixed value of t, the function u(x,t) satisfies our "mild assumptions" as a function of x.

Let's focus on the variable x and apply the Fourier transform (with respect to x). We first compute

(Fut)(s,t)=âˆĢ−∞∞ut(x,t)e−2Ī€isxdx=âˆĢ−∞∞∂∂t(u(x,t)e−2Ī€isx)dx=∂∂t(âˆĢ−∞∞u(x,t)e−2Ī€isxdx)=∂∂t(Fu).

We next compute

F(12uxx)=12F(uxx)=12(2Ī€is)2⋅(Fu)=−2Ī€2s2⋅(Fu).

So, the function Fu satisfies the differential equation

∂∂t(Fu)=−2Ī€2s2⋅(Fu).

The general solution to this new differential equation is

(Fu)(s,t)=ce−2Ī€2s2t,

where c is a constant with respect to t. In fact, if we set t=0 in the above equality we see that

c=(Fu)(s,0)=âˆĢ−∞∞u(x,0)e−2Ī€isxdx=âˆĢ−∞∞f(x)e−2Ī€isxdx=(Ff)(s).

The function e−2Ī€2s2t might also look vaguely Gaussian. Indeed, it's not too difficult to use the stretch-and-shift properties to show it is the Fourier transform (with respect to x) of the function

g(x,t)=12Ī€te−x22t.

With that final observation, suddenly we see that

Fu=(Ff)⋅(Fg),

and so our mystery solution u is given by

u(x,t)=(f∗g)(x,t)=(g∗f)(x,t)=âˆĢ−∞∞12Ī€te−(x−t)22tf(y)dy.

Here the function f(x) was the initial temperature function, and the function g(x,t) is sometimes called the heat kernel. Our solution says that the temperature at any point on the wire at time t can be found by convolving the initial temperature information with this heat kernel function, which controls how the heat energy must be spreading through the wire over time.

Let's take a break from the Fourier transform for a bit, since it seems to be missing some crucial insight to let us see all solutions ...

Suggested next notes


Laplace transform I - Desperate times


  1. Cue dramatic music. â†Šī¸Ž

  2. We'll eventually supercharge our Fourier transform, so that it can find many more solutions. â†Šī¸Ž