Problem. We are trying to perform a change of variables in higher dimensions. In particular, for this integral:
∭Vf(x,y,z)dxdydz
Instead of bounding V with Cartesian coordinates (x,y,z) and integrating over those rectangular coordinates, say we want to use spherical coordinates (ρ,θ,ϕ) instead.
Let’s analyze the simpler 1D case first:
∫abf(x)dx
In fact, let’s even give ourselves an example to work with.
I=∫021+x2xdx(ex. #1)
So in a single-variable integral, you would perform some transformation u=u(x) being some function of x. or substitution x=p(u) with q=p−1; both should give the same results (probably with an asterisk for non-injective functions) Such a function would let us turn dx into du as well assuming du=Xdx. Conveniently,
du=Xdx⟹X=dxdu
We can easily calculate this scale factor X. Then the integral transforms into something; with the transformation u=x2, the example integral becomes
I=21∫041+udu
This should be familiar; this yields I=ln5. However, with our original problem with multivariable calculus, this scale factor X seems a bit more elusive; you can’t just move one variable to one side:
dxdydz=Xdρdθdϕ⟹???X=??dρdθdϕdxdydz
In a usual calculus class, you (and I, too) have probably been taught to be wary of treating “differentials” as ordinary objects, but not given much further explanation. Sometimes it’s magic when it works. Typically that’s for the good reason of avoiding quite a large rabbit hole. I apologize; perhaps this sparks an interest of your own! Me personally, I haven’t dabbled into it much rigorously, so that’s a disclaimer.
Firstly, think about the old coordinate system as a function of our new coordinate system (ρ,θ,ϕ). Hopefully the colors help.
x(ρ,θ,ϕ)=ρsinϕcosθy(ρ,θ,ϕ)=ρsinϕsinθz(ρ,θ,ϕ)=ρcosϕ⎭⎬⎫coordinate variables as functions of other coordinates
Hopefully the vision is clear: on the right, I’d extract dρdθdϕ and then the coefficient would be X. You might ask, ARE YOU CRAZY? First of all, we have to deal with 3×3×3=27 terms, and we aren’t even sure there is even the slightest hope that this simplifies. Continue holding my beer.
The following is an animation of the algebraic manipulations. It relies on repeatedly applying the following fact, for a general coordinate variable q:
dq2=0
I will talk more about this at the end of this post, but for now, feel free to pause the video at certain steps to understand which terms are getting annihilated, etc.
So that’s the first part in action. Also, let’s make a quick notation change using xρ=∂ρ∂x.
Even after this massive simplification, you might still think we’re quite far from our beloved Jacobian determinant.
Once again, you will continue holding my beer for another fact.
and there is a lot to say about this fact later; despite all the reasons to panic, please don’t!
dρdθ=−dθdρ
Perform swaps for each term so that it ends in dρdθdϕ:
And so that happens to be what the Jacobian determinant is for spherical coordinates from rectangular coordinates. detJ=X.
While we could’ve stopped here, as we finally have found whatX is, the itch to generalize this formula beyond just rectangular to spherical coordinates is pretty good, so why don’t we?
The following move is something I think would either require a stroke of luck via a pre-existing knowledge of the combinatorial properties of a determinant or a really good geometric picture and understanding of linear algebra, both of which are very interesting approaches.
The 3×3 determinant is probably very familiar to a lot of people reading this (the curious are led to the Wikipedia page on the Leibniz formula for determinants, if not already looked at before). Thus,
X=xρyρzρxθyθzθxϕyϕzϕ
We finally define, to our convenience, the Jacobian.
J=xρyρzρxθyθzθxϕyϕzϕ
Well, it’s the Jacobian for transforming from rectangular to spherical coordinates; however, it should be easy to see how to extend this to higher dimensions and also for other smooth coordinate changes.
So why do I care (and why should you, too)?
For me, Jacobians were always annoying to remember and (like many math concepts) are typically presented as definitions and you were told to just bash sample problems afterwards. Sometimes, you’ll be gifted by the geometric intuition of what Jacobians are (local scale factors), yet you would still go on carrying out calculations where you might not know where each term comes from. If you’re like me, that might’ve bothered you slightly, even given the visual picture of the “local scale factor”.
Given that, this blog post was an attempt at a faithful reconstruction of the Jacobian, as well as to understand why it’s even necessary. So that was the motivation. For a faithful rederivation, I tried to make no part of the derivation process motivated by a pre-existing knowledge of Jacobians; it should’ve been a priori.
Also, the process by which I came to this derivation was quite interesting. See this video by Another Roof which introduced me to thinking about determinants through a beautiful combinatorial/algebraic interpretation.
There’s two major questions though with my derivation: how in the world does dq2=0 and dqdp=−dpdq?
And about that…
Anyways, take your beer back. Explain what’s going on.
Yeah, there were a lot of “magic tricks”…
Some physicists in the audience might think, oh, I’m at least familiar with "dq2=0" because that’s what you do with Taylor series; I believed for similar reasons, too, initially. However, apparently, that’s not the right reason that fact holds!
Actually, this warrants a slightly better understanding of what dxdydz are doing together in the triple integral.
You have to treat the operation in between differentials as wedge products, and then objects like
dp∧dq
and
dp∧dq∧dt
are actually oriented area and volume elements.
Out of this, you get the “magic” we used earlier; in particular, because it’s an oriented area element, dp∧dq=−dq∧dp. Following dq∧dq=−dq∧dq, dq∧dq=0. The same logic applies for oriented volume elements. The notation definitely is confusing. However, the complexity of this topic and these nuances are what’s putting this subject off for a later time.