Heat equation and diffusion

Level AdvancedDifficulty ★★★★★Application⌖ Open in the map

What is it?

ut=αΔuu_t = \alpha\Delta u: temperature (or concentration, or probability) flows from high to low and smooths out. Solved by finite differences or Fourier series; Gaussian blur of an image is exactly running this equation.

Formulas

∂u∂t=α Δu\frac{\partial u}{\partial t} = \alpha\,\Delta u
uin+1=uin+α ΔtΔx2(ui+1n−2uin+ui−1n),α ΔtΔx2≤12u_i^{n+1} = u_i^n + \frac{\alpha\,\Delta t}{\Delta x^2}\big(u_{i+1}^n - 2u_i^n + u_{i-1}^n\big), \qquad \frac{\alpha\,\Delta t}{\Delta x^2} \le \frac12
explicit scheme and its stability condition

Why does it matter?

CPU and battery thermal design, materials processing, and — through the same mathematics — image smoothing and diffusion-based generative models.

The mathematics behind it

  • Numerical differentiation★★★★★fundamental

    Finite-difference solvers replace ∂2/∂x2\partial^2/\partial x^2 by the [1,−2,1]/h2[1, -2, 1]/h^2 stencil on a grid.

  • Partial derivatives★★★★★fundamental

    The heat equation ut=α(uxx+uyy)u_t = \alpha(u_{xx} + u_{yy}) is a relation between partial derivatives.

  • Laplacian★★★★★fundamental

    Diffusion is ut=αΔuu_t = \alpha\Delta u.

  • Partial differential equations★★★★★fundamental

    The prototype parabolic PDE.

  • Fourier series★★★★★historical

    Fourier invented his series to solve the heat equation; spectral methods still do.

This page has the essentials. A fuller treatment (intuition, formal definition, worked example) is on the way.

↑ ↓ to navigate · ↵ · Esc