Chapter 23. Change of variables
We’ll do just two variables for now; the 3D situation is exactly the same and we cover it later.
§23.1 [TEXT] Interval notation
One quick notational thing if you haven’t seen this before:
§23.2 [TEXT] Transition maps
As it turns out -integration (or -integration in 3D) isn’t always going to be nice, even if you try both horizontal and vertical slicing.
The standard example that’s given looks something like this: suppose you want to integrate the region bounded by the four lines
This region is sketched in Figure 49. As I promised you, I think it’s better for your thinking if you write these as inequalities:
(11)
This chapter introduces a technique called “change of variables” that will allow us to handle annoying-looking regions like Equation 11, where we don’t want to do -integration. The idea is to make a new map of the yellow region with a different coordinate system. To do this, I need to tell you a new term:
Suppose is a region. Let be another region, often a rectangle. A transition map for is a function that transforms to .
In 18.02 we always require that all the points except possibly the boundaries of get mapped to different points in . Thus, writing the inverse usually also makes sense.
If is a rectangle — and again, that’s quite common — then sometimes is also called a cell (e.g. my Napkin does this when discussing differential forms).
Cartography or geography enthusiasts will find that the word “map” gives them the right instincts. If you print a world map on an or A4 sheet of paper, it gives you a coordinate system for the world with longitude and latitude. So can be thought of as the surface of the Earth, while is the rectangular sheet of paper. (I’m lying a little bit because the Earth lives in 3D space but not 2D space, but bear with me.)
The map is always distorted in some places, because the Earth is bent: the north and south pole will often get stretched a ton, for example. But that’s okay — as long as each longitude and latitude gives you a different point on Earth, we’re satisfied. Technically there are exceptions at the north and south poles, but those are on the boundary and we let it slide.
This corresponds to the idea that a cell can capture a complicated area with two coordinates. See Figure 50.

Now how does a transition map help us? Well, first, let’s show how we can do cartography on the region we just saw, and then worry about the integration later.
The key idea is that we need to rig our transition function such that
so that our two inequalities we saw earlier are just
This lets us make a portrayal of the yellow region as a sheet of paper. See Figure 51, which is really important to us!
How do we actually express the transition map of ? It’s actually easier to write the inverse; in this context it’s actually more natural to write
If you really need itself, you would solve for and in terms of and to get
so that our transition map is given exactly by
However, actually for integration purposes (we’ll see this next section) you can actually get away with only the formula for instead.
§23.3 [TEXT] Integration once you have a transition map
If you remember change-of-variables from 18.01, the 18.02 is the grown-up version where you have a transition map instead.
For example in a case, if the transition map is written as , then
Let’s consider the transition map we saw earlier, that is
We compute the gradient of by taking the two partials:
The other component has the following gradient:
So the Jacobian matrix for is
We can also find the Jacobian matrix of the inverse map too, that is, the transition map defined by
In other words, this is the map that transforms into . This is actually less painful because you don’t have to deal with the square roots everywhere.
So the Jacobian matrix for is
Okay, now for the result. We’ll postpone giving a justification for this theorem until Section 24.6, since I want to have done a few concrete examples before drawing the right picture.
Suppose you need to integrate and you have a transition map . Then the transition map lets you change the integral as follows:
Alternatively, if it’s easier to compute , the following formula also works:
However, in the latter case your Jacobian determinant will have and in it that you need to translate back into and .
Here is called the area scaling factor: it’s the absolute value of the determinant of the Jacobian matrix. It’s indeed true that
which means that if your transition map has a nicer inverse than the original, you might prefer to use that instead.
You might find it easier to remember both formulas if you write
so it looks more like from 18.01. (Indeed the 18.01 formula is the special case of a matrix!)
This is the analog in 18.01 when you did change of variables from to (called -substitution sometimes), and you changed to . In 18.02, the derivative from 18.01 is replaced by the enormous Jacobian determinant.
Let’s see an example of how to carry out this integration.
Compute the area of the region in the first quadrant bounded by the curves
Solution. In the previous sections we introduced variables and , and considered the region
which were the pairs of points in that rectangle we described earlier. We made a transition map written as either
We don’t like square roots, so we’ll use the determinant of the Jacobian matrix for , which is
Since we used the upside-down version of the formula, we need to translate this back into and through the given formula. In this case since , you can do it just by looking:
§23.4 [TEXT] Another example: the area of a unit disk
Solution. For reasons that will soon be obvious, we use the letters and rather than and for this problem. This time our cartographer’s transition map is going to be given by
You might recognize this as polar coordinates. This gives us a way to plot the unit disk as a rectangular map; see the figure.
(Careful students might notice that the points on the line segment from to are repeated more than once under the transition map; again, in 18.02 we allow this repetition on the boundary.)
We calculate the Jacobian of :
The area scaling factor is then
Hence, the transition map gives us the following change of variables:
This is easy to integrate:
| Example | Forwards | Backwards |
|---|---|---|
| Example setup | ||
| Example Jacobian matrix | ||
| Example Jacobian determinant | ||
| Example change of variables |
§23.5 [TEXT] Example: the area of an ellipse
Once we know the area of a circle, we can also compute the area of an ellipse by reducing to the area of a circle, as follows.
Let be positive real numbers Compute that the area inside the ellipse
Solution. Let be the interior of the ellipse. Consider the transformation defined by
That is, . The Jacobian of this matrix is easy to calculate:
which has determinant .
This transformation provides a mapping between the regions
Hence, via change of variables the area of is related by
To put this example into a picture, the idea is that we use a change of variables to map the ellipse into a circle, where the Jacobian determinant is the constant function . That determinant factors out, and we get the result above.
§23.6 [SIDENOTE] Tip: Factoring integrals over rectangles
Especially with polar coordinates, you will often find you get an integral of the shape
that is, the part inside splits cleanly as the product of stuff involving and stuff involving . In that case, if you imagine actually doing the integration, you’ll find that this actually just equals
For example, consider the following easy question and solution.
Evaluate
Solution. The integral can be written as:
The inner integral is
Substitute the result back into the integral:
If you pay attention to the solution above, you’ll notice that in fact is just a number, and it gets pulled out of the integral right away. So in effect, we actually have
This is a bit of a convenience feature that might save a bit of headspace. It’s a tiny optimization, but it’s worth pointing out.
Look for the common pattern
Remember, this doesn’t work if either the integrand doesn’t factor, or the limits of integration aren’t just numbers (i.e. the limit of depends on ).
As another example of a use case, in the polar integration we just did, we have
(Polar coordinates, covered next chapter, have this particular pattern a lot. Often the thing you’re integrating has no dependence at all.)
§23.7 [EXER] Exercises
Exercise 23.1. Let be all the points on or inside the triangle with vertices , and . Compute
(Recommended approach: use change of variables with and .)