Coordinate Transformations

A coordinate transformation is a change of coordinate system: every point of a region keeps its position in space but gets a new address. The reason to do this is practical. Many shapes and functions are awkward to describe in standard Cartesian coordinates and become much simpler in a coordinate system that matches their symmetry. The circle x2+y2=R2x^2 + y^2 = R^2 — a quadratic equation in two variables — reduces to the single equation r=Rr = R in polar coordinates. Spheres simplify the same way in spherical coordinates, cylinders in cylindrical coordinates. The relabelling itself isn’t the goal; the cleaner description it unlocks is.

In one dimension this idea is just ordinary substitution — replacing xx by some g(x)g(x) inside an integral, for instance — and adds nothing on top of 1D calculus. Coordinate transformations only become genuinely useful in Rn\mathbb{R}^n for n2n \ge 2, where the relabelling can mix several coordinates together at once. The local distortion this mixing introduces — how much the new coordinate grid is stretched or twisted near each point — is what the rest of this chapter is about.

Cartesian Coordinates

Before generalizing, it pays to name the coordinate system we have been silently using all along. The “default” understanding of coordinates — the perpendicular-grid picture so familiar that it disappears into the background — is itself a specific named construction.

The Cartesian coordinates of a point xRn\mathbf{x} \in \mathbb{R}^n are its signed perpendicular distances from nn mutually perpendicular axes, each carrying the same uniform unit of length. Equivalently, every point x\mathbf{x} has a unique representation

x=i=1nxiei\mathbf{x} = \sum_{i=1}^{n} x_i\, \mathbf{e}_i

against the standard basis {e1,,en}\{\mathbf{e}_1, \ldots, \mathbf{e}_n\}, and the components (x1,,xn)(x_1, \ldots, x_n) are its Cartesian coordinates. The system formed by these axes is the Cartesian coordinate system.

What singles out the Cartesian system is its rigidity: axes are straight lines, they are mutually perpendicular, the spacing along each is uniform, and the basis vectors are the same everywhere. That uniformity is exactly why descriptions of objects with rotational, radial, or spherical symmetry (a circle, a ball, a torus) come out clumsy in Cartesian form — the symmetry of the object doesn’t match the symmetry of the grid. Recognizing this as a choice of coordinate system, rather than a built-in feature of space itself, is what opens the door to the alternatives developed in this chapter.

Definition

The objects involved are two open subsets B,DRnB, D \subseteq \mathbb{R}^n and a function ψ\psi that converts addresses in BB into addresses in DD.

Let B,DRnB, D \subseteq \mathbb{R}^n be open and let ψ:BD\psi : B \to D be a continuously differentiable bijection. Then ψ\psi is called a coordinate transformation if its inverse ψ1:DB\psi^{-1} : D \to B is also continuously differentiable.

The bijectivity is the load-bearing requirement: a coordinate transformation is, at heart, a bijective relabelling of points. Every point in BB gets exactly one new address in DD, and every address in DD corresponds to exactly one point in BB. Without it the new “coordinates” wouldn’t pin down points unambiguously — two distinct points could share the same address (failure of injectivity), or an address could refer to no point at all (failure of surjectivity onto the target region). The two-sided continuous-differentiability requirement adds that the relabelling distorts space smoothly in both directions: small steps in BB are mapped to small steps in DD and vice versa, so derivatives, gradients, and integrals carry over cleanly between the two coordinate systems.

Coordinate Transformation Matrix and the Jacobian

The first-order behavior of ψ\psi at a point is captured by exactly the same object as for any other differentiable multivariate function — its Jacobian matrix. In the context of a coordinate transformation, this matrix gets a context-specific name.

For a coordinate transformation ψ:BD\psi : B \to D with B,DRnB, D \subseteq \mathbb{R}^n, the coordinate transformation matrix is the Jacobian matrix of ψ\psi:

Jψ(x)=(ψixj(x))ij,xBJ_\psi(\mathbf{x}) = \left( \frac{\partial \psi_i}{\partial x_j}(\mathbf{x}) \right)_{ij}, \qquad \mathbf{x} \in B

Because ψ\psi maps Rn\mathbb{R}^n to Rn\mathbb{R}^n, the matrix Jψ(x)J_\psi(\mathbf{x}) is square (n×nn \times n), so its determinant is defined. That determinant gets its own name.

The Jacobian determinant (or simply the Jacobian) of a coordinate transformation ψ:BD\psi : B \to D at xB\mathbf{x} \in B is the determinant of its coordinate transformation matrix:

detJψ(x)\det J_\psi(\mathbf{x})

Neither object is conceptually new. The Jacobian matrix is the same one defined for any differentiable multivariate function, and the determinant is the same determinant from linear algebra — only the role they play here is new. The matrix Jψ(x)J_\psi(\mathbf{x}) is the local linear approximation of the relabelling ψ\psi at x\mathbf{x}, and the scalar detJψ(x)\det J_\psi(\mathbf{x}) measures the local volume-scaling factor of that linear approximation: how much an infinitesimal volume element in BB is stretched or compressed when carried over to DD. This one number is what makes the change-of-variables formula in multivariate integration work, and it is the reason the Jacobian determinant is worth singling out in this setting.

The linear case: matrix multiplication. Multiplying by an invertible n×nn \times n matrix, which defines the transformation ψ(x)=Ax\psi(\mathbf{x}) = A\mathbf{x}, is the simplest example of a coordinate transformation. The picture is concrete: ψ\psi takes the standard Cartesian grid and bends it into a new — in general skewed and stretched — grid. The new axes are nothing more than the images of the old axes under ψ\psi.

To see what those new axes look like, apply ψ\psi to the jj-th standard basis vector ej\mathbf{e}_j. By a basic identity of matrix algebra, multiplying AA by ej\mathbf{e}_j simply selects the jj-th column of AA:

ψ(ej)=Aej=(the j-th column of A)\psi(\mathbf{e}_j) = A\,\mathbf{e}_j = (\text{the } j\text{-th column of } A)

So the columns of AA are the new axis directions — the basis vectors of the new coordinate system. Concretely, with A=(2101)A = \begin{pmatrix} 2 & 1 \\ 0 & 1 \end{pmatrix}, the old xx-axis direction e1=(1,0)\mathbf{e}_1 = (1,0)^\top is sent to (2,0)(2, 0)^\top — column 1 of AA — and the old yy-axis direction e2=(0,1)\mathbf{e}_2 = (0,1)^\top is sent to (1,1)(1, 1)^\top — column 2 of AA. Those two columns are the new basis: the xx-axis stretched by a factor of 2, and the yy-axis tilted into a diagonal.

Because ψ\psi is itself linear, its local linear approximation is the global map: Jψ(x)=AJ_\psi(\mathbf{x}) = A for every xRn\mathbf{x} \in \mathbb{R}^n, and the Jacobian determinant collapses to the single number detA\det A — the volume-scaling factor of the transformation, uniform across the whole space rather than point-by-point. Nonlinear coordinate transformations are precisely those for which JψJ_\psi varies from point to point, which is why in the general case the Jacobian has to be re-evaluated at every x\mathbf{x}.

Common Coordinate Systems

Besides the usual Cartesian coordinates introduced above, three coordinate systems are useful enough to be worth knowing by heart:

  • the polar coordinates in 2D, parameterizing the plane by distance from the origin and an angle,
  • the cylindrical coordinates in 3D, extending the polar idea by an extra height axis,
  • the spherical coordinates in 3D, parameterizing space by distance from the origin and two angles.

Each is treated in its own section.

Polar Coordinates

The most familiar non-Cartesian system in 2D is the polar coordinate system. Instead of pinning a point down by its perpendicular distances along the xx- and yy-axes, polar coordinates use just two intuitive numbers: how far the point is from the origin, and which direction it lies in. The “how far” is the radius rr, and the “which direction” is the angle φ\varphi measured counterclockwise from the positive xx-axis.

The conversion to Cartesian coordinates is right-triangle trigonometry: a point at distance rr along an angle φ\varphi has horizontal component rcosφr\cos\varphi and vertical component rsinφr\sin\varphi. Packaging this as a coordinate transformation:

The polar coordinate transformation is the map

ψ:R>0×[0,2π)R2{0},(rφ)(xy)=(rcosφrsinφ)\psi : \mathbb{R}_{>0} \times [0, 2\pi) \to \mathbb{R}^2 \setminus \{\mathbf{0}\}, \quad \begin{pmatrix} r \\ \varphi \end{pmatrix} \mapsto \begin{pmatrix} x \\ y \end{pmatrix} = \begin{pmatrix} r \cos \varphi \\ r \sin \varphi \end{pmatrix}

with corresponding coordinate transformation matrix and Jacobian determinant

Jψ(r,φ)=(cosφrsinφsinφrcosφ),detJψ(r,φ)=rJ_\psi(r, \varphi) = \begin{pmatrix} \cos \varphi & -r \sin \varphi \\ \sin \varphi & r \cos \varphi \end{pmatrix}, \qquad \det J_\psi(r, \varphi) = r

The pair (r,φ)(r, \varphi) are called the polar coordinates of the point (x,y)(x, y).

The domain of ψ\psi excludes r=0r = 0 — the origin has no well-defined angle, so it can’t be assigned polar coordinates uniquely — and pins φ\varphi to one full revolution [0,2π)[0, 2\pi) to avoid wrapping the same point with infinitely many angles. Together these restrictions make ψ\psi a bijection onto R2{0}\mathbb{R}^2 \setminus \{\mathbf{0}\}, as required by the definition of a coordinate transformation.

Compute the Jacobian matrix and determinant

The coordinate transformation matrix is the matrix of partial derivatives of the components given x=rcosφx = r\cos\varphi and y=rsinφy = r\sin\varphi with respect to the inputs rr and φ\varphi. Computing each entry directly inside the matrix:

Jψ(r,φ)=(xr=cosφxφ=rsinφyr=sinφyφ=rcosφ)=(cosφrsinφsinφrcosφ)J_\psi(r, \varphi) = \begin{pmatrix} \dfrac{\partial x}{\partial r} = \cos \varphi & \dfrac{\partial x}{\partial \varphi} = -r \sin \varphi \\ \dfrac{\partial y}{\partial r} = \sin \varphi & \dfrac{\partial y}{\partial \varphi} = r \cos \varphi \end{pmatrix} = \begin{pmatrix} \cos \varphi & -r \sin \varphi \\ \sin \varphi & r \cos \varphi \end{pmatrix}

The determinant of a 2×22 \times 2 matrix expands as det(abcd)=adbc\det\begin{pmatrix} a & b \\ c & d \end{pmatrix} = ad - bc, giving:

detJψ(r,φ)=(cosφ)(rcosφ)(rsinφ)(sinφ)=rcos2φ+rsin2φ=r(cos2φ+sin2φ)=r\begin{aligned} \det J_\psi(r, \varphi) &= (\cos \varphi)(r \cos \varphi) - (-r \sin \varphi)(\sin \varphi) \\ &= r \cos^2 \varphi + r \sin^2 \varphi \\ &= r\,(\cos^2 \varphi + \sin^2 \varphi) \\ &= r \end{aligned}

using the Pythagorean identity cos2φ+sin2φ=1\cos^2 \varphi + \sin^2 \varphi = 1 in the last step.

Geometric meaning of detJψ=r\det J_\psi = r

The Jacobian determinant being rr has a clean geometric meaning. Recall that for any coordinate transformation, the Jacobian determinant measures its local area-scaling factor — the ratio between the area of a tiny patch in the input space and the area of its image in the output space. So there are two patches and two areas to compare: one in the input plane, one in the output plane, both connected by ψ\psi.

The polar transformation has two distinct 2D planes involved. The input plane is the (r,φ)(r, \varphi)-plane — a regular Cartesian-looking plane with rr on one axis and φ\varphi on the other. The output plane is the actual (x,y)(x, y)-plane that we live in.

Pick a small rectangle in the input plane anchored at (r,φ)(r, \varphi) with sides dr\mathrm{d}r and dφ\mathrm{d}\varphi. Its area, computed the usual way for a rectangle, is

input area=drdφ\text{input area} = \mathrm{d}r \cdot \mathrm{d}\varphi

Now apply ψ\psi and see where this rectangle lands on the output plane. The image is a tiny “donut slice” anchored at radius rr, with two side lengths:

  • dr\mathrm{d}r in the radial direction — just the change in radius;
  • rdφr\,\mathrm{d}\varphi in the angular direction — because an angle of dφ\mathrm{d}\varphi on a circle of radius rr traces an arc of length rdφr\,\mathrm{d}\varphi (arc length == radius ×\times angle).

So the donut slice has area

output area=drrdφ=rdrdφ\text{output area} = \mathrm{d}r \cdot r\,\mathrm{d}\varphi = r\,\mathrm{d}r\,\mathrm{d}\varphi

The area-scaling factor of ψ\psi — i.e. the Jacobian determinant — is now just the ratio of the two:

detJψ(r,φ)=output areainput area=rdrdφdrdφ=r\det J_\psi(r, \varphi) = \frac{\text{output area}}{\text{input area}} = \frac{r\,\mathrm{d}r\,\mathrm{d}\varphi}{\mathrm{d}r\,\mathrm{d}\varphi} = r

which matches the algebra exactly. The factor vanishes only at r=0r = 0, where the donut slice collapses to a point — the one place we had to exclude from the domain.

Cylindrical Coordinates

Cylindrical coordinates extend the polar idea to 3D in the simplest way imaginable: keep polar coordinates for the horizontal plane and bolt on an unchanged height axis. A point in space is described by where it lies in the (x,y)(x, y)-plane — the radius rr and angle φ\varphi from polar coordinates — together with how high above (or below) that plane it sits, which is just the ordinary Cartesian zz. In that sense the system is more like 2.5D than full 3D: only two of the three coordinates do nontrivial work, and the third rides along untouched.

The conversion to Cartesian coordinates inherits the polar formulas for xx and yy, with zz passing through unchanged:

The cylindrical coordinate transformation is the map

ψ:R>0×[0,2π)×RR3z-axis,(rφz)(xyz)=(rcosφrsinφz)\psi : \mathbb{R}_{>0} \times [0, 2\pi) \times \mathbb{R} \to \mathbb{R}^3 \setminus z\text{-axis}, \quad \begin{pmatrix} r \\ \varphi \\ z \end{pmatrix} \mapsto \begin{pmatrix} x \\ y \\ z \end{pmatrix} = \begin{pmatrix} r \cos \varphi \\ r \sin \varphi \\ z \end{pmatrix}

with corresponding coordinate transformation matrix and Jacobian determinant

Jψ(r,φ,z)=(cosφrsinφ0sinφrcosφ0001),detJψ(r,φ,z)=rJ_\psi(r, \varphi, z) = \begin{pmatrix} \cos \varphi & -r \sin \varphi & 0 \\ \sin \varphi & r \cos \varphi & 0 \\ 0 & 0 & 1 \end{pmatrix}, \qquad \det J_\psi(r, \varphi, z) = r

The triple (r,φ,z)(r, \varphi, z) are called the cylindrical coordinates of the point (x,y,z)(x, y, z).

The domain excludes the entire zz-axis (the r=0r = 0 line) for the same reason polar coordinates exclude the origin: along this axis the angle φ\varphi is undefined, so the assignment would not be a bijection. The angle is again pinned to one full revolution [0,2π)[0, 2\pi) to avoid wrapping the same point with infinitely many addresses.

Compute the Jacobian matrix and determinant

Each entry of the 3×33 \times 3 Jacobian is a partial derivative of one of the three component functions x=rcosφx = r\cos\varphi, y=rsinφy = r\sin\varphi, z=zz = z with respect to one of the three inputs rr, φ\varphi, zz. Computing each entry directly inside the matrix:

Jψ(r,φ,z)=(xr=cosφxφ=rsinφxz=0yr=sinφyφ=rcosφyz=0zr=0zφ=0zz=1)=(cosφrsinφ0sinφrcosφ0001)J_\psi(r, \varphi, z) = \begin{pmatrix} \dfrac{\partial x}{\partial r} = \cos \varphi & \dfrac{\partial x}{\partial \varphi} = -r \sin \varphi & \dfrac{\partial x}{\partial z} = 0 \\ \dfrac{\partial y}{\partial r} = \sin \varphi & \dfrac{\partial y}{\partial \varphi} = r \cos \varphi & \dfrac{\partial y}{\partial z} = 0 \\ \dfrac{\partial z}{\partial r} = 0 & \dfrac{\partial z}{\partial \varphi} = 0 & \dfrac{\partial z}{\partial z} = 1 \end{pmatrix} = \begin{pmatrix} \cos \varphi & -r \sin \varphi & 0 \\ \sin \varphi & r \cos \varphi & 0 \\ 0 & 0 & 1 \end{pmatrix}

The third column and third row are mostly zero because zz is independent of rr and φ\varphi, and x,yx, y are independent of zz. Expanding the determinant along the bottom row picks out only the (3,3)(3, 3) entry:

detJψ(r,φ,z)=1det(cosφrsinφsinφrcosφ)=rcos2φ+rsin2φ=r(cos2φ+sin2φ)=r\begin{aligned} \det J_\psi(r, \varphi, z) &= 1 \cdot \det\begin{pmatrix} \cos \varphi & -r \sin \varphi \\ \sin \varphi & r \cos \varphi \end{pmatrix} \\ &= r \cos^2 \varphi + r \sin^2 \varphi \\ &= r\,(\cos^2 \varphi + \sin^2 \varphi) \\ &= r \end{aligned}

so the Jacobian determinant collapses to the polar result — as expected, since the zz-direction is left untouched and contributes a factor of 11.

Geometric meaning of detJψ=r\det J_\psi = r

The Jacobian determinant being rr — the same as for polar coordinates — has the same geometric meaning. The transformation rescales infinitesimal volumes by a factor of rr: a tiny box drdφdz\mathrm{d}r \cdot \mathrm{d}\varphi \cdot \mathrm{d}z in the input maps to a tiny “wedge” of volume rdrdφdzr\,\mathrm{d}r\,\mathrm{d}\varphi\,\mathrm{d}z in the output, since the height direction is untouched and the (r,φ)(r, \varphi) slice scales by rr exactly as in the polar case.

Spherical Coordinates

Spherical coordinates are the natural system for identifying a point inside a ball: instead of describing a point by perpendicular distances, describe it by how far out and which direction. The “how far out” is again a single radius rr — the distance from the origin, which is the same kind of radius as in polar/cylindrical coordinates. The “which direction” now needs two angles, because directions in 3D form a 2D sphere of possibilities (a single angle could only sweep out a circle). The two angles play complementary roles:

  • φ[0,2π)\varphi \in [0, 2\pi) — the azimuthal angle, just as in polar and cylindrical coordinates: how far around the zz-axis we have rotated, measured in the xyxy-plane from the positive xx-axis;
  • ϑ(0,π)\vartheta \in (0, \pi) — the polar angle, measured from the positive zz-axis down toward the point: ϑ=0\vartheta = 0 points to the north pole, ϑ=π/2\vartheta = \pi/2 lies on the equator, ϑ=π\vartheta = \pi points to the south pole.

Converting to Cartesian coordinates is two nested right-triangle trigonometry steps. First, drop the radius rr along the polar angle ϑ\vartheta: this gives a height z=rcosϑz = r \cos\vartheta and a horizontal projection of length rsinϑr \sin\vartheta. Then sweep that horizontal projection through the azimuth φ\varphi as in polar coordinates, producing x=rsinϑcosφx = r\sin\vartheta \cos\varphi and y=rsinϑsinφy = r\sin\vartheta \sin\varphi.

The spherical coordinate transformation is the map

ψ:R>0×[0,2π)×(0,π)R3z-axis,(rφϑ)(xyz)=(rcosφsinϑrsinφsinϑrcosϑ)\psi : \mathbb{R}_{>0} \times [0, 2\pi) \times (0, \pi) \to \mathbb{R}^3 \setminus z\text{-axis}, \quad \begin{pmatrix} r \\ \varphi \\ \vartheta \end{pmatrix} \mapsto \begin{pmatrix} x \\ y \\ z \end{pmatrix} = \begin{pmatrix} r \cos \varphi \sin \vartheta \\ r \sin \varphi \sin \vartheta \\ r \cos \vartheta \end{pmatrix}

with corresponding coordinate transformation matrix and Jacobian determinant

Jψ(r,φ,ϑ)=(cosφsinϑrsinφsinϑrcosφcosϑsinφsinϑrcosφsinϑrsinφcosϑcosϑ0rsinϑ)J_\psi(r, \varphi, \vartheta) = \begin{pmatrix} \cos \varphi \sin \vartheta & -r \sin \varphi \sin \vartheta & r \cos \varphi \cos \vartheta \\ \sin \varphi \sin \vartheta & r \cos \varphi \sin \vartheta & r \sin \varphi \cos \vartheta \\ \cos \vartheta & 0 & -r \sin \vartheta \end{pmatrix}detJψ(r,φ,ϑ)=r2sinϑ\det J_\psi(r, \varphi, \vartheta) = -r^2 \sin \vartheta

The triple (r,φ,ϑ)(r, \varphi, \vartheta) are called the spherical coordinates of the point (x,y,z)(x, y, z).

The domain again excludes the zz-axis. There two things go wrong simultaneously: r=0r = 0 (the origin) has no well-defined direction, and ϑ{0,π}\vartheta \in \{0, \pi\} (the north and south poles, sitting on the zz-axis) has no well-defined azimuth φ\varphi — every value of φ\varphi produces the same point. Removing the zz-axis from the codomain rules out both failures at once and leaves a bijection. The azimuth is pinned to [0,2π)[0, 2\pi) as before, and the polar angle to the open interval (0,π)(0, \pi).

Compute the Jacobian matrix and determinant

Filling in the matrix from the same partial-derivative recipe as the polar and cylindrical cases — just with more chain-rule trig per entry:

Jψ(r,φ,ϑ)=(xrxφxϑyryφyϑzrzφzϑ)=(cosφsinϑrsinφsinϑrcosφcosϑsinφsinϑrcosφsinϑrsinφcosϑcosϑ0rsinϑ)J_\psi(r, \varphi, \vartheta) = \begin{pmatrix} \dfrac{\partial x}{\partial r} & \dfrac{\partial x}{\partial \varphi} & \dfrac{\partial x}{\partial \vartheta} \\ \dfrac{\partial y}{\partial r} & \dfrac{\partial y}{\partial \varphi} & \dfrac{\partial y}{\partial \vartheta} \\ \dfrac{\partial z}{\partial r} & \dfrac{\partial z}{\partial \varphi} & \dfrac{\partial z}{\partial \vartheta} \end{pmatrix} = \begin{pmatrix} \cos \varphi \sin \vartheta & -r \sin \varphi \sin \vartheta & r \cos \varphi \cos \vartheta \\ \sin \varphi \sin \vartheta & r \cos \varphi \sin \vartheta & r \sin \varphi \cos \vartheta \\ \cos \vartheta & 0 & -r \sin \vartheta \end{pmatrix}

For the determinant, expand along the bottom row — the middle entry is zero, so only two cofactors contribute:

detJψ=cosϑdet(rsinφsinϑrcosφcosϑrcosφsinϑrsinφcosϑ)+(rsinϑ)det(cosφsinϑrsinφsinϑsinφsinϑrcosφsinϑ)\begin{aligned} \det J_\psi &= \cos\vartheta \cdot \det\begin{pmatrix} -r \sin \varphi \sin \vartheta & r \cos \varphi \cos \vartheta \\ r \cos \varphi \sin \vartheta & r \sin \varphi \cos \vartheta \end{pmatrix} \\ &\quad + (-r\sin\vartheta) \cdot \det\begin{pmatrix} \cos \varphi \sin \vartheta & -r \sin \varphi \sin \vartheta \\ \sin \varphi \sin \vartheta & r \cos \varphi \sin \vartheta \end{pmatrix} \end{aligned}

Each 2×22 \times 2 determinant simplifies using sin2+cos2=1\sin^2 + \cos^2 = 1:

det(rsinφsinϑrcosφcosϑrcosφsinϑrsinφcosϑ)=r2sin2φsinϑcosϑr2cos2φsinϑcosϑ=r2sinϑcosϑ(sin2φ+cos2φ)=r2sinϑcosϑ\begin{aligned} \det\begin{pmatrix} -r \sin \varphi \sin \vartheta & r \cos \varphi \cos \vartheta \\ r \cos \varphi \sin \vartheta & r \sin \varphi \cos \vartheta \end{pmatrix} &= -r^2 \sin^2 \varphi \sin \vartheta \cos \vartheta - r^2 \cos^2 \varphi \sin \vartheta \cos \vartheta \\ &= -r^2 \sin\vartheta \cos\vartheta\,(\sin^2 \varphi + \cos^2 \varphi) \\ &= -r^2 \sin\vartheta \cos\vartheta \end{aligned}det(cosφsinϑrsinφsinϑsinφsinϑrcosφsinϑ)=rcos2φsin2ϑ+rsin2φsin2ϑ=rsin2ϑ(cos2φ+sin2φ)=rsin2ϑ\begin{aligned} \det\begin{pmatrix} \cos \varphi \sin \vartheta & -r \sin \varphi \sin \vartheta \\ \sin \varphi \sin \vartheta & r \cos \varphi \sin \vartheta \end{pmatrix} &= r \cos^2 \varphi \sin^2 \vartheta + r \sin^2 \varphi \sin^2 \vartheta \\ &= r \sin^2 \vartheta\,(\cos^2 \varphi + \sin^2 \varphi) \\ &= r \sin^2 \vartheta \end{aligned}

Putting these back:

detJψ=cosϑ(r2sinϑcosϑ)+(rsinϑ)rsin2ϑ=r2sinϑcos2ϑr2sin3ϑ=r2sinϑ(cos2ϑ+sin2ϑ)=r2sinϑ\begin{aligned} \det J_\psi &= \cos\vartheta \cdot (-r^2 \sin\vartheta \cos\vartheta) + (-r\sin\vartheta) \cdot r \sin^2 \vartheta \\ &= -r^2 \sin\vartheta \cos^2 \vartheta - r^2 \sin^3 \vartheta \\ &= -r^2 \sin\vartheta\,(\cos^2 \vartheta + \sin^2 \vartheta) \\ &= -r^2 \sin\vartheta \end{aligned}
Geometric meaning of detJψ=r2sinϑ\det J_\psi = -r^2 \sin\vartheta

The Jacobian determinant scales infinitesimal volumes by r2sinϑ=r2sinϑ|{-r^2 \sin\vartheta}| = r^2 \sin\vartheta. Two factors compose to produce this: the r2r^2 comes from the radial direction stretching a fixed angular wedge into a patch whose area grows quadratically with rr (a small angular cone subtends a much larger surface area on a big sphere than on a small one); the sinϑ\sin\vartheta comes from circles of constant ϑ\vartheta being smaller near the poles than at the equator — at the north pole (ϑ=0\vartheta = 0) and south pole (ϑ=π\vartheta = \pi) such circles collapse to a point, which is exactly where the determinant vanishes and the coordinates fail to be a bijection. The negative sign reflects an orientation flip in the chosen ordering (r,φ,ϑ)(r, \varphi, \vartheta) and is irrelevant to the absolute volume scaling.