Coordinate Systems
Polar and Spherical Coordinate Systems
Polar coordinates represent points in a 2D plane using a distance from the origin and an angle from the positive x-axis. They're the natural choice for problems with circular symmetry, such as circular motion or gravitational fields.
Spherical coordinates extend this idea to 3D by adding a polar angle measured from the positive z-axis. These are advantageous whenever the geometry has spherical symmetry (electric fields around point charges, angular momentum problems).
Conversion formulas to Cartesian :
- Polar: ,
- Spherical: , ,
Note the convention used here: is the polar angle from the z-axis and is the azimuthal angle in the xy-plane. Some textbooks swap these labels, so always check which convention your course follows.
Cylindrical and Elliptical Coordinate Systems
Cylindrical coordinates combine polar coordinates in the xy-plane with a standard Cartesian z-coordinate. They're the go-to system for problems with cylindrical symmetry: fluid flow through pipes, electromagnetic fields in waveguides, etc.
Elliptical (ellipsoidal) coordinates are built from families of confocal ellipsoids and hyperboloids. These show up when solving PDEs like Laplace's equation or the wave equation on ellipsoidal domains.
The guiding principle for choosing a coordinate system: pick the one whose level surfaces align with the natural boundaries of your region. This collapses complicated boundary descriptions into simple constant-coordinate surfaces, which makes setting up integration limits far easier.

Physical Applications
Mass and Moment of Inertia Calculations
Change of variables lets you compute mass and center of mass for objects whose geometry doesn't fit neatly into Cartesian coordinates. The key is transforming the volume element correctly.
In Cartesian coordinates the mass element is . Under a change to spherical coordinates this becomes:
The factor is the absolute value of the Jacobian determinant for the Cartesian-to-spherical transformation. Forgetting this factor is one of the most common mistakes on exams.
The moment of inertia tensor quantifies an object's resistance to rotational acceleration. It's a symmetric matrix:
- Diagonal elements : moments of inertia about the coordinate axes
- Off-diagonal elements : products of inertia, which capture coupling between rotational axes
Choosing coordinates that match the object's symmetry often zeroes out the off-diagonal terms automatically. Use spherical coordinates for spheres and shells, cylindrical coordinates for shafts and disks.

Surface Area Calculations
For a parametric surface , the surface area is:
The cross product of the two partial derivatives gives a vector normal to the surface, and its magnitude is the infinitesimal area element .
Worked example: surface area of a sphere of radius
Parametrize with where and . Computing the cross product gives , so:
The Divergence Theorem (Gauss-Ostrogradsky) connects surface integrals to volume integrals: the flux of a vector field through a closed surface equals the volume integral of over the enclosed region . When a change of variables simplifies the volume integral, this theorem lets you avoid computing the surface integral directly.
Probability Distributions
Probability Density Functions and Random Variables
A joint probability density function (PDF) describes a continuous multivariate distribution. The probability that the random vector falls in a region is:
The change-of-variables theorem for PDFs is the probabilistic analog of what you've been doing with multiple integrals. If is a one-to-one transformation with inverse , then:
The absolute value of the Jacobian determinant plays exactly the same role here as it does in a standard change-of-variables integral: it accounts for how the transformation stretches or compresses volume.
Two related constructions that rely on integration:
- Marginal PDF: integrate out all other variables to get the distribution of a single variable :
- Conditional PDF: divide the joint by the marginal:
Applications in Statistics and Machine Learning
The multivariate normal distribution is the workhorse model for correlated random variables. Its PDF is:
where is the mean vector and is the covariance matrix. A linear change of variables transforms one multivariate normal into another, which is why linear algebra and change-of-variables techniques are so tightly linked in statistics.
Bayesian inference updates a prior distribution to a posterior distribution using observed data :
Computing the normalizing constant requires integrating over the full parameter space, which is often high-dimensional. This is where coordinate transformations become essential:
- MCMC methods (Metropolis-Hastings, Gibbs sampling) generate samples from complex posteriors by constructing Markov chains whose stationary distribution matches the target. Reparametrizations can dramatically improve convergence.
- Variational inference sidesteps direct integration by approximating the posterior with a simpler family of distributions, minimizing the Kullback-Leibler divergence between the approximation and the true posterior.
In both cases, a well-chosen change of variables can turn an intractable integral into a tractable one, which is the same core idea you've been applying throughout this unit.