Laplace's Equation by Separation of Variables

1. The idea

In a charge-free region the electrostatic potential satisfies Laplace's equation, ∇2V=0\nabla^2 V = 0. When every boundary of the region lies on a surface where one coordinate is constant, look for solutions that are products of single-variable functions.


Each factor then satisfies an ordinary differential equation, and sums of such products can match the boundary data. For prescribed potential on the boundary, the uniqueness theorem guarantees a unique solution.


If only normal derivatives are prescribed on a connected region, the potential is determined up to an additive constant.

2. Cartesian coordinates in two dimensions

For a potential independent of zz, try V(x,y)=X(x)Y(y)V(x, y) = X(x)Y(y). Substituting and dividing by XYXY:


X′′X+Y′′Y=0.\frac{X''}{X} + \frac{Y''}{Y} = 0.


The first term depends only on xx and the second only on yy, so each must equal a constant. Write


X′′X=−k2,Y′′Y=+k2.\frac{X''}{X} = -k^2, \qquad \frac{Y''}{Y} = +k^2.


Choosing the sign. The sign is not arbitrary; the boundary conditions decide it. A direction with homogeneous Dirichlet conditions at two ends (V=0V = 0 on two parallel grounded plates) needs a nonzero factor that vanishes at both ends; among solutions of X′′=cXX'' = cX, only oscillatory modes (with c<0c < 0) can do that.


That direction gets −k2-k^2. Homogeneous Neumann conditions instead require zero derivative at both ends and also allow a nonzero constant mode. The perpendicular direction then gets exponentials or hyperbolic functions:


  • oscillatory direction: sin⁡kx, cos⁡kx\sin kx,\ \cos kx;
  • other direction: eky, e−kye^{ky},\ e^{-ky} or equivalently sinh⁡ky, cosh⁡ky\sinh ky,\ \cosh ky. Use decaying exponentials when the region extends to infinity and the potential must vanish there, and sinh or cosh on finite intervals where a condition must be met at a particular end.


The special value k=0k = 0 gives linear factors, including the constant mode allowed by homogeneous Neumann conditions.


Quantisation. If V=0V = 0 at x=0x = 0 and x=ax = a, then X=sin⁡(nπx/a)X = \sin(n\pi x/a) with n=1,2,3,…n = 1, 2, 3, \dots, so kn=nπ/ak_n = n\pi/a. Note that knk_n uses π/a\pi/a, not 2π/a2\pi/a: the wall spacing is half a wavelength of the lowest mode.

3. Worked example: a rectangular box

A long rectangular pipe occupies 0<x<a0 < x < a, 0<y<b0 < y < b. The walls at x=0x = 0, x=ax = a and y=0y = 0 are grounded, and the wall at y=by = b is held at V0V_0 (insulated from the others at the corners).


  1. Homogeneous directions. V=0V = 0 at x=0,ax = 0, a gives Xn=sin⁡(nπx/a)X_n = \sin(n\pi x/a). V=0V = 0 at y=0y = 0 selects Yn=sinh⁡(nπy/a)Y_n = \sinh(n\pi y/a) (cosh would not vanish there).
  2. Superpose. V=∑ncnsin⁡(nπx/a) sinh⁡(nπy/a)sinh⁡(nπb/a)V = \sum_n c_n \sin(n\pi x/a)\,\dfrac{\sinh(n\pi y/a)}{\sinh(n\pi b/a)}. Dividing by sinh⁡(nπb/a)\sinh(n\pi b/a) makes cnc_n the Fourier coefficient of the top boundary.
  3. Match the top wall using orthogonality. At y=by = b: V0=∑cnsin⁡(nπx/a)V_0 = \sum c_n \sin(n\pi x/a). Multiply by sin⁡(mπx/a)\sin(m\pi x/a) and integrate over 00 to aa: cn=2a∫0aV0sin⁡nπxa dx=2V0nπ(1−cos⁡nπ)={4V0/(nπ),n odd0,n even.c_n = \frac{2}{a}\int_0^a V_0 \sin\frac{n\pi x}{a}\,dx = \frac{2V_0}{n\pi}\big(1 - \cos n\pi\big) = \begin{cases} 4V_0/(n\pi), & n \text{ odd} \\ 0, & n \text{ even.} \end{cases}


Check with symmetry. For a square (b=ab = a), the centre potential can be found without any series: superposing the four problems in which each wall in turn is at V0V_0 gives a potential of V0V_0 everywhere, and by symmetry each contributes equally at the centre, so the centre potential is exactly V0/4V_0/4. The leading term of the series gives 4V0π⋅sinh⁡(π/2)sinh⁡π=0.254 V0\frac{4V_0}{\pi}\cdot\frac{\sinh(\pi/2)}{\sinh\pi} = 0.254\,V_0, and higher odd terms correct it to 0.250 V00.250\,V_0.


Comparing a truncated series with an exact symmetry result is a valuable habit.

4. Three dimensions

With V=X(x)Y(y)Z(z)V = X(x)Y(y)Z(z), the equation becomes X′′/X+Y′′/Y+Z′′/Z=0X''/X + Y''/Y + Z''/Z = 0, which needs two independent separation constants. If the xx- and yy-directions are the oscillatory ones, X′′/X=−α2X''/X = -\alpha^2, Y′′/Y=−β2Y''/Y = -\beta^2, and then Z′′/Z=α2+β2Z''/Z = \alpha^2 + \beta^2. The third constant is fixed by the other two; you cannot choose all three freely. The resulting series is a double sum over both mode numbers.

5. Polar (cylindrical) coordinates

For a potential independent of zz, Laplace's equation in (s,ϕ)(s, \phi) is 1s∂∂s ⁣(s∂V∂s)+1s2∂2V∂ϕ2=0\dfrac{1}{s}\dfrac{\partial}{\partial s}\!\left(s\dfrac{\partial V}{\partial s}\right) + \dfrac{1}{s^2}\dfrac{\partial^2 V}{\partial \phi^2} = 0. With V=S(s)Φ(ϕ)V = S(s)\Phi(\phi):


sSdds ⁣(sdSds)=k2,Φ′′Φ=−k2.\frac{s}{S}\frac{d}{ds}\!\left(s\frac{dS}{ds}\right) = k^2, \qquad \frac{\Phi''}{\Phi} = -k^2.


Because ϕ\phi and ϕ+2π\phi + 2\pi are the same point, Φ\Phi must be periodic, so kk is an integer. The radial solutions are sks^k and s−ks^{-k} for k≥1k \ge 1, and 11 and ln⁡s\ln s for k=0k = 0. The general solution is


V(s,ϕ)=A0+B0ln⁡s+∑k=1∞[(Aksk+Bks−k)cos⁡(kϕ)+(Cksk+Dks−k)sin⁡(kϕ)].V(s, \phi) = A_0 + B_0 \ln s + \sum_{k=1}^{\infty}\left[(A_k s^k + B_k s^{-k})\cos(k\phi) + (C_k s^k + D_k s^{-k})\sin(k\phi)\right].


  • Inside a cylinder (region containing s=0s = 0): drop ln⁡s\ln s and s−ks^{-k}, which diverge at the axis.
  • Outside a cylinder: select the radial terms from the specified far-field condition. If the potential must remain bounded as s→∞s \to \infty, omit both sks^k for k≥1k \ge 1 and ln⁡s\ln s. An imposed uniform field can instead require a growing s1s^1 term.


Example. A cylinder of radius RR whose surface is held at V0sin⁡3ϕV_0 \sin 3\phi has interior potential V0(s/R)3sin⁡3ϕV_0 (s/R)^3 \sin 3\phi. If the exterior potential tends to zero as s→∞s \to \infty, its exterior potential is V0(R/s)3sin⁡3ϕV_0 (R/s)^3 \sin 3\phi. The boundary function already consists of a single harmonic, so no integrals are needed; just match coefficients.



A charge-free region occupies 0<y<b0 < y < b and x>0x > 0, extending to infinity in the +x+x direction. The plates at y=0y = 0 and y=by = b are grounded, the end at x=0x = 0 is held at a prescribed potential V(0,y)=f(y)V(0, y) = f(y), and V→0V \to 0 as x→∞x \to \infty.

Which separated solutions should be superposed to build V(x,y)V(x, y)?

Choose an answer

Create a free account to get started

Unlock full course notes by signing up

  • Video lessons taught by top educators
  • Practice questions with guided solutions
  • Written review notes for reference
  • Expert answers anytime from course tutors

A long slot has grounded parallel walls at x=0x = 0 and x=ax = a, with a=3.0a = 3.0 cm. Its bottom edge at y=0y = 0 is held at a nonzero potential that varies with xx, and V→0V \to 0 as y→∞y \to \infty. The solution is a sum of separated terms.

Assume the boundary potential has a nonzero projection onto sin(pi x/a), so the n = 1 term is present.

At what height yy has the lowest (n=1n = 1) term fallen to 1.0% of its value at y=0y = 0? Give your answer in cm to three significant figures.

Create a free account to get started

Unlock full course notes by signing up

  • Video lessons taught by top educators
  • Practice questions with guided solutions
  • Written review notes for reference
  • Expert answers anytime from course tutors

A long slot has grounded walls at x=0x = 0 and x=ax = a, and V→0V \to 0 as y→∞y \to \infty. Along the bottom, the potential rises linearly:

V(x,0)=V0 xa,0<x<a,V0=90 V.V(x, 0) = V_0\,\frac{x}{a}, \qquad 0 < x < a, \qquad V_0 = 90\ \text{V}.

The solution is V(x,y)=∑n=1∞cnsin⁡(nπx/a) e−nπy/aV(x, y) = \sum_{n=1}^{\infty} c_n \sin(n\pi x/a)\,e^{-n\pi y/a}. Find the coefficient c2c_2, in volts, to three significant figures.

Give your answer in V.

Create a free account to get started

Unlock full course notes by signing up

  • Video lessons taught by top educators
  • Practice questions with guided solutions
  • Written review notes for reference
  • Expert answers anytime from course tutors