Multivariable Calculus · Change of variables

Change of variables

A change of variables rewrites a double integral over a region R as one over a simpler region S, through a map (x, y) = T(u, v) that covers R once: the integrand becomes f(T(u, v)) times |det J|, where J is the Jacobian matrix of T. As a parameter cell shrinks toward a point Q, its image’s area divided by its own tends to |det J(Q)|.

Change of variables in this visualization

An integral over an awkward region RR can often be done over a simpler region SS instead. Choose a smooth map T(u,v)=(x(u,v),y(u,v))T(u, v) = (x(u, v), y(u, v)) that carries SS onto RR, covering it once: one to one inside SS, with det⁡J≠0\det J \ne 0 there (what happens on the boundary does not change the integral). Then each small cell of SS becomes a small piece of RR, and the integral picks up the factor by which TT stretches area. The Jacobian matrix JJ holds the partial derivatives of xx and yy with respect to the new variables.

The change of variables formula
∬Rf dA=∬Sf(T(u,v)) ∣det⁡J∣ du dv,J=(xuxvyuyv)\iint_R f\,dA = \iint_S f(T(u, v))\,|\det J|\,du\,dv, \qquad J = \begin{pmatrix} x_u & x_v \\ y_u & y_v \end{pmatrix}

Why |det J|

Near a point QQ a smooth map is nearly linear: moving aa in uu and bb in vv moves the image by about a Tu+b Tva\,T_u + b\,T_v, where TuT_u and TvT_v are the columns of JJ. So the cell Δu×Δv\Delta u \times \Delta v at QQ goes to nearly the parallelogram on Tu ΔuT_u\,\Delta u and Tv ΔvT_v\,\Delta v, whose area is ∣det⁡J(Q)∣ Δu Δv|\det J(Q)|\,\Delta u\,\Delta v (a determinant gives the signed area of the parallelogram on its columns, and its absolute value the ordinary area). A finite cell’s real area is the average of ∣det⁡J∣|\det J| over the cell times Δu Δv\Delta u\,\Delta v, and that average can differ from the value at the corner QQ. As the cell shrinks toward QQ, the real area divided by Δu Δv\Delta u\,\Delta v tends to ∣det⁡J(Q)∣|\det J(Q)|; where that is not zero, the real area divided by the parallelogram's tends to 1. Adding up f(T(Q))f(T(Q)) times these areas over all the cells gives the formula.

Why the absolute value

A determinant can be negative. Swapping the names uu and vv swaps the two columns of JJ and changes the sign of det⁡J\det J, but the cells and their areas stay exactly the same. The sign only says whether TT keeps or reverses the turning direction from the first column to the second; the determinant is a signed area, and the formula needs the ordinary area, which is never negative, so it uses ∣det⁡J∣|\det J|. Where det⁡J=0\det J = 0, the linear approximation squashes the cell flat: at the origin under squaring, the cell itself still has area, but its area divided by Δu Δv\Delta u\,\Delta v tends to 0.

Using it

A good map makes the region a rectangle, or the integrand simpler, or both. Polar coordinates are the commonest case: x=rcos⁡θx = r\cos\theta, y=rsin⁡θy = r\sin\theta has det⁡J=r\det J = r, which is the extra rr in r dr dθr\,dr\,d\theta. The same idea works in three dimensions with a 3 × 3 Jacobian, where ∣det⁡J∣|\det J| stretches volume; for spherical coordinates it is ρ2sin⁡φ\rho^2\sin\varphi, with φ\varphi measured from the positive z-axis.

Things to notice

  • The derivatives in JJ are taken with respect to the new variables uu and vv; if the map is given the other way, as (u,v)(u, v) in terms of (x,y)(x, y), then where det⁡J(Q)≠0\det J(Q) \ne 0, the inverse map’s Jacobian determinant at T(Q)T(Q) is 1/det⁡J(Q)1/\det J(Q).

Controls

  • Drag Q in the parameter plane below, or drag T(Q) in the xy-plane; arrow keys move Q.
  • Each step of the Δ knob halves both sides of the cell; the dashed tangent parallelogram is the linear approximation at Q.

Related