The Equation
∂t∂ϕ=D∂x2∂2ϕ
Or: ϕt=Dϕxx
D is the diffusion coefficient (or thermal diffusivity for heat).
Physical Derivation
Fick’s law: Diffusive flux J=−D∂x∂C (down concentration gradient).
Conservation: Rate of change = -net flux out:
∂t∂C=D∂x2∂2C
Heat equation: From Fourier’s law (J=−k∇T):
∂t∂T=D∇2T
where D=k/(ρcp).
Three Fundamental Solutions
1. Diffusion from Step Function
Initially: ϕ(x,0)={01x<0x>0

Solution:
ϕ(x,t)=21[1−erf(2Dtx)]
where erf(z)=π2∫0ze−u2du.
Interpretation: Smooth spreading of the initial discontinuity.
2. Point Source (Green’s Function)
Initially: ϕ(x,0)=δ(x) (concentrated at origin)
Solution:
ϕ(x,t)=4πDt1exp(−4Dtx2)

Properties:
- Gaussian shape at all times
- Spreads: width ∼Dt
- Mass conserved: ∫−∞∞ϕdx=1
3. Semi-Infinite System with Absorbing Wall
Domain: 0<x<L with ϕ(0,t)=0 (absorbing boundary).
Solution:
ϕ(x,t)=∑n oddAnsin(2Lnπx)exp(−4L2n2π2Dt)
Long-time behaviour: Dominated by n=1 mode, decays as e−π2Dt/4L2.
Separation of Variables
Try ϕ(x,t)=X(x)T(t):
XT′=DX′′T
DTT′=XX′′=−k2
Time: T(t)=e−Dk2t
Space: X(x)=Asin(kx)+Bcos(kx)
Apply boundary conditions to determine k.
Example: Finite Rod with Fixed Ends
ϕ(0,t)=ϕ(L,t)=0
X(0)=0⇒B=0
X(L)=0⇒sin(kL)=0, so k=nπ/L
Solution:
ϕ(x,t)=∑n=1∞Ansin(Lnπx)exp(−L2n2π2Dt)
Fourier Coefficients
For initial condition ϕ(x,0)=f(x):
An=L2∫0Lf(x)sin(Lnπx)dx
Each mode decays exponentially; higher modes decay faster.
Long-Time Behaviour
At large t, the n=1 mode dominates:
ϕ∝sin(πx/L)exp(−π2Dt/L2)
Characteristic decay time: τ=L2/(π2D)
Comparison with Wave Equation
| Property | Wave | Diffusion |
|---|
| Equation | ytt=c2yxx | ϕt=Dϕxx |
| Order in t | Second | First |
| Energy | Conserved | Dissipated |
| Information | Propagates at speed c | Diffuses, spreads |
Why the Diffusion Equation Matters
- Heat conduction
- Particle diffusion
- Chemical transport
- Financial mathematics (Black-Scholes)
- Biological processes (morphogen gradients)
The diffusion equation describes how things spread out and dissipate — a universal phenomenon in nature.