In three-dimensional rectangular coordinates, the partial differential equation known as Laplace’s equation takes the form
This equation is applicable to a wide range of problems in physics but it is often necessary to make a change of variables from rectangular to spherical polar coordinates in order to better match the spherical symmetry of particular contexts. One can work out this change of variables using a scale factor method based on the formula for the Laplacian of a function in general orthogonal curvilinear coordinates:
This formula is derived using basic results from vector calculus and allows Laplace’s equation to be easily expressed in any orthogonal coordinate system once the form of the Euclidean metric is known in that coordinate system. (Orthogonal coordinate systems are those for which the coordinate basis vectors are always orthogonal at each point). The Euclidean metric in general orthogonal coordinates ,
,
will take the form
The coefficients ,
and
are the scale factors appearing in the Laplacian formula. In the metric, these convert the coordinate differentials
into lengths
.
In the case of rectangular coordinates we have ,
,
and
so the Euclidean metric and the Laplacian formula reduce to the familiar forms
and
The scale factors are all equal to 1 in this case since the coordinate differentials are already in units of length. In the case of spherical polar coordinates (an orthogonal coordinate system) we can find the scale factors and hence the Laplacian by using the standard conversion equations
Taking the differentials of these, squaring them and adding them we find that the Euclidean metric in spherical polar coordinates takes the form
The scale factors in this case are therefore ,
and
. Putting these into the Laplacian formula we immediately get
Therefore Laplace’s equation in spherical polar coordinates is
I recently had occasion to use Laplace’s equation in spherical polar coordinates again and this time I decided to have a go at justifying the change of variables to myself using a matrix calculus approach instead of the above scalar factor method. This turned out to be a laborious but interesting process. In the present note I want to record my calculations using the matrix calculus approach in detail as I have never seen something like this elsewhere. The advantage of the matrix calculus approach is that it works for any coordinate system irrespective of whether it is orthogonal or not.
In the matrix calculus approach we use the standard conversion equations for spherical polar coordinates
to work out the coefficient matrix in the system
which of course is equivalent to the set of equations
We get the system
We can solve this system either by inverting the coefficient matrix or by using Cramer’s rule. Using Cramer’s rule we get
and similarly
and
We can write these solutions more concisely in matrix form as
The coefficient matrix here is, of course, the inverse of the coefficient matrix in the original system.
To find the second-order partials ,
and
, let
,
and
. Then we need to find
,
and
. We can use the first, second and third equations respectively in the above matrix system to find these, with
replaced by
,
and
respectively. Thus,
But differentiating
with respect to ,
and
we get
Similarly, differentiating
with respect to ,
and
we get
and differentiating
with respect to and
we get
Therefore we have
and similarly
and
Laplace’s equation is given by so we need to work out the three matrix equations above and sum them. The result will be a sum involving the nine partials
,
,
,
,
,
,
,
and
. I found that the most convenient way to work out the sum was by working out the coefficients of each of these nine partials individually in turn. The result is
which simplifies to
Therefore Laplace’s equation in spherical polar coordinates is
as before.
