Course contentsShow
← Mathematics
Lesson 2447 of 3,12149. Partial Differential Equations (Intro)Free lesson

Separating Variables in the Heat Equation

Apply separation of variables to the one-dimensional heat equation with homogeneous boundary conditions.

Separating Variables in the Heat Equation

You'll learn how to apply the separation of variables technique to solve the one-dimensional heat equation with homogeneous boundary conditions.

The Core Idea

The one-dimensional heat equation describes how temperature changes over time in a rod:

∂u∂t=k∂2u∂x2\frac{\partial u}{\partial t} = k \frac{\partial^2 u}{\partial x^2}

where u(x,t) is temperature, x is position, t is time, and k is thermal diffusivity.

Separation of variables assumes we can write the solution as a product of two single-variable functions:

u(x,t)=X(x)⋅T(t)u(x,t) = X(x) \cdot T(t)

Think of this like separating a recipe: instead of mixing ingredients while cooking simultaneously, you prepare components separately then combine them.

How It Works

Substitute u(x,t) = X(x)T(t) into the heat equation:

X(x)dTdt=kT(t)d2Xdx2X(x) \frac{dT}{dt} = k T(t) \frac{d^2X}{dx^2}

Now divide both sides by X(x)T(t):

1TdTdt=kXd2Xdx2\frac{1}{T} \frac{dT}{dt} = \frac{k}{X} \frac{d^2X}{dx^2}

Here's the key insight: the left side depends only on t, the right side only on x. For them to equal each other for all x and t, both must equal the same constant. Call it -λ (the negative is conventional):

1TdTdt=−λandkXd2Xdx2=−λ\frac{1}{T} \frac{dT}{dt} = -\lambda \quad \text{and} \quad \frac{k}{X} \frac{d^2X}{dx^2} = -\lambda

This gives us two ordinary differential equations:

  • Spatial ODE: X'' + (λ/k)X = 0
  • Temporal ODE: T' + λT = 0

The boundary conditions (e.g., u(0,t) = u(L,t) = 0) create an eigenvalue problem for X(x), which determines allowed values of λ.

Key Takeaway: Separation of variables transforms the heat PDE into two simpler ODEs by assuming u(x,t) = X(x)T(t), splitting spatial and temporal dependencies through a separation constant.