Semester 3 Mathematics Differential Equations Partial Differential Equations Method of Variable Seperation The method of separation of variables (also called the product method ) is the standard technique for solving linear second-order PDEs with boundary conditions — especially the heat equation, wave equation, and Laplace equation.
Assume the solution is a product of functions, each depending on only one variable:
u ( x , t ) = X ( x ) T ( t ) u(x, t) = X(x)\,T(t) u ( x , t ) = X ( x ) T ( t )
Substitute into the PDE and rearrange so that each side depends on a different variable .
Since the variables are independent, both sides must equal a constant — the separation constant λ \lambda λ .
This splits the PDE into two ordinary differential equations (ODEs) , which are solved separately.
Superpose the solutions and apply boundary/initial conditions using Fourier series .
u ( x , t ) = X ( x ) T ( t ) u(x,t) = X(x)\,T(t) u ( x , t ) = X ( x ) T ( t )
Then:
∂ u ∂ t = X d T d t , ∂ 2 u ∂ x 2 = T d 2 X d x 2 \frac{\partial u}{\partial t} = X \frac{dT}{dt}, \qquad \frac{\partial^2 u}{\partial x^2} = T \frac{d^2 X}{dx^2} ∂ t ∂ u = X d t d T , ∂ x 2 ∂ 2 u = T d x 2 d 2 X
∂ u ∂ t = α 2 ∂ 2 u ∂ x 2 \frac{\partial u}{\partial t} = \alpha^2 \frac{\partial^2 u}{\partial x^2} ∂ t ∂ u = α 2 ∂ x 2 ∂ 2 u
Substituting u = X T u = XT u = X T :
X d T d t = α 2 T d 2 X d x 2 X \frac{dT}{dt} = \alpha^2 T \frac{d^2 X}{dx^2} X d t d T = α 2 T d x 2 d 2 X
Divide both sides by α 2 X T \alpha^2 XT α 2 X T :
1 α 2 T d T d t = 1 X d 2 X d x 2 \frac{1}{\alpha^2 T} \frac{dT}{dt} = \frac{1}{X} \frac{d^2 X}{dx^2} α 2 T 1 d t d T = X 1 d x 2 d 2 X
The left side depends only on t t t , the right only on x x x . For them to be equal for all x x x and t t t , both must equal the same constant λ \lambda λ :
1 α 2 T d T d t = 1 X d 2 X d x 2 = λ \frac{1}{\alpha^2 T} \frac{dT}{dt} = \frac{1}{X} \frac{d^2 X}{dx^2} = \lambda α 2 T 1 d t d T = X 1 d x 2 d 2 X = λ
This gives two ODEs :
T ′ − α 2 λ T = 0 T' - \alpha^2 \lambda T = 0 T ′ − α 2 λ T = 0
X ′ ′ − λ X = 0 X'' - \lambda X = 0 X ′′ − λ X = 0
The choice of sign for λ \lambda λ is dictated by the boundary conditions .
λ \lambda λ X ( x ) X(x) X ( x ) solutionType λ = k 2 > 0 \lambda = k^2 > 0 λ = k 2 > 0 X = A e k x + B e − k x X = A e^{kx} + B e^{-kx} X = A e k x + B e − k x exponential also, X = A cosh ( k x ) + B sinh ( k x ) X = A\cosh(kx) + B\sinh(kx) X = A cosh ( k x ) + B sinh ( k x ) λ = 0 \lambda = 0 λ = 0 X = A x + B X = A x + B X = A x + B linear λ = − k 2 < 0 \lambda = -k^2 < 0 λ = − k 2 < 0 X = A cos k x + B sin k x X = A \cos kx + B \sin kx X = A cos k x + B sin k x oscillatory (usually needed)
For the heat equation , boundary conditions like u ( 0 , t ) = u ( L , t ) = 0 u(0,t) = u(L,t) = 0 u ( 0 , t ) = u ( L , t ) = 0 force λ = − k 2 < 0 \lambda = -k^2 < 0 λ = − k 2 < 0 and give:
X n ( x ) = sin n π x L , λ n = − ( n π L ) 2 , n = 1 , 2 , 3 , … X_n(x) = \sin\frac{n\pi x}{L}, \qquad \lambda_n = -\left(\frac{n\pi}{L}\right)^2, \quad n = 1, 2, 3, \dots X n ( x ) = sin L nπ x , λ n = − ( L nπ ) 2 , n = 1 , 2 , 3 , …
and
T n ( t ) = e − α 2 ( n π / L ) 2 t T_n(t) = e^{-\alpha^2 (n\pi/L)^2 t} T n ( t ) = e − α 2 ( nπ / L ) 2 t
The general solution is a linear combination of the separated solutions:
u ( x , t ) = ∑ n = 1 ∞ B n e − α 2 ( n π / L ) 2 t sin n π x L u(x,t) = \sum_{n=1}^{\infty} B_n \, e^{-\alpha^2 (n\pi/L)^2 t} \, \sin\frac{n\pi x}{L} u ( x , t ) = n = 1 ∑ ∞ B n e − α 2 ( nπ / L ) 2 t sin L nπ x
The coefficients B n B_n B n come from the initial condition u ( x , 0 ) = f ( x ) u(x,0) = f(x) u ( x , 0 ) = f ( x ) via the Fourier sine series :
B n = 2 L ∫ 0 L f ( x ) sin n π x L d x B_n = \frac{2}{L} \int_0^L f(x) \sin\frac{n\pi x}{L} \, dx B n = L 2 ∫ 0 L f ( x ) sin L nπ x d x
Equation Product form Resulting ODEs Typical eigenfunctions Heat : ∂ u ∂ t = α 2 ∂ 2 u ∂ x 2 \dfrac{\partial u}{\partial t} = \alpha^2 \dfrac{\partial^2 u}{\partial x^2} ∂ t ∂ u = α 2 ∂ x 2 ∂ 2 u X ( x ) T ( t ) X(x)T(t) X ( x ) T ( t ) T ′ + α 2 k 2 T = 0 T' + \alpha^2 k^2 T = 0 T ′ + α 2 k 2 T = 0 , X ′ ′ + k 2 X = 0 X'' + k^2 X = 0 X ′′ + k 2 X = 0 sin ( n π x / L ) \sin(n\pi x/L) sin ( nπ x / L ) Wave : ∂ 2 u ∂ t 2 = c 2 ∂ 2 u ∂ x 2 \dfrac{\partial^2 u}{\partial t^2} = c^2 \dfrac{\partial^2 u}{\partial x^2} ∂ t 2 ∂ 2 u = c 2 ∂ x 2 ∂ 2 u X ( x ) T ( t ) X(x)T(t) X ( x ) T ( t ) T ′ ′ + c 2 k 2 T = 0 T'' + c^2 k^2 T = 0 T ′′ + c 2 k 2 T = 0 , X ′ ′ + k 2 X = 0 X'' + k^2 X = 0 X ′′ + k 2 X = 0 sin ( n π x / L ) \sin(n\pi x/L) sin ( nπ x / L ) Laplace : ∂ 2 u ∂ x 2 + ∂ 2 u ∂ y 2 = 0 \dfrac{\partial^2 u}{\partial x^2} + \dfrac{\partial^2 u}{\partial y^2} = 0 ∂ x 2 ∂ 2 u + ∂ y 2 ∂ 2 u = 0 X ( x ) Y ( y ) X(x)Y(y) X ( x ) Y ( y ) X ′ ′ − k 2 X = 0 X'' - k^2 X = 0 X ′′ − k 2 X = 0 , Y ′ ′ + k 2 Y = 0 Y'' + k^2 Y = 0 Y ′′ + k 2 Y = 0 sin ( n π y / b ) \sin(n\pi y/b) sin ( nπ y / b )
Solve:
∂ 2 u ∂ t 2 = c 2 ∂ 2 u ∂ x 2 , 0 < x < L , t > 0 \frac{\partial^2 u}{\partial t^2} = c^2 \frac{\partial^2 u}{\partial x^2}, \qquad 0 < x < L, \ t > 0 ∂ t 2 ∂ 2 u = c 2 ∂ x 2 ∂ 2 u , 0 < x < L , t > 0
with u ( 0 , t ) = u ( L , t ) = 0 u(0,t) = u(L,t) = 0 u ( 0 , t ) = u ( L , t ) = 0 , u ( x , 0 ) = f ( x ) u(x,0) = f(x) u ( x , 0 ) = f ( x ) , ∂ u ∂ t ( x , 0 ) = 0 \dfrac{\partial u}{\partial t}(x,0) = 0 ∂ t ∂ u ( x , 0 ) = 0 .
Separate: u = X ( x ) T ( t ) u = X(x)T(t) u = X ( x ) T ( t ) gives
T ′ ′ c 2 T = X ′ ′ X = − k 2 \frac{T''}{c^2 T} = \frac{X''}{X} = -k^2 c 2 T T ′′ = X X ′′ = − k 2
Spatial ODE: X ′ ′ + k 2 X = 0 X'' + k^2 X = 0 X ′′ + k 2 X = 0 with X ( 0 ) = X ( L ) = 0 X(0)=X(L)=0 X ( 0 ) = X ( L ) = 0 gives
X n = sin n π x L , k n = n π L X_n = \sin\frac{n\pi x}{L}, \quad k_n = \frac{n\pi}{L} X n = sin L nπ x , k n = L nπ
Time ODE: T ′ ′ + c 2 k 2 T = 0 T'' + c^2 k^2 T = 0 T ′′ + c 2 k 2 T = 0 gives
T n = A n cos n π c t L + B n sin n π c t L T_n = A_n \cos\frac{n\pi c t}{L} + B_n \sin\frac{n\pi c t}{L} T n = A n cos L nπ c t + B n sin L nπ c t
Superpose:
u ( x , t ) = ∑ n = 1 ∞ ( A n cos n π c t L + B n sin n π c t L ) sin n π x L u(x,t) = \sum_{n=1}^{\infty} \left( A_n \cos\frac{n\pi c t}{L} + B_n \sin\frac{n\pi c t}{L} \right) \sin\frac{n\pi x}{L} u ( x , t ) = n = 1 ∑ ∞ ( A n cos L nπ c t + B n sin L nπ c t ) sin L nπ x
Initial conditions: from ∂ u ∂ t ( x , 0 ) = 0 \dfrac{\partial u}{\partial t}(x,0)=0 ∂ t ∂ u ( x , 0 ) = 0 we get B n = 0 B_n = 0 B n = 0 ; from u ( x , 0 ) = f ( x ) u(x,0)=f(x) u ( x , 0 ) = f ( x ) we get
A n = 2 L ∫ 0 L f ( x ) sin n π x L d x A_n = \frac{2}{L} \int_0^L f(x) \sin\frac{n\pi x}{L} \, dx A n = L 2 ∫ 0 L f ( x ) sin L nπ x d x
The sign of λ \lambda λ is not arbitrary — it is forced by the boundary conditions.
u ( 0 , t ) = u ( L , t ) = 0 u(0,t)=u(L,t)=0 u ( 0 , t ) = u ( L , t ) = 0 → trigonometric (sine) solutions → λ < 0 \lambda < 0 λ < 0 .
u x ( 0 , t ) = u x ( L , t ) = 0 u_x(0,t)=u_x(L,t)=0 u x ( 0 , t ) = u x ( L , t ) = 0 (insulated ends) → cosine solutions → still λ < 0 \lambda < 0 λ < 0 , with λ 0 = 0 \lambda_0 = 0 λ 0 = 0 allowed.
Unbounded / exponential decay → exponential solutions → λ > 0 \lambda > 0 λ > 0 .
Always solve the spatial equation first (it carries the boundary conditions and determines the eigenvalues). Then solve the time equation with those eigenvalues.
Separation of variables requires:
The PDE is linear and homogeneous .
The boundary conditions are homogeneous (at least on the separated variables).
The domain is rectangular / simple (interval, rectangle, disc, etc.).
For non-homogeneous problems, split the solution into steady + transient parts, or use eigenfunction expansion .
Assume u = X ( x ) T ( t ) u = X(x)T(t) u = X ( x ) T ( t ) (or X ( x ) Y ( y ) X(x)Y(y) X ( x ) Y ( y ) ).
Substitute and separate variables.
Set both sides equal to a separation constant.
Solve the spatial ODE → eigenvalues + eigenfunctions.
Solve the time ODE.
Superpose (sum) all solutions.
Apply initial conditions → Fourier coefficients.