Nov 19, 2026·Pranesh Mahanta·21MAB201T — Transforms and Boundary Value Problems
Classifying second-order PDEs, separating variables, and solving the three classics end to end: the vibrating string, the heat equation (with insulated edges), and steady-state temperatures through Laplace’s equation in a rectangle.
Every linear second-order PDE in two independent variables can be written (ignoring lower-order terms) as
A ∂2u/∂x2 + B ∂2u/∂x∂y + C ∂2u/∂y2 + (lower-order terms) = 0
where A, B, C may be constants or functions of x, y. The sign of the discriminant B2 − 4AC sorts all such equations into three families, named by analogy with conic sections:
Discriminant
Type
Prototype
Physical role
B2 − 4AC > 0
Hyperbolic
utt = c2uxx
Wave propagation, vibrations
B2 − 4AC = 0
Parabolic
ut = αuxx
Diffusion, heat conduction
B2 − 4AC < 0
Elliptic
uxx + uyy = 0
Steady states, potentials
Worked problem · classifying equations
Determine the nature of the following PDEs: (i) uxx + uxy + uyy = 0; (ii) utt = c2uxx; (iii) ut = αuxx.
(i) A = 1, B = 1, C = 1: B2 − 4AC = 1 − 4 = −3 < 0 → elliptic. (ii) Write as utt − c2uxx = 0 with variables (t, x): A = 1, B = 0, C = −c2: B2 − 4AC = 0 + 4c2 > 0 → hyperbolic. (iii) As a second-order equation in (t, x): A = α, B = 0, C = 0 (no uxx of the second variable appears): B2 − 4AC = 0 → parabolic.
The three types match the three physical problems solved in the rest of this unit — and each type demands its own kind of boundary data.
2The method of separation of variables
All three prototype equations are solved by the same strategy: look for solutions of the special product form u(x, y) = X(x)Y(y). Substituting and dividing by XY splits the PDE into one side depending only on x and the other only on y; since x and y vary independently, each side must equal a constant (the separation constant), producing two ODEs. The full solution is then assembled from infinitely many separated solutions, weighted by the boundary and initial conditions — which is exactly where the Fourier series of Unit 2 enters.
Substitute u = XY, divide by XY, and force each side to a constant:
(one-variable part) = (other-variable part) = λ ⇒ two ODEs in X and Y
The superposition principle is what makes the method legitimate: the PDEs here are linear and homogeneous, so any sum of separated solutions is again a solution. The boundary conditions determine which separated solutions are admissible (usually only a discrete set of λ values survive, the eigenvalues), and the initial conditions determine the weights through Fourier coefficients.
Two practical warnings. First, the sign of the separation constant is a choice — pick the sign that makes the boundary conditions satisfiable with non-trivial X; the wrong sign gives only the trivial solution. Second, product solutions almost never satisfy the initial conditions by themselves; it is the infinite sum over eigenfunctions that matches them.
3The vibrating string: deriving the wave equation
Consider a uniform flexible string of density ρ stretched under constant tension T between two fixed points, displaced slightly from equilibrium. Take a small element between x and x + dx. The only forces are the two tensions at the ends, both of magnitude T and directed along the string. Because the displacement u is small, the slopes are small, so T sin θ ≈ T tan θ = T ux: the vertical components of the two tensions are approximately T ux(x + dx, t) (upward) and T ux(x, t) (downward). Newton’s second law for the element of mass ρ dx then gives
Horizontal forces cancel to first order (which is why T stays constant), and second-order effects are negligible under the small-slope assumption. The constant c is the wave speed: a disturbance on the string travels with speed √(T/ρ), as the general solution u = φ(x + ct) + ψ(x − ct) (from Unit 1) makes explicit — arbitrary profiles travelling left and right at speed c.
4Solving the wave equation with fixed ends
For a string of length l fixed at both ends, the boundary conditions are u(0, t) = u(l, t) = 0 for all t. Separating u = X(x)T(t) gives X″/X = T″/(c2T) = −λ2 (choosing the sign so that X can vanish at both ends). The spatial problem X″ + λ2X = 0, X(0) = X(l) = 0 has non-trivial solutions only for the discrete values
λn = nπ/l, Xn(x) = sin(nπx/l), n = 1, 2, 3, …
For each n the time equation T″ + c2λn2T = 0 gives Tn = ancos(nπct/l) + bnsin(nπct/l). Superposing all modes:
with, for initial displacement f(x) = u(x, 0) and initial velocity g(x) = ut(x, 0):
an = (2/l) ∫0l f(x) sin(nπx/l) dx, bn = (2/(nπc)) ∫0l g(x) sin(nπx/l) dx
Each term of the sum is a normal mode: the profile sin(nπx/l) oscillating in time with frequency nπc/(2π) = nc/(2l). The initial data enter only through the Fourier sine coefficients of f and g — the half-range sine series of Unit 2, exactly as promised.
5Worked: string plucked at its midpoint
The plucked string is the canonical initial-displacement problem: release from rest from a triangular profile.
Worked problem · initial displacement
A string of length l is fixed at x = 0 and x = l. It is pulled aside at the midpoint to a height h and released from rest. Find u(x, t).
Initial data: u(x, 0) = (2h/l)x for 0 ≤ x ≤ l/2 and (2h/l)(l − x) for l/2 ≤ x ≤ l; ut(x, 0) = 0. Release from rest forces every velocity coefficient to zero, so only the cosine-in-time part survives. Displacement coefficients: an = (2/l) ∫0l u(x, 0) sin(nπx/l) dx. Parity shortcut: the initial profile is symmetric about x = l/2, and sin(nπ(l−x)/l) = sin(nπ)cos(nπx/l) − cos(nπ)sin(nπx/l) = −(−1)nsin(nπx/l). For even n the second-half integral cancels the first, so an = 0. For odd n the two halves are equal and double. Detailed odd case, n = 1: ∫0l/2 x sin(πx/l) dx = [−x cos(πx/l)(l/π)]0l/2 + (l/π)∫0l/2 cos(πx/l) dx = 0 + (l/π)2sin(π/2) = l2/π2.
The substitution x → l − s shows ∫l/2l(l−x)sin(πx/l)dx = l2/π2 as well. Hence a1 = (2/l) · (2h/l) · 2l2/π2 = 8h/π2, and in general
an = (8h/(n2π2)) sin(nπ/2) (so a1 = 8h/π2, a3 = −8h/9π2, a5 = 8h/25π2, …). Solution:u(x, t) = (8h/π2) ∑m=0∞ [(−1)m/(2m+1)2] sin((2m+1)πx/l) cos((2m+1)πct/l). Check at t = 0, x = l/2: sin((2m+1)πx/l) = sin((2m+1)π/2) = (−1)m and cos(…) = 1, so u = (8h/π2) ∑m (−1)m(−1)m/(2m+1)2 = (8h/π2) ∑m 1/(2m+1)2 = (8h/π2)(π2/8) = h, the initial midpoint height, using the standard sum 1 + 1/9 + 1/25 + … = π2/8.
6Worked: string set in motion by an initial velocity
The complementary problem is a string at rest in its equilibrium position but struck so that every point acquires an initial velocity — a piano string approximated by a uniform impulse.
Worked problem · initial velocity
A string of length l with fixed ends starts from the equilibrium position u(x, 0) = 0 with constant initial velocity ut(x, 0) = v0. Find u(x, t).
Initial displacement zero forces all an = 0; the motion is purely sine-in-time: u(x, t) = ∑n bn sin(nπct/l) sin(nπx/l). Differentiate in time and set t = 0: ut(x, 0) = ∑n bn(nπc/l) sin(nπx/l) = v0, so the numbers bn(nπc/l) are the half-range sine coefficients of v0:
bn = (2/(nπc)) ∫0l v0 sin(nπx/l) dx = (2v0/(nπc)) · (l/(nπ))[1 − cos(nπ)] = (2v0l/(n2π2c))(1 − (−1)n).
So bn = 4v0l/(n2π2c) for odd n and 0 for even n. Solution:u(x, t) = (4v0l/(π2c)) ∑m=0∞ (1/(2m+1)2) sin((2m+1)πx/l) sin((2m+1)πct/l). Check of the velocity at t = 0: differentiating the series in t, ut(x, 0) = (4v0l/(π2c)) · (πc/l) · ∑odd sin(nπx/l)/n = (4v0/π) ∑odd sin(nπx/l)/n. At the midpoint x = l/2 this is (4v0/π)(1 − 1/3 + 1/5 − …) = (4v0/π)(π/4) = v0, as required.
Note the structural difference between the two problems: an initial displacement produces cos((2m+1)πct/l) time factors with coefficients 1/n2, while an initial velocity produces sin((2m+1)πct/l) factors. Either way only odd harmonics appear for data symmetric about the midpoint.
7The heat equation and its meaning
Consider heat flowing in a uniform rod of cross-section A, density ρ, specific heat cp and thermal conductivity k. Over a slice between x and x + dx, Fourier’s law of conduction says the heat flux is proportional to the temperature gradient, so the net heat entering the slice per unit time is kA[ux(x + dx, t) − ux(x, t)] ≈ kA uxx dx. This heat raises the slice’s temperature at the rate (ρcpA dx)ut. Equating the two:
ut = α uxx, α = k/(ρcp) (the thermal diffusivity, units m2/s)
Unlike the wave equation there is no second time derivative: heat flow is dissipative, not oscillatory. Wherever uxx > 0 (a local minimum of temperature) the temperature rises, and wherever uxx < 0 it falls — the equation literally smooths the temperature profile. In the steady state, ut = 0 and the equation collapses to Laplace’s equation uxx = 0 in one dimension (and ∇2u = 0 in two), which is the subject of Section 10.
8Worked: rod with ends held at temperature zero
Worked problem · zero-temperature ends
A homogeneous rod of length l has its ends x = 0 and x = l kept at temperature 0. The initial temperature is u(x, 0) = kx(l − x). Find the temperature u(x, t) for t > 0.
Separation: u = X(x)T(t) in ut = αuxx gives T′/(αT) = X″/X = −λ2. The boundary conditions X(0) = X(l) = 0 again give λn = nπ/l and Xn = sin(nπx/l), while T′ + αλn2T = 0 gives Tn = e−α(nπ/l)2t. General solution: u(x, t) = ∑n=1∞ bn sin(nπx/l) e−αn2π2t/l2, with bn = (2/l) ∫0l kx(l − x) sin(nπx/l) dx. Computing bn: substitute s = x/l, so the integral becomes l3 ∫01 s(1 − s) sin(nπs) ds. Two integrations by parts give
∫01 s sin(nπs) ds = −(−1)n/(nπ) and ∫01 s2 sin(nπs) ds = −(−1)n/(nπ) + 2((−1)n − 1)/(n3π3).
Subtracting: ∫01 s(1 − s) sin(nπs) ds = 2(1 − (−1)n)/(n3π3), so ∫0l x(l−x)sin(nπx/l)dx = 2l3(1 − (−1)n)/(n3π3) and
bn = (2k/l) · 2l3(1 − (−1)n)/(n3π3) = 8kl2/(n3π3) for odd n, 0 for even n. Solution:u(x, t) = (8kl2/π3) ∑m=0∞ (1/(2m+1)3) sin((2m+1)πx/l) e−α(2m+1)2π2t/l2. Check: every term decays exponentially, so u → 0 as t → ∞, matching ends held at zero; and the higher harmonics decay n2 times faster — the profile flattens from the top down.
9Worked: rod with insulated ends
Insulation means no heat crosses the ends, i.e. zero flux, i.e. ux(0, t) = ux(l, t) = 0 (Fourier’s law ties flux to the gradient). The boundary conditions are now on the derivative, which changes the eigenfunctions from sines to cosines but leaves the decay rates untouched.
Worked problem · insulated ends
Solve ut = αuxx for a rod 0 < x < l with insulated ends, given the initial temperature u(x, 0) = u0(1 − x/l).
Spatial problem: X″ + λ2X = 0 with X′(0) = X′(l) = 0. X = cos(λx) satisfies X′ = −λsin(λx), so X′(0) = 0 automatically and X′(l) = 0 forces λn = nπ/l, n = 0, 1, 2, … — note the extra eigenvalue λ0 = 0 with constant eigenfunction. General solution: u(x, t) = a0/2 + ∑n=1∞ an cos(nπx/l) e−αn2π2t/l2 — a half-range cosine series in the initial data (n = 0 does not decay: heat cannot escape, it can only redistribute). Coefficients: a0 = (2/l) ∫0l u0(1 − x/l) dx = (2u0/l)(l − l/2) = u0, so a0/2 = u0/2 (half the initial end temperature — the mean of the initial profile).
an = (2u0/l) ∫0l (1 − x/l) cos(nπx/l) dx = (2u0/l)[0 − (1/l) · (l2/(n2π2))((−1)n − 1)] = (2u0/(n2π2))(1 − (−1)n),
using ∫0l cos(nπx/l)dx = 0 and ∫0l x cos(nπx/l)dx = (l2/(n2π2))((−1)n − 1). So an = 4u0/(n2π2) for odd n, 0 for even n. Solution:u(x, t) = u0/2 + (4u0/π2) ∑m=0∞ (1/(2m+1)2) cos((2m+1)πx/l) e−α(2m+1)2π2t/l2. Check at t = 0, x = 0: u0/2 + (4u0/π2)(1 + 1/9 + 1/25 + …) = u0/2 + (4u0/π2)(π2/8) = u0, the prescribed initial end temperature; and as t → ∞ the temperature approaches u0/2 everywhere — the conserved average.
10Steady state: Laplace’s equation in a rectangle
When the temperature no longer changes with time, ut = 0 and (in two dimensions) the heat equation becomes Laplace’s equation
∂2u/∂x2 + ∂2u/∂y2 = 0
Separation with u = X(x)Y(y) gives X″/X = −Y″/Y; choosing +λ2 on the x-side makes X sinusoidal and Y hyperbolic (sinh/cosh), because the y-direction carries the exponential behaviour. The solution is again a series of separated modes, this time summed to match the boundary values on all four edges.
Figure — steady-state rectangle: three edges held at zero temperature, the top edge at u0. The dashed isotherms show heat flowing from the hot edge into the cold ones.
Worked problem · Laplace equation
Solve ∂2u/∂x2 + ∂2u/∂y2 = 0 in the rectangle 0 < x < l, 0 < y < b, given u = 0 on the edges x = 0, x = l and y = 0, and u = u0 (constant) on the edge y = b.
Separation: u = X(x)Y(y) gives X″/X = −Y″/Y = −λ2 (sign chosen so that X can vanish at x = 0 and x = l). Hence Xn = sin(nπx/l) with λn = nπ/l, and Y satisfies Y″ − λn2Y = 0, so Yn = Ancosh(λny) + Bnsinh(λny). Bottom edge: u(x, 0) = 0 forces Y(0) = 0, i.e. An = 0; write Yn = Bn sinh(nπy/l). Superposition: u(x, y) = ∑n=1∞ Bn sin(nπx/l) sinh(nπy/l). The vertical edges are satisfied term by term. Top edge: at y = b, u0 = ∑n Bn sinh(nπb/l) sin(nπx/l), so the numbers Bnsinh(nπb/l) are the half-range sine coefficients of the constant u0:
Bnsinh(nπb/l) = (2/l) ∫0l u0 sin(nπx/l) dx = (2u0/(nπ))(1 − (−1)n) = 4u0/(nπ) for odd n. Solution:u(x, y) = (4u0/π) ∑m=0∞ [1/(2m+1)] sin((2m+1)πx/l) · sinh((2m+1)πy/l)/sinh((2m+1)πb/l). Check: u = 0 on x = 0, x = l and y = 0 term by term; on y = b the sinh ratio is 1 and the series becomes (4u0/π)∑odd sin(nπx/l)/n, the half-range sine series of the constant u0 on (0, l) — which converges to u0 at every interior point of the top edge.
When more than one edge is non-zero, solve one edge at a time (all others at zero) and add the four solutions — linearity does the rest. This “superposition of edge problems” is the standard exam variant.
11Normal modes, nodes and frequencies
Each term sin(nπx/l)cos(nπct/l) of the string solution is a standing wave. The string never moves at the nodes, x = kl/n for k = 1, …, n − 1, and the motion completes one cycle in time 2l/(nc), so mode n vibrates with frequency fn = nc/(2l). The lowest, f1 = c/(2l) = (1/2l)√(T/ρ), is the fundamental; every higher frequency is an integer multiple — which is why stretched strings produce harmonic overtones and why tightening the string (raising T, hence c) raises the pitch.
Figure — the first three normal modes of a string fixed at both ends. Mode n has n − 1 interior nodes and frequency n times the fundamental f1 = c/(2l).
The same mode structure governs the heat equation, with oscillation replaced by decay: the spatial eigenfunctions sin(nπx/l) and cos(nπx/l) are identical, and the time factor e−αn2π2t/l2 shows that fine spatial detail (large n) dies out fastest. This n2 in the exponent is the mathematical expression of diffusion smoothing.
12Boundary conditions: a practical checklist
Every problem in this unit reduces to the same loop, and the only real decision is which eigenfunctions the boundary conditions select:
Value conditions (u = 0 at both ends: fixed string, zero-temperature ends) → sine eigenfunctions sin(nπx/l), n = 1, 2, … — a half-range sine series in the initial data.
Slope conditions (ux = 0 at both ends: insulated rod, free ends) → cosine eigenfunctions cos(nπx/l) plus the constant mode n = 0 — a half-range cosine series, and the mean value survives for all time.
Mixed conditions (one end held, one insulated) → eigenfunctions sin((n + 1/2)πx/l), n = 0, 1, … ; same machinery, quarter-range orthogonality.
Steady state (Laplace equation) → sinusoidal in one variable, hyperbolic (sinh/cosh) in the other; the hyperbolic direction is the one with the exponential boundary data.
After the series is assembled, spend one line on verification: check every boundary condition and the initial condition at a convenient point (usually an interior point where the resulting numerical series is a known sum). The three problems above — plucked string, heated rod, hot edge — together with their variations cover essentially every question set at this level; what changes from problem to problem is only the initial profile and the Fourier coefficients it produces.