[Click here for a PDF of this post with nicer formatting]

# Dedication.

To all tyrannical old Professors driven to cruelty by an unending barrage of increasingly ill prepared students.

# Motivation.

The text [1] has an excellent general derivation of a number of forms of the gradient, divergence, curl and Laplacian.

This is actually done, not starting with the usual Cartesian forms, but more general definitions.

These are then shown to imply the usual Cartesian definitions, plus provide the means to calculate the general relationships in whatever coordinate system you like. All in all one can’t beat this approach, and I’m not going to try to replicate it, because I can’t improve it in any way by doing so.

Given that, what do I have to say on this topic? Well, way way back in first year electricity and magnetism, my dictator of a prof, the intimidating but diminutive Dmitrevsky, yelled at us repeatedly that one cannot just dot the gradient to form the Laplacian. As far as he was concerned one can only say

and never never never, the busted way

Because “this only works in Cartesian coordinates”. He probably backed up this assertion with a heartwarming and encouraging statement like “back in the days when University of Toronto was a real school you would have learned this in kindergarten”.

This detail is actually something that has bugged me ever since, because my assumption was that, provided one was careful, why would a change to an alternate coordinate system matter? The gradient is still the gradient, so it seems to me that this ought to be a general way to calculate things.

Here we explore the validity of the dictatorial comments of Prof Dmitrevsky. The key to reconciling intuition and his statement turns out to lie with the fact that one has to let the gradient operate on the unit vectors in the non Cartesian representation as well as the partials, something that wasn’t clear as a first year student. Provided that this is done, the plain old dot product procedure yields the expected results.

This exploration will utilize a two dimensional space as a starting point, transforming from Cartesian to polar form representation. I’ll also utilize a geometric algebra representation of the polar unit vectors.

# The gradient in polar form.

Lets start off with a calculation of the gradient in polar form starting with the Cartesian form. Writing , , , and , we want to map

into the same form using , and . With we have

Next we need to do a chain rule expansion of the partial operators to change variables. In matrix form that is

To calculate these partials we drop back to coordinates

From this we calculate

for

We can now write down the gradient in polar form, prior to final simplification

Observe that we can factor a unit vector

so the element of the matrix product in the interior is

Similarly, the element of the matrix product in the interior is

The exponentials cancel nicely, leaving after a final multiplication with the polar form for the gradient

That was a fun way to get the result, although we could have just looked it up. We want to use this now to calculate the Laplacian.

# Polar form Laplacian for the plane.

We are now ready to look at the Laplacian. First let’s do it the first year electricity and magnetism course way. We look up the formula for polar form divergence, the one we were supposed to have memorized in kindergarten, and find it to be

We can now apply this to the gradient vector in polar form which has components , and , and get

This is the expected result, and what we should get by performing in polar form. Now, let’s do it the wrong way, dotting our gradient with itself.

This is wrong! So is Dmitrevsky right that this procedure is flawed, or do you spot the mistake? I have also cruelly written this out in a way that obscures the error and highlights the source of the confusion.

The problem is that our unit vectors are functions, and they must also be included in the application of our partials. Using the coordinate polar form without explicitly putting in the unit vectors is how we go wrong. Here’s the right way

Now we need the derivatives of our unit vectors. The derivatives are zero since these have no radial dependence, but we do have partials

and

(One should be able to get the same results if these unit vectors were written out in full as , and , instead of using the obscure geometric algebra quaterionic rotation exponential operators.)

Having calculated these partials we now have

Exactly what it should be, and what we got with the coordinate form of the divergence operator when applying the “Laplacian equals the divergence of the gradient” rule blindly. We see that the expectation that is the Laplacian in more than the Cartesian coordinate system is not invalid, but that care is required to apply the chain rule to all functions. We also see that expressing a vector in coordinate form when the basis vectors are position dependent is also a path to danger.

Is this anything that our electricity and magnetism prof didn’t know? Unlikely. Is this something that our prof felt that could not be explained to a mob of first year students? Probably.

# References

[1] F.W. Byron and R.W. Fuller. *Mathematics of Classical and Quantum Physics*. Dover Publications, 1992.