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

The Method of Separation of Variables

Apply separation of variables to transform the heat equation into ordinary differential equations in space and time.

The Method of Separation of Variables

What You'll Learn

You'll learn how to transform the heat equation—a partial differential equation in both space and time—into simpler, separate ordinary differential equations that you already know how to solve.

The Core Idea

The separation of variables technique assumes that a solution to a PDE can be written as a product of functions, each depending on only one variable. For the heat equation:

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

we assume a solution of the form:

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

This is like saying "the temperature distribution is the product of a purely spatial pattern and a purely temporal decay."

The Transformation Process

Substitute this product into the heat equation:

X(x)⋅T′(t)=α2X′′(x)⋅T(t)X(x) \cdot T'(t) = \alpha^2 X''(x) \cdot T(t)

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

T′(t)α2T(t)=X′′(x)X(x)\frac{T'(t)}{\alpha^2 T(t)} = \frac{X''(x)}{X(x)}

Here's the magic: the left side depends only on tt, while the right side depends only on xx. Since these are independent variables, both sides must equal the same constant. Call it −λ-\lambda (the negative sign is conventional):

T′(t)α2T(t)=−λandX′′(x)X(x)=−λ\frac{T'(t)}{\alpha^2 T(t)} = -\lambda \quad \text{and} \quad \frac{X''(x)}{X(x)} = -\lambda

This gives us two ordinary differential equations:

  • Spatial ODE: X′′(x)+λX(x)=0X''(x) + \lambda X(x) = 0
  • Temporal ODE: T′(t)+α2λT(t)=0T'(t) + \alpha^2 \lambda T(t) = 0

Both are problems you've already mastered! Boundary conditions determine λ\lambda, and you solve each ODE using characteristic equations or exponential solutions.

Key Takeaway: Separation of variables splits a PDE into multiple ODEs by assuming the solution is a product of single-variable functions, turning an unfamiliar problem into familiar territory.