Advanced Physics‹›⌂ 0:00 studied

Module 22 · 7 min read · Free chapter

Partial differential equations: Laplace, wave and heat equations, separation of variables in Cartesian, cylindrical and spherical coordinates, boundary-value problems

What are you preparing for? We show the practice and previous year questions of your exam.

Start from zero: fields that depend on more than one variable

The temperature in a room depends on position and time; the displacement of a guitar string depends on where along it you look and when. When a quantity depends on several variables, the laws that govern it are partial differential equations (PDEs).

Three equations cover a huge range of physics. Laplace's equation gives steady fields: electrostatics, gravity, steady heat flow. The wave equation describes strings, sound, light and seismic waves, and the heat (diffusion) equation describes heat flow, diffusion of ink and spreading of pollutants.

Classification and separation of variables

A second-order linear PDE in two variables Auxx+2Buxy+Cuyy+lower terms=0A u_{xx} + 2B u_{xy} + C u_{yy} + \text{lower terms} = 0 is classified by its discriminant:

Type Condition Example Character
elliptic B2−AC<0B^2 - AC < 0 Laplace, Poisson steady state, boundary-value problem
parabolic B2−AC=0B^2 - AC = 0 heat, diffusion, Schrödinger smoothing in time
hyperbolic B2−AC>0B^2 - AC > 0 wave equation signals travel at finite speed

Boundary conditions. Dirichlet (the value is given on the boundary), Neumann (the normal derivative is given) or mixed. A uniqueness theorem says that Laplace's equation with Dirichlet data has exactly one solution, which is why the method of images works in electrostatics.

Separation of variables. Try u(x,t)=X(x)T(t)u(x, t) = X(x)T(t). Substituting in the wave equation uxx=1v2uttu_{xx} = \dfrac{1}{v^2}u_{tt} and dividing by XT:

X′′X=1v2T′′T=−k2\frac{X''}{X} = \frac{1}{v^2}\frac{T''}{T} = -k^2

The left side depends only on x and the right only on t, so both equal a constant. This gives two ODEs: X′′+k2X=0X'' + k^2X = 0 and T′′+k2v2T=0T'' + k^2v^2T = 0. Boundary conditions then pick out allowed values of k (an eigenvalue problem), and the general solution is a sum over all allowed modes. Because the equations are linear, any sum of solutions is again a solution (superposition).

The wave equation

String fixed at both ends (length L, u(0, t) = u(L, t) = 0). The spatial ODE with these conditions gives X=sin⁡nπxLX = \sin\dfrac{n\pi x}{L}, so kn=nπLk_n = \dfrac{n\pi}{L} and frequencies νn=nv2L\nu_n = \dfrac{nv}{2L} with v=Tμv = \sqrt{\frac{T}{\mu}} (tension over mass per length). The general solution is

u(x,t)=∑n=1∞sin⁡nπxL(Ancos⁡nπvtL+Bnsin⁡nπvtL)u(x, t) = \sum_{n=1}^{\infty}\sin\frac{n\pi x}{L}\left(A_n\cos\frac{n\pi vt}{L} + B_n\sin\frac{n\pi vt}{L}\right)

The initial shape u(x,0)=f(x)u(x, 0) = f(x) and velocity ut(x,0)=g(x)u_t(x, 0) = g(x) fix the coefficients by Fourier sine series (Fourier series):

An=2L∫0Lf(x)sin⁡nπxL dx,Bn=2nπv∫0Lg(x)sin⁡nπxL dxA_n = \frac{2}{L}\int_0^L f(x)\sin\frac{n\pi x}{L}\,dx, \qquad B_n = \frac{2}{n\pi v}\int_0^L g(x)\sin\frac{n\pi x}{L}\,dx

Worked example. A string plucked at its midpoint to height h (triangular shape, released from rest) has Bn=0B_n = 0 and An=8hn2π2sin⁡nπ2A_n = \dfrac{8h}{n^2\pi^2}\sin\dfrac{n\pi}{2}. Only odd harmonics appear, falling as 1n2\dfrac{1}{n^2}. Plucking at a node of a harmonic never excites it; this is why the pluck point changes the tone of a guitar.

d'Alembert's solution. For an infinite string, change to ξ=x−vt\xi = x - vt and η=x+vt\eta = x + vt. The wave equation becomes ∂2u∂ξ ∂η=0\dfrac{\partial^2 u}{\partial\xi\,\partial\eta} = 0, so

u=f(x−vt)+g(x+vt)u = f(x - vt) + g(x + vt)

Any shape moving right plus any shape moving left. With initial displacement u0(x)u_0(x) and zero velocity, u=12[u0(x−vt)+u0(x+vt)]u = \dfrac{1}{2}\left[u_0(x - vt) + u_0(x + vt)\right]: the pulse splits into two halves travelling apart.

Other cases. A rectangular membrane gives modes sin⁡mπxasin⁡nπyb\sin\dfrac{m\pi x}{a}\sin\dfrac{n\pi y}{b}; a circular one gives Bessel modes (special functions). In three dimensions, spherical waves 1rf(r−vt)\dfrac{1}{r}f(r - vt) describe sound from a point source and seismic P waves spreading from a focus.

Heat equation and Laplace's equation

Heat equation. Combining Fourier's law q⃗=−K∇T\vec{q} = -K\nabla T with energy conservation gives

∂T∂t=D∇2T,D=Kρc\frac{\partial T}{\partial t} = D\nabla^2T, \qquad D = \frac{K}{\rho c}

Rod with ends at 0 °C, initial profile f(x). Separation gives

T(x,t)=∑n=1∞bnsin⁡nπxL e−D(nπL)2tT(x, t) = \sum_{n=1}^{\infty}b_n\sin\frac{n\pi x}{L}\,e^{-D\left(\frac{n\pi}{L}\right)^2t}

with bnb_n the sine coefficients of f. Higher modes decay as n2n^2 faster, so after a short time only the n = 1 mode is left and sharp features vanish. Unlike waves, heat does not oscillate; it only spreads and fades.

Point release. Heat released at x = 0 spreads as a Gaussian T∝14πDte−x2/4DtT \propto \dfrac{1}{\sqrt{4\pi Dt}}e^{-x^2/4Dt}, whose width grows as 2Dt\sqrt{2Dt}. This t\sqrt{t} law governs diffusion of dopants into silicon, of pollutants, and of heat into the ground.

Worked example (geophysics). A surface temperature varying as T0cos⁡ωtT_0\cos\omega t penetrates the ground as T0e−z/dcos⁡(ωt−zd)T_0e^{-z/d}\cos\left(\omega t - \dfrac{z}{d}\right) with skin depth d=2Dωd = \sqrt{\frac{2D}{\omega}}. For soil, D ≈ 5 × 10⁻⁷ m² s⁻¹. The daily cycle (ω = 7.3 × 10⁻⁵ s⁻¹) gives d ≈ 12 cm; the yearly cycle gives d ≈ 2.2 m. So cellars and deep wells stay at nearly constant temperature, and the yearly peak arrives months late at depth.

Laplace's equation in 2D. For a rectangular plate 0≤x≤a0 \le x \le a, 0≤y≤b0 \le y \le b with three edges at 0 and the top edge at V0V_0, separation gives sin⁡nπxasinh⁡nπya\sin\dfrac{n\pi x}{a}\sinh\dfrac{n\pi y}{a} terms:

V(x,y)=∑n odd4V0nπsinh⁡nπyasinh⁡nπbasin⁡nπxaV(x, y) = \sum_{n\text{ odd}}\frac{4V_0}{n\pi}\frac{\sinh\frac{n\pi y}{a}}{\sinh\frac{n\pi b}{a}}\sin\frac{n\pi x}{a}

Spherical coordinates, axial symmetry. Separation V=R(r)Θ(θ)V = R(r)\Theta(\theta) gives Legendre's equation for Θ and R=Alrl+Blrl+1R = A_lr^l + \dfrac{B_l}{r^{l+1}}:

V(r,θ)=∑l=0∞(Alrl+Blrl+1)Pl(cos⁡θ)V(r, \theta) = \sum_{l=0}^{\infty}\left(A_lr^l + \frac{B_l}{r^{l+1}}\right)P_l(\cos\theta)

Worked example: conducting sphere in a uniform field E0z^E_0\hat{z}. Far away V→−E0rcos⁡θV \to -E_0r\cos\theta, and V = 0 on the sphere r = a. Only l = 1 survives:

V=−E0(r−a3r2)cos⁡θV = -E_0\left(r - \frac{a^3}{r^2}\right)\cos\theta

The second term is the field of an induced dipole p=4πε0a3E0p = 4\pi\varepsilon_0a^3E_0. The surface charge is σ=3ε0E0cos⁡θ\sigma = 3\varepsilon_0E_0\cos\theta, and the field at the poles is 3E₀. In cylindrical coordinates the same method gives Bessel functions in r. Spherical harmonics in full (with φ) model the Earth's gravity and main magnetic field, where the l = 1 term is the geocentric dipole.

Mains lens: how UPSC asks this

The wave equation underlies the CSE and IFoS questions on strings, sound and EM waves; Laplace's equation underlies boundary-value electrostatics. Geo-Scientist Geophysics asks for solutions of Laplace's equation in Cartesian, cylindrical and spherical coordinates directly (A3), and NET Part A asks for separation of variables.

Expect:

  • Solve the wave equation for a plucked string and find the amplitudes of harmonics (15 marks).
  • Derive d'Alembert's solution.
  • Solve the one-dimensional heat equation for a rod with given end temperatures.
  • Find the potential of a conducting or dielectric sphere in a uniform field.
  • Classify a given PDE as elliptic, parabolic or hyperbolic.

Model answer plan: "A string of length L fixed at both ends is plucked at its midpoint to height h and released. Find the displacement at later times." (15 marks).

  1. Wave equation, boundary conditions; separation of variables.
  2. Modes sin⁡nπxLcos⁡nπvtL\sin\dfrac{n\pi x}{L}\cos\dfrac{n\pi vt}{L} (released from rest).
  3. Fourier coefficients of the triangle: An=8hn2π2sin⁡nπ2A_n = \dfrac{8h}{n^2\pi^2}\sin\dfrac{n\pi}{2}.
  4. Final series; only odd harmonics, amplitude ∝ 1n2\dfrac{1}{n^2}.
  5. Physical comment: pluck point at a node suppresses that harmonic.

Quick revision

  • Elliptic (Laplace), parabolic (heat), hyperbolic (wave); Dirichlet and Neumann conditions; uniqueness.
  • Separation: product solution, separation constant, eigenvalues from boundaries, superposition.
  • String: νn=nv2L\nu_n = \dfrac{nv}{2L}; midpoint pluck: odd harmonics ∝ 1n2\dfrac{1}{n^2}; d'Alembert f(x−vt)+g(x+vt)f(x - vt) + g(x + vt).
  • Heat: modes decay as e−Dk2te^{-Dk^2t}; spread ∝ Dt\sqrt{Dt}; skin depth 2Dω\sqrt{\frac{2D}{\omega}} (12 cm daily, 2 m yearly).
  • Spherical Laplace: (Alrl+Blrl+1)Pl\left(A_lr^l + \dfrac{B_l}{r^{l+1}}\right)P_l; sphere in field: induced dipole 4πε0a3E04\pi\varepsilon_0a^3E_0.

Mains answer practice

Write your answer first, then open the points a good answer should cover.

  1. A string of length L fixed at both ends is plucked at its midpoint to a height h and released from rest. Solve the wave equation to find its displacement at later times. Which harmonics are absent?

    Show answer points
    • Wave equation u_xx = u_tt/v², u(0,t) = u(L,t) = 0
    • Separation gives modes sin(nπx/L) cos(nπvt/L); Bn = 0 since released from rest
    • An = (2/L)∫ f(x) sin(nπx/L) dx for the triangular shape
    • An = 8h sin(nπ/2)/(n²π²)
    • Even harmonics absent (node at midpoint); amplitudes fall as 1/n²
  2. Derive d'Alembert's general solution of the one-dimensional wave equation and interpret it. Find the solution for an initial displacement u0(x) with zero initial velocity.

    Show answer points
    • New variables ξ = x − vt, η = x + vt
    • Wave equation becomes ∂²u/∂ξ∂η = 0
    • u = f(x − vt) + g(x + vt): right- and left-moving waves of fixed shape
    • Initial conditions give f = g = u0/2
    • u = [u0(x − vt) + u0(x + vt)]/2: pulse splits into two halves
  3. Solve the one-dimensional heat equation for a rod of length L whose ends are kept at 0 °C and whose initial temperature is f(x). Why do sharp temperature features disappear first?

    Show answer points
    • ∂T/∂t = D ∂²T/∂x², D = K/(ρc)
    • Separation: X = sin(nπx/L), time factor exp(−D(nπ/L)²t)
    • T = Σ bn sin(nπx/L) exp(−Dn²π²t/L²), bn = sine coefficients of f
    • Higher modes decay n² times faster, so fine structure vanishes first
    • Long times: only n = 1 mode, then T → 0; no oscillation unlike waves
  4. A conducting sphere of radius a is placed in a uniform electric field E0 along z. Solving Laplace's equation in spherical coordinates, find the potential outside and the induced surface charge density.

    Show answer points
    • General axial solution V = Σ (Al rˡ + Bl/r^(l+1)) Pl(cos θ)
    • Boundary conditions: V → −E0 r cos θ at large r, V = 0 on r = a
    • Only l = 1: V = −E0 (r − a³/r²) cos θ
    • Second term is an induced dipole p = 4πε0 a³ E0
    • σ = −ε0 ∂V/∂r at r = a = 3ε0 E0 cos θ; field at poles 3E0
  5. The surface temperature of the ground varies daily as T0 cos ωt. If the thermal diffusivity of soil is 5 × 10⁻⁷ m² s⁻¹, estimate the depth at which the daily variation falls to 1/e of its surface value.

    Show answer points
    • Solution T0 exp(−z/d) cos(ωt − z/d)
    • Skin depth d = √(2D/ω)
    • ω = 2π/86400 = 7.3 × 10⁻⁵ s⁻¹
    • d = √(1.0 × 10⁻⁶ / 7.3 × 10⁻⁵) ≈ 0.12 m
    • Yearly cycle gives about 2.2 m

Previous year questions

Previous year questions for UPSC CSE will appear here once each one is checked word for word against the official question paper.

Learn with AI

A tutor that asks instead of telling, a partner that argues the other side, and this chapter told through your own district.

Tell the tutor what you are stuck on. It will guide you with questions and give the answer after a few tries.

🙋 Raise a doubt or feedback

Stuck somewhere, or spotted a mistake? Write to the ExamHike team. We usually reply within a day, and you will see the reply on My progress.

Log in to ask a doubt or send feedback →

More in this module: Mathematical physics

Official sources

Facts in this chapter were checked against these official sources.

  1. IGNOU PHE-05 Mathematical Methods in Physics II: partial differential equations
  2. MIT OpenCourseWare 18.03 Differential Equations: PDEs, heat and wave equations