Unit 5, chapter 23

Build coordinates from the boundaries

How a linear change of variables turns a parallelogram region into a square, why the area element carries the absolute value of the Jacobian determinant of the inverse map, and how that area scale factor is found.

  • Chapter 23
  • Polar coordinates, the Jacobian and spherical coordinates

Integrate ex+ye^{x+y} over the region DD where 0≤x+y≤10 \le x + y \le 1 and 0≤x−y≤10 \le x - y \le 1. The four edges of DD are slanted lines, so vertical slices change their formula halfway across, yet the two expressions x+yx + y and x−yx - y that describe the edges also appear in the integrand. Making those expressions the coordinates turns DD into a unit square, but a unit square of the new coordinates does not have area 11 in the plane. This page finds the factor that corrects every small area, the absolute value of a Jacobian determinant, and uses it to evaluate the integral.

Key terms

Parallelogram region

Definition Let aa, bb, cc and dd be real numbers with ad−bc≠0ad - bc \ne 0, and let p1<p2p_1 < p_2 and q1<q2q_1 < q_2. The set of points (x,y)(x, y) with

p1≤ax+by≤p2,q1≤cx+dy≤q2\begin{gathered} p_1 \le ax + by \le p_2, \\[0.4em] q_1 \le cx + dy \le q_2 \end{gathered}

is a parallelogram region. Its sides lie on the lines ax+by=p1ax + by = p_1, ax+by=p2ax + by = p_2, cx+dy=q1cx + dy = q_1 and cx+dy=q2cx + dy = q_2, opposite sides are parallel, and each of its four corners is the point where a line of the first pair meets a line of the second pair. The condition ad−bc≠0ad - bc \ne 0 says that the two families of lines are not parallel to each other, so each such pair of lines meets in exactly one point. Every parallelogram in the plane can be described this way, using the lines through its sides.

In plain words Two pairs of parallel lines fence in a slanted four-sided region. Each pair bounds a band where one linear expression stays between two values, and the parallelogram is where the two bands overlap.

Example For DD the expressions are x+yx + y and x−yx - y, and 1⋅(−1)−1⋅1=−2≠01 \cdot (-1) - 1 \cdot 1 = -2 \ne 0. Solving the four pairs of boundary equations gives the corners (0,0)(0, 0), (12,12)(\tfrac12, \tfrac12), (1,0)(1, 0) and (12,−12)(\tfrac12, -\tfrac12). The diagonals, from (0,0)(0, 0) to (1,0)(1, 0) and from (12,12)(\tfrac12, \tfrac12) to (12,−12)(\tfrac12, -\tfrac12), are perpendicular and both have length 11, so DD is a tilted square with area 12\tfrac12. Slicing it by vertical lines needs two formulas. For 0≤x≤120 \le x \le \tfrac12 a slice runs from y=−xy = -x to y=xy = x, and for 12≤x≤1\tfrac12 \le x \le 1 it runs from y=x−1y = x - 1 to y=1−xy = 1 - x. An iterated integral in xx and yy therefore splits into two pieces, which add up to the same value e−12\tfrac{e - 1}{2} found below.

Linear change of variables

Definition A linear change of variables in the plane introduces new coordinates u=ax+byu = ax + by and v=cx+dyv = cx + dy with real constants satisfying ad−bc≠0ad - bc \ne 0. Under this condition the map (x,y)↦(u,v)(x, y) \mapsto (u, v) is one-to-one from the whole plane onto the whole plane, so every point has exactly one pair of new coordinates and every pair names exactly one point. If ad−bc=0ad - bc = 0, the map sends the whole plane onto a line or a single point, and different points share the same pair (u,v)(u, v). Adding constants, as in u=ax+by+ku = ax + by + k, only shifts the new coordinates and changes nothing that follows. For a parallelogram region, choosing uu and vv as the two boundary expressions makes the region the rectangle p1≤u≤p2p_1 \le u \le p_2, q1≤v≤q2q_1 \le v \le q_2.

In plain words Use the expressions that describe the edges as the coordinates. In the new coordinates each edge is a line where one coordinate is constant, so all the bounds of integration become constants.

Example For DD take u=x+yu = x + y and v=x−yv = x - y, with ad−bc=−2ad - bc = -2. The inequalities become 0≤u≤10 \le u \le 1 and 0≤v≤10 \le v \le 1, so DD corresponds to the unit square of the uvuv-plane. The integrand ex+ye^{x+y} becomes eue^u, with no vv in it. Here one choice simplifies both the region and the function, which is the best case.

Inverse map

Definition The change of variables formula integrates over the new region, so it needs the old coordinates as functions of the new ones, x=x(u,v)x = x(u, v) and y=y(u,v)y = y(u, v). This map from the uvuv-plane back to the xyxy-plane is the inverse map. For u=ax+byu = ax + by and v=cx+dyv = cx + dy with Δ=ad−bc≠0\Delta = ad - bc \ne 0, solving the linear system gives

[xy]=1Δ[d−b−ca][uv].\begin{bmatrix} x \\ y \end{bmatrix} = \frac{1}{\Delta} \begin{bmatrix} d & -b \\ -c & a \end{bmatrix} \begin{bmatrix} u \\ v \end{bmatrix}.

The matrix of the inverse map is the inverse of the matrix of the forward map, so its determinant is 1/Δ1/\Delta.

In plain words The forward map tells which point of the new region a point of the plane corresponds to. The inverse map goes back, from a point of the new region to the point of the plane it names, and that is the direction an integral over the new region needs.

Example For u=x+yu = x + y and v=x−yv = x - y, adding the equations gives u+v=2xu + v = 2x and subtracting them gives u−v=2yu - v = 2y, so

x=u+v2,y=u−v2.x = \frac{u + v}{2}, \quad y = \frac{u - v}{2}.

The point (u,v)=(0.6,0.2)(u, v) = (0.6, 0.2) of the square goes to (x,y)=(0.4,0.2)(x, y) = (0.4, 0.2), and indeed 0.4+0.2=0.60.4 + 0.2 = 0.6 and 0.4−0.2=0.20.4 - 0.2 = 0.2. The corners (0,0)(0, 0), (1,0)(1, 0), (1,1)(1, 1) and (0,1)(0, 1) of the square go to the corners (0,0)(0, 0), (12,12)(\tfrac12, \tfrac12), (1,0)(1, 0) and (12,−12)(\tfrac12, -\tfrac12) of DD.

Jacobian determinant

Definition Let x=x(u,v)x = x(u, v) and y=y(u,v)y = y(u, v) have continuous first partial derivatives. The Jacobian determinant of this map at a point is

∂(x,y)∂(u,v)=det⁡[xuxvyuyv]=xuyv−xvyu.\begin{aligned} \frac{\partial(x, y)}{\partial(u, v)} &= \det \begin{bmatrix} x_u & x_v \\ y_u & y_v \end{bmatrix} \\[0.4em] &= x_u y_v - x_v y_u. \end{aligned}

The columns (xu,yu)(x_u, y_u) and (xv,yv)(x_v, y_v) are the velocities of the image point when uu alone or vv alone increases, so a small step Δu\Delta u moves the point by about Δu (xu,yu)\Delta u\,(x_u, y_u) and a small step Δv\Delta v moves it by about Δv (xv,yv)\Delta v\,(x_v, y_v). For a linear map the partial derivatives are constant, these moves are exact, and the Jacobian is the determinant of the matrix of the map. When the map has an inverse with continuous partial derivatives, the Jacobians of the map and of its inverse at corresponding points multiply to 11, because by the chain rule their derivative matrices are inverse to each other.

In plain words The Jacobian packs the two edge directions of a tiny coordinate cell into one number. Its size measures how much the cell is stretched or shrunk, and its sign says whether the cell keeps or reverses its orientation.

Example For the inverse map x=u+v2x = \tfrac{u + v}{2}, y=u−v2y = \tfrac{u - v}{2}, a step Δu\Delta u moves the image point by Δu (12,12)\Delta u\,(\tfrac12, \tfrac12), up and to the right, and a step Δv\Delta v moves it by Δv (12,−12)\Delta v\,(\tfrac12, -\tfrac12), down and to the right. These two vectors are the columns of the matrix below.

∂(x,y)∂(u,v)=det⁡[121212−12]=−14−14=−12.\begin{aligned} \frac{\partial(x, y)}{\partial(u, v)} &= \det \begin{bmatrix} \tfrac12 & \tfrac12 \\[0.2em] \tfrac12 & -\tfrac12 \end{bmatrix} \\[0.4em] &= -\tfrac14 - \tfrac14 = -\tfrac12. \end{aligned}

The forward map u=x+yu = x + y, v=x−yv = x - y has

∂(u,v)∂(x,y)=1⋅(−1)−1⋅1=−2,\begin{aligned} \frac{\partial(u, v)}{\partial(x, y)} &= 1 \cdot (-1) - 1 \cdot 1 \\[0.4em] &= -2, \end{aligned}

and (−2)⋅(−12)=1(-2) \cdot (-\tfrac12) = 1, as the reciprocal rule says. The same determinant for polar coordinates x=rcos⁡θx = r\cos\theta, y=rsin⁡θy = r\sin\theta is cos⁡θ⋅rcos⁡θ+rsin⁡θ⋅sin⁡θ=r\cos\theta \cdot r\cos\theta + r\sin\theta \cdot \sin\theta = r, the factor in the polar area element.

Area scale factor

Definition Let TT be an invertible linear map from the uvuv-plane to the xyxy-plane with matrix AA. Every region SS that has an area satisfies

area⁡(T(S))=∣det⁡A∣area⁡(S),\begin{aligned} &\operatorname{area}\bigl(T(S)\bigr) \\[0.4em] &\quad = \lvert \det A \rvert \operatorname{area}(S), \end{aligned}

so ∣det⁡A∣\lvert \det A \rvert is the area scale factor of TT, the same at every point. The inverse of TT has the reciprocal factor 1/∣det⁡A∣1/\lvert \det A \rvert. For a map with continuous first partial derivatives the factor can change from point to point. A small rectangle with a corner at (u,v)(u, v) and sides Δu\Delta u and Δv\Delta v goes to a region whose area is ∣∂(x,y)∂(u,v)∣ Δu Δv\bigl\lvert \frac{\partial(x, y)}{\partial(u, v)} \bigr\rvert\,\Delta u\,\Delta v, up to an error that is small compared with Δu Δv\Delta u\,\Delta v as the rectangle shrinks.

In plain words A linear map stretches every region by the same factor, the absolute value of its determinant. Before using the factor, check which way the map goes. The map from the new coordinates to the plane and the map from the plane to the new coordinates have reciprocal factors.

Example The inverse map sends the unit square, with area 11, onto DD, with area 12\tfrac12, so its scale factor is 12=∣−12∣\tfrac12 = \lvert -\tfrac12 \rvert. Cell by cell the same thing happens. The edges Δu (12,12)\Delta u\,(\tfrac12, \tfrac12) and Δv (12,−12)\Delta v\,(\tfrac12, -\tfrac12) are perpendicular, with lengths 22Δu\tfrac{\sqrt2}{2}\Delta u and 22Δv\tfrac{\sqrt2}{2}\Delta v, so each small cell becomes a rectangle with area 12 Δu Δv\tfrac12\,\Delta u\,\Delta v. The forward map sends DD onto the unit square and doubles every area, with factor 2=∣−2∣2 = \lvert -2 \rvert. Using 22 instead of 12\tfrac12 in the integral below would give 2(e−1)2(e - 1), four times the correct value.

Absolute value of the Jacobian

Definition The change of variables theorem for double integrals says the following. Let SS be a closed bounded region of the uvuv-plane whose boundary has zero area, for example a region with a piecewise smooth boundary. Let the map x=x(u,v)x = x(u, v), y=y(u,v)y = y(u, v) have continuous first partial derivatives on an open set containing SS, let it be one-to-one with a nonzero Jacobian on the interior of SS, and let DD be the image of SS. Then for every function ff continuous on DD

∬Df dx dy=∬Sf∣∂(x,y)∂(u,v)∣du dv,\begin{aligned} &\iint_D f\,dx\,dy \\[0.4em] &= \iint_S f \left\lvert \frac{\partial(x, y)}{\partial(u, v)} \right\rvert du\,dv, \end{aligned}

where on the right ff is evaluated at (x(u,v),y(u,v))\bigl(x(u, v), y(u, v)\bigr). For a linear change of variables u=ax+byu = ax + by, v=cx+dyv = cx + dy with ad−bc≠0ad - bc \ne 0, the inverse map satisfies these conditions for every such SS, and its Jacobian is the constant 1/(ad−bc)1/(ad - bc), so dx dydx\,dy is replaced by du dv/∣ad−bc∣du\,dv / \lvert ad - bc \rvert. The absolute value is needed because a negative Jacobian only records that the map reverses orientation, like a mirror, while the areas of the cells are positive.

In plain words Rewrite three things together. The region becomes the new region, the integrand is written in the new coordinates, and each small area dx dydx\,dy is replaced by the area of the image of a small du dvdu\,dv cell. The factor comes from the inverse map, the one that expresses xx and yy through uu and vv, and it is used without its sign.

Example Return to the integral

I=∬Dex+y dx dy,I = \iint_D e^{x+y}\,dx\,dy,

where DD is the parallelogram with corners (0,0)(0, 0), (12,12)(\tfrac12, \tfrac12), (1,0)(1, 0) and (12,−12)(\tfrac12, -\tfrac12). The forward map u=x+yu = x + y, v=x−yv = x - y is invertible with determinant −2-2, its inverse x=u+v2x = \tfrac{u + v}{2}, y=u−v2y = \tfrac{u - v}{2} has determinant −12-\tfrac12, and so dx dy=12 du dvdx\,dy = \tfrac12\,du\,dv. The inverse map sends the unit square onto DD, and the integrand ex+y=eue^{x+y} = e^u is continuous. Therefore

I=12∫01∫01eu dv du=12∫01eu du=e−12.\begin{aligned} I &= \frac12 \int_0^1 \int_0^1 e^u\,dv\,du \\[0.4em] &= \frac12 \int_0^1 e^u\,du = \frac{e - 1}{2}. \end{aligned}

The inner integral is over vv, in which eue^u is constant, and the vv interval has length 11. A check in the plane agrees. On DD the value of x+yx + y runs from 00 to 11, so 1≤ex+y≤e1 \le e^{x+y} \le e, and the integral must lie between 12⋅1\tfrac12 \cdot 1 and 12⋅e\tfrac12 \cdot e. Indeed e−12≈0.859\tfrac{e - 1}{2} \approx 0.859 lies between 0.50.5 and about 1.3591.359. The negative sign of −12-\tfrac12 is visible in the corners. Going counterclockwise around the square through (0,0)(0, 0), (1,0)(1, 0), (1,1)(1, 1) and (0,1)(0, 1), the image points (0,0)(0, 0), (12,12)(\tfrac12, \tfrac12), (1,0)(1, 0) and (12,−12)(\tfrac12, -\tfrac12) go around DD clockwise.

Check yourself

  1. The region RR is given by 0≤x+y≤20 \le x + y \le 2 and 0≤x−y≤10 \le x - y \le 1. Evaluate the integral of (x−y) ex+y(x - y)\,e^{x+y} over RR.
Show the answer

With u=x+yu = x + y and v=x−yv = x - y the region becomes the rectangle 0≤u≤20 \le u \le 2, 0≤v≤10 \le v \le 1, and the integrand becomes v euv\,e^u. The inverse map x=u+v2x = \tfrac{u + v}{2}, y=u−v2y = \tfrac{u - v}{2} has Jacobian −12-\tfrac12, so dx dy=12 du dvdx\,dy = \tfrac12\,du\,dv. The integrand is a product of a function of uu and a function of vv over a rectangle, so the integral splits into two single integrals,

∬R(x−y) ex+y dx dy=12∫02eu du∫01v dv=e2−12⋅12=e2−14.\begin{aligned} &\iint_R (x - y)\,e^{x+y}\,dx\,dy \\[0.4em] &= \frac12 \int_0^2 e^u\,du \int_0^1 v\,dv \\[0.4em] &= \frac{e^2 - 1}{2} \cdot \frac12 = \frac{e^2 - 1}{4}. \end{aligned}

That is about 1.5971.597.

  1. A student integrates x+2yx + 2y over the region RR given by 0≤x+2y≤30 \le x + 2y \le 3 and 0≤x−y≤10 \le x - y \le 1. With u=x+2yu = x + 2y and v=x−yv = x - y, the student computes the forward Jacobian ∂(u,v)/∂(x,y)=−3\partial(u, v)/\partial(x, y) = -3, writes dx dy=3 du dvdx\,dy = 3\,du\,dv and gets 272\tfrac{27}{2}. Find the mistake and the correct value.
Show the answer

The factor must come from the inverse map, which expresses xx and yy through uu and vv. Solving the two equations gives x=u+2v3x = \tfrac{u + 2v}{3} and y=u−v3y = \tfrac{u - v}{3}, so

∂(x,y)∂(u,v)=13⋅(−13)−23⋅13=−13,\begin{aligned} \frac{\partial(x, y)}{\partial(u, v)} &= \tfrac13 \cdot \bigl(-\tfrac13\bigr) - \tfrac23 \cdot \tfrac13 \\[0.4em] &= -\frac13, \end{aligned}

the reciprocal of −3-3, and dx dy=13 du dvdx\,dy = \tfrac13\,du\,dv. The region becomes 0≤u≤30 \le u \le 3, 0≤v≤10 \le v \le 1, and the integrand is uu, so

∬R(x+2y) dx dy=13∫03∫01u dv du=32.\begin{aligned} &\iint_R (x + 2y)\,dx\,dy \\[0.4em] &= \frac13 \int_0^3 \int_0^1 u\,dv\,du = \frac32. \end{aligned}

The student’s factor 33 is the area scale of the forward map, which sends RR, with area 11, onto a rectangle with area 33. Using it makes the answer 99 times too large, since 272=9⋅32\tfrac{27}{2} = 9 \cdot \tfrac32. The area gives a quick check. The corners of RR are (0,0)(0, 0), (1,1)(1, 1), (53,23)(\tfrac53, \tfrac23) and (23,−13)(\tfrac23, -\tfrac13), and its area is 1=13⋅31 = \tfrac13 \cdot 3.

  1. The parallelogram PP has corners (0,0)(0, 0), (1,2)(1, 2), (3,3)(3, 3) and (2,1)(2, 1). Build linear coordinates in which PP is the unit square, and evaluate the integral of xx over PP. What goes wrong without the absolute value?
Show the answer

The sides of PP at the origin are the vectors (1,2)(1, 2) and (2,1)(2, 1), so every point of PP is (x,y)=s (1,2)+t (2,1)(x, y) = s\,(1, 2) + t\,(2, 1) with 0≤s≤10 \le s \le 1 and 0≤t≤10 \le t \le 1, that is, x=s+2tx = s + 2t and y=2s+ty = 2s + t. Solving for the new coordinates gives s=2y−x3s = \tfrac{2y - x}{3} and t=2x−y3t = \tfrac{2x - y}{3}, so PP is the parallelogram region 0≤2y−x≤30 \le 2y - x \le 3, 0≤2x−y≤30 \le 2x - y \le 3. The map from (s,t)(s, t) to (x,y)(x, y) has Jacobian 1⋅1−2⋅2=−31 \cdot 1 - 2 \cdot 2 = -3, so dx dy=3 ds dtdx\,dy = 3\,ds\,dt and

∬Px dx dy=3∫01∫01(s+2t) ds dt=3(12+1)=92.\begin{aligned} &\iint_P x\,dx\,dy \\[0.4em] &= 3 \int_0^1 \int_0^1 (s + 2t)\,ds\,dt \\[0.4em] &= 3\Bigl(\frac12 + 1\Bigr) = \frac92. \end{aligned}

As a check, PP has area 33 and its center is (32,32)(\tfrac32, \tfrac32), so the integral of xx is 3⋅32=923 \cdot \tfrac32 = \tfrac92. Without the absolute value the factor would be −3-3 and the result −92-\tfrac92, a negative number for the integral of a function that is positive inside PP. The sign of −3-3 only says that the map from the square to PP reverses orientation.

How this lesson connects