where (k > 0) is the thermal diffusivity, and (f(x)) is a given initial condition (assumed sufficiently smooth and decaying at infinity for the transforms to exist).
We'll use the Fourier transform in the spatial variable (x):
This is the formal solution. It can be recognized as a convolution:
[
u(x,t) = f(x) * G(x,t),
]
where (G(x,t)) is the fundamental solution (heat kernel), obtained by taking (f(x) = \delta(x)):
[
G(x,t) = \frac{1}{\sqrt{4\pi k t}} \exp\left( -\frac{x^2}{4 k t} \right).
]
Thus, the explicit convolution form is:
[
u(x,t) = \frac{1}{\sqrt{4\pi k t}} \int_{-\infty}^{\infty} f(y) , \exp\left( -\frac{(x-y)^2}{4 k t} \right) , dy.
]
Verification
Initial condition: As (t \to 0^+), (G(x,t) \to \delta(x)), so (u(x,0) = f(x)).
Heat equation: Direct substitution confirms it satisfies the PDE.
This method generalizes easily to higher dimensions or other parabolic PDEs. For numerical implementation or specific (f(x)), the Fourier solution is often computed efficiently via FFT. Let me know if you'd like an example with a specific (f(x)) (e.g., Gaussian initial condition)!