Skip to content

3.3: Separation of Variables

In this section we shall attack Laplace's equation directly, using the method of separation of variables, which is the physicist's favorite tool for solving partial differential equations. The method is applicable in circumstances where the potential (V) (V) or the charge density (σ) (\sigma) is specified on the boundaries of some region, and we are asked to find the potential in the interior. The basic strategy is very simple: We look for solutions that are products of functions, each of which depends on only one of the coordinates. The algebraic details, however, can be formidable, so I'm going to develop the method through a sequence of examples. We'll start with Cartesian coordinates and then do spherical coordinates (I'll leave the cylindrical case for you to tackle on your own, in Prob 3.24).

3.3.1: Cartesian Coordinates

Example 3.3

Two infinite grounded metal plates lie parallel to the xz plane, one at y=0 y = 0 , the other at y=a y = a (Fig. 3.17). The left end, at x=0 x = 0 , is closed off with an infinite strip insulated from the two plates, and maintained at a specific potential V0(y) V_0(y) . Find the potential inside this 'slot.'

Figure 3.17

Solution The configuration is independent of z, so this is really a two-dimensional problem. In mathematical terms, we must solve Laplace's equation,

2Vx2+2Vy2=03.20(3.20) \frac{\partial ^2 V}{\partial{x^2}} + \frac{\partial ^2 V}{\partial{y^2}} = 0 \label{3.20} \tag{3.20}

subject to the boundary conditions

  • (i) V=0 V = 0 when y=0 y = 0
  • (ii) V=0 V = 0 when y=a y = a
  • (iii) V=V0(y) V = V_0(y) when x=0 x = 0
  • (iv) V0 V \rightarrow 0 as x x \rightarrow \infty

(The latter, although not explicitly stated in the problem, is necessary on physical grounds: as you get farther and farther away from the "hot" strip at x=0 x = 0 , the potential should drop to zero.) Since the potential is specified on all boundaries, the answer is uniquely determined.

The first step is to look for solutions in the form of products:

V(x,y)=X(x)Y(y)(3.22) V(x, y) = X(x)Y(y) \tagl{3.22}

On the face of it, this is an absurd restriction - the overwhelming majority of solutions to Laplace's equation do not have such a form. For example, V(x,y)=(5x+6y) V(x, y) = (5x + 6y) satisfies the equation, but you can't express it as the product of a function of x times a function of y. Obviously, we're only going to get a tiny subset of all possible solutions by this means, and it would be a miracle if one of them happened to fit the boundary conditions of our problem... But hang on, because the solutions we do get are very special, and it turns out that by pasting them together we can construct the general solution.

Anyway, putting (3.22) \eqref{3.22} into (3.20) \eqref{3.20} we obtain

Yd2Xdx2+Xd2Ydy2=0 Y \frac{d^2X}{dx^2} + X \frac{d^2 Y}{dy^2} = 0

The next step is to "separate the variables" (that is, collect all the x-dependence into one term and all the y-dependence into another). Typically, this is accomplished by dividing through by V:

1Xd2Xdx2+1Yd2Ydy2=0(3.23) \frac{1}{X} \frac{d^2 X}{dx^2} + \frac{1}{Y} \frac{d^2 Y}{dy^2} = 0 \tagl{3.23}

Here the first term depends only on x and the second term only on y; in other words, we have an equation of the form

f(x)+g(y)=03.24(3.24) f(x) + g(y) = 0 \label{3.24} \tag{3.24}

Now, there's only one way this could possibly be true: f and g must both be constant. For what if f(x) f(x) changed, as you vary x - then if we held y fixed and fiddled with x, the sum f(x)+g(y) f(x) + g(y) would change, in violation of (3.24) \eqref{3.24} , which says it's always zero. (That's a simple but somehow rather elusive argument; don't accept it without due thought, because the whole method rides on it.)

It follows from (3.23) \eqref{3.23} , then, that

1Xd2Xdx2=C1 and 1Yd2Ydy2=C2, with C1+C2=0(3.25) \frac{1}{X} \frac{d^2 X}{dx^2} = C_1 \quad \text{ and } \quad \frac{1}{Y} \frac{d^2 Y}{dy^2} = C_2, \quad \text{ with } C_1 + C_2 = 0 \tagl{3.25}

One of these constants is positive, the other negative (or perhaps both are zero). In general, one must investigate all possibilities; however in our particular problem we need C1 C_1 positive and C2 C_2 negative, for reasons that will appear in a moment. Thus

d2Xdx2=k2X,d2Ydy2=k2Y(3.26) \frac{d^2X}{dx^2} = k^2 X, \qquad \frac{d^2 Y}{dy^2} = - k^2 Y \tagl{3.26}

Notice what has happened: A partial differential equation has been converted into two ordinary differential equations. The advantage of this is obvious - ordinary differential equations are a lot easier to solve. Indeed:

X(x)=Aekt+Bekt,Y(y)=Csinky+Dcosky X(x) = A e^{kt} + B e^{-kt}, \qquad Y(y) = C \sin ky + D \cos ky

so

V(x,y)=(Aekt+Bekt)(Csinky+Dcosky)(3.27) V(x, y) = (A e^{kt} + B e^{-kt})(C \sin ky + D \cos ky) \tagl{3.27}

This is the appropriate separable solution to Laplace's equation; it remains to impose the boundary conditions, and see what they tell us about the constants. To begin at the end, condition (iv) requires tha A equal zero. Absorbing B into C and D, we are left with

V(x,y)=ekx(Csinky+Dcosky) V(x, y) = e^{-kx} (C\sin ky + D \cos ky)

Condition (i) now demands that D equal zero

V(x,y)=Ckxsinky(3.28) V(x, y) = C ^{-kx} \sin ky \tagl{3.28}

Meanwhile (ii) yields sinka=0 \sin ka = 0 , from which it follows that

k=nπa(n=1,2,3,)(3.29) k = \frac{n \pi}{a} \quad (n = 1, 2, 3, \ldots) \tagl{3.29}

(At this point you can see why I chose C1 C_1 positive and C2 C_2 negative: If X were sinusoidal, we could never manage for it to go to zero at infinity, and if Y were exponential we could not make it vanish at both 0 and a. Incidentally, n=0 n = 0 is no good, for in that case the potential vanishes everywhere. And we have already excluded negative n's) That's as far as we can go, using separable solutions, and unless V0(y) V_0(y) just happens to have the form sin(nπ/a) \sin(n \pi / a) for some integer n, we simply can't fit the final boundary condition at x=0 x = 0 . But now comes the crucial step that redeems the method: Separation of variables has given us an infinite family of solutions (one for each n), and whereas none of them by itself satisfies the final boundary condition, it is possible to combine them in a way that does. Laplace's equation is linear, in the sense that if V1,V2,V3, V_1, V_2, V_3, \ldots satisfy it, so does any linear combination, for

2V=α12V1+α22V2+=0α1+0α2+=0 \laplacian{V} = \alpha_1 \laplacian{V_1} + \alpha_2 \laplacian{V_2} + \ldots = 0 \alpha_1 + 0 \alpha_2 + \ldots = 0

Exploiting this fact, we can patch together the separable solutions (3.28) \eqref{3.28} to construct a much more general solution:

V(x,y)=n=1Cnenπx/asin(nπy/a)(3.30) V(x, y) = \sum_{n=1} ^{\infty} C_n e^{-n \pi x / a} \sin (n \pi y / a) \tagl{3.30}

This still satisfies three of the boundary conditions; the question is, can we (by astute choice of the coefficients Cn C_n ) fit the final boundary condition (iii)?

V(0,y)=n=1Cnsin(nπy/a)=V0(y)(3.31) V(0, y) = \sum_{n=1} ^{\infty} C_n \sin (n \pi y / a) = V_0(y) \tagl{3.31}

Well, you may recognize this sum - it's a Fourier sine series. And Dirichlet's theorem guarantees that virtually any function V0(y) V_0(y) - it can even have a finite number of discontinuities - can be expanded in such a series. But how do we actually determine the coefficients Cn C_n , buried as they are in that infinite sum? The device for accomplishing this is so lovely it deserves a name - I call it Fourier's trick, though it seems Euler had used essentially the same idea somewhat earlier. Here's how it goes: Multiply (3.31) \eqref{3.31} by sin(nπy/a) \sin(n' \pi y /a) (where n n' is a positive integer), and integrate from 0 to a:

n=1Cn0asin(nπy/a)sin(nπy/a)dy=0aV0(y)sin(nπ/a)dy(3.32) \sum_{n=1} ^{\infty} C_n \int_{0} ^{a} \sin(n \pi y / a) \sin(n' \pi y/a) \dd{y} = \int_{0} ^a V_0(y) \sin (n' \pi /a) \dd{y} \tagl{3.32}

You can work out the integral on the left yourself; the answer is

0asin(nπy/a)sin(nπy/a)dy={0if nna2if n=n(3.33) \int_{0} ^a \sin (n \pi y /a) \sin (n' \pi y / a) \dd{y} = \begin{cases} 0 & \quad \text{if } n' \neq n \\ \frac{a}{2} & \quad \text{if } n' = n \end{cases} \tagl{3.33}

Thus all the terms in the series drop out, save only the one where n=n n = n' , and the left side of (3.32) \eqref{3.32} reduces to (a/2)Cn (a/2)C_{n'} . Conclusion:

Cn=2a0aV0(y)sin(nπy/a)dy(3.34) C_n = \frac{2}{a} \int_{0}^a V_0(y) \sin (n \pi y /a) \dd{y} \tagl{3.34}

That does it: (3.30) \eqref{3.30} is the solution, with coefficients given by eqref3.34 eqref{3.34} . As a concrete example, suppose the strip at x=0 x = 0 is a metal plate with constant potential V0 V_0 (remember, it's insulated from the grounded plates at y=0 y = 0 and y=a y = a . Then

Cn=2V0a0asin(nπy/a)dy=2V0nπ(1cosnπ)={0if n is even 4V0nπif n is odd(3.35) C_n = \frac{2V_0}{a} \int_0 ^a \sin (n \pi y / a) \dd y \\ = \frac{2 V_0}{n \pi} (1 - \cos n \pi) = \begin{cases} 0 & \quad \text{if n is even } \\ \frac{4 V_0}{n \pi} & \quad \text{if n is odd} \end{cases} \tagl{3.35}

Thus

V(x,y)=4V0πn=1,3,5,1nenπx/asin(nπy/a)(3.36) V(x, y) = \frac{4 V_0}{\pi} \sum_{n = 1, 3, 5, \ldots} \frac{1}{n} e^{- n \pi x / a} \sin (n \pi y / a) \tagl{3.36}

Figure 3.18 is a plot of this potential; Fig. 3.10 shows how the first few terms in the Fourier series combine to make a better and better approximation to the constant V0 V_0 : (a) is the n=1 n=1 term only, (b) includes n up to 5, (c) is the sum of the first 10 terms, and (d) is the sum of the first 100 terms.

Figure 3.18

Incidentally, the infinite series in Eq. 3.36 can be summed explicitly (try your hand at it if you like); the result is

V(x,y)=2V0πtan1(sin(πy/a)sinh(πx/a))(3.37) V(x, y) = \frac{2V_0}{\pi} \tan^{-1} \left( \frac{\sin(\pi y / a)}{\sinh(\pi x /a )} \right) \tagl{3.37}

In this form, it is easy to check that Laplace's equation is obeyed and the four boundary conditions are satisfied

The success of this method hinged on two extraordinary properties of the separable solutions (3.28) \eqref{3.28} and (3.29) \eqref{3.29} : completeness and orthogonality. A set of functions fn(y) f_n(y) is said to be complete if any other function f(y) f(y) can be expressed as a linear combination of them:

f(y)=n=1Cnfn(y)(3.38) f(y) = \sum_{n=1} ^{\infty} C_n f_n(y) \tagl{3.38}

The functions sin(nπy/a) \sin (n \pi y/a) are complete on the interval 0ya 0 \leq y \leq a . It was this fact, guaranteed by Dirichlet's theorem, that assured us (3.31) \eqref{3.31} could be satisfied, given the proper choice of the coefficients Cn C_n . (The proof of completeness, for a particular set of functions, is an extremely difficult business, and I'm afraid physicists tend to assume it's true and leave the checking to others.) A set of functions is orthogonal if the integral of the product of any two different members of the set is zero:

0afn(y)fn(y)dy=0for nn \int_0 ^a f_n(y) f_{n'} (y) \dd{y} = 0 \quad \text{for } n' \neq n

The sine functions are orthogonal (3.33) \eqref{3.33} ; that is the property on which Fourier's trick is based, allowing us to kill off all terms but one in the infinite series and thereby solve for the coefficients Cn C_n (Proof of orthogonality is generally quite simple, either by direct integration or by analysis of the differential equation from which the functions came.)

Example 3.4

Two infinitely-long grounded metal plates, again at y=0 y=0 and y=a y=a are connected at x=±b x= \pm b by metal strips maintained at a constant potential V0 V_0 , as shown in Fig. 3.20 (a thin layer of insulation at each corner prevents them from shorting out). Find the potential inside the resulting rectangular pipe.

Figure 3.20

Solution Once again, the configuration is independent of z. Our problem is to solve Laplace's equation

2Vx2+2Vy2=0 \frac{\partial ^2 V}{\partial{x^2}} + \frac{\partial ^2 V}{\partial{y^2}} = 0

subject to the boundary conditions

  • (i) V=0 V = 0 when y=0 y = 0
  • (ii) V=0 V = 0 when y=a y = a
  • (iii) V=V0 V = V_0 when x=b x = b
  • (iv) V=V0 V = V_0 when x=b x = -b

The argument runs as before, up to (3.27) \eqref{3.27} :

V(x,y)=(Aekt+Bekt)(Csinky+Dcosky) V(x, y) = (A e^{kt} + B e^{-kt})(C \sin ky + D \cos ky)

This time, however, we cannot set A=0 A = 0 ; the region in question does not extend to x= x = \infty , so ekx e^{kx} is perfectly acceptable. On the other hand, the situation is symmetric with respect to x, so V(x,y)=V(x,y) V(-x, y) = V(x, y) , and it follows that A=B A = B . Using

ekx+ekx=2coshkx e^{kx} + e^{-kx} = 2 \cosh kx

and absorbing 2A 2A into C C and D D , we have

V(x,y)=coshkx(Csinky+Dcosky) V(x, y) = \cosh kx (C \sin ky + D\cos ky)

Boundary conditions (i) and (ii) require, as before, that D=0 D = 0 and k=nπ/a k = n\pi /a , so

V(x,y)=Ccosh(nπx/a)sin(nπy/a)(3.41) V(x, y) = C \cosh (n \pi x /a )\sin(n \pi y/a) \tagl{3.41}

Because V(x,y) V(x, y) is even in x, it will automatically meet conditions (iv) if it fits (iii). It remains, therefore, to construct the general linear combination

V(x,y)=n=1Cncosh(nπx/a)sin(nπy/a) V(x, y) = \sum _{n=1}^{\infty} C_n \cosh (n \pi x / a) \sin(n \pi y /a)

and pick the coefficients Cn C_n in such a way as to satisfy condition (iii):

V(b,y)=n=1Cncosh(nπb/a)sin(nπy/a)=V0 V(b, y) = \sum_{n=1}^{\infty} C_n \cosh (n \pi b /a) \sin(n \pi y/a) = V_0

This is the same problem in Fourier analysis that we faced before; I quote the result from (3.35) \eqref{3.35} ;

Cncosh(nπb/a)={0if n is even4V0nπif n is odd C_n \cosh (n \pi b/a) = \begin{cases} 0 & \quad \text {if n is even} \\ \frac{4 V_0}{n \pi} & \quad \text{if n is odd} \end{cases}

Conclusion: The potential in this case is given by

V(x,y)=4V0πn=1,3,51ncosh(nπx/a)cosh(nπb/a)sin(nπy/a)(3.42) V(x, y) = \frac{4 V_0}{\pi} \sum_{n=1, 3, 5\ldots} \frac{1}{n} \frac{\cosh(n \pi x/a)}{\cosh(n \pi b/a)} \sin(n \pi y/a) \tagl{3.42}

This function is shown in Fig. 3.21

Figure 3.21

Example 3.5

An infinitely long rectangular metal pipe (sides a and b) is grounded, but one end, at x=0 x = 0 , a 'hot' plate is maintained at a specified potential V0(y,z) V_0(y, z) , as indicated in Fig. 3.22. Find the potential inside the pipe.

Figure 3.22

Solution This is genuinely a three-dimensional problem,

2Vx2+2Vy2+2Vz2=0(3.43) \frac{\partial ^2 V}{\partial{x^2}} + \frac{\partial ^2 V}{\partial{y^2}} + \frac{\partial ^2 V}{\partial{z^2}} = 0 \tagl{3.43}

subject to the boundary conditions - (i) V=0 V = 0 when y=0 y = 0 - (ii) V=0 V = 0 when y=a y = a - (iii) V=0 V = 0 when z=0 z = 0 - (iv) V=0 V = 0 when z=b z = b - (v) V0 V \rightarrow 0 as x x \rightarrow \infty - (vi) V=V0(y,z) V = V_0(y, z) whem x=0 x = 0 As always, we look for solutions that are products:

V(x,y,z)=X(x)Y(y)Z(z)(3.45) V(x, y, z) = X(x)Y(y)Z(z) \tagl{3.45}

Putting this into (3.43) \eqref{3.43} and dividing by V, we find

1Xd2Xdx2+1Yd2Ydy2+1Zd2Zdz2=0 \frac{1}{X} \frac{d^2 X}{dx^2} + \frac{1}{Y} \frac{d^2 Y}{dy^2} + \frac{1}{Z} \frac{d^2 Z}{dz^2} = 0

It follows that

1Xd2Xdx2=C1,1Yd2Ydy2=C2,1Zd2Zdz2=C3, with C1+C2+C3=0 \frac{1}{X} \frac{d^2 X}{dx^2} = C_1 , \quad \frac{1}{Y} \frac{d^2 Y}{dy^2} = C_2 , \quad \frac{1}{Z} \frac{d^2 Z}{dz^2} = C_3 , \text{ with } C_1 + C_2 + C_3 = 0

Our previous experience in Ex. 3.3 suggests that C1 C_1 must be positive, C2 C_2 and C3 C_3 negative. Setting C2=k2 C_2 = -k^2 and C3=l2 C_3 = -l^2 , we have C1=k2+l2 C_1 = k^2 + l^2 , and hence

d2Xdx2=(k2+l2)X,d2Ydy2=k2Y,d2Zdz2=l2Z(3.46) \frac{d^2 X}{dx^2} = (k^2 + l^2)X, \quad \frac{d^2 Y}{dy^2} = -k^2 Y, \quad \frac{d^2 Z}{dz^2} = -l^2 Z \tagl{3.46}

Once again, separation of variables has turned a partial differential equation into ordinary differential equations. The solutions are

X(x)=Aek2+l2x+Bek2+l2xY(y)=Csinky+DcoskyZ(z)=Esinlz+Fcoslz \begin{aligned} X(x) & = A e^{\sqrt{k^2 + l^2} x} + B e^{- \sqrt{k^2 + l^2} x} \\ Y(y) & = C \sin ky + D \cos ky \\ Z(z) & = E \sin lz + F \cos lz \end{aligned}

Boundary condition (v) implies A=0 A =0 , (i) gives D=0 D = 0 , and (iii) yields F=0 F = 0 whereas (ii) and (iv) require that k=nπ/a k = n\pi /a and l=mπ/b l =m \pi /b , where n and m are positive integers. Combining the remaining constants, we are left with

V(x,y,z)=Ceπ(n/a)2+(m/b)2xsin(nπy/a)sin(mπz/b)(3.47) V(x, y, z) = C e^{-\pi \sqrt{(n/a)^2 + (m/b)^2}x} \sin (n \pi y / a) \sin(m \pi z /b) \tagl{3.47}

This solution meets all the boundary conditions except (vi). It contains two unspecified integers (n and m), and the most general linear combination is a double sum

V(x,y,z)=n=1m=1Ceπ(n/a)2+(m/b)2xsin(nπy/a)sin(mπz/b)=V0(y,z)(3.48) V(x, y, z) = \sum_{n=1} ^{\infty} \sum_{m = 1} ^{\infty} C e^{-\pi \sqrt{(n/a)^2 + (m/b)^2}x} \sin (n \pi y / a) \sin(m \pi z /b) = V_0(y, z) \tagl{3.48}

We hope to fit the remaining boundary condition,

V(0,y,z)=n=1m=1Csin(nπy/a)sin(mπz/b)=V0(y,z)(3.49) V(0, y, z) = \sum_{n=1} ^{\infty} \sum_{m = 1} ^{\infty} C \sin (n \pi y / a) \sin(m \pi z /b) = V_0(y, z) \tagl{3.49}

by appropriate choice of the coefficients Cn,m C_{n, m} . To determine these constants, we multiply by sin(nnπy/a)sin(mπz/b)\sin(n' n \pi y/a) \sin(m' \pi z / b), where n n' and m m' are arbitrary positive integers, and integrate

n=1m=1Cn,m0asin(nπy/a)sin(nπy/a)dy0bsin(mπz/b)sin(mπz/b)dz=0a0bV0(y,z)sin(nπy/a)sin(mπz/b)dydz \sum_{n=1} ^{\infty} \sum_{m = 1} ^{\infty} C_{n, m} \int_0 ^a \sin (n \pi y/a) \sin(n' \pi y/a) \dd{y} \int_0 ^b \sin(m \pi z/b) \sin (m' \pi z/b) \dd{z} \\ = \int_0 ^a \int_0 ^b V_0(y, z) \sin(n' \pi y/a) \sin(m' \pi z/b) \dd{y} \dd{z}

Quoting (3.33) \eqref{3.33} , the left side is (ab/4)Cn,m (ab/4) C_{n', m'} , so

Cn,m=4ab0a0bV0(y,z)sin(nπy/a)sin(mπz/b)dydz(3.50) C_{n, m} = \frac{4}{ab} \int_0 ^a \int_0 ^b V_0(y, z) \sin (n \pi y/a) \sin(m\pi z/b) \dd{y} \dd{z} \tagl{3.50}

Equation (3.48) \eqref{3.48} , with the coefficients given by (3.50) \eqref{3.50} , is the solution to our problem.

For instance, if the end of the tube is a conductor at constant potential V0 V_0 ,

Cn,m=4ab0asin(nπy/a)dy0bsin(mπz/b)dz={0if n or m is even16V0π2nmif n and m are odd(3.51) C_{n, m} = \frac{4}{ab} \int_0 ^a \sin(n \pi y/a) \dd{y} \int_0 ^b \sin(m \pi z/b) \dd{z} \\ = \begin{cases} 0 & \qquad \text{if n or m is even} \\ \frac{16 V_0}{\pi^2 nm} & \qquad \text{if n and m are odd} \end{cases} \tagl{3.51}

In this case,

V(x,y,z)=16V0π2n,m=1,3,5,1nmeπ(n/a)2+(m/b)2xsin(nπy/a)sin(mπz/b)(3.52) V(x, y, z) = \frac{16V_0}{\pi^2} \sum_{n,m=1,3,5,\ldots} ^{\infty} \frac{1}{nm} e^{-\pi \sqrt{(n/a)^2 + (m/b)^2}x} \sin(n \pi y/a) \sin(m \pi z/b) \tagl{3.52}

Notice that successive terms decrease rapidly; a reasonable approximation would be obtained by keeping only the first few.

3.3.2: Spherical Coordinates

In the examples considered so far, Cartesian coordinates were clearly appropriate, since the boundaries were planes. For round objects, spherical coordinates are more natural. In the spherical system, Laplace's equation reads:

1r2r(r2Vr)+1r2sinθθ(sinθVθ)+1r2sin2θ2Vϕ2=0(3.53) \frac{1}{r^2} \pdv{}{r} \left( r^2 \pdv{V}{r} \right) + \frac{1}{r^2 \sin \theta} \pdv{}{\theta} \left( \sin \theta \pdv{V}{\theta} \right) + \frac{1}{r^2\sin ^2 \theta} \frac{\partial ^2 V}{\partial \phi ^2} = 0 \tagl{3.53}

I shall assume the problem has azimuthal symmetry, so that V is independent of ϕ \phi ; In that case, (3.53) \eqref{3.53} reduces to

r(r2Vr)+1sinθθ(sinθVθ)=0(3.54) \pdv{}{r} \left( r^2 \pdv{V}{r} \right) + \frac{1}{\sin \theta} \pdv{}{\theta} \left( \sin \theta \pdv{V}{\theta} \right) = 0 \tagl{3.54}

As before, we look for solutions that are products:

V(r,θ)=R(r)Θ(θ)(3.55) V(r, \theta) = R(r) \Theta (\theta) \tagl{3.55}

Putting this into (3.54) \eqref{3.54} , and dividing by V,

1Rddr(r2dRdr)+1Θsinθddθ(sinθdΘdθ)=0(3.56) \frac{1}{R} \dv{}{r} \left( r^2 \dv{R}{r} \right) + \frac{1}{\Theta \sin \theta} \dv{}{\theta} \left( \sin \theta \dv{\Theta}{\theta} \right) = 0 \tagl{3.56}

Since the first term depends only on r, and the second only on θ \theta , it follows that each must be a constant:

1Rddr(r2dRdr)=l(l+1),1Θsinθddθ(sinθdΘdθ)=l(l+1)(3.57) \frac{1}{R} \dv{}{r} \left( r^2 \dv{R}{r} \right) = l(l+1), \quad \frac{1}{\Theta \sin \theta} \dv{}{\theta} \left( \sin \theta \dv{\Theta}{\theta} \right) = -l(l+1) \tagl{3.57}

Here l(l+1) l(l+1) is just a fancy way of writing the separation constant, whose convenience will appear shortly. As always, separation of variables has converted a partial differential equation into ordinary differential equations. The radial equation,

ddr(r2dRdr)=l(l+1)R(3.58) \dv{}{r} \left( r^2 \dv{R}{r} \right) = l(l+1)R \tagl{3.58}

has the general solution

R(r)=Arl+Brl+1(3.59) R(r) = A r^l + \frac{B}{r^{l+1}} \tagl{3.59}

as you can easily check; A and B are the two arbitrary constants to be expected in the solution of a second-order differential equation. But the angular equation,

ddθ(sinθdΘdθ)=l(l+1)sinθΘ(3.60) \dv{}{\theta} \left( \sin \theta \dv{\Theta}{\theta} \right) = -l(l+1) \sin \theta \Theta \tagl{3.60}

is not so simple. The solutions are Legendre polynomials in the variable cosθ \cos \theta :

Θ(θ)=Pl(cosθ)(3.61) \Theta (\theta ) = P_l (\cos \theta ) \tagl{3.61}

Pl(x) P_l (x) is most conveniently defined by the Rodrigues formula:

Pl(x)12ll!(ddx)l(x21)l(3.62) P_l(x) \equiv \frac{1}{2^l l!}\left( \dv{}{x} \right)^l (x^2 - 1)^l \tagl{3.62}

The first few Legendre polynomials are listed:

Legendre Polynomials P0 P_0 - P5P_5

P0(x)=1P1(x)=xP2(x)=(3x21)/2P3(x)=(5x33x)/2P4(x)=(35x430x2+3)/8P5(x)=(63x570x3+15x)/8 \begin{aligned} P_0(x) & = 1 \\ P_1(x) & = x \\ P_2(x) & = (3x^2 - 1)/2 \\ P_3(x) & = (5x^3 - 3x)/2 \\ P_4(x) & = (35x^4 - 30x^2 + 3)/8 \\ P_5(x) & = (63x^5 - 70x^3 + 15x)/8 \end{aligned}

Notice that Pl(x) P_l(x) is (as the name suggests) an _l_th-order polynomial in x; it contains only even powers if l is even, and only odd powers if l is odd. The factor in front (1/2ll! (1/2^l l! was chosen in order that

Pl(1)=1(3.63) P_l(1) = 1 \tagl{3.63}

The Rodrigues formula obviously only works for nonnegative integer values of l. Moreover, it provides us with only one solution. But (3.60) \eqref{3.60} is second-order, and it should possess two independent solutions for every value of l. It turns out that these "other solutions" blow up at θ=0 \theta = 0 and/or θ=π \theta = \pi , and are therefore unacceptable on physical grounds. For instance, the second solution for l=0 l=0 is

Θ(θ)=ln(tanθ2)(3.64) \Theta(\theta) = \ln \left( \tan \frac{\theta}{2} \right) \tagl{3.64}

You might want to check for yourself that this satisfies (3.60) \eqref{3.60} .

In the case of azimuthal symmetry, then, the most general separable solution to Laplace's equation, consistent with minimal physical requirements, is

V(r,θ)=(Arl+Brl+1)Pl(cosθ) V(r, \theta) = \left( A r^l + \frac{B}{r^{l+1}} \right) P_l(\cos \theta)

(There was no need to include an overall constant in (3.61) \eqref{3.61} because it can be absorbed into A and B at this stage.) As before, separation of variables yields an infinite set of solutions, one for each l. The general solution is the linear combination of separable solutions:

V(r,θ)=l=0(Arl+Brl+1)Pl(cosθ)(3.65) V(r, \theta) = \sum_{l=0} ^{\infty} \left( A r^l + \frac{B}{r^{l+1}} \right) P_l(\cos \theta) \tagl{3.65}

The following examples illustrate the power of this important result.

Example 3.6

The potential V0(θ) V_0(\theta) is specified on the surface of a hollow sphere, of radius R. Find the potential inside the sphere.

Solution In this case, Bl=0 B_l = 0 for all l, otherwise the potential would blow up at the origin. Thus,

V(r,θ)=l=0AlrlPl(cosθ)(3.66) V(r, \theta) = \sum_{l = 0} ^{\infty} A_l r^l P_l(\cos \theta) \tagl{3.66}

At r=R r = R this must match the specified function V0(θ) V_0(\theta) :

V(R,θ)=l=0AlRlPl(cosθ)=V0(θ)(3.67) V(R, \theta) = \sum_{l=0}^\infty A_l R^l P_l(\cos \theta) = V_0(\theta) \tagl{3.67}

Can this equation be satisfied, for an appropriate choice of coefficients Al A_l ? Yes: The Legendre polynomials (like the sines) constitute a complete set of functions, on the interval 1x1(0θπ) -1 \leq x \leq 1 (0 \leq \theta \leq \pi) . How do we determine the constants? Again, by Fourier's trick, for the Legendre polynomials (like the sines) are orthogonal functions:

11Pl(x)Pl(x)dx=0πPl(cosθ)Pl(cosθ)sinθdθ={0,if ll22l+1,if l=l(3.68) \begin{aligned} \int_{-1}^1 P_l(x) P_{l'}(x) \dd{x} & = \int_0 ^\pi P_l(\cos \theta) P_{l'}(\cos \theta) \sin \theta \dd{\theta} \\ & = \begin{cases} 0, & \quad \text{if } l' \neq l \\ \frac{2}{2l +1} , & \quad \text{if } l' = l \end{cases} \end{aligned} \tagl{3.68}

Thus, multiplying (3.67) \eqref{3.67} by Pl(cosθ)sinθ P_{l'}(\cos \theta) \sin \theta and integrating, we have

AlRl22l+1=0πV0(θ)Pl(cosθ)sinθdθ A_{l'} R^{l'} \frac{2}{2l' + 1} = \int_{0} ^\pi V_0(\theta) P_{l'}(\cos \theta) \sin \theta \dd{\theta}

or

Al=2l+12Rl0πV0(θ)Pl(cosθ)sinθdθ(3.69) A_l = \frac{2l+1}{2R^l} \int_0 ^\pi V_0(\theta) P_l(\cos \theta) \sin \theta \dd{\theta} \tagl{3.69}

(3.66) \eqref{3.66} is the solution to our problem, with the coefficients given by (3.69) \eqref{3.69} . It can be difficult to evaluate integrals of the form (3.69) \eqref{3.69} analytically, and in practice it is often easier to solve (3.67) \eqref{3.67} "by eyeball." For instance, suppose we are told that the potential on the sphere is

V0(θ)=ksin2(θ/2)(3.70) V_0(\theta) = k \sin^2 (\theta/2) \tagl{3.70}

where k is constant. Using the half-angle formula, we rewrite this as

V0(θ)=k2(1cosθ)=k2[P0(cosθ)P1(cosθ)] V_0(\theta) = \frac{k}{2}(1 - \cos \theta) = \frac{k}{2} [P_0(\cos \theta) - P_1 (\cos \theta)]

Putting this into (3.67) \eqref{3.67} , we read off immediately that A0=k/2 A_0 = k/2 , A1=k/(2R) A_1 = -k/(2R) , and all other Al A_l 's vanish. Therefore

V(r,θ)=k2[r0P0(cosθ)r1RP1(cosθ)]=k2(1rRcosθ)(3.71) V(r, \theta) = \frac{k}{2} \left[ r^0 P_{0}(\cos \theta) - \frac{r^1}{R} P_1 (\cos \theta) \right] = \frac{k}{2} \left( 1 - \frac{r}{R} \cos \theta \right) \tagl{3.71}

Example 3.7

The potential V0(θ) V_0(\theta) is again specified on the surface of a sphere of radius R, but this time we are asked to find the potential outside, assuming there is no charge there.

Solution In this case it's the Al A_l 's that must be zero (or else V would not go to zero at \infty ), so

V(r,θ)=l=0Blrl+1Pl(cosθ)=V0(θ)(3.72) V(r, \theta) = \sum_{l=0} ^\infty \frac{B_l}{r^{l+1}} P_l(\cos \theta) = V_0(\theta) \tagl{3.72}

Multiplying by Pl(cosθ)sinθ P_{l'}(\cos \theta) \sin \theta and integrating - exploiting, again, the orthogonality relation 3.68 - we have

BlRl+122l+1=0πV0(θ)Pl(cosθ)sinθdθ \frac{B_{l'}}{R^{l'+1}} \frac{2}{2l' + 1} = \int_0 ^\pi V_0(\theta) P_{l'}(\cos \theta) \sin \theta \dd{\theta}

or

Bl=2l+12Rl+10πV0(θ)Pl(cosθ)sinθdθ(3.73) B_l = \frac{2l + 1}{2} R^{l+1} \int_0 ^\pi V_0(\theta) P_l(\cos \theta) \sin \theta \dd{\theta} \tagl{3.73}

(3.72) \eqref{3.72} , with the coefficients given by (3.73) \eqref{3.73} , is the solution to our problem.

Example 3.8

An uncharged metal sphere of radius R is placed in an otherwise uniform electric field E=E0z^ \vec{E} = E_0 \vu{z} . The field will push positive charge to the 'northern' surface of the sphere, and - symmetrically - negative charge to the 'southern' surface (Fig. 3.24). This induced charge, in turn, distorts the field in the neighborhood of the sphere. Find the potential in the region outside the sphere.

Solution The sphere is an equipotential - we may as well set it to zero. Then by symmetry the entire xy plane is at potential zero. This time, however, V does not go to zero at large z. In fact, far from the sphere the field is E0z^ E_0 \vu{z} and hence

VE0z+C V \rightarrow - E_0 z + C

Figure 3.24

Since V=0 V = 0 in the equatorial plane, the constant C must be zero. Accordingly, the boundary conditions for this problem are - (i) V=0 V = 0 when r=R r = R - (ii) VE0rcosθ V \rightarrow - E_0 r \cos \theta for rR r \gg R We must fit these boundary conditions with a function of the form (3.65) \eqref{3.65} . The first condition yields

AlRl+BlRl+1=0 A_l R^l + \frac{B_l}{R^{l+1}} = 0

or

Bl=AlR2l+1(3.75) B_l = -A_l R^{2l+1} \tagl{3.75}

so

V(r,θ)=l=0Al(rlR2l+1rl+1)Pl(cosθ) V(r, \theta) = \sum_{l = 0} ^{\infty} A_l \left( r^l - \frac{R^{2l+1}}{r^{l+1}} \right) P_l(\cos \theta)

For rR r \gg R , the second term in parentheses is negligible, and therefore the condition (ii) requires that

l=0AlRlPl(cosθ)=E0rcosθ \sum_{l=0}^\infty A_l R^{l} P_l (\cos \theta) = - E_0 r \cos \theta

Evidently only one term is present: l=1 l = 1 . In fact, since P1(cosθ)=cosθ P_1(\cos \theta) = \cos \theta we can read off immediately

A1=E0, all other Als zero A_1 = - E_0, \qquad \text{ all other }A_l's \text{ zero}

Conclusion:

V(r,θ)=E0(rR3r2)cosθ(3.76) V(r, \theta) = - E_0 \left( r - \frac{R^3}{r^2} \right) \cos \theta \tagl{3.76}

The first term (E0rcosθ) (-E_0 r \cos \theta) is due to the external field; the contribution attributable to the induced charge is

E0R3r2cosθ E_0 \frac{R^3}{r^2} \cos \theta

If you want to know the induced charge density, it can be calculated in the usual way:

σ(θ)=ϵ0Vrr=R=ϵ0E0(1+2R3r3)cosθr=R=3ϵ0E0cosθ(3.77) \sigma(\theta) = - \epsilon_0 \left. \pdv{V}{r} \right|_{r = R} = \epsilon_0 E_0 \left. \left( 1 + 2 \frac{R^3}{r^3} \right) \cos \theta \right|_{r = R} = 3 \epsilon_0 E_0 \cos \theta \tagl{3.77}

As expected, it is positive in the 'northern' hemisphere 0θπ/2 0 \leq \theta \leq \pi /2 and negative in the 'southern' π/2θπ \pi/2 \leq \theta \leq \pi .

Example 3.9

A specified charge density σ0(θ) \sigma_0(\theta) is glued over the surface of a spherical shell of radius R. Find the resulting potential inside and outside the sphere.

Solution You could, of course, do this by direct integration:

V=14πϵ0σ0γda V = \frac{1}{4 \pi \epsilon_0} \int \frac{\sigma_0}{\gr} \dd{a}

but separation of variables is often easier. For the interior region, we have

V(r,θ)=l=0AlrlPl(cosθ)(rR)(3.78) V(r, \theta) = \sum_{l = 0}^\infty A_l r^l P_l (\cos \theta) \quad (r \leq R) \tagl{3.78}

(no Bl B_l terms - they blow up at the origin); in the exterior region

V(r,θ)=l=0Blrl+1Pl(cosθ)(rR)(3.79) V(r, \theta) = \sum_{l=0}^\infty \frac{B_l}{r^{l+1}} P_l(\cos \theta) \quad (r \geq R) \tagl{3.79}

(no Al A_l terms - they don't go to zero at infinity). These two functions must be joined together by the appropriate boundary conditions at the surface itself. First, the potential is continuous at r=R r = R (Eq. 2.34):

l=0AlRlPl(cosθ)=l=0BlRl+1Pl(cosθ)(3.80) \sum_{l=0}^\infty A_l R^l P_l(\cos \theta) = \sum_{l=0} ^\infty \frac{B_l}{R^{l+1}} P_l(\cos \theta) \tagl{3.80}

It follows that the coefficients of like Legendre polynomial are equal:

Bl=AlR2l+1(3.81) B_l = A_l R^{2l+1} \tagl{3.81}

(To prove that formally, multiply both sides of (3.80) \eqref{3.80} by Pl(cosθ)sinθ P_{l'} (\cos \theta)\sin \theta and integrate from 0 0 to π \pi , using the orthogonality relation (3.68) \eqref{3.68} .) Second, the radial derivative of V suffers a discontinuity at the surface (Eq. 2.36):

(VoutrVinr)r=R=1ϵ0σ0(θ)(3.82) \left. \left( \pdv{V_{out}}{r} - \pdv{V_{in}}{r} \right) \right|_{r = R} = - \frac{1}{\epsilon_0} \sigma_0(\theta) \tagl{3.82}

Thus,

l=0(l+1)BlRl+2Pl(cosθ)l=0lAlRl1Pl(cosθ)=1ϵ0σ0(θ) - \sum_{l=0}^\infty (l+1) \frac{B_l}{R^{l+2}} P_l(\cos \theta) - \sum_{l=0}^\infty l A_l R^{l-1} P_l(\cos \theta) = - \frac{1}{\epsilon_0} \sigma_0 (\theta)

or, using (3.81) \eqref{3.81} ,

l=0(2l+1)AlRl1Pl(cosθ)=1ϵ0σ0(θ)(3.83) \sum_{l=0}^\infty (2l+1) A_l R^{l-1} P_l(\cos \theta) = \frac{1}{\epsilon_0} \sigma_0(\theta) \tagl{3.83}

From here, the coefficients can be determined using Fourier's trick

Al=12ϵ0Rl10πσ0(θ)Pl(cosθ)sinθdθ(3.84) A_l = \frac{1}{2 \epsilon_0 R^{l-1}} \int_0 ^\pi \sigma_0 (\theta) P_l(\cos \theta) \sin \theta \dd{\theta} \tagl{3.84}

Equations 3.78 and 3.79 constitute the solution to our problem, with the coefficients given by (3.81) \eqref{3.81} and (3.84) \eqref{3.84} . For instance, if

σ0(θ)=kcosθ=kP1(cosθ)(3.85) \sigma_0(\theta) = k \cos \theta = k P_1 (\cos \theta) \tagl{3.85}

for some constant k, then all the Al A_l 's are zero except for l=1 l = 1 , and

A1=k2ϵ00π[P1(cosθ)]2sinθdθ=k3ϵ0 A_1 = \frac{k}{2 \epsilon_0} \int_0 ^\pi [P_1(\cos \theta)]^2 \sin \theta \dd{\theta} = \frac{k}{3\epsilon_0}

The potential inside the sphere is therefore

V(r,θ)=k3ϵ0rcosθ(rR)(3.86) V(r, \theta) = \frac{k}{3 \epsilon_0} r \cos \theta \quad (r \leq R) \tagl{3.86}

whereas outside the sphere

V(r,θ)=kR33ϵ01r2cosθ(rR)(3.87) V(r, \theta) = \frac{kR^3}{3 \epsilon_0} \frac{1}{r^2} \cos \theta \quad (r \geq R) \tagl{3.87}

In particular, if σ0(θ) \sigma_0(\theta) is the induced charge on a metal sphere in an external field E0(z^) E_0(\vu{z}) , so that k=3ϵ0E0(3.77) k = 3 \epsilon_0 E_0 \eqref{3.77} , then the potential inside is E0rcosθ=E0z E_0 r \cos \theta = E_0 z , and the field is E0z^ -E_0 \vu{z} - exactly right to cancel off the external field, as of course it should be. Outside the sphere the potential due to this surface charge is

E0R3r2cosθ E_0 \frac{R^3}{r^2} \cos \theta

consistent with our conclusion in Example 3.8.