Ph · Physics

How Does Boltzmann’s Transformation Reduce the Heat Equation?

Updated 13 October 2026

At a glance

  1. 1. Choose the similarity variable

    For diffusion, use a variable proportional to position divided by the square root of time.

  2. 2. Apply the chain rule

    Write the temperature as a function of the new variable and differentiate with respect to position and time.

  3. 3. Derive the ODE

    Substitute those derivatives into the heat equation to obtain an ordinary differential equation.

  4. 4. Use the conditions

    Solve the ODE and determine its constants from the initial and boundary conditions.

Boltzmann’s transformation is a similarity change of variables used to reduce certain diffusion equations from partial differential equations (PDEs) to ordinary differential equations (ODEs). In the common heat-conduction setting, it combines position and time into a single variable proportional to x/tx/\sqrt{t}.

Here is the chain-rule derivation for the one-dimensional heat equation, followed by a worked example. The term “Boltzmann transformation” here refers to a diffusion similarity variable, not to the Boltzmann factor e−E/(kBT)e^{-E/(k_BT)} from statistical mechanics.

The similarity variable

Consider heat flow in a uniform material with constant thermal diffusivity α\alpha:

∂T∂t=α∂2T∂x2.\frac{\partial T}{\partial t}=\alpha\frac{\partial^2 T}{\partial x^2}.

The diffusivity has units of length squared per time. Consequently, a natural length scale for diffusion over time tt is proportional to αt\sqrt{\alpha t}. Define the dimensionless similarity variable

η=x2αt,\eta=\frac{x}{2\sqrt{\alpha t}},

and assume the temperature profile can be written as T(x,t)=Θ(η)T(x,t)=\Theta(\eta). The factor of 2 is a convenient convention; choosing x/αtx/\sqrt{\alpha t} instead is also valid, but changes the coefficients in the resulting ODE.

This assumption is appropriate when the boundary and initial conditions allow a self-similar profile. It does not mean every solution of the heat equation depends only on this one variable.

Apply the chain rule

When differentiating with respect to time, hold xx fixed. When differentiating with respect to position, hold tt fixed. From the definition of η\eta,

∂η∂x=12αt,∂η∂t=−η2t.\frac{\partial\eta}{\partial x}=\frac{1}{2\sqrt{\alpha t}}, \qquad \frac{\partial\eta}{\partial t}=-\frac{\eta}{2t}.

Therefore,

∂T∂t=Θ′(η)∂η∂t=−η2tΘ′(η),\frac{\partial T}{\partial t} =\Theta'(\eta)\frac{\partial\eta}{\partial t} =-\frac{\eta}{2t}\Theta'(\eta),

and

∂T∂x=12αtΘ′(η),∂2T∂x2=14αtΘ′′(η).\frac{\partial T}{\partial x} =\frac{1}{2\sqrt{\alpha t}}\Theta'(\eta), \qquad \frac{\partial^2 T}{\partial x^2} =\frac{1}{4\alpha t}\Theta''(\eta).

The second spatial derivative includes no extra term from differentiating its prefactor, because that prefactor depends on tt, not xx.

Substitute into the heat equation

Putting the derivatives into Tt=αTxxT_t=\alpha T_{xx} gives

−η2tΘ′=14tΘ′′.-\frac{\eta}{2t}\Theta' =\frac{1}{4t}\Theta''.

Multiplying by 4t4t yields the ODE

Θ′′+2ηΘ′=0.\Theta''+2\eta\Theta'=0.

To solve it, set p=Θ′p=\Theta'. Then p′+2ηp=0p'+2\eta p=0, so p=Ce−η2p=C e^{-\eta^2}. Integrating once more gives

Θ(η)=A+B erf⁡(η),\Theta(\eta)=A+B\,\operatorname{erf}(\eta),

where AA and BB are constants and

erf⁡(η)=2π∫0ηe−s2 ds\operatorname{erf}(\eta)=\frac{2}{\sqrt{\pi}}\int_0^\eta e^{-s^2}\,ds

is the error function. The transformation reduces the differential equation; the physical conditions are still needed to fix the constants.

Worked example: a suddenly heated half-space

Suppose a solid occupies x≥0x\geq 0. Initially its temperature is TiT_i, and from time t=0t=0 onward its surface at x=0x=0 is held at temperature TsT_s. Far from the surface, the temperature remains TiT_i:

T(0,t)=Ts,T(x,t)⟶Tias x⟶∞.T(0,t)=T_s, \qquad T(x,t)\longrightarrow T_i\quad\text{as }x\longrightarrow\infty.

Since erf⁡(0)=0\operatorname{erf}(0)=0 and erf⁡(η)→1\operatorname{erf}(\eta)\to 1 as η→∞\eta\to\infty, applying these two conditions to A+Berf⁡(η)A+B\operatorname{erf}(\eta) gives A=TsA=T_s and B=Ti−TsB=T_i-T_s. Thus

T(x,t)=Ts+(Ti−Ts)erf⁡ ⁣(x2αt).T(x,t)=T_s+(T_i-T_s)\operatorname{erf}\!\left(\frac{x}{2\sqrt{\alpha t}}\right).

At the surface, the argument is zero and the solution gives TsT_s. For fixed t>0t>0, as xx tends to infinity the error function tends to one, so the solution approaches TiT_i. For fixed x>0x>0, as tt tends to zero the argument tends to infinity, recovering the initial temperature away from the surface. The idealized surface temperature changes abruptly at t=0t=0, so the point x=0,t=0x=0,t=0 is a discontinuity in the prescribed conditions.

More general diffusion equations

For a concentration or temperature-dependent diffusivity, a common model is

∂C∂t=∂∂x(D(C)∂C∂x).\frac{\partial C}{\partial t} =\frac{\partial}{\partial x}\left(D(C)\frac{\partial C}{\partial x}\right).

Using η=x/t\eta=x/\sqrt{t} and C=C(η)C=C(\eta) gives

−η2C′=ddη(D(C)C′).-\frac{\eta}{2}C' =\frac{d}{d\eta}\left(D(C)C'\right).

This is still an ODE, although it may be nonlinear. The exact similarity variable and any constant scale factors depend on the equation and its conditions. In diffusion experiments, this same position-over-square-root-of-time scaling is used in Boltzmann–Matano analysis to infer a concentration-dependent diffusivity.

Common mistakes

  • Differentiating as if η\eta were independent of tt. It is a function of both xx and tt; use the chain rule for each partial derivative.
  • Forgetting what is held fixed. In TtT_t, hold xx fixed; in TxT_x, hold tt fixed.
  • Mixing conventions for η\eta. With η=x/αt\eta=x/\sqrt{\alpha t}, the ODE is Θ′′+(η/2)Θ′=0\Theta''+(\eta/2)\Theta'=0. With the convention used above, η=x/(2αt)\eta=x/(2\sqrt{\alpha t}), it is Θ′′+2ηΘ′=0\Theta''+2\eta\Theta'=0. Re-derive the coefficients whenever you change the definition.
  • Treating the similarity form as universal. It is an ansatz justified by the equation and conditions, not a replacement for all possible solutions.
  • Using the wrong physical conditions. The ODE has two constants; specify two independent conditions to select the desired profile.

References

  1. Conduction of Heat in Solids, H. S. Carslaw and J. C. Jaeger
  2. The Mathematics of Diffusion, J. Crank

Spotted an error? Send a correction. Read how we write and check articles in our editorial policy.