Heat Equation

The heat equation (also called the diffusion equation) describes how a quantity (e.g. temperature) diffuses through space over time.

In 1D:

where is the diffusion coefficient.

Initial and Boundary Conditions

The heat equation requires:

  • An initial condition: specifying the profile at .
  • Boundary conditions: fixing (Dirichlet) or (Neumann) at the spatial boundaries for all .

Numerical Schemes

The heat equation is discretised in space using the centred second derivative and in time using either:

  • FTCS scheme: forward difference in time (explicit, conditionally stable)
  • BTCS scheme: backward difference in time (implicit, unconditionally stable)

The solution of the Wiener process (Brownian motion) is also a diffusion equation solution: the PDF of is Gaussian with variance , which satisfies the heat equation with and a delta-function initial condition.

FTCS scheme | BTCS scheme | Boundary conditions | Finite differences | Laplace equation | Wiener process