Skip to content
GATEiit

GATE EC · Engineering Mathematics

Variable separable method

Solving first-order separable and reducible ODEs cleanly without losing singular equilibria, alongside product separation X(x)T(t) for canonical 1D heat, 1D wave, and 2D Laplace PDEs under homogeneous boundaries.

Before you start

This topic comes before: Initial and boundary value problems

Concept notes

1. Separable First-Order ODEs, Substitutions, and Singular Solutions

A first-order ODE is separable if it factors as dydx=f(x)g(y), allowing variables to be isolated on opposite sides: ∫dyg(y)=∫f(x) dx+C(g(y)≠0). Two high-yield subtleties catch GATE test-takers:

  1. Singular equilibrium solutions: Any root y=y∗ of g(y∗)=0 is a constant solution (y′=0=f(x)⋅0), yet division by g(y) hides it! Always test equilibrium lines separately—for example, y′=y2/3 with y(0)=0 has both y=(x/3)3 and the singular equilibrium y≡0.
  2. Reduction substitutions convert coupled forms to separable ones:
    • Homogeneous ODE: dydx=F(y/x) reduces via y=vx  ⟹  xdvdx=F(v)−v.
    • Linear-argument ODE: dydx=F(ax+by+c) reduces via u=ax+by+c  ⟹  dudx=a+bF(u).

2. 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 cleanly 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).

3. Canonical Separation Templates: 1D Heat, 1D Wave, and 2D Laplace

Once spatial modes are found, time (or the second spatial variable y) dictates dynamics—exponential damping for heat, standing oscillation for waves, and hyperbolic decay/growth for Laplace:

PDE (x∈[0,L]) Boundary Conditions (u=0 ends) General separated series u Physics / mode weight rule
1D Heat: ut=αuxx u(0,t)=u(L,t)=0 ∑n=1∞Bnsin⁡ ⁣(nπxL)e−α(nπ/L)2t High-n ripples decay fastest (n2 in exponent)
1D Wave: utt=c2uxx u(0,t)=u(L,t)=0 ∑n=1∞sin⁡ ⁣(nπxL) ⁣[Ancos⁡ωnt+Bnsin⁡ωnt] ωn=cnπL; lossless undamped harmonics
2D Laplace: uxx+uyy=0 u=0 on x=0,a and y=b; u(x,0)=f(x) ∑n=1∞Cnsin⁡ ⁣(nπxa)sinh⁡ ⁣(nπ(b−y)a) Shift sinh⁡ to vanish at the grounded edge y=b

In 2D Laplace on a rectangle where more than one side is nonzero, linear superposition splits the problem into four sub-problems, each having three zero sides and one nonzero side.

2D Laplace BVP on [0, a] × [0, b]: Grounded Walls Choose sin(nπx/a) sinh(nπ(b−y)/a) x y 0 a b u(x, b) = 0 u(0, y) = 0 u(a, y) = 0 u(x, 0) = f(x) [expanded in sin(nπx/a)] ∇²u = u_xx + u_yy = 0 Y_n(y) = sinh(nπ(b − y)/a)
In 2D Laplace on [0, a] × [0, b], grounded boundaries x = 0, x = a force sin(nπx/a), while u(x, b) = 0 picks Y_n(y) = sinh(nπ(b − y)/a).

4. Inhomogeneous Boundaries and Fourier Mode Projection

Product solutions vanish at homogeneous walls, so when a rod has fixed nonzero temperatures u(0,t)=T1 and u(L,t)=T2, write: Then w(x,t) satisfies the homogeneous heat equation with zero boundaries w(0,t)=w(L,t)=0 and shifted initial condition w(x,0)=f(x)−v(x), restoring separation of variables. Finally, half-range sine orthogonality ∫0Lsin⁡(mπx/L)sin⁡(nπx/L) dx=L2δmn extracts each coefficient Bn=2L∫0Lw(x,0)sin⁡nπxL 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

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.

Worked examples

Try each step yourself, then reveal the working.

Example 1: Linear-Argument Reducible Separable ODE

numerical

Solve dydx=cos⁡2(x+y) with y(0)=0, and express y implicitly or compute tan⁡(x+y) at x=π42.

  1. Step 1: Substitute u = x + y to separate variables

    Try it on paper first.

Example 2: Separating 1D Heat Equation with Given Initial Sine Mode

numerical

A rod of length L=π satisfies ut=2uxx with u(0,t)=u(π,t)=0 and u(x,0)=3sin⁡x−5sin⁡(2x). Evaluate u(π/2,1).

  1. Step 1: Match initial condition directly to separated Fourier sine modes

    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: Separating 2D Laplace Equation on a Semi-Infinite Strip

conceptual

Explain how separation selects functions in uxx+uyy=0 on 0<x<a, y>0 with u(0,y)=u(a,y)=0 and lim⁡y→∞u(x,y)=0.

  1. Step 1: Pin the separation constant using the bounded x-direction

    Try it on paper first.

Previous year questions

No official GATE EC question is tagged with this topic yet. The topic test below uses practice 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 EC syllabus; being checked by a reviewer. Updated 2026-11-29. Spotted a mistake? Use Report an issue on any question, or contact us.