Skip to content
GATEiit

GATE EC, AE, ME, CE, EE + 10 more · Differential Equations

Separation of Variables (Wave, Heat and Laplace Equations) and BVPs

Initial vs boundary value problems (0, 1 or infinite solutions), Sturm–Liouville eigenmodes, and solving 1D heat, 1D wave and 2D Laplace PDEs by separation of variables.

Before you start

This topic comes before: One-dimensional consolidation, time rate of consolidation

Concept notes

1. Why Boundary Value Problems Have 0, 1, or ∞ Solutions

A two-point Boundary Value Problem (BVP) constrains a differential equation at two distinct points x=a and x=b. Unlike regular linear IVPs (always 1 unique solution), a linear BVP forms a square algebraic system Mc=b for integration constants whose determinant det⁡M may vanish.

Linear BVP scenario Determinant det⁡M Number of solutions Prototype example
Non-eigenvalue domain det⁡M≠0 Unique (1) y′′+y=0,  y(0)=0,  y(π/2)=1  ⟹  y=sin⁡x
Eigenvalue + incompatible RHS/BC det⁡M=0, inconsistent Zero (0) y′′+y=0,  y(0)=0,  y(π)=1 (csin⁡π=1)
Eigenvalue + homogeneous/compatible det⁡M=0, consistent Infinite (∞) y′′+y=0,  y(0)=0,  y(π)=0  ⟹  y=Csin⁡x

This dichotomy is the Fredholm Alternative: the forced BVP L[y]=g(x) with homogeneous BCs has a solution at an eigenvalue λk if and only if g(x) is orthogonal to the corresponding eigenfunction ϕk(x).

IVP Uniqueness at One Point vs BVP Resonance Multiplicity (0, 1, or ∞ Solutions) IVP: Point + Slope (Local Data) y(0), y'(0) given Picard–Lindelöf ⇒ unique curve BVP: y'' + y = 0, y(0) = 0, y(π) = 0 x = π ∞ solutions: y = C sin(x) If y(π) = 1 instead ⇒ 0 solutions
Picard–Lindelöf guarantees one trajectory for a regular IVP, whereas a BVP can yield 0, 1, or ∞ solutions depending on interval length.

2. Regular Sturm–Liouville Eigenvalue Problems

Spatial ODEs obtained by separating cylindrical, spherical, or Cartesian PDEs fit the self-adjoint Sturm–Liouville form on [a,b] with p(x)>0 and weight w(x)>0: ddx ⁣(p(x)dydx)+[q(x)+λw(x)]y=0, paired with separated boundary conditions α1y(a)+α2y′(a)=0 and β1y(b)+β2y′(b)=0. Guaranteed properties for every regular Sturm–Liouville problem:

  1. Real, discrete eigenvalues: λ1<λ2<λ3<⋯→+∞, each simple (one eigenfunction up to scaling).
  2. Weighted orthogonality: eigenfunctions for distinct eigenvalues satisfy ∫abym(x)yn(x) w(x) dx=0 (m≠n). (This explains why Bessel functions integrate orthogonally with weight w(x)=x and Chebyshev polynomials with w(x)=(1−x2)−1/2)
  3. Lagrange / Rayleigh quotient: when q≤0 and α1α2≤0, β1β2≥0, all eigenvalues are non-negative (λ≥0).

3. PDE Separation Ansatz and Selecting the Sign of μ

On a bounded spatial domain x∈[0,L] with homogeneous boundary conditions, seek product solutions u(x,t)=X(x)T(t). Substituting into a linear constant-coefficient PDE divides evenly into pure functions of x and t: X′′(x)X(x)=T′(t)c2T(t)=μ(Heat),X′′(x)X(x)=T′′(t)c2T(t)=μ(Wave). Since x and t vary independently, the common ratio μ must be constant. The homogeneous boundary conditions determine the sign of μ:

  • Dirichlet BCs (X(0)=X(L)=0):
  • μ>0 gives X=Acosh⁡λx+Bsinh⁡λx  ⟹  X≡0 (trivial).
  • μ=0 gives X=Ax+B  ⟹  X≡0 (trivial).
  • μ=−λ2<0 gives X=Bsin⁡λx, yielding non-trivial eigenvalues λn=nπL (n=1,2,…).
  • Neumann BCs (X′(0)=X′(L)=0): μ=0 gives the nontrivial constant steady mode X0=1, while μ=−λn2 gives cos⁡(nπx/L).
Separation Constant Choice μ = −λ² Selects Standing Waves sin(nπx / L) x = 0 (u=0) L / 2 x = L (u=0) n = 1: sin(πx/L) (solid) n = 2: sin(2πx/L) (dashed) n = 3: sin(3πx/L) (dotted) μ ≥ 0 gives linear/hyperbolic X(x), forcing X ≡ 0
Homogeneous Dirichlet conditions u(0,t)=u(L,t)=0 force μ = −λ² < 0, selecting discrete standing waves sin(nπx/L).

4. 1D Heat equation uₜ = α uₓₓ (diffusion)

For ut=αuxx on 0<x<L with zero ends u(0,t)=u(L,t)=0 and initial temperature u(x,0)=f(x):

  • Separation gives T′αT=X′′X=−k2 (note why −k2<0: +k2 would blow up in t or fail both zero BCs).
  • Xn(x)=sin⁡(nπx/L), Tn(t)=e−α(nπ/L)2t.
  • Full series solution: u(x,t)=∑n=1∞Bn sin⁡ ⁣(nπxL) e−α(nπ/L)2t,Bn=2L∫0Lf(x)sin⁡ ⁣(nπxL)dx. Notice higher modes decay quadratically faster (n2 in the exponent) and steady state with non-zero end temperatures T1,T2 adds the linear baseline T1+T2−T1Lx first.

5. 1D Wave equation uₜₜ = c² uₓₓ and 2D Laplace equation uₓₓ + uᵧᵧ = 0

1D Wave equation (utt=c2uxx, fixed ends u(0,t)=u(L,t)=0): u(x,t)=∑n=1∞[Ancos⁡ ⁣(nπctL)+Bnsin⁡ ⁣(nπctL)]sin⁡ ⁣(nπxL), where An=2L∫0Lu(x,0)sin⁡nπxL dx and Bn=2nπc∫0Lut(x,0)sin⁡nπxL dx. Notice zero initial velocity kills all Bn.

2D Laplace equation (uxx+uyy=0 on rectangle 0≤x≤a,0≤y≤b): With three homogeneous edges (u(0,y)=u(a,y)=u(x,0)=0) and non-zero top edge u(x,b)=f(x), X′′/X=−k2 gives sin⁡(nπx/a) while Y′′/Y=+k2 gives sinh⁡(nπy/a): u(x,y)=∑n=1∞Cnsin⁡ ⁣(nπxa)sinh⁡ ⁣(nπya),Cnsinh⁡ ⁣(nπba)=2a∫0af(x)sin⁡ ⁣(nπxa)dx.

Formulas to remember

Separable ODE integral identity
M(x) dx+N(y) dy=0  ⟹  ∫M(x) dx+∫N(y) dy=C
Homogeneous ODE reduction y = vx
dydx=F ⁣(yx)  ⟹  ∫dvF(v)−v=ln⁡∣x∣+C
1D Heat modal decay rate
u(x,t)=∑n=1∞Bnsin⁡ ⁣(nπxL)e−α(nπL)2t,Bn=2L∫0Lu(x,0)sin⁡ ⁣(nπxL)dx
1D Wave modal harmonics
ωn=cnπL,An=2L∫0Lu(x,0)sin⁡ ⁣(nπxL)dx,Bn=2cnπ∫0Lut(x,0)sin⁡ ⁣(nπxL)dx
2D Laplace rectangular mode (u=0 on y=b)
un(x,y)=Cnsin⁡ ⁣(nπxa)sinh⁡ ⁣(nπ(b−y)a),Cn=2asinh⁡(nπb/a)∫0au(x,0)sin⁡ ⁣(nπxa)dx
Neumann heat zero-mode steady temperature
ux(0,t)=ux(L,t)=0  ⟹  lim⁡t→∞u(x,t)=1L∫0Lu(x,0) dx
Picard–Lindelöf sufficient uniqueness criteria
f(x,y),  ∂f∂y(x,y)∈C(D)  ⟹  unique local solution to y′=f(x,y),  y(x0)=y0
Sturm–Liouville canonical form
(p(x)y′)′+[q(x)+λw(x)]y=0,p(x)>0,  w(x)>0
Sturm–Liouville weighted orthogonalityConverting a2y′′+a1y′+(a0+λr)y=0 multiplies by μ=1a2e∫(a1/a2)dx so w=μr.
∫abym(x) yn(x) w(x) dx=0(λm≠λn)
Mixed Dirichlet–Neumann eigenvalues on [0, L]
y′′+λy=0,  y(0)=0,  y′(L)=0  ⟹  λn=[(2n−1)π2L]2  (n=1,2,… )

Common mistakes

  • Dropping singular equilibrium solutions on division: Separating dyg(y)=f(x)dx loses solutions where g(y)=0 identically (check them separately).
  • Using the wrong sign of μ in PDE separation: Bounded Dirichlet/Neumann directions always force X′′+λ2X=0 (oscillatory sin⁡/cos⁡), while the unbounded or remaining direction takes sinh⁡/cosh⁡ or e±λy.
  • Forgetting the n=0 constant mode in Neumann BCs: Insulated boundaries ux(0)=ux(L)=0 allow λ0=0, representing conserved thermal energy uˉ.
  • Trying to separate variables across nonzero boundaries: Directly plugging ∑Bnsin⁡(nπx/L) when u(0,t)=10 gives 0=10 at x=0; subtract the steady linear state v(x) first.
  • Confusing sinh⁡(π/2)/sinh⁡(π) with 1/2: Hyperbolic sine grows exponentially, so sinh⁡(π/2)sinh⁡(π)=12cosh⁡(π/2)≈0.1993, much smaller than 0.5.
  • Assuming BVPs inherit IVP uniqueness: Even simple linear constant-coefficient BVPs like y′′+y=0 have 0 or ∞ solutions when b−a matches a resonant half-period π.

Worked examples

Try each step yourself, then reveal the working.

Example 1: Counting Solutions of a Two-Point BVP

numerical

For what value(s) of k does the BVP y′′+4y=0, y(0)=0, y(π/2)=k have solutions, and how many?

  1. Step 1: Write general solution and apply first boundary condition

    Try it on paper first.

Example 2: 1D heat equation with finite-mode initial profile

numerical

Solve ut=2uxx on 0<x<π with u(0,t)=u(π,t)=0 and u(x,0)=4sin⁡x−3sin⁡(2x). Evaluate u(π/2,1) in terms of e.

  1. Step 1: Match mode shapes directly without integrating.

    Try it on paper first.

Example 3: Steady-State Temperature Split for Nonhomogeneous Walls

numerical

A rod of length L=4 solves ut=αuxx with u(0,t)=10, u(4,t)=30, and u(x,0)=x2+10. Find lim⁡t→∞u(1,t) and the initial transient amplitude w(1,0).

  1. Step 1: Solve steady-state profile v'' = 0 matching wall temperatures

    Try it on paper first.

Example 4: Why the separation sign matters in heat and Laplace equations

conceptual

When separating uxx+uyy=0 on a rectangle with u(0,y)=u(a,y)=0, why must we choose X′′X=−λ<0 instead of +λ>0?

  1. Step 1: Test positive separation constant X″ − k² X = 0.

    Try it on paper first.

Previous year questions

No official PYQ in our currently live papers is tagged with this exact topic yet. The topic test below uses original GATE-style questions.

Topic test

8 questions: original practice questions, with GATE marking (MCQ wrong answers lose marks). Score 60% or more to pass. A new set is drawn each time.

Mark as mastered

Loading your progress…

My revision notes

Notes written by the GATEiit team against the official GATE Engineering Mathematics (EC, AE, ME, CE, EE + 10 more) syllabus; being checked by a reviewer. Updated 2026-12-01. Spotted a mistake? Use Report an issue on any question, or contact us.