What a Jacobian is
Before you start: you need partial differentiation and how to expand a determinant.
Suppose \(u\) and \(v\) are functions of \(x\) and \(y\). The Jacobian collects all four first partial derivatives into a determinant. It tells you how much a tiny rectangle in the \(xy\)-plane gets stretched or squashed when you map it to the \(uv\)-plane.
\[J = \frac{\partial(u, v)}{\partial(x, y)} = \begin{vmatrix} u_x & u_y \\ v_x & v_y \end{vmatrix} = u_xv_y - u_yv_x\]
Three variables
\[\frac{\partial(u, v, w)}{\partial(x, y, z)} = \begin{vmatrix} u_x & u_y & u_z \\ v_x & v_y & v_z \\ w_x & w_y & w_z \end{vmatrix}\]
Each row belongs to one of the new functions (\(u\), then \(v\)). Each column is one of the old variables (\(x\), then \(y\)). Some books write \(J(u, v)\) or \(J\left(\dfrac{u, v}{x, y}\right)\). They all mean the same determinant.
Standard results
| Coordinates | Substitution | Jacobian |
|---|---|---|
| Polar | \(x = r\cos\theta,\ y = r\sin\theta\) | \(\dfrac{\partial(x, y)}{\partial(r, \theta)} = r\) |
| Cylindrical | \(x = r\cos\theta,\ y = r\sin\theta,\ z = z\) | \(\dfrac{\partial(x, y, z)}{\partial(r, \theta, z)} = r\) |
| Spherical | \(x = r\sin\theta\cos\phi,\ y = r\sin\theta\sin\phi,\ z = r\cos\theta\) | \(\dfrac{\partial(x, y, z)}{\partial(r, \theta, \phi)} = r^2\sin\theta\) |
In the spherical row, \(\theta\) is measured down from the \(z\)-axis and \(\phi\) is the angle round it. If your book swaps the letters, the answer becomes \(r^2\sin\phi\). It is always \(r^2\) times the sine of the angle from the \(z\)-axis.
Properties
1. Inverse: if \(J = \dfrac{\partial(u, v)}{\partial(x, y)}\) and \(J' = \dfrac{\partial(x, y)}{\partial(u, v)}\), then \(JJ' = 1\).
2. Chain rule: if \(u, v\) are functions of \(r, s\), and \(r, s\) are functions of \(x, y\), then
\[\frac{\partial(u, v)}{\partial(x, y)} = \frac{\partial(u, v)}{\partial(r, s)}\cdot\frac{\partial(r, s)}{\partial(x, y)}\]
3. Functional dependence: if \(\dfrac{\partial(u, v)}{\partial(x, y)} = 0\) for all \(x, y\) in a region, then \(u\) and \(v\) are functionally dependent: one can be written as a function of the other. If the Jacobian is not identically zero, they are independent.
Property 1 is handy when one direction is easy and the other is messy. For polar coordinates, \(\dfrac{\partial(r, \theta)}{\partial(x, y)} = \dfrac{1}{r}\) straight away, without differentiating \(\tan^{-1}\dfrac{y}{x}\).
Changing variables in multiple integrals
This is where Jacobians earn their place. When you substitute \(x = x(u, v)\), \(y = y(u, v)\) in a double integral, the area element changes too:
\[\iint_R f(x, y)\,dx\,dy = \iint_{R'} f\big(x(u, v), y(u, v)\big)\,\left|\frac{\partial(x, y)}{\partial(u, v)}\right|\,du\,dv\]
Note the absolute value, and note which way up the Jacobian is: old variables on top, new ones below. With polar coordinates this gives \(dx\,dy = r\,dr\,d\theta\), the rule used in double integrals in polar coordinates. In three dimensions, spherical coordinates give \(dx\,dy\,dz = r^2\sin\theta\,dr\,d\theta\,d\phi\), used in triple integrals in spherical coordinates, and cylindrical coordinates give \(r\,dr\,d\theta\,dz\).
A quick example: the ellipse \(\dfrac{x^2}{a^2} + \dfrac{y^2}{b^2} \le 1\). Put \(x = ar\cos\theta\), \(y = br\sin\theta\). The Jacobian is \(abr\), and the ellipse becomes \(0 \le r \le 1\), \(0 \le \theta \le 2\pi\). So the area is \(\displaystyle\int_0^{2\pi}\!\!\int_0^1 abr\,dr\,d\theta = \pi ab\).
Solved examples
Example 1: A first Jacobian
EasyIf \(u = x^2 - y^2\) and \(v = 2xy\), find \(\dfrac{\partial(u, v)}{\partial(x, y)}\).
- \(u_x = 2x\), \(u_y = -2y\), \(v_x = 2y\), \(v_y = 2x\).
- \(J = \begin{vmatrix} 2x & -2y \\ 2y & 2x \end{vmatrix} = 4x^2 + 4y^2\).
Answer\(\dfrac{\partial(u, v)}{\partial(x, y)} = 4(x^2 + y^2)\)
Example 2: A substitution
EasyIf \(x = u(1 - v)\) and \(y = uv\), find \(\dfrac{\partial(x, y)}{\partial(u, v)}\).
- \(x_u = 1 - v\), \(x_v = -u\), \(y_u = v\), \(y_v = u\).
- \(J = (1 - v)u - (-u)v = u - uv + uv\).
Answer\(\dfrac{\partial(x, y)}{\partial(u, v)} = u\)
Example 3: Polar coordinates both ways
MediumFor \(x = r\cos\theta\), \(y = r\sin\theta\), find \(J = \dfrac{\partial(x, y)}{\partial(r, \theta)}\) and \(J' = \dfrac{\partial(r, \theta)}{\partial(x, y)}\), and check that \(JJ' = 1\).
- \(J = \begin{vmatrix} \cos\theta & -r\sin\theta \\ \sin\theta & r\cos\theta \end{vmatrix} = r\cos^2\theta + r\sin^2\theta = r\).
- For \(J'\), use \(r = \sqrt{x^2 + y^2}\), \(\theta = \tan^{-1}\dfrac{y}{x}\): \(r_x = \dfrac{x}{r}\), \(r_y = \dfrac{y}{r}\), \(\theta_x = -\dfrac{y}{r^2}\), \(\theta_y = \dfrac{x}{r^2}\).
- \(J' = \dfrac{x}{r}\cdot\dfrac{x}{r^2} - \dfrac{y}{r}\cdot\left(-\dfrac{y}{r^2}\right) = \dfrac{x^2 + y^2}{r^3} = \dfrac{1}{r}\).
Answer\(J = r\), \(J' = \dfrac{1}{r}\), and \(JJ' = 1\)
Example 4: The chain rule
MediumIf \(u = x^2 - y^2\), \(v = 2xy\), and \(x = r\cos\theta\), \(y = r\sin\theta\), find \(\dfrac{\partial(u, v)}{\partial(r, \theta)}\).
- Chain rule: \(\dfrac{\partial(u, v)}{\partial(r, \theta)} = \dfrac{\partial(u, v)}{\partial(x, y)}\cdot\dfrac{\partial(x, y)}{\partial(r, \theta)}\).
- From Examples 1 and 3, this is \(4(x^2 + y^2)\cdot r = 4r^2\cdot r\).
- Check directly: \(u = r^2\cos 2\theta\), \(v = r^2\sin 2\theta\), and \[\begin{vmatrix} 2r\cos 2\theta & -2r^2\sin 2\theta \\ 2r\sin 2\theta & 2r^2\cos 2\theta \end{vmatrix} = 4r^3\cos^2 2\theta + 4r^3\sin^2 2\theta = 4r^3\] ✓
Answer\(\dfrac{\partial(u, v)}{\partial(r, \theta)} = 4r^3\)
Example 5: Independent functions
MediumAre \(u = x + y\) and \(v = xy\) functionally dependent?
- \(J = \begin{vmatrix} 1 & 1 \\ y & x \end{vmatrix} = x - y\).
- This is zero only on the line \(y = x\), not everywhere. So the Jacobian is not identically zero.
AnswerNo. \(u\) and \(v\) are independent.
Example 6: Dependent functions
Exam levelShow that \(u = \dfrac{x + y}{1 - xy}\) and \(v = \tan^{-1}x + \tan^{-1}y\) are functionally dependent, and find the relation.
- Quotient rule: \[u_x = \frac{(1 - xy) + y(x + y)}{(1 - xy)^2} = \frac{1 + y^2}{(1 - xy)^2}\] By symmetry \(u_y = \dfrac{1 + x^2}{(1 - xy)^2}\).
- \(v_x = \dfrac{1}{1 + x^2}\) and \(v_y = \dfrac{1}{1 + y^2}\).
- \(J = u_xv_y - u_yv_x\), which is \(\dfrac{1}{(1 - xy)^2} - \dfrac{1}{(1 - xy)^2} = 0\) for all \(x, y\) with \(xy \ne 1\). So they are dependent.
- Relation: \(\tan v = \tan(\tan^{-1}x + \tan^{-1}y) = \dfrac{x + y}{1 - xy} = u\).
Answer\(J = 0\), so \(u\) and \(v\) are dependent, with \(u = \tan v\).
Example 7: Spherical coordinates
Exam levelFor \(x = r\sin\theta\cos\phi\), \(y = r\sin\theta\sin\phi\), \(z = r\cos\theta\), show that \(\dfrac{\partial(x, y, z)}{\partial(r, \theta, \phi)} = r^2\sin\theta\).
- \[J = \begin{vmatrix} \sin\theta\cos\phi & r\cos\theta\cos\phi & -r\sin\theta\sin\phi \\ \sin\theta\sin\phi & r\cos\theta\sin\phi & r\sin\theta\cos\phi \\ \cos\theta & -r\sin\theta & 0 \end{vmatrix}\]
- Expand along the last row, which has a zero. The \(\cos\theta\) term: \[\cos\theta\,(r^2\sin\theta\cos\theta\cos^2\phi + r^2\sin\theta\cos\theta\sin^2\phi) = r^2\sin\theta\cos^2\theta\]
- The \(-r\sin\theta\) term (with the sign \(-\) for its position): \[r\sin\theta\,(r\sin^2\theta\cos^2\phi + r\sin^2\theta\sin^2\phi) = r^2\sin^3\theta\]
- Add: \(r^2\sin\theta(\cos^2\theta + \sin^2\theta)\).
Answer\(\dfrac{\partial(x, y, z)}{\partial(r, \theta, \phi)} = r^2\sin\theta\)
Example 8: Changing variables in an integral
Exam levelEvaluate \(\displaystyle\iint_R (x + y)^2\,dx\,dy\), where \(R\) is the square \(|x| + |y| \le 1\).
- The sides of \(R\) are \(x + y = \pm 1\) and \(x - y = \pm 1\). So put \(u = x + y\), \(v = x - y\). Then \(R\) becomes \(-1 \le u \le 1\), \(-1 \le v \le 1\).
- \(\dfrac{\partial(u, v)}{\partial(x, y)} = \begin{vmatrix} 1 & 1 \\ 1 & -1 \end{vmatrix} = -2\), so \(\dfrac{\partial(x, y)}{\partial(u, v)} = -\dfrac{1}{2}\) and \(|J| = \dfrac{1}{2}\).
- \[\iint_R (x + y)^2\,dx\,dy = \int_{-1}^{1}\!\!\int_{-1}^{1} u^2\cdot\frac{1}{2}\,du\,dv = \frac{1}{2}\cdot\frac{2}{3}\cdot 2\]
Answer\(\dfrac{2}{3}\)
When a question gives \(u, v\) in terms of \(x, y\) but the integral needs \(\dfrac{\partial(x, y)}{\partial(u, v)}\), don't solve for \(x\) and \(y\). I find the easy Jacobian and take its reciprocal. In Example 8 that saved writing \(x = \dfrac{u + v}{2}\), \(y = \dfrac{u - v}{2}\) at all.
Common mistakes
1. Using the Jacobian upside down
\(\dfrac{\partial(u, v)}{\partial(x, y)}\) and \(\dfrac{\partial(x, y)}{\partial(u, v)}\) are reciprocals, not equal. In Example 8 the first is \(-2\) and the second is \(-\dfrac{1}{2}\). In an integral you need old variables over new: \(\dfrac{\partial(x, y)}{\partial(u, v)}\).
2. Forgetting the absolute value
An area element can't be negative. With \(u = x + y\), \(v = x - y\) you get \(J = -\dfrac{1}{2}\), but \(dx\,dy = \dfrac{1}{2}\,du\,dv\). Using \(-\dfrac{1}{2}\) gives \(-\dfrac{2}{3}\) in Example 8.
3. Calling functions dependent because \(J = 0\) at one point
Dependence needs \(J = 0\) everywhere in the region. For \(u = x + y\), \(v = xy\), \(J = x - y\) is zero on the line \(y = x\) only, so they are independent.
Practice questions
Try each one on paper before you open the answer.
Q1Find \(\dfrac{\partial(u, v)}{\partial(x, y)}\) if \(u = 3x + 2y\), \(v = x - 4y\).
\(\begin{vmatrix} 3 & 2 \\ 1 & -4 \end{vmatrix} = -12 - 2 = -14\).
Q2Find \(\dfrac{\partial(u, v)}{\partial(x, y)}\) if \(u = e^x\cos y\), \(v = e^x\sin y\).
\[\begin{vmatrix} e^x\cos y & -e^x\sin y \\ e^x\sin y & e^x\cos y \end{vmatrix} = e^{2x}(\cos^2 y + \sin^2 y) = e^{2x}\]
Q3For cylindrical coordinates \(x = r\cos\theta\), \(y = r\sin\theta\), \(z = z\), show that \(\dfrac{\partial(x, y, z)}{\partial(r, \theta, z)} = r\).
\[\begin{vmatrix} \cos\theta & -r\sin\theta & 0 \\ \sin\theta & r\cos\theta & 0 \\ 0 & 0 & 1 \end{vmatrix}\]
Expand along the last row: \(1\cdot(r\cos^2\theta + r\sin^2\theta) = r\).
Q4If \(x = u + v\) and \(y = u - v\), find \(\dfrac{\partial(u, v)}{\partial(x, y)}\).
\(\dfrac{\partial(x, y)}{\partial(u, v)} = \begin{vmatrix} 1 & 1 \\ 1 & -1 \end{vmatrix} = -2\).
By \(JJ' = 1\), \(\dfrac{\partial(u, v)}{\partial(x, y)} = -\dfrac{1}{2}\).
Q5Show that \(u = \dfrac{x}{y}\) and \(v = \dfrac{x + y}{x - y}\) are functionally dependent, and find the relation.
\(u_x = \dfrac{1}{y}\), \(u_y = -\dfrac{x}{y^2}\), \(v_x = -\dfrac{2y}{(x - y)^2}\), \(v_y = \dfrac{2x}{(x - y)^2}\).
\(J = \dfrac{2x}{y(x - y)^2} - \dfrac{2x}{y(x - y)^2} = 0\). Divide top and bottom of \(v\) by \(y\): \(v = \dfrac{u + 1}{u - 1}\).
Q6If \(x = u(1 - v)\), \(y = uv(1 - w)\), \(z = uvw\), show that \(\dfrac{\partial(x, y, z)}{\partial(u, v, w)} = u^2v\).
\[\begin{vmatrix} 1 - v & -u & 0 \\ v(1 - w) & u(1 - w) & -uv \\ vw & uw & uv \end{vmatrix}\]
Add row 3 to row 2: it becomes \((v,\ u,\ 0)\). Then add row 2 to row 1: it becomes \((1,\ 0,\ 0)\). Expand along row 1: \(1\cdot(u\cdot uv - 0\cdot uw) = u^2v\).
Bring it to a free demo class and work through it with Vipul Sir. Book on WhatsApp.
Frequently asked questions
What is a Jacobian?
The determinant of first partial derivatives of new variables with respect to old ones, written \(\dfrac{\partial(u, v)}{\partial(x, y)}\). It measures how areas (or volumes) scale under the change of variables.
What is the Jacobian for polar coordinates?
\(\dfrac{\partial(x, y)}{\partial(r, \theta)} = r\). That is why \(dx\,dy\) becomes \(r\,dr\,d\theta\) in a double integral.
Why is the spherical Jacobian r squared sin theta?
A small box in spherical coordinates has sides \(dr\), \(r\,d\theta\) and \(r\sin\theta\,d\phi\). Multiply them and you get \(r^2\sin\theta\,dr\,d\theta\,d\phi\). The determinant in Example 7 gives the same answer.
What does a zero Jacobian mean?
If the Jacobian is zero at every point of a region, the functions are dependent: one is a function of the other, like \(u = \tan v\) in Example 6. Zero at a single point only means the map squashes area there.