Blog

Solving the Heat Equation with Fourier Transforms

8 minute read

In this post, we derive the solution of the time-dependent heat equation on the real line using the Fourier transform. We then justify the formal derivation, establish convergence to the initial condition, and prove uniqueness using an energy argument. Along the way, we will see exactly why the Schwartz class and the dominated convergence theorem (DCT) are useful.

1. The heat equation

Consider the initial value problem

\[\begin{cases} \partial_t u(x,t)=\partial_x^2u(x,t), & x\in\mathbb R,\ t>0,\\ u(x,0)=f(x). \end{cases}\]

Here, $u(x,t)$ represents the temperature at position $x$ and time $t$. We assume $f\in\mathcal S(\mathbb R)$, where the Schwartz class consists of smooth functions satisfying

\[\sup_{x\in\mathbb R}\lvert x\rvert ^N\lvert f^{(\ell)}(x)\rvert <\infty \qquad (N,\ell\geq0).\]

In particular, a Schwartz function and all its derivatives decay faster than any inverse polynomial. The Fourier transform preserves this class.

Our Fourier transform convention is

\[\hat f(\xi)=\int_{\mathbb R}f(x)e^{-2\pi ix\xi}\,dx, \qquad f(x)=\int_{\mathbb R}\hat f(\xi)e^{2\pi ix\xi}\,d\xi.\]

2. A formal derivation

First assume that a sufficiently regular, rapidly decaying solution exists. We will verify these properties later rather than assume them in the existence proof.

Taking the Fourier transform only in the spatial variable $x$, we obtain

\[\partial_t\hat u(\xi,t)=-4\pi^2\xi^2\hat u(\xi,t), \qquad \hat u(\xi,0)=\hat f(\xi).\]

The spatial differentiation identity follows by integrating by parts twice:

\[\mathcal F_x[\partial_x^2u](\xi,t) =(2\pi i\xi)^2\hat u(\xi,t).\]

The boundary terms vanish for Schwartz functions. To exchange the time derivative and the Fourier integral, however, we also need suitable regularity and local uniform decay in time.

Solving the ODE without dividing by $\hat u$

For fixed $\xi$, write $a=4\pi^2\xi^2$. Then

\[\partial_t\hat u+a\hat u=0.\]

Multiplying by an integrating factor $e^{at}$ gives

\[e^{at}\partial_t\hat u+ae^{at}\hat u =\partial_t(e^{at}\hat u)=0.\]

Why choose this integrating factor? If we multiply by an unknown function $\mu(t)$, the product rule gives

\[\partial_t(\mu\hat u)=\mu\partial_t\hat u+\mu'\hat u.\]

Matching this with the ODE multiplied by $\mu$ requires $\mu’=a\mu$. We can take $\mu=e^{at}$.

Integrating from $0$ to $t$ and applying the initial condition yields

\[e^{at}\hat u(\xi,t)=\hat u(\xi,0)=\hat f(\xi).\]

Thus,

\[\boxed{\hat u(\xi,t)=e^{-4\pi^2\xi^2t}\hat f(\xi).}\]

This derivation never divides by $\hat u$ or takes its logarithm, so it remains valid even when $\hat u$ vanishes or is complex-valued.

Recovering the solution in the spatial domain

Define the heat kernel $H_t$ by

\[H_t(x)=\mathcal F^{-1}[e^{-4\pi^2\xi^2t}](x),\qquad t>0.\]

The convolution theorem implies

\[\hat u=\hat f\widehat{H_t}=\mathcal F[f*H_t].\]

By Fourier inversion, $u=f*H_t$. To compute $H_t$, recall the Gaussian transform identity

\[\mathcal F[e^{-\pi a x^2}](\xi)=a^{-1/2}e^{-\pi\xi^2/a},\qquad a>0.\]

Setting $a=1/(4\pi t)$ yields

\[H_t(x)=\frac{1}{\sqrt{4\pi t}}e^{-x^2/(4t)}.\]

Our candidate solution is therefore

\[\boxed{u(x,t)=\frac{1}{\sqrt{4\pi t}}\int_{\mathbb R}f(y)e^{-(x-y)^2/(4t)}\,dy.}\]

The heat kernel is a Gaussian probability density with variance $2t$. Heat diffusion amounts to Gaussian smoothing: high-frequency Fourier components decay faster than low-frequency components.

3. Making the derivation rigorous

The preceding argument discovers a candidate solution. It does not establish existence, since we assumed the unknown solution possessed enough regularity to carry out the Fourier transform. We now define $u=f*H_t$ and verify its properties.

The dominated convergence theorem

For our purposes, the DCT can be stated without introducing measure-theoretic notation. Suppose integrable functions $g_n$ converge pointwise to $g$, and there exists a single nonnegative function $M$ such that

\[\lvert g_n(x)\rvert \leq M(x)\quad\text{for every }n, \qquad \int_{\mathbb R}M(x)\,dx<\infty.\]

Then $g$ is integrable and

\[\lim_{n\to\infty}\int_{\mathbb R}g_n(x)\,dx =\int_{\mathbb R}\lim_{n\to\infty}g_n(x)\,dx.\]

Here integrability is understood in the Lebesgue sense; all integrands used below are continuous. Pointwise convergence alone is not enough. For example, $g_n(x)=n^{-1}\mathbf 1_{[0,n]}(x)$ converges pointwise to zero, but its integral is always one.

Differentiation under the integral

Suppose $U(s)=\int_{\mathbb R}G(\xi,s)\,d\xi$, with $G$ continuously differentiable in its second argument. Here, $\partial_2$ denotes differentiation with respect to the second variable of $G$. For $h\ne 0$, define

\[\frac{U(s+h)-U(s)}{h}=\int_{\mathbb R}q_h(\xi)\,d\xi, \qquad q_h(\xi)=\frac{G(\xi,s+h)-G(\xi,s)}{h}.\]

The difference quotient converges pointwise to $(\partial_2 G)(\xi,s)$. Apply the fundamental theorem of calculus in the second argument and substitute $\tau=s+rh$, so $d\tau=h\,dr$. This gives

\[q_h(\xi)=\frac{1}{h}\int_s^{s+h}(\partial_2 G)(\xi,\tau)\,d\tau=\int_0^1(\partial_2 G)(\xi,s+rh)\,dr.\]

Here, $s^\prime$ denotes an arbitrary value of the second variable near the fixed point $s$. Assume there are $\delta>0$ and a single nonnegative function $M\in L^1(\mathbb R)$ such that

\[\lvert (\partial_2 G)(\xi,s^\prime)\rvert\leq M(\xi) \qquad \text{for every }\xi\in\mathbb R\text{ and }s^\prime\in(s-\delta,s+\delta).\]

For $0<\lvert h\rvert<\delta$ and every $r\in[0,1]$, we have $\lvert(s+rh)-s\rvert=r\lvert h\rvert\leq\lvert h\rvert<\delta$. We can therefore take $s^\prime=s+rh$ in the bound and obtain

\[\lvert q_h(\xi)\rvert \leq\int_0^1\lvert(\partial_2 G)(\xi,s+rh)\rvert\,dr \leq\int_0^1M(\xi)\,dr=M(\xi).\]

The same $M$ works for every sufficiently small $h$. Applying DCT along every sequence $h\to0$ gives

\[U'(s)=\int_{\mathbb R}(\partial_2 G)(\xi,s)\,d\xi.\]

The critical requirement is a common integrable bound, not merely integrability of the derivative for each fixed parameter.

Verifying the heat equation

Fourier inversion gives

\[u(x,t)=\int_{\mathbb R}\hat f(\xi)e^{-4\pi^2\xi^2t}e^{2\pi ix\xi}\,d\xi.\]

For the time derivative, fix $x$. The absolute value of the differentiated integrand is bounded by

\[4\pi^2\xi^2\lvert \hat f(\xi)\rvert e^{-4\pi^2\xi^2t} \leq 4\pi^2\xi^2\lvert \hat f(\xi)\rvert .\]

Since $\hat f\in\mathcal S(\mathbb R)$, this is integrable. In particular, $\lvert \hat f(\xi)\rvert \leq C(1+\lvert \xi\rvert )^{-4}$. Hence DCT gives

\[\partial_tu=\int_{\mathbb R}(-4\pi^2\xi^2)\hat f(\xi)e^{-4\pi^2\xi^2t}e^{2\pi ix\xi}\,d\xi.\]

For spatial derivatives, fix $t$ and set $A_t(\xi)=\hat f(\xi)e^{-4\pi^2\xi^2t}$. Differentiation once introduces the factor $2\pi i\xi$, and differentiating twice introduces $(2\pi i\xi)^2$. The corresponding integrable bounds are $2\pi\lvert \xi\rvert \lvert A_t(\xi)\rvert $ and $4\pi^2\xi^2\lvert A_t(\xi)\rvert $. These bounds may depend on the fixed $t$; they must be independent of the increment in $x$.

Consequently,

\[\partial_x^2u=\int_{\mathbb R}(-4\pi^2\xi^2)\hat f(\xi)e^{-4\pi^2\xi^2t}e^{2\pi ix\xi}\,d\xi=\partial_tu.\]

More generally,

\[\partial_x^m\partial_t^n u=\int_{\mathbb R}(2\pi i\xi)^m(-4\pi^2\xi^2)^n\hat f(\xi)e^{-4\pi^2\xi^2t}e^{2\pi ix\xi}\,d\xi.\]

To establish continuity of these derivatives, let $(x_k,t_k)\to(x,t)$ with nonnegative times. The integrands converge pointwise and are uniformly bounded by the integrable function $C_{m,n}\lvert \xi\rvert ^{m+2n}\lvert \hat f(\xi)\rvert $. By another application of DCT, the derivatives are jointly continuous. In particular, $u\in C^\infty(\mathbb R\times(0,\infty))$.

This is stronger than merely verifying that the partial derivatives exist.

4. Recovering the initial condition

We need to show that $u(\cdot,t)\to f$ as $t\to0^+$. We will establish both uniform and $L^2$ convergence.

Uniform convergence in $x$

By Fourier inversion,

\[u(x,t)-f(x)=\int_{\mathbb R}\hat f(\xi)(e^{-4\pi^2\xi^2t}-1)e^{2\pi ix\xi}\,d\xi.\]

Taking absolute values eliminates dependence on $x$:

\[\sup_x\lvert u(x,t)-f(x)\rvert \leq\int_{\mathbb R}\lvert \hat f(\xi)\rvert \,\lvert e^{-4\pi^2\xi^2t}-1\rvert \,d\xi.\]

The integrand converges pointwise to zero and is bounded by $\lvert \hat f(\xi)\rvert \in L^1$. DCT gives uniform convergence, and defining $u(x,0)=f(x)$ makes $u$ continuous up to the initial time.

Convergence in $L^2$

By Plancherel’s identity,

\[\Vert u(\cdot,t)-f\Vert _2^2=\int_{\mathbb R}\lvert \hat f(\xi)\rvert ^2\lvert e^{-4\pi^2\xi^2t}-1\rvert ^2\,d\xi.\]

Although the exponential factor converges pointwise to one, this convergence is not uniform in $\xi$. Indeed, for every $t>0$,

\[\sup_{\xi\in\mathbb R}\lvert e^{-4\pi^2\xi^2t}-1\rvert =1.\]

One approach is to split the integral into $\lvert \xi\rvert \leq N$ and $\lvert \xi\rvert >N$. On the bounded interval the exponential converges uniformly, and the tail is bounded by $\int_{\lvert \xi\rvert >N}\lvert \hat f\rvert ^2$, which can be made arbitrarily small.

Alternatively, DCT gives the result immediately: the integrand converges pointwise to zero and is dominated by $\lvert \hat f\rvert ^2\in L^1$. Thus

\[\boxed{\lim_{t\to0^+}\Vert u(\cdot,t)-f\Vert _2=0.}\]

5. Uniform Schwartz decay

For each fixed $t>0$, $u(\cdot,t)$ is Schwartz because its Fourier transform is a product of Schwartz functions. For the energy argument below, we need a stronger property: the Schwartz bounds must be uniform over bounded time intervals.

Specifically, for each $T>0$ and each pair of nonnegative integers $N,\ell$, we want

\[\sup_{0\leq t\leq T}\sup_{x\in\mathbb R}(1+\lvert x\rvert )^N\lvert \partial_x^\ell u(x,t)\rvert <\infty.\]

First consider $\ell=0$. Using $u(x,t)=\int f(x-y)H_t(y)\,dy$, split the integral at $\lvert y\rvert =\lvert x\rvert /2$:

\[\lvert u(x,t)\rvert \leq\underbrace{\int_{\lvert y\rvert <\lvert x\rvert /2}\lvert f(x-y)\rvert H_t(y)\,dy}_{I_1}+\underbrace{\int_{\lvert y\rvert \geq \lvert x\rvert /2}\lvert f(x-y)\rvert H_t(y)\,dy}_{I_2}.\]

In the first region, $\lvert x-y\rvert \geq\lvert x\rvert /2$, so the Schwartz decay of $f$ and $\int H_t=1$ imply

\[I_1\leq C_N(1+\lvert x\rvert /2)^{-N}.\]

In the second region, $y^2\geq x^2/4$. Therefore,

\[\begin{aligned} I_2&\leq\frac{e^{-x^2/(16t)}}{\sqrt{4\pi t}}\int_{\mathbb R}\lvert f(x-y)\rvert \,dy\\ &=\frac{\Vert f\Vert _1}{\sqrt{4\pi t}}e^{-x^2/(16t)}. \end{aligned}\]

This bound depends on $t$, but we can remove this dependence. For every integer $N\geq1$, there is a finite constant $B_N$ such that $\lvert z\rvert ^Ne^{-z^2/16}\leq B_N$. Setting $z=x/\sqrt t$ gives

\[\lvert x\rvert ^NI_2\leq \frac{\Vert f\Vert _1B_N}{\sqrt{4\pi}}t^{(N-1)/2}\leq \frac{\Vert f\Vert _1B_N}{\sqrt{4\pi}}T^{(N-1)/2}.\]

For bounded $x$, use $\lvert u(x,t)\rvert \leq\Vert f\Vert _\infty$ instead; this also handles $N=0$. Combining these estimates proves uniform rapid decay. Finally,

\[\partial_x^\ell u=f^{(\ell)}*H_t,\]

and each $f^{(\ell)}$ is Schwartz. Applying the same estimates to $f^{(\ell)}$ proves the desired uniform Schwartz property. The endpoint $t=0$ follows directly from the initial data. Uniform decay over all positive times is not generally true.

6. Uniqueness: the energy method

Suppose $u_1$ and $u_2$ are two classical solutions with the same initial condition, both uniformly Schwartz in space over bounded time intervals and continuous up to $t=0$. Their difference $w=u_1-u_2$ satisfies

\[\partial_tw=\partial_x^2w,\qquad w(x,0)=0.\]

Define the energy

\[E(t)=\int_{\mathbb R}\lvert w(x,t)\rvert ^2\,dx.\]

Why is uniform Schwartz decay important here? Pointwise-in-time Schwartz decay only guarantees bounds whose constants may depend on $t$. To differentiate the energy under the integral, we need a common integrable bound for times near $t$.

By the uniform Schwartz property, on every bounded time interval,

\[\lvert w(x,t)\rvert \leq \frac{C_0}{1+x^2},\qquad \lvert \partial_tw(x,t)\rvert =\lvert \partial_x^2w(x,t)\rvert \leq\frac{C_2}{1+x^2}.\]

Hence,

\[\lvert \partial_t\lvert w\rvert^2\rvert\leq 2\lvert w\rvert \lvert \partial_tw\rvert \leq\frac{2C_0C_2}{(1+x^2)^2}\in L^1(\mathbb R).\]

DCT therefore justifies differentiating the energy. Since $\lvert w\rvert ^2=w\bar w$,

\[\begin{aligned} E'(t)&=\int_{\mathbb R}[(\partial_tw)\bar w+w\partial_t\bar w]dx\\ &=\int_{\mathbb R}[(\partial_x^2w)\bar w+w\partial_x^2\bar w]dx\\ &=-2\int_{\mathbb R}(\partial_xw)(\partial_x\bar w)\,dx\\ &=-2\int_{\mathbb R}\lvert \partial_xw\rvert ^2\,dx\leq0. \end{aligned}\]

The third line follows by integration by parts; the boundary terms vanish because $w(\cdot,t)$ is Schwartz. The last line uses $\partial_x\bar w=\overline{\partial_xw}$. Note that the derivative is inside the absolute value.

Since the energy is non-increasing for $t>0$, $E(t)\leq E(s)$ whenever $0<s<t$. Uniform Schwartz bounds and continuity at the initial time give $E(s)\to E(0)=0$ by DCT. Consequently,

\[0\leq E(t)\leq E(0)=0.\]

Since $\lvert w(x,t)\rvert ^2$ is continuous and nonnegative, a zero integral implies $w(x,t)=0$ everywhere. Thus $u_1=u_2$, proving uniqueness in the specified class.

Takeaway

The Fourier transform converts the heat equation into independent scalar ODEs, revealing the Gaussian heat kernel. The Schwartz class ensures enough decay for Fourier inversion, differentiation, and integration by parts. DCT rigorously justifies the limiting operations, while the energy identity proves uniqueness. Together, these arguments give a complete existence and uniqueness proof within the uniformly Schwartz class.

Reference

  • Elias M. Stein and Rami Shakarchi, Fourier Analysis: An Introduction, Princeton University Press.