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) or the charge density (σ) 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, the other at y=a (Fig. 3.17). The left end, at x=0, is closed off with an infinite strip insulated from the two plates, and maintained at a specific potential V0(y). Find the potential inside this 'slot.'
Solution
The configuration is independent of z, so this is really a two-dimensional problem. In mathematical terms, we must solve Laplace's equation,
∂x2∂2V+∂y2∂2V=03.20(3.20)
subject to the boundary conditions
(i) V=0 when y=0
(ii) V=0 when y=a
(iii) V=V0(y) when x=0
(iv) V→0 as x→∞
(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, 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)
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) 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) into (3.20) we obtain
Ydx2d2X+Xdy2d2Y=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:
X1dx2d2X+Y1dy2d2Y=0(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)
Now, there's only one way this could possibly be true: f and g must both be constant. For what if f(x) changed, as you vary x - then if we held y fixed and fiddled with x, the sum f(x)+g(y) would change, in violation of (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), then, that
X1dx2d2X=C1 and Y1dy2d2Y=C2, with C1+C2=0(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 positive and C2 negative, for reasons that will appear in a moment. Thus
dx2d2X=k2X,dy2d2Y=−k2Y(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+Be−kt,Y(y)=Csinky+Dcosky
so
V(x,y)=(Aekt+Be−kt)(Csinky+Dcosky)(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)=e−kx(Csinky+Dcosky)
Condition (i) now demands that D equal zero
V(x,y)=C−kxsinky(3.28)
Meanwhile (ii) yields sinka=0, from which it follows that
k=anπ(n=1,2,3,…)(3.29)
(At this point you can see why I chose C1 positive and C2 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 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) just happens to have the form sin(nπ/a) for some integer n, we simply can't fit the final boundary condition at 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,… satisfy it, so does any linear combination, for
∇2V=α1∇2V1+α2∇2V2+…=0α1+0α2+…=0
Exploiting this fact, we can patch together the separable solutions (3.28) to construct a much more general solution:
V(x,y)=n=1∑∞Cne−nπx/asin(nπy/a)(3.30)
This still satisfies three of the boundary conditions; the question is, can we (by astute choice of the coefficients Cn) fit the final boundary condition (iii)?
V(0,y)=n=1∑∞Cnsin(nπy/a)=V0(y)(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) - 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, 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) by sin(n′πy/a) (where n′ is a positive integer), and integrate from 0 to a:
Thus all the terms in the series drop out, save only the one where n=n′, and the left side of (3.32) reduces to (a/2)Cn′. Conclusion:
Cn=a2∫0aV0(y)sin(nπy/a)dy(3.34)
That does it: (3.30) is the solution, with coefficients given by eqref3.34. As a concrete example, suppose the strip at x=0 is a metal plate with constant potential V0 (remember, it's insulated from the grounded plates at y=0 and y=a. Then
Cn=a2V0∫0asin(nπy/a)dy=nπ2V0(1−cosnπ)={0nπ4V0if n is even if n is odd(3.35)
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: (a) is the 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.
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)=π2V0tan−1(sinh(πx/a)sin(πy/a))(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) and (3.29): completeness and orthogonality. A set of functions fn(y) is said to be complete if any other function f(y) can be expressed as a linear combination of them:
f(y)=n=1∑∞Cnfn(y)(3.38)
The functions sin(nπy/a) are complete on the interval 0≤y≤a. It was this fact, guaranteed by Dirichlet's theorem, that assured us (3.31) could be satisfied, given the proper choice of the coefficients Cn. (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 n′=n
The sine functions are orthogonal (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 (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 and y=a are connected at x=±b by metal strips maintained at a constant potential V0, 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.
Solution
Once again, the configuration is independent of z. Our problem is to solve Laplace's equation
∂x2∂2V+∂y2∂2V=0
subject to the boundary conditions
(i) V=0 when y=0
(ii) V=0 when y=a
(iii) V=V0 when x=b
(iv) V=V0 when x=−b
The argument runs as before, up to (3.27):
V(x,y)=(Aekt+Be−kt)(Csinky+Dcosky)
This time, however, we cannot set A=0; the region in question does not extend to x=∞, so ekx is perfectly acceptable. On the other hand, the situation is symmetric with respect to x, so V(−x,y)=V(x,y), and it follows that A=B. Using
ekx+e−kx=2coshkx
and absorbing 2A into C and D, we have
V(x,y)=coshkx(Csinky+Dcosky)
Boundary conditions (i) and (ii) require, as before, that D=0 and k=nπ/a, so
V(x,y)=Ccosh(nπx/a)sin(nπy/a)(3.41)
Because 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=1∑∞Cncosh(nπx/a)sin(nπy/a)
and pick the coefficients Cn in such a way as to satisfy condition (iii):
V(b,y)=n=1∑∞Cncosh(nπb/a)sin(nπy/a)=V0
This is the same problem in Fourier analysis that we faced before; I quote the result from (3.35);
Cncosh(nπb/a)={0nπ4V0if n is evenif n is odd
Conclusion: The potential in this case is given by
An infinitely long rectangular metal pipe (sides a and b) is grounded, but one end, at x=0, a 'hot' plate is maintained at a specified potential V0(y,z), as indicated in Fig. 3.22. Find the potential inside the pipe.
Solution
This is genuinely a three-dimensional problem,
∂x2∂2V+∂y2∂2V+∂z2∂2V=0(3.43)
subject to the boundary conditions
- (i) V=0 when y=0
- (ii) V=0 when y=a
- (iii) V=0 when z=0
- (iv) V=0 when z=b
- (v) V→0 as x→∞
- (vi) V=V0(y,z) whem x=0
As always, we look for solutions that are products:
V(x,y,z)=X(x)Y(y)Z(z)(3.45)
Putting this into (3.43) and dividing by V, we find
X1dx2d2X+Y1dy2d2Y+Z1dz2d2Z=0
It follows that
X1dx2d2X=C1,Y1dy2d2Y=C2,Z1dz2d2Z=C3, with C1+C2+C3=0
Our previous experience in Ex. 3.3 suggests that C1 must be positive, C2 and C3 negative. Setting C2=−k2 and C3=−l2, we have C1=k2+l2, and hence
dx2d2X=(k2+l2)X,dy2d2Y=−k2Y,dz2d2Z=−l2Z(3.46)
Once again, separation of variables has turned a partial differential equation into ordinary differential equations. The solutions are
Boundary condition (v) implies A=0, (i) gives D=0, and (iii) yields F=0 whereas (ii) and (iv) require that k=nπ/a and l=mπ/b, where n and m are positive integers. Combining the remaining constants, we are left with
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
by appropriate choice of the coefficients Cn,m. To determine these constants, we multiply by sin(n′nπy/a)sin(m′πz/b), where n′ and m′ are arbitrary positive integers, and integrate
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:
Here 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,
drd(r2drdR)=l(l+1)R(3.58)
has the general solution
R(r)=Arl+rl+1B(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,
dθd(sinθdθdΘ)=−l(l+1)sinθΘ(3.60)
is not so simple. The solutions are Legendre polynomials in the variable cosθ:
Θ(θ)=Pl(cosθ)(3.61)
Pl(x) is most conveniently defined by the Rodrigues formula:
Notice that Pl(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! was chosen in order that
Pl(1)=1(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) 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 and/or θ=π, and are therefore unacceptable on physical grounds. For instance, the second solution for l=0 is
Θ(θ)=ln(tan2θ)(3.64)
You might want to check for yourself that this satisfies (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+rl+1B)Pl(cosθ)
(There was no need to include an overall constant in (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+rl+1B)Pl(cosθ)(3.65)
The following examples illustrate the power of this important result.
Example 3.6
The potential V0(θ) is specified on the surface of a hollow sphere, of radius R. Find the potential inside the sphere.
Solution
In this case, Bl=0 for all l, otherwise the potential would blow up at the origin. Thus,
V(r,θ)=l=0∑∞AlrlPl(cosθ)(3.66)
At r=R this must match the specified function V0(θ):
V(R,θ)=l=0∑∞AlRlPl(cosθ)=V0(θ)(3.67)
Can this equation be satisfied, for an appropriate choice of coefficients Al? Yes: The Legendre polynomials (like the sines) constitute a complete set of functions, on the interval −1≤x≤1(0≤θ≤π). How do we determine the constants? Again, by Fourier's trick, for the Legendre polynomials (like the sines) are orthogonal functions:
Thus, multiplying (3.67) by Pl′(cosθ)sinθ and integrating, we have
Al′Rl′2l′+12=∫0πV0(θ)Pl′(cosθ)sinθdθ
or
Al=2Rl2l+1∫0πV0(θ)Pl(cosθ)sinθdθ(3.69)
(3.66) is the solution to our problem, with the coefficients given by (3.69).
It can be difficult to evaluate integrals of the form (3.69) analytically, and in practice it is often easier to solve (3.67) "by eyeball." For instance, suppose we are told that the potential on the sphere is
V0(θ)=ksin2(θ/2)(3.70)
where k is constant. Using the half-angle formula, we rewrite this as
V0(θ)=2k(1−cosθ)=2k[P0(cosθ)−P1(cosθ)]
Putting this into (3.67), we read off immediately that A0=k/2, A1=−k/(2R), and all other Al's vanish. Therefore
The potential V0(θ) 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's that must be zero (or else V would not go to zero at ∞), so
V(r,θ)=l=0∑∞rl+1BlPl(cosθ)=V0(θ)(3.72)
Multiplying by Pl′(cosθ)sinθ and integrating - exploiting, again, the orthogonality relation 3.68 - we have
Rl′+1Bl′2l′+12=∫0πV0(θ)Pl′(cosθ)sinθdθ
or
Bl=22l+1Rl+1∫0πV0(θ)Pl(cosθ)sinθdθ(3.73)
(3.72), with the coefficients given by (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^. 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^ and hence
V→−E0z+C
Since V=0 in the equatorial plane, the constant C must be zero. Accordingly, the boundary conditions for this problem are
- (i) V=0 when r=R
- (ii) V→−E0rcosθ for r≫R
We must fit these boundary conditions with a function of the form (3.65). The first condition yields
AlRl+Rl+1Bl=0
or
Bl=−AlR2l+1(3.75)
so
V(r,θ)=l=0∑∞Al(rl−rl+1R2l+1)Pl(cosθ)
For r≫R, the second term in parentheses is negligible, and therefore the condition (ii) requires that
l=0∑∞AlRlPl(cosθ)=−E0rcosθ
Evidently only one term is present: l=1. In fact, since P1(cosθ)=cosθ we can read off immediately
A1=−E0, all other Al′s zero
Conclusion:
V(r,θ)=−E0(r−r2R3)cosθ(3.76)
The first term (−E0rcosθ) is due to the external field; the contribution attributable to the induced charge is
E0r2R3cosθ
If you want to know the induced charge density, it can be calculated in the usual way:
As expected, it is positive in the 'northern' hemisphere 0≤θ≤π/2 and negative in the 'southern' π/2≤θ≤π.
Example 3.9
A specified charge density σ0(θ) 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=4πϵ01∫γσ0da
but separation of variables is often easier. For the interior region, we have
V(r,θ)=l=0∑∞AlrlPl(cosθ)(r≤R)(3.78)
(no Bl terms - they blow up at the origin); in the exterior region
V(r,θ)=l=0∑∞rl+1BlPl(cosθ)(r≥R)(3.79)
(no Al 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 (Eq. 2.34):
It follows that the coefficients of like Legendre polynomial are equal:
Bl=AlR2l+1(3.81)
(To prove that formally, multiply both sides of (3.80) by Pl′(cosθ)sinθ and integrate from 0 to π, using the orthogonality relation (3.68) .) Second, the radial derivative of V suffers a discontinuity at the surface (Eq. 2.36):
From here, the coefficients can be determined using Fourier's trick
Al=2ϵ0Rl−11∫0πσ0(θ)Pl(cosθ)sinθdθ(3.84)
Equations 3.78 and 3.79 constitute the solution to our problem, with the coefficients given by (3.81) and (3.84).
For instance, if
σ0(θ)=kcosθ=kP1(cosθ)(3.85)
for some constant k, then all the Al's are zero except for l=1, and
A1=2ϵ0k∫0π[P1(cosθ)]2sinθdθ=3ϵ0k
The potential inside the sphere is therefore
V(r,θ)=3ϵ0krcosθ(r≤R)(3.86)
whereas outside the sphere
V(r,θ)=3ϵ0kR3r21cosθ(r≥R)(3.87)
In particular, if σ0(θ) is the induced charge on a metal sphere in an external field E0(z^), so that k=3ϵ0E0(3.77), then the potential inside is E0rcosθ=E0z, and the field is −E0z^ - 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