Change of Variables

Learning Objectives

  • Evaluate a double integral using a change of variables.
  • Evaluate a triple integral using a change of variables.

Change of Variables for Double Integrals

We have already seen that, under the change of variables T(u,v)=(x,y)T(u,v)=(x,y) where x=g(u,v)x=g(u,v) and y=h(u,v)y=h(u,v), a small region ΔAΔA in the xyxy-plane is related to the area formed by the product ΔuΔvΔuΔv in the uvuv-plane by the approximation

ΔAJ(u,v)Δu,ΔvΔAJ(u,v)Δu,Δv.

Now let’s go back to the definition of double integral for a minute:

Rf(x,y) dA=limm,nmi=1nj=1f(xij,yij)ΔARf(x,y) dA=limm,nmi=1nj=1f(xij,yij)ΔA.

Referring to Figure 1, observe that we divided the region SS in the uvuv-plane into small subrectangles SijSij and we let the subrectangles RijRij in the xyxy-plane be the images of SijSij under the transformation T(u,v)=(x,y)T(u,v)=(x,y).

On the left-hand side of this figure, there is a rectangle S with an inscribed red oval and a subrectangle with lower right corner point (u sub ij, v sub ij), height Delta v, and length Delta u given in the Cartesian u v-plane. Then there is an arrow from this graph to the right-hand side of the figure marked with T. On the right-hand side of this figure there is a region R with inscribed (deformed) red oval and a subrectangle R sub ij with corner point (x sub ij, y sub ij) given in the Cartesian x y-plane. The subrectangle is blown up and shown with vectors pointing along the edge from the corner point.

Figure 1. The subrectangles SijSij in the uvuv-plane transform into subrectangles RijRij in the xyxy-plane.

Then the double integral becomes

Rf(x,y) dA=limm,nmi=1nj=1f(xij,yij)ΔA=limm,nmi=1nj=1f(g(uij,vij),h(uij,vij))|J(uij,vij)|ΔuΔvRf(x,y) dA=limm,nmi=1nj=1f(xij,yij)ΔA=limm,nmi=1nj=1f(g(uij,vij),h(uij,vij))|J(uij,vij)|ΔuΔv.

Notice this is exactly the double Riemann sum for the integral

Sf(g(u,v),h(u,v))|(x,y)(u,v)|du dvSf(g(u,v),h(u,v))(x,y)(u,v)du dv.

theorem: change of variables for double integrals


Let T(u,v)=(x,y)T(u,v)=(x,y) where x=g(u,v)x=g(u,v) and y=h(u,v)y=h(u,v) be a one-to-one C1C1 transformation, with a nonzero Jacobian on the interior of the region SS in the uvuv-plane; it maps SS into the region RR in the xyxy-plane. If ff is continuous on RR, then

Rf(x,y) dA=Sf(g(u,v),h(u,v))|(x,y)(u,v)|du dvRf(x,y) dA=Sf(g(u,v),h(u,v))(x,y)(u,v)du dv.

With this theorem for double integrals, we can change the variables from (x,y)(x,y) to (u,v)(u,v) in a double integral simply by replacing

dA=dx dy=|(x,y)(u,v)|du dvdA=dx dy=(x,y)(u,v)du dv

when we use the substitutions x=g(u,v)x=g(u,v) and y=h(u,v)y=h(u,v) and then change the limits of integration accordingly. This change of variables often makes any computations much simpler.

Example: changing variables from rectangular to polar coordinates

Consider the integral

202xx20x2+y2dy dx202xx20x2+y2dy dx.

Use the change of variables x=rcosθx=rcosθ and y=rsinθy=rsinθ, and find the resulting integral.

try it

Considering the integral 101x20(x2+y2)dy dx101x20(x2+y2)dy dx, use the change of variables x=rcosθx=rcosθ and y=sinθy=sinθ, and find the resulting integral.

Notice in the next example that the region over which we are to integrate may suggest a suitable transformation for the integration. This is a common and important situation.

Example: changing variables

Consider the integral R(xy)dy dxR(xy)dy dx, where RR is the parallelogram joining the points (1,2)(1,2), (3,4)(3,4), (4,3)(4,3), and (6,5)(6,5) (Figure 3). Make appropriate changes of variables, and write the resulting integral.

A semicircle in the first quadrant of the xy plane with radius 1 and center (1, 0). The equation for this curve is given as y = the square root of (2x minus x squared)

Figure 3. The region of integration for the given integral.

try it

Make appropriate changes of variables in the integral R4(xy)2dy dxR4(xy)2dy dx, where RR is the trapezoid bounded by the lines xy=2xy=2, xy=4xy=4, x=0x=0, and y=0y=0. Write the resulting integral.

We are ready to give a problem-solving strategy for change of variables.

Problem solving strategy: change of variables

  1. Sketch the region given by the problem in the xyxy-plane and then write the equations of the curves that form the boundary.
  2. Depending on the region or the integrand, choose the transformations x=g(u,v)x=g(u,v) and y=h(u,v)y=h(u,v).
  3. Determine the new limits of integration in the uvuv-plane.
  4. Find the Jacobian J(u,v)J(u,v).
  5. In the integrand, replace the variables to obtain the new integrand.
  6. Replace dy dxdy dx or dx dydx dy, whichever occurs, by J(u,v)du dvJ(u,v)du dv.

In the next example, we find a substitution that makes the integrand much simpler to compute.

Example: evaluating an integral

Using the change of variables u=xyu=xy and v=x+yv=x+y, evaluate the integral

R(xy)ex2y2dAR(xy)ex2y2dA,

where RR is the region bounded by the lines x+y=1x+y=1 and x+y=3x+y=3 and the curves x2y2=1x2y2=1 and x2y2=1x2y2=1 (see the first region in Figure 5).

try it

Using the substitutions x=vx=v and y=u+vy=u+v, evaluate the integral Rysin(y2x)dARysin(y2x)dA where RR is the region bounded by the lines y=x, x=2y=x, x=2 and y=0y=0.

Watch the following video to see the worked solution to the above Try It

Change of Variables for Triple Integrals

Changing variables in triple integrals works in exactly the same way. Cylindrical and spherical coordinate substitutions are special cases of this method, which we demonstrate here.

Suppose that GG is a region in uvwuvw-space and is mapped to DD in xyzxyz-space (Figure 6) by a one-to-one C1C1 transformation T(u,v,w)=(x,y,z)T(u,v,w)=(x,y,z) where x=g(u,v,w)x=g(u,v,w)y=h(u,v,w)y=h(u,v,w), and z=k(u,v,w)z=k(u,v,w).

On the left-hand side of this figure, there is a region G in u v w space. Then there is an arrow from this graph to the right-hand side of the figure marked with x = g(u, v, w), y = h(u, v, w), and z = k(u, v, w). On the right-hand side of this figure there is a region D in xyz space.

Figure 6. A region GG in uvwuvw-space mapped to a region DD in xyzxyz-space.

Then any function F(x,y,z)F(x,y,z) defined on DD can be thought of as another function H(u,v,w)H(u,v,w) that is defined on GG:

F(x,y,z)=F(g(u,v,w), h(u,v,w) k(u,v,w))= H(u,v,w)F(x,y,z)=F(g(u,v,w), h(u,v,w) k(u,v,w))= H(u,v,w).

Now we need to define the Jacobian for three variables.

definition


The Jacobian determinant J(u,v,w)J(u,v,w) in three variables is defined as follows:

J(u,v,w)=|xuyuzuxvyvzvxwywzw|J(u,v,w)=∣ ∣ ∣ ∣xuyuzuxvyvzvxwywzw∣ ∣ ∣ ∣.

This is also the same as

J(u,v,w)=|xuxvxwyuyvywzuzvzw|J(u,v,w)=∣ ∣ ∣ ∣xuxvxwyuyvywzuzvzw∣ ∣ ∣ ∣.

The Jacobian can also be simply denoted as (x,y,z)(u,v,w)(x,y,z)(u,v,w).

With the transformations and the Jacobian for three variables, we are ready to establish the theorem that describes change of variables for triple integrals.

theorem: change of variables for triple integrals


Let T(u,v,w)=(x,y,z)T(u,v,w)=(x,y,z) where x=g(u,v,w)x=g(u,v,w), y=h(u,v,w)y=h(u,v,w), and z=k(u,v,w)z=k(u,v,w), be a one-to-one C1C1 transformation, with a nonzero Jacobian, that maps the region GG in the uvwuvw-plane into the region DD in the xyzxyz-plane. As in the two-dimensional case, if FF is continuous on DD, then

RF(x,y,z)dV=GF(g(u,v,w), h(u,v,w), k(u,v,w))|(x,y,z)(u,v,w)|du dv dw=GH(u,v,w)|J(u,v,w)|du dv dwRF(x,y,z)dV=GF(g(u,v,w), h(u,v,w), k(u,v,w))(x,y,z)(u,v,w)du dv dw=GH(u,v,w)|J(u,v,w)|du dv dw.

Let us now see how changes in triple integrals for cylindrical and spherical coordinates are affected by this theorem. We expect to obtain the same formulas as in Triple Integrals in Cylindrical and Spherical Coordinates.

Example: obtaining formulas in triple integrals for cylindrical and spherical coordinates

Derive the formula in triple integrals for

  1. cylindrical and
  2. spherical coordinates.

Let’s try another example with a different substitution.

Example: evaluating a triple integral with a change of variables

Evaluate the triple integral

3040(y/2)+1y/2(x+z3)dx dy dz

in xyz-space by using the transformation

u=(2xy)/2, v=y/2, and w=z/3.

Then integrate over an appropriate region in uvw-space

try it

Let D be the region in xyz-space defined by 1x2, 0xy2,and 0z1.

Evaluate D(x2y+3xyz)dx dy dz by using the transformation u=xv=xy, and w=3z.

Watch the following video to see the worked solution to the above Try It