Laplace s Equation on a Sphere J. Robert Buchanan Department of Mathematics Millersville University P.O. Box, Millersville, PA 7 Bob.Buchanan@millersville.edu April, Problem Description Consider the heat equation on the sphere of radius. ut = kuxx uyy uzz ) ux, y, z, ) = f x, y, z) ux, y, z, t) = x y z for x y z =, t > Find the steady state temperature distribution in the sphere. The temperature distribution on the surface of the sphere is shown in the plot below. y - - z - - - - x
Problem Solution At steady state, u t = and thus we must solve Laplace s equation on the sphere. = u xx u yy u zz ux, y, z) = x y z for x y z = Since the physical domain of the problem is a sphere, it will be to our advantage to convert the Laplacian and the boundary conditions to spherical coordinates. We will adopt the physical rather than mathematical convention of labeling the azimuthal angle φ and the latitudinal angle θ. Thus to convert from Cartesian to spherical coordinates we will make use of the following equations. x = ρ sin θ cos φ y = ρ sin θ sin φ z = ρ cos θ In spherical coordinates the Laplacian operator u xx u yy u zz = u has the form u = ρ ρ u ) ρ ρ ρ sin θ sin θ u ) θ θ u ρ sin θ φ, where the coordinate ρ is the distance from the origin. The details of the conversion may be found in Appendix A. Since Laplace s equations is linear and homogeneous, we may attempt to solve it using the method of separation of variables. To begin we will assume that uρ, θ, φ) = Rρ)T θ)p φ) and substitute this expression in Laplace s equation. This produces ρ ρ R ) T P ρ ρ sin θ ) RP θ ρ sin θ RT P = where the prime notation denotes the appropriate ordinary derivative. Multiplying both sides of this equation by ρ sin θ RT P yields the equation sin θ R ρ R ) sin θ ρ T ) P θ P =. Moving the functions depending only on φ to the right-hand side of the equations allows us to separate the φ and ρ, θ) variables. sin θ R ρ R ) sin θ ρ T ) = P θ P Since the left-hand side of the equation depends only on ρ, θ) and the right-hand side depends only on φ, both sides of the equation must equal a constant.
φ-dependent Factor of u Since the solution to Laplace s equation must be π-periodic in φ the constant must be of the form n where n N {}. Hence P P = n P n P = P n φ) = A n cos nφ B n sin nφ. See [, Chap. ] for the classical method of solving a second-order, linear, homogeneous ordinary differential equation of the type shown above. Now we turn to the task of solving for the remaining two factors of the solution u to Laplace s equation. ρ-dependent Factor of u The partial solution P n φ) found in the previous section imposes the following constraint on the solutions for ρ and θ. sin θ ρ R ) sin θ ) = n, R ρ T θ where n N {}. As a next step we divide both sides of the equation by sin θ to obtain ρ R ) ) R ρ T sin θ θ = ρ R ) R ρ = n sin θ n sin θ ). T sin θ θ We see that the left-hand side of the equation depends only on ρ while the right-hand side depends only on θ. Thus both sides are equal to a constant. If the constant has the form mm ) where m N {} then the following ordinary differential equation is implied by the left-hand side of the last equation. ρ R ) = mm ) R ρ ρ R ρr mm )R = The latter equation is known as Euler s Equation see [, Sec..]). The solution to this equation has the form Rρ) = Cρ m Dρ m. Since the solution to Laplace s equation must be bounded at the origin where ρ = ) we must assume D = and thus the ρ-dependent factor of the solution has the form R m ρ) = ρ m with m N {}. Now we proceed to the task of finding the θ-dependent factor of the solution to Laplace s equation.
θ-dependent Factor of u The solutions found for Rρ) and P φ) have imposed two constraints on the differential equation for T θ). It now has the form n sin θ ) = mm ), T sin θ θ which is equivalent to the ordinary differential equation T cos θ ) sin θ T mm ) n sin =. θ We can put this equation in a more convenient form for solving by making the change of variable w = cos θ. In this case, cos θ) d T dt cos θ dw dw dt = sin θ dt dθ dw and d T dθ = cos θ dt dw sin θ d T dw. Substituting these expressions in the previous ordinary differential equation gives us ) sin θ d T dt cos θ mm dw dw ) n sin T = θ n ) mm ) T = w ) d T dt w dw dw cos θ mm ) n w ) T =. This last ordinary differential equation is known as the associated Legendre differential equation see []). The solutions will be denoted by the functions Tm nw) = T m n cos θ) with m N {} and n m see []). Now we may summarize the product solution. General Solution Combining the three factors of the product solution we have u n mρ, θ, φ) = ρ m T n mcos θ)a n m cos nφ B n m sin nφ) for m N {} and n m. Thus the series solution of Laplace s equation on the sphere can be written as m uρ, θ, φ) = ρ m Tm n cos θ)an m cos nφ Bn m sin nφ). m= n= The next step is to choose the coefficients A n m and B n m so that the boundary conditions can be satisfied.
Boundary Conditions The boundary of the sphere is kept at a temperature distribution described by ux, y, z) = x y z for x y z =. In spherical coordinates these boundary conditions are equivalent to u, θ, φ) = cos θ cos θ) cos φ for θ π and φ π. The details of this coordinate conversion are found in Appendix B. Rather than try to use the orthogonality property of the eigenfunctions, we will use the fact that the boundary condition is a finite sum of eigenfunctions and thus we merely need match the coefficients at the boundary. The first several associated Legendre functions are listed in the matrix below. T w) = T w) = w T w) = w T w) = w ) T w) = w w T w) = w ) Thus by writing out the first several terms of the solution evaluated when ρ = we get u, θ, φ) = m m= n= m Tm n cos θ)an m cos nφ Bn m sin nφ) = A T cos θ) A T cos θ) T cos θ)a cos φ B sin φ) A T cos θ) T cos θ)a cos φ B sin φ) T cos θ)a cos φ B sin φ) We can see by the absence of sin nφ terms in the spherical coordinate form of the boundary conditions that B j i = for all i and j. Absent as well are any powers of cos θ larger than, thus Am n = for n >. Thus we have u, θ, φ) = A A cos θ A sin θ cos φ A cos θ ) A cos θ sin θ cos φ A cos θ) cos φ. Simplifying one step at a time we can set A = A = A =. This will leave, u, θ, φ) = A A cos θ ) A cos θ) cos φ = A A ) A cos θ A cos θ) cos φ and hence if we choose A =, A = 8, and A = we have satisfied the boundary conditions. Therefore the solution to Laplace s equation on the sphere may be written as uρ, θ, φ) = 8 ρ cos θ ) ρ cos θ) cos φ.
Plots of Solution The following sequence of frames illustrates the ρ-dependency of the solution for ρ in steps of size ρ = 7.........................
The following sequence of frames illustrates the φ-dependency of the solution for φ 7π steps of size φ = π. in........................................ 7
The following sequence of frames illustrates the θ-dependency of the solution for θ 7π 8 in steps of size θ = π 8................. 8
References [] William E. Boyce and Richard C. DiPrima, Elementary Differential Equations and Boundary Value Problems, 7th edition, John Wiley & Sons, Inc., New York. [] Robert T. Smith and Roland B. Minton, Calculus, nd edition, McGraw-Hill Publishing Company, Boston, MA. [] Eric W. Weisstein, Legendre Differential Equation, From MathWorld A Wolfram Web Resource, http://mathworld.wolfram.com/legendredifferentialequation.html [] Daniel Zwillinger Ed.), CRC Standard Mathematical Tables and Formulae, CRC Press, Boca Raton, FL 99. A Spherical Laplacian The Laplacian operator in spherical coordinates can be derived by use of the chain rule for multivariable functions see [, Sec..]). Suppose that u uρ, θ, φ) then the first partial derivatives of u are u ρ = u x x ρ u y y ρ u z z ρ = u x sin θ cos φ u y sin θ sin φ u z cos θ u θ = u x x θ u y y θ u z z θ = u x ρ cos θ cos φ u y ρ cos θ sin φ u z ρ sin θ u φ = u x x φ u y y φ u z z φ = u x ρ sin θ sin φ u y ρ sin θ cos φ In a similar fashion we may find the three out of the nine total) second partial derivatives. u ρρ = u xx sin θ cos φ u xy sin θ cos φ sin φ u xz cos θ sin θ cos φ u yy sin θ sin φ u yz cos θ sin θ sin φ u zz cos θ u θθ = u xx ρ cos θ cos φ u xy ρ cos θ cos φ sin φ u xz ρ cos θ sin θ cos φ u yy ρ cos θ sin φ u yz ρ cos θ sin θ sin φ u zz ρ sin θ u x ρ sin θ cos φ u y ρ sin θ cos φ u z ρ cos θ u φφ = u xx ρ sin θ sin φ u xy ρ sin θ cos φ sin φ u yy ρ sin θ cos φ u x ρ sin θ cos φ u y ρ sin θ sin φ Now we can verify that u xx u yy u zz = ρ ρ ρ u ) ρ ρ sin θ sin θ u ) θ θ u ρ sin θ φ. 9
We start with the right-hand side. ρ ρ u ) ρ ρ ρ sin θ u sin θ θ θ = u ρρ ρ u ρ ρ u θθ cos θ ρ sin θ u θ ) u φ ρ sin θ ρ sin θ u φφ = u xx sin θ cos φ u xy sin θ cos φ sin φ u xz cos θ sin θ cos φ u yy sin θ sin φ u yz cos θ sin θ sin φ u zz cos θ ρ u x sin θ cos φ u y sin θ sin φ u z cos θ) u xx cos θ cos φ u xy cos θ cos φ sin φ u xz cos θ sin θ cos φ u yy cos θ sin φ u yz cos θ sin θ sin φ u zz sin θ ρ u x sin θ cos φ u y sin θ cos φ u z cos θ) cos θ ρ sin θ u xρ cos θ cos φ u y ρ cos θ sin φ u z ρ sin θ) u xx sin φ u xy cos φ sin φ u yy cos φ ρ sin θ u x cos φ u y sin φ) = u xx [ sin θ cos θ ] cos φ sin φ ) u yy [ sin θ cos θ ] sin φ cos φ ) u zz cos θ sin θ ) u xy [ sin θ cos θ ] cos φ sin φ cos φ sin φ ) u xz cos θ sin θ cos φ cos θ sin θ cos φ) u yz cos θ sin θ sin φ cos θ sin θ sin φ) cos θ ρ sin θ u x cos φ u y sin φ) ρ u z cos θ ρ u x sin θ cos φ u y sin θ sin φ u z cos θ) ρ sin θ u x cos φ u y sin φ) = u xx u yy u zz sin θ u x cos φ u y sin φ) ρ sin θ ρ u x sin θ cos φ u y sin θ sin φ) ρ sin θ u x cos φ u y sin φ) = u xx u yy u zz sin θ ρ u x cos φ u y sin φ) ρ u x sin θ cos φ u y sin θ sin φ) = u xx u yy u zz
B Spherical Boundary Conditions ux, y, z) = x y z for x y z = u, θ, φ) = sin θ cos φ) sin θ sin φ) cos θ) = sin θ cos φ sin θ sin φ cos θ ) = [ cos θ] cos φ [ cos θ] sin φ cos θ ) = [ cos φ sin φ] cos θ sin φ cos φ ) = [ sin φ] cos θ sin φ ) ) cos φ = [ ] cos cos φ θ = cos φ) cos θ cos φ) = cos θ cos θ) cos φ