Separation of Variables in Cartesian Coordinates

The uniqueness theorems handed us an extraordinary license: any function that satisfies Laplace's equation and matches the boundary data — found by any means whatsoever — is the potential. What they did not hand us is merchandise: stare at a grounded slot with a charged strip across its mouth, and no amount of theorem-quoting produces V(x,y)V(x,y). Separation of variables is the factory that finally delivers — the most systematic solution technique in this part of physics, and, because the same move solves the heat equation, the vibrating membrane, and the Schrödinger equation in a box, arguably the most reused calculation in a physicist's education. The method opens with what looks like an unforgivable cheat: we assume the solution is a product of one-variable functions, V=X(x)Y(y)V=X(x)Y(y). The PDE promptly shatters into ordinary differential equations linked by separation constants; the boundary conditions select the allowed eigenfunctions and eigenvalues, producing oscillatory dependence in the bounded directions and exponential or hyperbolic dependence in the remaining direction. Superposition of these separated solutions then forms a Fourier series capable of representing the relevant boundary data. The cheat is redeemed at the end: completeness guarantees the sum can match the boundary, and uniqueness guarantees that once it does, we are finished. Cartesian coordinates are where the machinery runs cleanest — slots, channels, and boxes bounded by planes — and where the sines and exponentials wear no disguise. Master the logic here and the spherical and cylindrical versions are the same play with a different cast.

Key takeaways
  • To solve ∇2V=0\nabla^2V=0 in rectangular geometry, assume a product V=X(x)Y(y)Z(z)V=X(x)Y(y)Z(z); the PDE splits into ODEs linked by separation constants that must sum to zero.
  • The zero-sum forces a split personality: some factors oscillate, at least one decays or grows. Grounded wall-pairs select the sinusoids and quantize k=nπ/ak=n\pi/a; the leftover direction gets the exponentials.
  • Superposition plus completeness of the sine family lets the mode-sum match any boundary potential; Fourier's trick (sine orthogonality) extracts each coefficient by an integral, and the uniqueness theorems (their own article) certify the result as the answer.
  • The classic slot — grounded plates at y=0,ay=0,a, a strip at V0V_0 across x=0x=0 — yields V=4V0π∑n odd1ne−nπx/asin⁡(nπy/a)V=\frac{4V_0}{\pi}\sum_{n\,\text{odd}}\frac1n e^{-n\pi x/a}\sin(n\pi y/a), which resums to 2V0πarctan⁡[sin⁡(πy/a)/sinh⁡(πx/a)]\frac{2V_0}{\pi}\arctan[\sin(\pi y/a)/\sinh(\pi x/a)].
  • Mode nn decays as e−nπx/ae^{-n\pi x/a}: one slot-width deep the potential is a single pure sine at 4.3% strength — fine boundary detail is a near-field phenomenon.
  • Key idea: assume V=X(x)Y(y)Z(z)V=X(x)Y(y)Z(z); the PDE splits into ODEs whose solutions are sinusoids on coordinates with homogeneous boundaries and exponentials on the remaining coordinate; superpose the modes into a Fourier series and fix the coefficients by orthogonality on the inhomogeneous boundary.
The core insight

Assume V=X(x)Y(y)Z(z)V=X(x)Y(y)Z(z); the PDE splits into ordinary differential equations, with the boundary conditions selecting sinusoidal eigenfunctions in the bounded directions and exponential or hyperbolic dependence in the remaining direction. Superpose the separated modes into a Fourier series, and determine their coefficients by orthogonality from the inhomogeneous boundary condition.

Where this lives today

Separation of variables graduated from hand technique to industrial infrastructure. Spectral methods — the workhorses of weather models, turbulence simulation, and gravitational-wave source modelling — are this article's move at scale: expand the unknown in eigenfunctions adapted to the geometry, convert the PDE to algebra on coefficients, and let the fast Fourier transform apply Fourier's trick to millions of modes in milliseconds. Every FFT-based Poisson solver inside a plasma or galaxy-formation code is equation (5) executed on a grid, and the exponential convergence that made three terms suffice in worked example 1 is why spectral codes crush finite differences whenever the geometry cooperates. Where it does not, finite-element solvers take over — and this article still supervises: closed forms like the slot's arctangent are the benchmarks against which commercial field solvers are validated, an exact harmonic function leaving error nowhere to hide. The slot's eigenfunctions lead a second life in microwave engineering: the sin⁡(nπy/a)\sin(n\pi y/a) patterns are the transverse mode profiles of rectangular waveguides, where oscillate-versus-decay returns as propagating modes versus evanescent ones below cutoff. Griffiths' chalkboard slot is, mode for mode, the mathematics inside every radar feed.

The physical picture

Here is the geometry that carries the whole article — Griffiths' slot. Two semi-infinite conducting plates lie parallel at y=0y=0 and y=ay=a, both grounded. The open end at x=0x=0 is closed by a strip, insulated from the plates by hairline gaps and held at potential V0V_0. The interior is charge-free, so VV obeys Laplace's equation there, and far down the channel the potential must fade to nothing.

Figure
The slot — two grounded plates, a hot strip, and a potential that must fade down the channel
the boundary-value problem this article solves end to end V = 0 (grounded plate at y = a) V = 0 (grounded plate at y = 0) strip at x = 0 held at V = V0 V → 0 as x → ∞ a x y red dots: hairline insulating gaps between strip and plates

Between the grounded plates the potential behaves like a plucked string: pinned to zero at y=0y=0 and y=ay=a, whatever it does in between is a standing wave with nodes at the walls — sin⁡(nπy/a)\sin(n\pi y/a), a whole number of half-wavelengths fitting the gap. Perpendicular to the plates there is no second wall to support another oscillatory mode; instead, the condition V→0V\to0 as x→∞x\to\infty, together with Laplace's equation, selects exponential decay. As Laplace's Equation established, the direction-curvatures must cancel. A sine curves toward zero, so if VV bends like a sine across the slot it must bend the other way along it — exponential behavior. Oscillation in one direction is paid for by decay in the other. The payment is made at a precise exchange rate — the most physical fact in the article. The mode with nn half-wavelengths across the slot decays along it as e−nπx/ae^{-n\pi x/a}: the wigglier the pattern, the faster it dies. One slot-width in, the fundamental keeps e−π≈4.3%e^{-\pi}\approx4.3\% of its strength; the n=3n=3 harmonic keeps e−3π≈0.008%e^{-3\pi}\approx0.008\% — effectively gone. Whatever jagged potential the strip imposes at the mouth, only the smoothest component quickly comes to dominate a short distance in. This is why sharp electrode detail blurs with distance, why fringing fields heal within about one plate-gap — the mean-value smoothness of harmonic functions made quantitative. The strategy is now visible before any algebra: build the pinned standing waves the walls allow, attach the decaying exponential Laplace's equation demands, and blend them to reproduce whatever the strip does at the mouth. The resulting equipotential map — the payoff picture — shows exactly the predicted healing: contours crowd against the strip and relax into the smooth single-hump fundamental within a width.

Figure
Equipotentials in the slot, from the closed-form solution — sharp near the strip, smooth within a width
where the potential stands at each depth (fractions of V0) 0.8 0.5 0.2 0.05 deepest reach of each contour on the centreline: 0.10a, 0.28a, 0.59a, 1.03a — computed from the arctangent closed form derived below

From one PDE to ordinary equations

Inside the slot — and inside any charge-free region bounded by coordinate planes — the governing equation is the one inherited from Laplace's Equation, written in the coordinates that match the walls:

∇2V=∂2V∂x2+∂2V∂y2+∂2V∂z2=0(1)\nabla^2 V=\frac{\partial^2 V}{\partial x^2}+\frac{\partial^2 V}{\partial y^2}+\frac{\partial^2 V}{\partial z^2}=0 \qquad (1)

where: VV — the electrostatic potential in the charge-free region; x,y,zx,y,z — Cartesian coordinates aligned with the bounding planes. The alignment is the point: each boundary condition then constrains one coordinate at a time ("V=0V=0 at y=0y=0"), exactly what a one-variable factor can absorb. Geometry chooses the coordinates; the coordinates choose the special functions. The opening move is the product ansatz — the educated gamble that solutions exist of the form

V(x,y,z)=X(x) Y(y) Z(z)(2)V(x,y,z)=X(x)\,Y(y)\,Z(z) \qquad (2)

where: X,Y,ZX,Y,Z — functions of a single variable each, to be determined. Honesty about its status: the general solution is not a product, and the slot's final answer will visibly fail to be one — we are really hunting for a complete set of product-shaped building blocks (the warning box settles the accounts). The slot needs only the two-dimensional version V=X(x)Y(y)V=X(x)Y(y), since nothing depends on the coordinate running along the strip.

Derivation AWhy the product ansatz shatters the PDE into ordinary equations

The goal is the engine of the whole method: substituting V=X(x)Y(y)V=X(x)Y(y) into Laplace's equation forces each factor to satisfy an ordinary differential equation, with a constant coupling them — and the sign of that constant makes one factor oscillate while the other decays. The strategy: substitute, then isolate the xx-dependence on one side of an equals sign and the yy-dependence on the other, and ask what kind of function of xx can equal a function of yy. The step to watch is the leap from "these are equal" to "both are constant" — it looks like sleight of hand and is actually the theorem.

Step 1. Substitute the product into ∂x2V+∂y2V=0\partial_x^2V+\partial_y^2V=0 — each derivative sees only its own factor, giving YX′′+XY′′=0YX''+XY''=0 — then divide through by V=XYV=XY and shuffle:

1Xd2Xdx2=−1Yd2Ydy2\frac{1}{X}\frac{\mathrm{d}^2X}{\mathrm{d}x^2}=-\frac{1}{Y}\frac{\mathrm{d}^2Y}{\mathrm{d}y^2}

Step 2. Stare at what has happened: the left side is a function of xx alone, the right of yy alone — and they are equal for every (x,y)(x,y) in the region.

Step 3. Freeze yy and let xx roam: the right side does not move, so the left side cannot vary at all. It is a constant, and by the mirror argument so is the right side, the same constant. Call it k2k^2:

d2Xdx2=k2X,d2Ydy2=−k2Y\frac{\mathrm{d}^2X}{\mathrm{d}x^2}=k^2X,\qquad \frac{\mathrm{d}^2Y}{\mathrm{d}y^2}=-k^2Y

Why this is the crux: a function of xx that equals a function of yy is a function of neither — independent variables can only agree on a number. That number, the separation constant, is the sole thread still tying the two ODEs together.

Step 4. Read the sign structure. The two constants are equal and opposite, so the factors cannot both oscillate and cannot both decay. With k2>0k^2>0 as written, X=Aekx+Be−kxX=Ae^{kx}+Be^{-kx} while Y=Csin⁡ky+Dcos⁡kyY=C\sin ky+D\cos ky; k2<0k^2<0 swaps the roles. Which direction gets which is not ours to decide: the slot's YY must vanish at two walls, and no real exponential combination vanishes twice — the oscillatory factor always belongs to the direction pinned at both ends. In three dimensions the same argument yields three constants obeying kx2+ky2+kz2=0k_x^2+k_y^2+k_z^2=0, so at least one factor is always exponential — three sines cannot conspire to cancel curvature.

The derivation compresses into a template every coordinate system fills with its own cast. In three dimensions the separated system reads

X′′X=−kx2=λx,Y′′Y=−ky2=λy,Z′′Z=−kz2=λz,λx+λy+λz=0(3)\frac{X''}{X}=-k_x^2=\lambda_x,\qquad \frac{Y''}{Y}=-k_y^2=\lambda_y,\qquad \frac{Z''}{Z}=-k_z^2=\lambda_z,\qquad \boxed{\lambda_x+\lambda_y+\lambda_z=0} \qquad (3)

where: λx,λy,λz\lambda_x,\lambda_y,\lambda_z — the separation constants, each with dimensions of inverse length squared. When a separation constant is negative, it is convenient to write it as −k2-k^2, with k>0k>0 having dimensions of inverse length; the corresponding factor is then sinusoidal. A positive separation constant produces exponential or hyperbolic dependence. The zero-sum constraint expresses the curvature trade-off imposed by Laplace's equation. The signs of the separation constants determine whether each factor is oscillatory or exponential, while the boundary conditions determine which sign is physically admissible. The most useful cases are summarized below:

the boundary situation on a coordinatethe factor you needwhy
grounded walls at both endssin⁡(nπy/a)\sin(n\pi y/a), k=nπ/ak=n\pi/a quantizedonly sinusoids vanish twice; wall spacing fixes the wavelengths
region runs to infinity, V→0V\to0e−kxe^{-kx} onlythe growing branch is evicted at infinity
finite run, live electrode at one endsinh⁡kx\sinh kx, cosh⁡kx\cosh kx combinationsboth exponentials kept, recombined to fit each end
no oscillation demanded (k=0k=0 sector)A+BxA+Bxthe ideal parallel-plate potential hiding inside the method

A single product mode is far too rigid to match a real boundary function, and here the linearity of (1) earns its keep: any sum of solutions is a solution, so the honest general solution in the slot superposes every allowed mode,

V(x,y)=∑n=1∞Cn e−nπx/a sin⁡ ⁣(nπya)(4)V(x,y)=\sum_{n=1}^{\infty} C_n\,e^{-n\pi x/a}\,\sin\!\Big(\frac{n\pi y}{a}\Big) \qquad (4)

where: CnC_n — one free coefficient per standing-wave mode. The two hard questions about (4) have named answers. Can such a sum match an arbitrary strip potential? Yes — the completeness of the sine eigenfunctions. Is a match the answer? Yes — the first uniqueness theorem, recalled by name from Uniqueness Theorems for the Potential. All that remains is finding the CnC_n, and orthogonality makes that mechanical:

Cn=2a∫0aV0(y) sin⁡ ⁣(nπya) dy(5)C_n=\frac{2}{a}\int_0^a V_0(y)\,\sin\!\Big(\frac{n\pi y}{a}\Big)\,\mathrm{d}y \qquad (5)

where: V0(y)V_0(y) — the prescribed potential on the strip at x=0x=0. Equation (5) is Fourier's trick: distinct sines integrate against each other to zero, so multiplying the boundary condition by a chosen sine and integrating filters out one coefficient at a time — the dot-product move of vector algebra, executed in a function space. The derivation below runs the whole slot problem, trick included.

Go deeper · Derivation B · 2 minThe slot problem end to end, from boundary conditions to Fourier coefficients
Derivation BThe slot problem end to end, from boundary conditions to Fourier coefficients

The goal is the complete solution of the hero geometry: grounded plates at y=0y=0 and y=ay=a, the strip across x=0x=0 at constant V0V_0, and V→0V\to0 down the channel — the problem Griffiths §3.3.1 made canonical. The strategy is the method's standard rhythm: homogeneous boundaries select and quantize the eigenfunctions, infinity prunes the exponentials, superpose, then spend the one inhomogeneous condition on the coefficients. Watch each of the four boundary conditions get consumed exactly once — a well-posed problem leaves none over and comes up none short.

Step 1. Assign the signs. The conditions are: V=0V=0 at y=0y=0; V=0V=0 at y=ay=a; V=V0V=V_0 at x=0x=0 for 0<y<a0<y<a; V→0V\to0 as x→∞x\to\infty. The yy-direction is pinned at both ends, so YY oscillates: Y′′=−k2YY''=-k^2Y, forcing X′′=+k2XX''=+k^2X with X=Aekx+Be−kxX=Ae^{kx}+Be^{-kx}.

Step 2. Spend the grounded walls. Y(0)=0Y(0)=0 kills the cosine; Y(a)=0Y(a)=0 then demands sin⁡ka=0\sin ka=0, so k=nπ/ak=n\pi/a with n=1,2,3,…n=1,2,3,\dots (negative nn duplicates, n=0n=0 is trivial). Why quantization appears: a whole number of half-wavelengths must fit between the walls, like a clamped string. Boundary conditions on a finite interval always discretize the separation constant — the mechanism that quantizes energies in the quantum square well.

Step 3. Spend the condition at infinity: the branch e+nπx/ae^{+n\pi x/a} blows up down the channel, so its coefficient vanishes. Each surviving mode is e−nπx/asin⁡(nπy/a)e^{-n\pi x/a}\sin(n\pi y/a) — the decay rate slaved to the transverse wavenumber, higher nn dying faster.

Step 4. Superpose and face the last wall. Linearity assembles V(x,y)=∑nCne−nπx/asin⁡(nπy/a)V(x,y)=\sum_n C_n e^{-n\pi x/a}\sin(n\pi y/a); setting x=0x=0 turns the final condition into a pure expansion problem, V(0,y)=V0(y)=∑nCnsin⁡(nπy/a)V(0,y)=V_0(y)=\sum_n C_n\sin(n\pi y/a) for 0<y<a0<y<a. The expansion is required on the open interval 0<y<a0<y<a; the idealized endpoint values are not imposed because the strip is separated from the grounded plates by the hairline insulating gaps.

Step 5. Fourier's trick. Multiply by sin⁡(mπy/a)\sin(m\pi y/a) and integrate across the slot; the orthogonality relation

∫0asin⁡ ⁣(nπya)sin⁡ ⁣(mπya) dy=a2 δnm\int_0^a \sin\!\Big(\frac{n\pi y}{a}\Big)\sin\!\Big(\frac{m\pi y}{a}\Big)\,\mathrm{d}y=\frac{a}{2}\,\delta_{nm}

annihilates every term except n=mn=m, leaving Cm=2a∫0aV0(y)sin⁡(mπy/a) dyC_m=\frac{2}{a}\int_0^a V_0(y)\sin(m\pi y/a)\,\mathrm{d}y — equation (5).

Step 6. Evaluate: ∫0asin⁡(nπy/a) dy=anπ(1−cos⁡nπ)\int_0^a\sin(n\pi y/a)\,\mathrm{d}y=\frac{a}{n\pi}(1-\cos n\pi) is zero for even nn, 2a/nπ2a/n\pi for odd. Hence Cn=4V0/nπC_n=4V_0/n\pi for odd nn only, and

V(x,y)=4V0π∑n=1,3,5,…1n e−nπx/a sin⁡ ⁣(nπya)V(x,y)=\frac{4V_0}{\pi}\sum_{n=1,3,5,\dots}\frac{1}{n}\,e^{-n\pi x/a}\,\sin\!\Big(\frac{n\pi y}{a}\Big)

Why only odd harmonics: the boundary data is symmetric about the midplane y=a/2y=a/2, and even-nn sines are antisymmetric about it — the geometry's symmetry pre-filters the spectrum before any integral is computed. *Numerically, at x=y=a/2x=y=a/2 with V0=100V_0=100 V the partial sums through n=1,3,5n=1,3,5 give 26.46826.468, 26.08726.087, 26.09726.097 V, converging on the closed form's 26.09626.096 V — worked example 1.*

For the constant strip the series hides a small miracle: it can be summed exactly. The closed form is worth owning — a boundary-value problem you can hold in one hand, and a benchmark for every numerical solver you will ever write.

Go deeper · Derivation C · 1 minResumming the slot series into an arctangent
Derivation CResumming the slot series into an arctangent

The goal is to collapse the infinite series into V=2V0πarctan⁡[sin⁡(πy/a)/sinh⁡(πx/a)]V=\frac{2V_0}{\pi}\arctan[\sin(\pi y/a)/\sinh(\pi x/a)]. The strategy is a complex-variable classic: each term is the imaginary part of znz^n for one complex number zz, so the odd-nn sum of zn/nz^n/n becomes a logarithm, whose imaginary part is an arctangent. The watch-point is the polar bookkeeping — everything hinges on ∣z∣<1|z|<1, which the decay factor guarantees for all x>0x>0.

Step 1. Set z=e−πx/aeiπy/az=e^{-\pi x/a}e^{i\pi y/a}, so zn=e−nπx/aeinπy/az^n=e^{-n\pi x/a}e^{in\pi y/a} and the series is an imaginary part:

V=4V0π Im∑n oddznnV=\frac{4V_0}{\pi}\,\mathrm{Im}\sum_{n\,\text{odd}}\frac{z^n}{n}

Step 2. Sum the odd-power log series. From −ln⁡(1−z)=∑n≥1zn/n-\ln(1-z)=\sum_{n\ge1}z^n/n, subtracting the same series at −z-z cancels the even powers:

∑n oddznn=12ln⁡ ⁣(1+z1−z)\sum_{n\,\text{odd}}\frac{z^n}{n}=\frac{1}{2}\ln\!\Big(\frac{1+z}{1-z}\Big)

Step 3. Take the imaginary part — the phase of the log's argument. With Im z=e−πx/asin⁡(πy/a)\mathrm{Im}\,z=e^{-\pi x/a}\sin(\pi y/a) and ∣z∣2=e−2πx/a|z|^2=e^{-2\pi x/a}, this gives V=2V0πarctan⁡[2e−πx/asin⁡(πy/a)/(1−e−2πx/a)]V=\frac{2V_0}{\pi}\arctan\big[2e^{-\pi x/a}\sin(\pi y/a)\big/\big(1-e^{-2\pi x/a}\big)\big]. Why the phase formula holds: 1+z1−z=(1+z)(1−zˉ)∣1−z∣2\frac{1+z}{1-z}=\frac{(1+z)(1-\bar z)}{|1-z|^2} has a real positive denominator, so the phase is the arctangent of 2 Im z2\,\mathrm{Im}\,z over 1−∣z∣21-|z|^2 — both positive in the slot, keeping the arctangent on its principal branch.

Step 4. Recognize the hyperbolic sine. Divide top and bottom by 2e−πx/a2e^{-\pi x/a}: the denominator becomes (eπx/a−e−πx/a)/2=sinh⁡(πx/a)(e^{\pi x/a}-e^{-\pi x/a})/2=\sinh(\pi x/a), giving Griffiths' Eq. 3.36:

V(x,y)=2V0π arctan⁡ ⁣(sin⁡(πy/a)sinh⁡(πx/a))V(x,y)=\frac{2V_0}{\pi}\,\arctan\!\Big(\frac{\sin(\pi y/a)}{\sinh(\pi x/a)}\Big)

Step 5. Interrogate the limits. As x→0+x\to0^+ the arctangent tends to π/2\pi/2, so V→V0V\to V_0 across the strip; as x→∞x\to\infty the argument dies as e−πx/ae^{-\pi x/a} and V→0V\to0; on the plates sin⁡(πy/a)=0\sin(\pi y/a)=0 gives V=0V=0 identically. All four boundary conditions, read off by eye. As a numerical spot-check, at r=e−0.37πr=e^{-0.37\pi}, θ=0.61π\theta=0.61\pi both sides of the resummation identity equal 0.2889940.288994; the closed form at x=y=a/2x=y=a/2, V0=100V_0=100 V gives 200πarctan⁡(1/2.3013)=26.096\frac{200}{\pi}\arctan(1/2.3013)=26.096 V, matching the series.

One dimension remains to be restored. In a genuinely three-dimensional problem — the box of worked example 2 — two coordinates carry grounded wall-pairs, so two factors oscillate with independently quantized wavenumbers, and the zero-sum rule (3) fixes the third constant to γnm2=kx2+ky2>0\gamma_{nm}^2=k_x^2+k_y^2>0: hyperbolic. For a box 0<x,y,z<a0<x,y,z<a with five faces grounded and the lid z=az=a held at V0(x,y)V_0(x,y),

V=∑n,m=1∞Cnm sin⁡ ⁣(nπxa)sin⁡ ⁣(mπya) sinh⁡(γnmz)sinh⁡(γnma),γnm=πan2+m2(6)V=\sum_{n,m=1}^{\infty} C_{nm}\,\sin\!\Big(\frac{n\pi x}{a}\Big)\sin\!\Big(\frac{m\pi y}{a}\Big)\,\frac{\sinh(\gamma_{nm}z)}{\sinh(\gamma_{nm}a)},\qquad \gamma_{nm}=\frac{\pi}{a}\sqrt{n^2+m^2} \qquad (6)

where: γnm\gamma_{nm} — the longitudinal inverse-length scale set by the (n,m)(n,m) transverse mode; the sinh⁡\sinh ratio vanishes on the grounded floor and equals one on the lid, so the live condition falls entirely on the coefficients. Even the gentlest pattern (1,1)(1,1) penetrates less far than the slot's fundamental (γ11=2 π/a\gamma_{11}=\sqrt2\,\pi/a). Fourier's trick, applied once in xx and once in yy, extracts

Cnm=4a2∫0a ⁣ ⁣∫0aV0(x,y) sin⁡ ⁣(nπxa)sin⁡ ⁣(mπya) dx dy(7)C_{nm}=\frac{4}{a^2}\int_0^a\!\!\int_0^a V_0(x,y)\,\sin\!\Big(\frac{n\pi x}{a}\Big)\sin\!\Big(\frac{m\pi y}{a}\Big)\,\mathrm{d}x\,\mathrm{d}y \qquad (7)

where: the prefactor 4/a24/a^2 is two copies of the slot's 2/a2/a, one per orthogonality integral. For a uniform lid both integrals repeat Step 6 of the slot derivation, giving Cnm=16V0/π2nmC_{nm}=16V_0/\pi^2nm for n,mn,m both odd, zero otherwise. The same logic runs in curved geometries, where walls trade sines for new special functions — the business of Separation of Variables in Spherical Coordinates and Separation of Variables in Cylindrical Coordinates, the next two articles, with Legendre Polynomials supplying the spherical cast.

Limiting cases

caseresultmeaning
deep in the slot, x≳ax\gtrsim aV≈4V0πe−πx/asin⁡(πy/a)V\approx\frac{4V_0}{\pi}e^{-\pi x/a}\sin(\pi y/a)single-mode dominance: one width in, the fundamental mode is about 16001600 times larger than the n=3n=3 mode in amplitude
at the mouth, x→0+x\to0^+series →V0\to V_0 for 0<y<a0<y<acompleteness at work: the sine series reconstructs the constant boundary value on the open interval, with the endpoint discontinuities set by the grounded plates
on the plates, y=0,ay=0,aV=0V=0 exactly, term by termeigenfunctions carry the homogeneous conditions identically
slot width a→∞a\to\inftyquantized sum →\to integral over kkFourier series matures into the Fourier transform; discreteness was the walls' doing
geometry uniform in zz2D problem: one sine, one exponentialthe slot itself; adding a zz-wall pair upgrades sums to double sums as in (6)

Worked examples

1 · The slot, evaluated: series versus closed form (confidence builder)

A slot with plate separation a=2.0a=2.0 cm has its strip held at V0=100V_0=100 V. Find the potential at (x,y)=(1.0 cm, 1.0 cm)(x,y)=(1.0\ \mathrm{cm},\,1.0\ \mathrm{cm}) from the series and from the closed form, then the centreline potential a full width in.

Step 1. In natural units x/a=y/a=1/2x/a=y/a=1/2, so each term needs e−nπ/2e^{-n\pi/2} and sin⁡(nπ/2)\sin(n\pi/2). The coefficients are Cn=4V0/nπC_n=4V_0/n\pi: C1=127.32C_1=127.32 V, C3=42.44C_3=42.44 V, C5=25.46C_5=25.46 V — a slowly decaying spectrum at the mouth.

Step 2. Sum term by term: n=1n=1 gives 127.32×e−π/2=127.32×0.20788=+26.468127.32\times e^{-\pi/2}=127.32\times0.20788=+26.468 V; n=3n=3 gives 42.44×e−3π/2×(−1)=−0.38142.44\times e^{-3\pi/2}\times(-1)=-0.381 V; n=5n=5 gives 25.46×3.882×10−4=+0.01025.46\times3.882\times10^{-4}=+0.010 V. Running totals: 26.468→26.087→26.09726.468\to26.087\to26.097 V — three terms and the answer is set to better than a millivolt.

Step 3. Check against the closed form. With sin⁡(πy/a)=1\sin(\pi y/a)=1 and sinh⁡(π/2)=2.3013\sinh(\pi/2)=2.3013,

V=2(100)πarctan⁡ ⁣(12.3013)=63.662×0.40992=26.10 VV=\frac{2(100)}{\pi}\arctan\!\Big(\frac{1}{2.3013}\Big)=63.662\times0.40992=\boxed{26.10\ \mathrm{V}}

The series' 26.09726.097 V and the arctangent's 26.09626.096 V agree — the same function in two costumes.

Step 4. Go a full width deep: (x,y)=(2.0, 1.0)(x,y)=(2.0,\,1.0) cm. The closed form gives 200πarctan⁡(1/sinh⁡π)=63.662×arctan⁡(0.08659)=5.50 V\frac{200}{\pi}\arctan(1/\sinh\pi)=63.662\times\arctan(0.08659)=\boxed{5.50\ \mathrm{V}}; the n=1n=1 term alone gives 127.32 e−π=5.5022127.32\,e^{-\pi}=5.5022 V — high by 0.06%. One width in, the potential has forgotten everything about the strip except its fundamental: a pure sine arch at 5.5% of V0V_0.

2 · The cube's centre: symmetry versus the double series (exam level)

A cubical box of side aa has five faces grounded and the sixth held at V0=600V_0=600 V. Find the potential at the centre (a/2,a/2,a/2)(a/2,a/2,a/2) — first without solving anything, then by summing the double series of equation (6) as a check.

Step 1. The symmetry argument. Take six copies of the cube, each with a different single face at V0V_0 and the rest grounded. Superposing all six gives a cube with every face at V0V_0 — whose solution is simply V=V0V=V_0 throughout, since the constant is harmonic and matches the boundary (the first uniqueness theorem, recalled by name, forbids any rival).

Step 2. The centre is the one point every cube rotation fixes, and the rotations map the six single-face problems into one another, so each contributes equally there. Six equal shares summing to V0V_0 leave

V(centre)=V06=100 VV(\mathrm{centre})=\frac{V_0}{6}=\boxed{100\ \mathrm{V}}

exact, with no series in sight — superposition and uniqueness wielded as weapons.

Step 3. Now make the machine confirm it. For the uniform lid, equation (7) gives Cnm=16V0/π2nmC_{nm}=16V_0/\pi^2nm for n,mn,m odd. At the centre, sin⁡(nπ/2)sin⁡(mπ/2)=±1\sin(n\pi/2)\sin(m\pi/2)=\pm1 and the height factor is sinh⁡(γnma/2)/sinh⁡(γnma)\sinh(\gamma_{nm}a/2)/\sinh(\gamma_{nm}a). The leading term has γ11a=2 π=4.4429\gamma_{11}a=\sqrt2\,\pi=4.4429, giving sinh⁡(2.2214)/sinh⁡(4.4429)=0.10719\sinh(2.2214)/\sinh(4.4429)=0.10719, so

V11=16(600)π2×0.10719=1.6211×600×0.10719=104.26 VV_{11}=\frac{16(600)}{\pi^2}\times0.10719=1.6211\times600\times0.10719=104.26\ \mathrm{V}

— within 4.3% of the truth one term into a double series, because γ11\gamma_{11} suppresses everything else brutally.

Step 4. Add shells of odd modes: through n,m≤3n,m\le3 the sum is 99.88799.887 V; through 55, 100.0035100.0035 V; through 77, 99.9998899.99988 V; through 1111, 100.0000100.0000 V. The double series converges, alternating gently, to V0/6=100 V\boxed{V_0/6=100\ \mathrm{V}} — vindicating the symmetry argument to as many digits as we care to take. When an exact shortcut and the general machine both exist, run both: agreement is the cheapest error-detection in physics.

Origins · 1 minJoseph Fourier and how this was discovered
JF
Joseph Fourier
1768–1830 · Auxerre, Grenoble, Paris — heat, Egypt, and a scandalous series

Fourier was a tailor's son, orphaned at nine, who nearly became a priest before the Revolution swept him into mathematics, into prison twice, and then into Napoleon's Egyptian expedition as scientific secretary. Appointed prefect of Isère, he drained swamps by day and studied heat by night — and in 1807 delivered to the Paris Institute a memoir claiming that any function could be written as a sum of sines and cosines. The committee — Lagrange and Laplace among them — refused it; Lagrange considered the claim unproven and unbelievable. Fourier reworked it, won the Institute's 1811 prize (with reservations attached), and published the full theory in 1822 as the Théorie analytique de la chaleur, the book in which separation of variables and the coefficient-extraction trick bearing his name became standard equipment. He was elected the Academy's permanent secretary, and in 1824 identified what we now call the greenhouse effect. The rigor the committee demanded arrived a generation later, with Dirichlet — but the physics never had to wait.

History
1807
— Fourier's memoir on heat claims arbitrary functions expand in trigonometric series; the Institute committee of Lagrange and Laplace declines to publish it.
1811
— A reworked version wins the Institute's grand prize, with an official note deploring its lack of rigor.
1822
— The Théorie analytique de la chaleur appears: separation of variables and coefficient extraction become the standard method for linear PDEs.
1829
— Dirichlet publishes the first rigorous convergence conditions for Fourier series, supplying the proof the 1807 committee had demanded.
1899
— Gibbs explains the 9% overshoot of truncated Fourier series at jumps — the ringing in every partial sum at the slot's mouth.

Going further

References. Griffiths, Introduction to Electrodynamics, 4th ed., §3.3.1 · Jackson, Classical Electrodynamics, 3rd ed., §2.9 · Purcell & Morin, Electricity and Magnetism, 3rd ed., §3.7 · Zangwill, Modern Electrodynamics, §7.5 Key self-consistency checks: the separation constraint kx2+ky2+kz2=0k_x^2+k_y^2+k_z^2=0 follows directly from the product ansatz; the Fourier coefficient formula Cn=2a∫0aV0sin⁡(nπx/a)dxC_n=\tfrac{2}{a}\int_0^a V_0\sin(n\pi x/a)\mathrm{d}x rests on ∫0asin⁡2(nπx/a) dx=a/2\int_0^a\sin^2(n\pi x/a)\,\mathrm{d}x=a/2; the resummation identity ∑n oddn−1rnsin⁡nθ=12arctan⁡[2rsin⁡θ/(1−r2)]\sum_{n\,\mathrm{odd}}n^{-1}r^n\sin n\theta=\tfrac12\arctan[2r\sin\theta/(1-r^2)] underlies the arctangent closed form; and the box solution satisfies V→0V\to0 on the grounded faces and V→V0V\to V_0 on z=cz=c.

Builds on: Laplace's Equation · Boundary Conditions for the Potential · Uniqueness Theorems for the Potential Leads to: Separation of Variables in Spherical Coordinates · Separation of Variables in Cylindrical Coordinates · Legendre Polynomials

How can we assume V is a product when the final answer clearly is not one?

Because the assumption is a recruiting poster, not a description. The method hunts for product-shaped building blocks; the theorems do the real work: completeness guarantees the blocks span everything the boundary can demand, so some superposition matches the data, and the first uniqueness theorem certifies that match as the only solution. The bricks are products; the house is not; the house is still built entirely of bricks. Compare vectors: "the answer points along an axis" would be false, but expanding it in axis-aligned unit vectors is exact.

Why does a function of x equalling a function of y force both to be constant?

Because xx and yy are independent — you can change one while nailing the other down. If f(x)=g(y)f(x)=g(y) everywhere, pick any fixed y0y_0: then f(x)=g(y0)f(x)=g(y_0) for every xx, so ff is constant, and gg equals the same constant. The step fails only where the variables are not independent (on a boundary curve relating them), which is why the argument runs in the region's interior. This little move, not the algebra around it, is the entire licence for replacing a PDE by ODEs.

How do I decide which coordinate gets the sines and which gets the exponentials?

You do not decide — you read it off the boundary conditions. A factor that must vanish at two walls has to pass through zero twice, and no real combination Aekx+Be−kxAe^{kx}+Be^{-kx} does that (at most one zero). So the doubly-pinned direction takes the sinusoids, quantized by the wall spacing, and the zero-sum rule forces the remaining direction into exponentials: the decaying branch alone if the region runs to infinity, both branches as sinh⁡\sinh/cosh⁡\cosh if it is finite. Guessing backwards is self-punishing — you will be demanding two zeros of an exponential, and no constants will comply.

What happens at the corners of the slot, where the strip at V0 meets the grounded plates?

The boundary data itself is discontinuous there — V0V_0 jammed against 00 — so no continuous function can honor both values at the corner points. The series does the best mathematics allows: it converges to the true potential at every interior point, and on the mouth line to V0V_0 everywhere except the corners, where it splits the difference. Truncated sums also show the Gibbs phenomenon — a roughly 9% overshoot that crowds toward the corners but never shrinks. None of this contaminates the interior: one step in, the exponentials smooth everything.

How many terms of the series do I actually need in practice?

Depth decides. At depth xx, mode nn arrives pre-multiplied by e−nπx/ae^{-n\pi x/a}, so successive odd terms are suppressed by e−2πx/ae^{-2\pi x/a} — a factor of about 535 at x=ax=a, about 23 at x=a/2x=a/2. Half a width in, three terms gave millivolt accuracy in worked example 1; a full width in, one term is good to 0.06%. Only near the mouth is convergence slow, needing roughly a/xa/x terms to rebuild the discontinuous edge. Fine boundary detail is a near-field phenomenon; the far field is always cheap.

Does separation of variables work when the region contains charge?

Not directly — the method solves Laplace's equation, and the superposition step leans on homogeneity. With charge present you solve Poisson's equation instead: find any particular solution producing the source term, subtract it, and the remainder satisfies Laplace's equation with adjusted boundary data — which this article's machinery handles. The heavier artillery for sources, Green functions, comes later in the chapter, and eigenfunction expansions reappear there: the sine family that diagonalized the slot also diagonalizes the point-source problem.

Is this the same separation of variables used in quantum mechanics?

The very same, so the investment pays twice. The time-independent Schrödinger equation in a rectangular box separates identically: doubly-pinned directions produce quantized sinusoids — the particle-in-a-box states, with the slot's own nπ/an\pi/a wavenumbers — and orthogonality extracts expansion coefficients exactly as Fourier's trick extracted the CnC_n here. The differences are bookkeeping: quantum problems separate time from space, and the separation constant becomes the energy. When quantum courses reach spherical potentials, the Legendre cast introduced two articles from now walks on stage again, unchanged.

Before this

Where this leads