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 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 , the other at (Fig. 3.17). The left end, at , is closed off with an infinite strip insulated from the two plates, and maintained at a specific potential . 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, subject to the boundary conditions
- (i) when
- (ii) when
- (iii) when
- (iv) as
(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 , 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: 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, 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 into we obtain 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: 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 Now, there's only one way this could possibly be true: f and g must both be constant. For what if changed, as you vary x - then if we held y fixed and fiddled with x, the sum would change, in violation of , 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 , then, that 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 positive and negative, for reasons that will appear in a moment. Thus 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: so 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 Condition (i) now demands that D equal zero Meanwhile (ii) yields , from which it follows that (At this point you can see why I chose positive and 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, 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 just happens to have the form for some integer n, we simply can't fit the final boundary condition at . 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 satisfy it, so does any linear combination, for Exploiting this fact, we can patch together the separable solutions to construct a much more general solution: This still satisfies three of the boundary conditions; the question is, can we (by astute choice of the coefficients ) fit the final boundary condition (iii)? Well, you may recognize this sum - it's a Fourier sine series. And Dirichlet's theorem guarantees that virtually any function - it can even have a finite number of discontinuities - can be expanded in such a series. But how do we actually determine the coefficients , 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 by (where is a positive integer), and integrate from 0 to a: You can work out the integral on the left yourself; the answer is Thus all the terms in the series drop out, save only the one where , and the left side of reduces to . Conclusion: That does it: is the solution, with coefficients given by . As a concrete example, suppose the strip at is a metal plate with constant potential (remember, it's insulated from the grounded plates at and . Then Thus 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 : (a) is the 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 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 and : completeness and orthogonality. A set of functions is said to be complete if any other function can be expressed as a linear combination of them: The functions are complete on the interval . It was this fact, guaranteed by Dirichlet's theorem, that assured us could be satisfied, given the proper choice of the coefficients . (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: The sine functions are orthogonal ; 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 (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 and are connected at by metal strips maintained at a constant potential , 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 subject to the boundary conditions
- (i) when
- (ii) when
- (iii) when
- (iv) when
The argument runs as before, up to : This time, however, we cannot set ; the region in question does not extend to , so is perfectly acceptable. On the other hand, the situation is symmetric with respect to x, so , and it follows that . Using and absorbing into and , we have Boundary conditions (i) and (ii) require, as before, that and , so Because is even in x, it will automatically meet conditions (iv) if it fits (iii). It remains, therefore, to construct the general linear combination and pick the coefficients in such a way as to satisfy condition (iii): This is the same problem in Fourier analysis that we faced before; I quote the result from ; Conclusion: The potential in this case is given by This function is shown in Fig. 3.21
Example 3.5
An infinitely long rectangular metal pipe (sides a and b) is grounded, but one end, at , a 'hot' plate is maintained at a specified potential , as indicated in Fig. 3.22. Find the potential inside the pipe.
Solution This is genuinely a three-dimensional problem, subject to the boundary conditions - (i) when - (ii) when - (iii) when - (iv) when - (v) as - (vi) whem As always, we look for solutions that are products: Putting this into and dividing by V, we find It follows that Our previous experience in Ex. 3.3 suggests that must be positive, and negative. Setting and , we have , and hence Once again, separation of variables has turned a partial differential equation into ordinary differential equations. The solutions are Boundary condition (v) implies , (i) gives , and (iii) yields whereas (ii) and (iv) require that and , 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 We hope to fit the remaining boundary condition, by appropriate choice of the coefficients . To determine these constants, we multiply by , where and are arbitrary positive integers, and integrate Quoting , the left side is , so Equation , with the coefficients given by , is the solution to our problem.
For instance, if the end of the tube is a conductor at constant potential , In this case, 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:
I shall assume the problem has azimuthal symmetry, so that V is independent of ; In that case, reduces to As before, we look for solutions that are products: Putting this into , and dividing by V, Since the first term depends only on r, and the second only on , it follows that each must be a constant: Here 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, has the general solution 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, is not so simple. The solutions are Legendre polynomials in the variable :
is most conveniently defined by the Rodrigues formula:
The first few Legendre polynomials are listed:
Legendre Polynomials -
Notice that 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 was chosen in order that
The Rodrigues formula obviously only works for nonnegative integer values of l. Moreover, it provides us with only one solution. But 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 and/or , and are therefore unacceptable on physical grounds. For instance, the second solution for is You might want to check for yourself that this satisfies .
In the case of azimuthal symmetry, then, the most general separable solution to Laplace's equation, consistent with minimal physical requirements, is (There was no need to include an overall constant in 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: The following examples illustrate the power of this important result.
Example 3.6
The potential is specified on the surface of a hollow sphere, of radius R. Find the potential inside the sphere.
Solution In this case, for all l, otherwise the potential would blow up at the origin. Thus, At this must match the specified function : Can this equation be satisfied, for an appropriate choice of coefficients ? Yes: The Legendre polynomials (like the sines) constitute a complete set of functions, on the interval . How do we determine the constants? Again, by Fourier's trick, for the Legendre polynomials (like the sines) are orthogonal functions: Thus, multiplying by and integrating, we have or is the solution to our problem, with the coefficients given by . It can be difficult to evaluate integrals of the form analytically, and in practice it is often easier to solve "by eyeball." For instance, suppose we are told that the potential on the sphere is where k is constant. Using the half-angle formula, we rewrite this as Putting this into , we read off immediately that , , and all other 's vanish. Therefore
Example 3.7
The potential 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 's that must be zero (or else V would not go to zero at ), so Multiplying by and integrating - exploiting, again, the orthogonality relation 3.68 - we have or , with the coefficients given by , is the solution to our problem.
Example 3.8
An uncharged metal sphere of radius R is placed in an otherwise uniform electric field . 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 and hence
Since in the equatorial plane, the constant C must be zero. Accordingly, the boundary conditions for this problem are - (i) when - (ii) for We must fit these boundary conditions with a function of the form . The first condition yields or so For , the second term in parentheses is negligible, and therefore the condition (ii) requires that Evidently only one term is present: . In fact, since we can read off immediately Conclusion: The first term is due to the external field; the contribution attributable to the induced charge is 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 and negative in the 'southern' .
Example 3.9
A specified charge density 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: but separation of variables is often easier. For the interior region, we have (no terms - they blow up at the origin); in the exterior region (no 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 (Eq. 2.34): It follows that the coefficients of like Legendre polynomial are equal: (To prove that formally, multiply both sides of by and integrate from to , using the orthogonality relation .) Second, the radial derivative of V suffers a discontinuity at the surface (Eq. 2.36): Thus, or, using , From here, the coefficients can be determined using Fourier's trick Equations 3.78 and 3.79 constitute the solution to our problem, with the coefficients given by and . For instance, if for some constant k, then all the 's are zero except for , and The potential inside the sphere is therefore whereas outside the sphere In particular, if is the induced charge on a metal sphere in an external field , so that , then the potential inside is , and the field is - 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 consistent with our conclusion in Example 3.8.