Laplace Equation: Separation of Variables
Laplace's Equation by Separation of Variables
1. The idea
In a charge-free region the electrostatic potential satisfies Laplace's equation, ∇2V=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 z, try V(x,y)=X(x)Y(y). Substituting and dividing by XY:
The first term depends only on x and the second only on y, so each must equal a constant. Write
Choosing the sign. The sign is not arbitrary; the boundary conditions decide it. A direction with homogeneous Dirichlet conditions at two ends (V=0 on two parallel grounded plates) needs a nonzero factor that vanishes at both ends; among solutions of X′′=cX, only oscillatory modes (with c<0) can do that.
That direction gets −k2. 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: sinkx, coskx;
- other direction: eky, e−ky or equivalently sinhky, coshky. 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=0 gives linear factors, including the constant mode allowed by homogeneous Neumann conditions.
Quantisation. If V=0 at x=0 and x=a, then X=sin(nπx/a) with n=1,2,3,…, so kn=nπ/a. Note that kn uses π/a, not 2π/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<a, 0<y<b. The walls at x=0, x=a and y=0 are grounded, and the wall at y=b is held at V0 (insulated from the others at the corners).
- Homogeneous directions. V=0 at x=0,a gives Xn=sin(nπx/a). V=0 at y=0 selects Yn=sinh(nπy/a) (cosh would not vanish there).
- Superpose. V=∑ncnsin(nπx/a)sinh(nπb/a)sinh(nπy/a). Dividing by sinh(nπb/a) makes cn the Fourier coefficient of the top boundary.
- Match the top wall using orthogonality. At y=b: V0=∑cnsin(nπx/a). Multiply by sin(mπx/a) and integrate over 0 to a: cn=a2∫0aV0sinanπxdx=nπ2V0(1−cosnπ)={4V0/(nπ),0,n oddn even.
Check with symmetry. For a square (b=a), the centre potential can be found without any series: superposing the four problems in which each wall in turn is at V0 gives a potential of V0 everywhere, and by symmetry each contributes equally at the centre, so the centre potential is exactly V0/4. The leading term of the series gives π4V0⋅sinhπsinh(π/2)=0.254V0, and higher odd terms correct it to 0.250V0.
Comparing a truncated series with an exact symmetry result is a valuable habit.
4. Three dimensions
With V=X(x)Y(y)Z(z), the equation becomes X′′/X+Y′′/Y+Z′′/Z=0, which needs two independent separation constants. If the x- and y-directions are the oscillatory ones, X′′/X=−α2, Y′′/Y=−β2, and then Z′′/Z=α2+β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 z, Laplace's equation in (s,ϕ) is s1∂s∂(s∂s∂V)+s21∂ϕ2∂2V=0. With V=S(s)Φ(ϕ):
Because ϕ and ϕ+2π are the same point, Φ must be periodic, so k is an integer. The radial solutions are sk and s−k for k≥1, and 1 and lns for k=0. The general solution is
- Inside a cylinder (region containing s=0): drop lns and s−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→∞, omit both sk for k≥1 and lns. An imposed uniform field can instead require a growing s1 term.
Example. A cylinder of radius R whose surface is held at V0sin3ϕ has interior potential V0(s/R)3sin3ϕ. If the exterior potential tends to zero as s→∞, its exterior potential is V0(R/s)3sin3ϕ. The boundary function already consists of a single harmonic, so no integrals are needed; just match coefficients.
A long slot has grounded parallel walls at x=0 and x=a, with a=3.0 cm. Its bottom edge at y=0 is held at a nonzero potential that varies with x, and V→0 as y→∞. 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 y has the lowest (n=1) term fallen to 1.0% of its value at y=0? Give your answer in cm to three significant figures.
A long slot has grounded walls at x=0 and x=a, and V→0 as y→∞. Along the bottom, the potential rises linearly:
The solution is V(x,y)=∑n=1∞cnsin(nπx/a)e−nπy/a. Find the coefficient c2, in volts, to three significant figures.
Give your answer in V.