Unit 12, lesson 74

Fourier Transforms and PDEs on Unbounded Domains

How a stated Fourier transform convention and its inverse solve the heat equation on the whole line, how derivatives and Gaussians behave under it, what the heat kernel shows, and which decay conditions each step needs.

  • Video 74
  • Fourier Transforms on the Whole Line

On an interval [−L,L][-L, L] a Fourier series builds a function from the discrete frequencies nπ/Ln\pi/L. On the whole real line there is no length to fit, every real frequency kk can occur, and the sum over nn becomes an integral over kk. That is the situation for heat spreading along a rod so long that its ends never matter. This lesson fixes one Fourier transform convention, derives its rules for derivatives and Gaussians, solves the heat equation on the whole line with the heat kernel, and states the decay conditions that make each step valid.

Key terms

Fourier transform convention

Definition Let ff be absolutely integrable on R\mathbb{R}, which means ∫−∞∞∣f(x)∣ dx<∞\int_{-\infty}^{\infty} \lvert f(x) \rvert\,dx < \infty. In the convention used in this course, the Fourier transform of ff is

f^(k)=∫−∞∞f(x) e−ikx dx\hat{f}(k) = \int_{-\infty}^{\infty} f(x)\,e^{-ikx}\,dx

for real kk, and the inverse Fourier transform rebuilds ff as

f(x)=12π∫−∞∞f^(k) eikx dk.f(x) = \frac{1}{2\pi}\int_{-\infty}^{\infty} \hat{f}(k)\,e^{ikx}\,dk.

The forward integral converges for every real kk and defines a continuous function with ∣f^(k)∣≤∫∣f∣ dx\lvert \hat{f}(k) \rvert \le \int \lvert f \rvert\,dx. The inverse formula needs conditions. If ff is also piecewise smooth on every bounded interval, then for every real xx

lim⁡R→∞12π∫−RRf^(k) eikx dk=f(x+)+f(x−)2,\begin{aligned} &\lim_{R \to \infty} \frac{1}{2\pi}\int_{-R}^{R} \hat{f}(k)\,e^{ikx}\,dk \\[0.4em] &\qquad = \frac{f(x^+) + f(x^-)}{2}, \end{aligned}

which is f(x)f(x) wherever ff is continuous. If f^\hat{f} is absolutely integrable as well, the limit is an ordinary integral. Two piecewise continuous integrable functions with the same Fourier transform agree at every point where both are continuous. Other texts put the factor 1/(2π)1/(2\pi) on the forward integral, split it as 1/2π1/\sqrt{2\pi} on both integrals, or use e−2πiξxe^{-2\pi i\xi x} with no factor at all, and some reverse the signs in the two exponents. Every rule below carries constants that depend on this choice, so formulas from different sources have to be rewritten in one convention before they are combined.

In plain words The Fourier transform records how much of each frequency kk a function contains, and the inverse adds those frequencies back up, as Fourier coefficients do on an interval. Where the function jumps, the inverse returns the midpoint of the jump, just as a Fourier series does.

Example For f(x)=e−∣x∣f(x) = e^{-\lvert x \rvert}, split the integral at 00,

f^(k)=∫0∞e−(1+ik)x dx+∫−∞0e(1−ik)x dx=11+ik+11−ik=21+k2.\begin{aligned} \hat{f}(k) &= \int_0^\infty e^{-(1 + ik)x}\,dx \\[0.4em] &\quad + \int_{-\infty}^0 e^{(1 - ik)x}\,dx \\[0.4em] &= \frac{1}{1 + ik} + \frac{1}{1 - ik} \\[0.4em] &= \frac{2}{1 + k^2}. \end{aligned}

This f^\hat{f} is integrable and ff is continuous, so the inverse formula returns e−∣x∣e^{-\lvert x \rvert} at every xx. In the symmetric convention with 1/2π1/\sqrt{2\pi} in front, the same function has Fourier transform 2/π/(1+k2)\sqrt{2/\pi}/(1 + k^2), so a formula without its convention is incomplete. The box function, equal to 11 for ∣x∣<1\lvert x \rvert < 1 and 00 for ∣x∣>1\lvert x \rvert > 1, has Fourier transform 2sin⁡k/k2\sin k/k, with the value 22 at k=0k = 0. That function of kk is not absolutely integrable, but the symmetric limit above still converges, and at the jumps x=±1x = \pm 1 it gives 12\tfrac{1}{2}.

Fourier transform of a derivative

Definition Let f′=df/dxf' = df/dx, and suppose that ff is continuous on R\mathbb{R}, continuously differentiable except possibly at finitely many points, and that ff and f′f' are absolutely integrable. Then f(x)→0f(x) \to 0 as x→±∞x \to \pm\infty, because f(x)=f(0)+∫0xf′(s) dsf(x) = f(0) + \int_0^x f'(s)\,ds has limits there and an integrable function can only have the limit 00. Integration by parts gives

f′^(k)=ik f^(k)\widehat{f'}(k) = ik\,\hat{f}(k)

for every real kk. The boundary terms vanish at ±∞\pm\infty because ff decays, and they cancel at the exceptional points because ff is continuous. If f′f' meets the same conditions in turn, applying the rule twice gives

f′′^(k)=−k2 f^(k).\widehat{f''}(k) = -k^2\,\hat{f}(k).

For a function u(x,t)u(x, t) that satisfies these conditions in xx at each time tt, write u^(k,t)\hat{u}(k, t) for the Fourier transform of uu in xx. The rule then turns uxxu_{xx} into −k2u^(k,t)-k^2\hat{u}(k, t).

In plain words Differentiation in xx becomes multiplication by ikik at each frequency, and the factor grows with ∣k∣\lvert k \rvert because derivatives magnify fast oscillations. A linear equation in xx with constant coefficients therefore turns into an algebraic relation at each frequency. The conditions matter, since a jump in ff adds a term that the rule does not show.

Example The function f(x)=e−∣x∣f(x) = e^{-\lvert x \rvert} is continuous, and f′(x)=−sgn⁡(x) e−∣x∣f'(x) = -\operatorname{sgn}(x)\,e^{-\lvert x \rvert} for x≠0x \ne 0. Integrating directly over each half-line gives

f′^(k)=−11+ik+11−ik=2ik1+k2,\begin{aligned} \widehat{f'}(k) &= -\frac{1}{1 + ik} + \frac{1}{1 - ik} \\[0.4em] &= \frac{2ik}{1 + k^2}, \end{aligned}

which is ikik times f^(k)=2/(1+k2)\hat{f}(k) = 2/(1 + k^2), as the rule predicts. The box function shows what goes wrong without continuity. Its derivative is 00 at every point except ±1\pm 1, so the Fourier transform of that pointwise derivative is 00, while ik⋅2sin⁡k/k=2isin⁡kik \cdot 2\sin k/k = 2i\sin k. The missing term comes from the two jumps. As a distribution the derivative of the box is δ(x+1)−δ(x−1)\delta(x + 1) - \delta(x - 1), and its Fourier transform eik−e−ike^{ik} - e^{-ik} equals 2isin⁡k2i\sin k.

Fourier transform of a Gaussian

Definition For every a>0a > 0 and every real kk, the Fourier transform of e−ax2e^{-ax^2} is

F(k)=πa  e−k2/(4a).F(k) = \sqrt{\frac{\pi}{a}}\;e^{-k^2/(4a)}.

One derivation solves a differential equation in kk, with F′=dF/dkF' = dF/dk. Differentiating F(k)=∫e−ax2e−ikx dxF(k) = \int e^{-ax^2}e^{-ikx}\,dx under the integral sign is allowed, because the kk-derivative of the integrand has absolute value ∣x∣e−ax2\lvert x \rvert e^{-ax^2}, which is integrable and independent of kk. Since −ix e−ax2-ix\,e^{-ax^2} equals i2a\tfrac{i}{2a} times the xx-derivative of e−ax2e^{-ax^2}, the derivative rule gives

F′(k)=i2a ik F(k)=−k2a F(k).\begin{aligned} F'(k) &= \frac{i}{2a}\,ik\,F(k) \\[0.4em] &= -\frac{k}{2a}\,F(k). \end{aligned}

The Gaussian integral ∫−∞∞e−z2 dz=π\int_{-\infty}^{\infty} e^{-z^2}\,dz = \sqrt{\pi} and the substitution x=z/ax = z/\sqrt{a} give the starting value F(0)=π/aF(0) = \sqrt{\pi/a}. The solution of this linear first-order equation with that starting value is the formula above.

In plain words The Fourier transform of a Gaussian is again a Gaussian. The parameter aa sits in the numerator of one exponent and in the denominator of the other, so a narrow bump in xx has a wide Fourier transform in kk, and a wide bump has a narrow one.

Example With a=1a = 1 the formula gives π e−k2/4\sqrt{\pi}\,e^{-k^2/4}, and with a=14a = \tfrac{1}{4} it gives 2π e−k22\sqrt{\pi}\,e^{-k^2}. The case needed for diffusion is a=1/(4κt)a = 1/(4\kappa t) with κ>0\kappa > 0 and t>0t > 0,

∫−∞∞e−x2/(4κt) e−ikx dx=4πκt  e−κk2t.\begin{aligned} &\int_{-\infty}^{\infty} e^{-x^2/(4\kappa t)}\,e^{-ikx}\,dx \\[0.4em] &\qquad = \sqrt{4\pi\kappa t}\;e^{-\kappa k^2 t}. \end{aligned}

Dividing by 4πκt\sqrt{4\pi\kappa t} gives a Gaussian in xx whose Fourier transform is exactly e−κk2te^{-\kappa k^2 t}.

Heat kernel

Definition For a diffusivity κ>0\kappa > 0, the heat kernel on the line is

K(x,t)=14πκt e−x2/(4κt)K(x, t) = \frac{1}{\sqrt{4\pi\kappa t}}\,e^{-x^2/(4\kappa t)}

for real xx and t>0t > 0. It is positive, it satisfies Kt=κKxxK_t = \kappa K_{xx}, its integral over xx equals 11 for every t>0t > 0, and its Fourier transform in xx is e−κk2te^{-\kappa k^2 t}. It is not defined at t=0t = 0. As t→0+t \to 0^+ it concentrates at x=0x = 0 and tends to the delta function in the sense of distributions. Consider the initial-value problem

ut=κuxx,x∈R, t>0,u(x,0)=f(x).\begin{gathered} u_t = \kappa u_{xx}, \quad x \in \mathbb{R},\ t > 0, \\[0.4em] u(x, 0) = f(x). \end{gathered}

For integrable data and a solution that decays in xx, the Fourier transform in xx gives the ordinary differential equation du^/dt=−κk2u^d\hat{u}/dt = -\kappa k^2\hat{u} at each frequency kk, so u^(k,t)=e−κk2tf^(k)\hat{u}(k, t) = e^{-\kappa k^2 t}\hat{f}(k). In this convention the Fourier transform of a convolution (g∗h)(x)=∫g(x−s) h(s) ds(g * h)(x) = \int g(x - s)\,h(s)\,ds of integrable functions gg and hh is the product g^h^\hat{g}\hat{h}, with no extra constant, and therefore

u(x,t)=∫RK(x−s,t) f(s) ds.\begin{aligned} &u(x, t) \\[0.4em] &\quad = \int_{\mathbb{R}} K(x - s, t)\,f(s)\,ds. \end{aligned}

The formula holds well beyond the case used to derive it. If ff is bounded and continuous, it defines a smooth solution for t>0t > 0 with ∣u∣≤sup⁡∣f∣\lvert u \rvert \le \sup \lvert f \rvert, and u(x,t)→f(x)u(x, t) \to f(x) as t→0+t \to 0^+ for every xx. If ff is also integrable, the total amount ∫u(x,t) dx\int u(x, t)\,dx equals ∫f dx\int f\,dx for every t>0t > 0.

In plain words Each frequency of the initial profile decays on its own at the rate κk2\kappa k^2, so fine detail fades first. Back in xx the same solution is a superposition of spreading bumps, one for each point ss of the initial profile, each carrying the amount f(s)f(s) and keeping it. The width of the kernel grows in proportion to t\sqrt{t} while its height falls in proportion to 1/t1/\sqrt{t}.

Example Take κ=1\kappa = 1 and f(x)=e−x2f(x) = e^{-x^2}. Then f^(k)=π e−k2/4\hat{f}(k) = \sqrt{\pi}\,e^{-k^2/4}, and each frequency decays to

u^(k,t)=π e−(1/4+t)k2.\hat{u}(k, t) = \sqrt{\pi}\,e^{-(1/4 + t)k^2}.

The Gaussian formula with 1/(4a)=1/4+t1/(4a) = 1/4 + t, that is a=1/(1+4t)a = 1/(1 + 4t), inverts this to

u(x,t)=11+4t e−x2/(1+4t).u(x, t) = \frac{1}{\sqrt{1 + 4t}}\,e^{-x^2/(1 + 4t)}.

A direct check confirms it. Write b=1+4tb = 1 + 4t, so db/dt=4db/dt = 4. Then ux=−(2x/b) uu_x = -(2x/b)\,u and uxx=(4x2/b2−2/b) uu_{xx} = (4x^2/b^2 - 2/b)\,u, while differentiating ln⁡u=−12ln⁡b−x2/b\ln u = -\tfrac{1}{2}\ln b - x^2/b in tt gives ut=(−2/b+4x2/b2) uu_t = (-2/b + 4x^2/b^2)\,u. So ut=uxxu_t = u_{xx}, and u(x,0)=e−x2u(x, 0) = e^{-x^2}. The peak height 1/1+4t1/\sqrt{1 + 4t} falls to 13\tfrac{1}{3} at t=2t = 2, yet the area under the curve stays π\sqrt{\pi} for every tt, because the substitution x=b zx = \sqrt{b}\,z turns ∫u dx\int u\,dx into ∫e−z2 dz\int e^{-z^2}\,dz.

Unbounded domain

Definition A domain is unbounded when it extends to infinity, like the whole line −∞<x<∞-\infty < x < \infty, a half-line or a half-plane. Where the domain has no end there is no point at which to impose a boundary condition, so a condition on the behavior as ∣x∣→∞\lvert x \rvert \to \infty takes its place, such as boundedness or decay. The discrete frequencies nπ/Ln\pi/L of an interval give way to all real kk. For the heat equation on the whole line with bounded continuous initial data ff, the heat-kernel formula gives the only bounded solution. Without a condition of this kind uniqueness fails, since there are nonzero solutions with zero initial data that grow extremely fast as ∣x∣→∞\lvert x \rvert \to \infty. Two features of whole-line diffusion follow from the formula.

  • Infinite propagation speed. If f≥0f \ge 0 is bounded, continuous and not identically zero, then u(x,t)>0u(x, t) > 0 for every xx and every t>0t > 0, because K>0K > 0 everywhere. The wave equation, by contrast, has a finite propagation speed.
  • Instability backward in time. Recovering data from the values a time tt later multiplies each frequency by e+κk2te^{+\kappa k^2 t}, so tiny high-frequency errors become enormous, and the backward heat problem is not well posed.

In plain words With no ends to hold the solution in place, a condition at infinity does the job that boundary conditions do on an interval. On the whole line heat reaches every point at once, though only in tiny amounts far away. That is a feature of the idealized diffusion equation, not a claim that heat carriers move infinitely fast.

Example Let κ=1\kappa = 1 and let f=1f = 1 on [−1,1][-1, 1] and f=0f = 0 elsewhere. This ff has jumps at ±1\pm 1, but the formula still gives a smooth solution for t>0t > 0. With erf⁡(z)=2π∫0ze−s2 ds\operatorname{erf}(z) = \frac{2}{\sqrt{\pi}}\int_0^z e^{-s^2}\,ds it reads

u(x,t)=12erf⁡(x+12t)−12erf⁡(x−12t).\begin{aligned} u(x, t) &= \tfrac{1}{2}\operatorname{erf}\left(\frac{x + 1}{2\sqrt{t}}\right) \\[0.4em] &\quad - \tfrac{1}{2}\operatorname{erf}\left(\frac{x - 1}{2\sqrt{t}}\right). \end{aligned}

At x=3x = 3 the initial temperature was 00, yet at t=0.1t = 0.1 the formula gives u≈3.9×10−6u \approx 3.9 \times 10^{-6}, small but positive. Going backward in time behaves very differently. The mode sin⁡10x\sin 10x decays by the factor e−100e^{-100} between t=0t = 0 and t=1t = 1, so an error of 10−6sin⁡10x10^{-6}\sin 10x in data measured at t=1t = 1 corresponds to an error with amplitude about 2.7×10372.7 \times 10^{37} in the reconstructed data at t=0t = 0.

Decay conditions

Definition Decay conditions are assumptions on how fast a function and its derivatives vanish as ∣x∣→∞\lvert x \rvert \to \infty, made so that the Fourier transform and its rules apply. Absolute integrability of ff makes f^(k)\hat{f}(k) defined and continuous for every real kk, with f^(k)→0\hat{f}(k) \to 0 as ∣k∣→∞\lvert k \rvert \to \infty. The derivative rule needs ff and f′f' integrable, so that the boundary terms vanish. Taking the Fourier transform of the heat equation also needs uu, uxu_x and uxxu_{xx} integrable in xx at each time, which is a condition on the unknown solution, so a formula found this way should be confirmed afterward by substituting it back. A convenient class is the Schwartz functions, the smooth functions that decay, together with all their derivatives, faster than every power of 1/∣x∣1/\lvert x \rvert. Gaussians belong to it, the Fourier transform maps it onto itself, and every rule on this page holds there without exceptions. Square-integrable functions are handled by extending the Fourier transform, with Plancherel’s identity

∫−∞∞∣f(x)∣2 dx=12π∫−∞∞∣f^(k)∣2 dk\begin{gathered} \int_{-\infty}^{\infty} \lvert f(x) \rvert^2\,dx \\[0.4em] = \frac{1}{2\pi}\int_{-\infty}^{\infty} \lvert \hat{f}(k) \rvert^2\,dk \end{gathered}

in this convention, and functions such as constants and sines need the Fourier transform of distributions.

In plain words The Fourier transform method assumes that the functions involved die off far away. Each rule needs a definite amount of decay, and when the data or the solution lack it, the integrals can diverge or the rules can fail. Saying which class of functions is in use is part of stating a result.

Example The function 1/(1+x2)1/(1 + x^2) is integrable, and its Fourier transform is πe−∣k∣\pi e^{-\lvert k \rvert}. If x/(1+x2)x/(1 + x^2) were integrable, this Fourier transform would be differentiable, but x/(1+x2)x/(1 + x^2) decays only like 1/x1/x, and indeed πe−∣k∣\pi e^{-\lvert k \rvert} has a corner at k=0k = 0. Slow decay in xx shows up as missing smoothness in kk. The constant function 11 has no classical Fourier transform at all, since ∫e−ikx dx\int e^{-ikx}\,dx diverges for every kk, and as a distribution its Fourier transform is 2πδ(k)2\pi\delta(k). The heat-kernel formula still handles this data directly, because ∫K(x−s,t) ds=1\int K(x - s, t)\,ds = 1 gives the constant solution u=1u = 1 for every t>0t > 0.

Check yourself

  1. In the convention of this page, find the function whose Fourier transform is e−3k2e^{-3k^2}.
Show the answer

The Gaussian formula with a=112a = \tfrac{1}{12} gives 12π e−3k2\sqrt{12\pi}\,e^{-3k^2} as the Fourier transform of e−x2/12e^{-x^2/12}. Dividing by 12π\sqrt{12\pi} gives

f(x)=112π e−x2/12.f(x) = \frac{1}{\sqrt{12\pi}}\,e^{-x^2/12}.

This is the heat kernel with κt=3\kappa t = 3, and its peak value is 1/12π≈0.1631/\sqrt{12\pi} \approx 0.163. Leaving out the factor 1/(2π)1/(2\pi) of the inverse, or using a formula from a text with another convention, would give the wrong constant in front.

  1. Solve ut=2uxxu_t = 2u_{xx} on the whole line with u(x,0)=e−x2u(x, 0) = e^{-x^2}. When has the peak fallen to half its initial height, and what is ∫u(x,t) dx\int u(x, t)\,dx at that time?
Show the answer

The Fourier transform in xx gives u^(k,t)=π e−k2/4e−2k2t=π e−(1+8t)k2/4\hat{u}(k, t) = \sqrt{\pi}\,e^{-k^2/4}e^{-2k^2t} = \sqrt{\pi}\,e^{-(1 + 8t)k^2/4}. This is π e−k2/(4a)\sqrt{\pi}\,e^{-k^2/(4a)} with a=1/(1+8t)a = 1/(1 + 8t), and the Gaussian formula inverts it to

u(x,t)=11+8t e−x2/(1+8t).u(x, t) = \frac{1}{\sqrt{1 + 8t}}\,e^{-x^2/(1 + 8t)}.

To check, write b=1+8tb = 1 + 8t, so db/dt=8db/dt = 8. Then uxx=(4x2/b2−2/b) uu_{xx} = (4x^2/b^2 - 2/b)\,u and ut=(−4/b+8x2/b2) uu_t = (-4/b + 8x^2/b^2)\,u, which is 2uxx2u_{xx}, and u(x,0)=e−x2u(x, 0) = e^{-x^2}. The peak 1/1+8t1/\sqrt{1 + 8t} equals 12\tfrac{1}{2} when 1+8t=41 + 8t = 4, that is at t=38t = \tfrac{3}{8}. The area is π\sqrt{\pi} then, as at every time, because the initial data are integrable and the heat kernel has total mass 11.

  1. The function f(x)=e−∣x∣f(x) = e^{-\lvert x \rvert} satisfies f′′(x)=f(x)f''(x) = f(x) at every x≠0x \ne 0. A student takes the Fourier transform of f′′=ff'' = f, uses the derivative rule twice, and gets −k2f^=f^-k^2\hat{f} = \hat{f}, which would force f^=0\hat{f} = 0. Where is the mistake, and what is the correct relation?
Show the answer

The first use of the rule is valid, because ff is continuous, and it gives f′^=ikf^\widehat{f'} = ik\hat{f}. The second use needs f′f' to be continuous, but f′(x)=−sgn⁡(x) e−∣x∣f'(x) = -\operatorname{sgn}(x)\,e^{-\lvert x \rvert} jumps from f′(0−)=1f'(0^-) = 1 to f′(0+)=−1f'(0^+) = -1. Integrating by parts separately on x<0x < 0 and x>0x > 0 keeps the boundary terms at 00, and the Fourier transform of the pointwise second derivative is

f′(0−)−f′(0+)−k2f^(k)=2−k2f^(k).\begin{aligned} &f'(0^-) - f'(0^+) - k^2\hat{f}(k) \\[0.4em] &\qquad = 2 - k^2\hat{f}(k). \end{aligned}

So the correct relation is f^=2−k2f^\hat{f} = 2 - k^2\hat{f}, which gives f^(k)=2/(1+k2)\hat{f}(k) = 2/(1 + k^2), the Fourier transform found directly. In the language of distributions, f′′=f−2δf'' = f - 2\delta.

How this lesson connects

It also uses the Gaussian integral.