Skip to content
Tutorials Center
My learning

Topics

Lesson 27 of 39 · Multiple Integrals

Change of Variables and the Jacobian

See why polar, cylindrical and spherical factors are Jacobians, and use the Jacobian determinant to transform double integrals over parallelograms and ellipses.

In single-variable calculus, substitution u = g(x) turns ∫ f(g(x)) g'(x) dx into ∫ f(u) du. The factor g'(x) records how much the substitution stretches the axis. In several variables the same job is done by a determinant: the Jacobian.

This lesson explains where the factors r and ρ² sin φ came from, and shows how to choose your own substitution to make a region or an integrand simple.

Transformations of the plane

Suppose x and y are given in terms of new variables u and v:

Text
x = x(u, v),   y = y(u, v)

This maps a region S in the uv-plane onto a region R in the xy-plane. A tiny rectangle of size du × dv in the uv-plane becomes a small curved parallelogram in the xy-plane, spanned by the vectors

Text
(∂x/∂u, ∂y/∂u) du      and      (∂x/∂v, ∂y/∂v) dv

The area of that parallelogram is the absolute value of the determinant of these two vectors. This determinant is the Jacobian:

Text
J = ∂(x, y)/∂(u, v) = | ∂x/∂u  ∂x/∂v |
                      | ∂y/∂u  ∂y/∂v |
                    = (∂x/∂u)(∂y/∂v) - (∂x/∂v)(∂y/∂u)

So the area element transforms as dA = |J| du dv.

The change of variables formula

If the transformation is one-to-one (except possibly on boundaries) and J ≠ 0, then

Text
∬_R f(x, y) dx dy = ∬_S f(x(u, v), y(u, v)) |J| du dv

You need to do three things: transform the integrand, transform the region, and include |J|.

Old friends are Jacobians

Polar. x = r cos θ, y = r sin θ:

Text
J = | cos θ  -r sin θ |
    | sin θ   r cos θ | = r cos² θ + r sin² θ = r

So dA = r dr dθ, exactly what we used.

Spherical. Computing the 3 × 3 determinant for x = ρ sin φ cos θ, y = ρ sin φ sin θ, z = ρ cos φ gives |J| = ρ² sin φ (positive for 0 ≤ φ ≤ π).

Python Jacobians of polar and spherical coordinates with SymPy

Press Run (or Ctrl + Enter) to see the result here.

Program input · what you'd type while the program runs

Type the answers before you press Run, one per line. Each time the program reads a line (with input()), it gets the next line from this box.

SymPy may print the spherical result with a sign, such as -rho**2*sin(phi). We take the absolute value in the formula, and for 0 ≤ φ ≤ π that is ρ² sin φ.

Example: area of an ellipse

The ellipse x²/a² + y²/b² ≤ 1 is squashed from the unit disk. Let x = a u, y = b v. Then

Text
J = | a  0 |
    | 0  b | = ab

and the unit disk u² + v² ≤ 1 maps to the ellipse. So

Text
Area = ∬ dx dy = ∬_{u²+v²≤1} ab du dv = ab · π = πab

The area scales by exactly the stretching factor ab.

Example: a skewed region

Evaluate ∬_R (x + y)(x - y) dA over the parallelogram R bounded by the lines x + y = 0, x + y = 2, x - y = 0 and x - y = 1.

The boundaries suggest u = x + y and v = x - y, so the region becomes the rectangle 0 ≤ u ≤ 2, 0 ≤ v ≤ 1. Solve for x and y:

Text
x = (u + v)/2,   y = (u - v)/2
J = | 1/2   1/2 |
    | 1/2  -1/2 | = -1/4 - 1/4 = -1/2     so |J| = 1/2

Then

Text
∬ u v · (1/2) du dv = (1/2)(∫₀² u du)(∫₀¹ v dv) = (1/2)(2)(1/2) = 1/2
Python A skewed-region integral by substitution

Press Run (or Ctrl + Enter) to see the result here.

Program input · what you'd type while the program runs

Type the answers before you press Run, one per line. Each time the program reads a line (with input()), it gets the next line from this box.

The inverse view

Sometimes it is easier to write u, v as functions of x, y. Then use

Text
∂(x, y)/∂(u, v) = 1 / ( ∂(u, v)/∂(x, y) )

For u = x + y, v = x - y, the determinant ∂(u, v)/∂(x, y) equals -2, and its reciprocal gives -1/2, matching what we found.

A numerical sanity check

The Jacobian tells you how area scales locally. You can see it by mapping a small square and measuring the image area with the shoelace formula, a calculator for the area of a polygon.

Python Image of a tiny square: area ratio equals |J|

Press Run (or Ctrl + Enter) to see the result here.

Program input · what you'd type while the program runs

Type the answers before you press Run, one per line. Each time the program reads a line (with input()), it gets the next line from this box.

Check your understanding

Quick check · 4 questions

of 4 answered You scored / 4 · perfect!

  1. 1. What does the Jacobian |J| measure?

    The absolute value of the Jacobian determinant is the local area scaling factor, so dA = |J| du dv.
  2. 2. For x = r cos θ, y = r sin θ, the Jacobian is:

    The determinant equals r cos² θ + r sin² θ = r.
  3. 3. With x = a u and y = b v, the ellipse x²/a² + y²/b² ≤ 1 has area:

    J = ab and the unit disk has area π, so the area is πab.
  4. 4. For u = x + y, v = x - y, the area factor |∂(x, y)/∂(u, v)| equals:

    Solving for x and y gives a matrix with determinant -1/2, so |J| = 1/2.

Summary

  • A change of variables x(u, v), y(u, v) rewrites dA as |J| du dv, where J is the Jacobian determinant.
  • Polar gives J = r; spherical gives |J| = ρ² sin φ.
  • Choose substitutions that turn awkward boundaries into simple rectangles.
  • The reciprocal rule lets you compute J from the inverse transformation.
  • Always transform the integrand, the region and the area element together.

Next: Vector Fields