Calculus/Change of variables

The Jacobian matrix and the change of variables are proven to be extremely useful in multivariable calculus when we want to change our variables. They are extremely useful because if we want to integrate a function such as $$\iint_Re^{\frac{x+y}{x-y}}\,dA$$, where $$R$$ is the trapezoidal region with vertices $$(1,0),(2,0),(0,-2),(0,-1)$$, it would be helpful if we can substitute $$x+y$$ as $$u$$ and $$x-y$$ as $$v$$ because $$e^{\frac{u}{v}}$$ is easier to be integrated. However, we need to be familiar with integration, transformation, and the Jacobian, which the latter two will be discussed in this chapter.

Transformation
Let us start with an introduction to the process of variable transformation. Assume that we have a function $$f(x,y)$$. We want to calculate the expression:"$\iint_R f(x,y)\,dA$" in which $$R$$ is a region in $$xy$$-plane. (Another notation for $$dA$$ is $$dxdy$$. ($$dA$$ here is not differential.) ) However, the area of $$R$$ is too complicated to be written out in terms of $$x,y$$. So, we want to change the variables so that the area of $$R$$ can be more easily expressed. Furthermore, the function itself is too hard to be integrated. It would be much easier if the variables can be changed to more convenient ones, Assume there are two more variables $$u,v$$ that have connections with variables $$x,y$$ that satisfy:"$x=x(u,v)\quad\text{and}\quad y=y(u,v).$" The original integral can be rewritten into:"\frac{\partial(x,y)}{\partial(u,v)}\right" in which $$S$$ is another region in $$uv$$-plane transformed from the region $$R$$ in $$xy$$-plane. The purpose of this section is to have us understand the process of this transformation, excluding the $$\left| \frac{\partial(x,y)}{\partial(u,v)}\right|$$ part. We will discuss the purpose and meaning of $$\left| \frac{\partial(x,y)}{\partial(u,v)}\right|$$ in the next section.

Introduction
In fact, we have already encountered two examples of variable transformation in $$\mathbb R^3$$. The first example is using polar coordinates in integration while the second one is using spherical coordinates in integration. Using polar coordinates in integration is a change in variable because we effectively change the variables $$x,y,z$$ into $$r,\theta, z$$ with relations:"$x=r\cos\theta\quad y=r\sin\theta\quad z=z$"As a result, the function being integrated $$f(x,y)$$ is transformed into $$f(x(r,\theta,z),y(r,\theta,z),z(r,\theta,z))$$, thus giving us:"$\iiint_R f(x,y,z)dV=\iiint_S f(r\cos\theta,r\sin\theta,z)dz\ r\ dr\ d\theta$, which is the formula for polar coordinates integration. (It will be proved later)"

The second example, integration in spherical coordinates, offers a similar explanation. The original variables $$x,y,z$$ and the transformed variables $$\rho,\theta,\phi $$ have the relations:"$\begin{cases} x=\rho\sin\phi\cos\theta \\ y=\rho\sin\phi\sin\theta \\ z=\rho\cos\phi \end{cases}$"These relations can give us that"$\iiint_R f(x,y,z)dV=\iiint_S f(\rho\sin\phi\cos\theta,\rho\sin\phi\sin\theta,\rho\cos\phi)\rho^2\sin\phi \ d\rho\ d\theta\ d\phi$, which is the formula for spherical coordinates integration. (It will be proved later)"

Generalization
We understand the transformation from Cartesian coordinates to both polar and spherical coordinates. However, those two are specific examples of variable transformation. We should expand our scope into all kinds of transformation. Instead of specific changes, such as $$x=r\cos\theta,y=r\sin\theta\text{ and }z=z$$, we will talk about general changes. Let's start from two variables.

We consider a change of variables that is given by a transformation $$T$$ from the $$uv$$-plane to the $$xy$$-plane. In other words,"$T(u,v)=(x,y)$, where $(x,y)$ is the original or old variables and $(u,v)$ is the new ones."In this transformation, $$x,y$$ are related to $$u,v$$ by the equations"$x=g(u,v)\quad y=h(u,v)$"We usually just assume that $$T$$ is a $$C^1$$ transformation, which means that $$g,h$$ have continuous 1st-order partial derivatives. Now, time for some terminologies.


 * If $$T(u_1,v_1)=(x_1,y_1)$$, the point $$(x_1,y_1)$$ is called the image of the point $$(u_1,v_1)$$.
 * If no two points have the same image, like functions, $$T$$, the transformation, is called one-to-one (or injective).
 * $$T$$ transforms region $$S$$ into region $$R$$. $$R$$ is called the image of $$S$$. The transformation can be described as:

$$T(S)=R$$

$$T^{-1}(R)=S$$
 * If $$T$$ is one-to-one, then, like functions, it has an inverse transformation $$T^{-1}$$ from the $$xy$$-plane to the $$uv$$-plane, with relation

Regions
Recall that we have established the transformation $$T(S)=R$$, where $$S$$ is the region in the $$uv$$-plane while $$R$$ is the region in the $$xy$$-plane. If we are given the region $$S$$ and transformation $$T$$, we are expected to calculate the region $$R$$. For example, a transformation is defined by the equations"$x=u^2-v^2\quad y=2uv$"Find the image of $$S$$, which is defined as $$S=\{ (u,v):0 \le u \le 1,\ 0 \le v \le 1 \} $$. In this case, we need to know the boundaries of the region $$S$$, which is confined by the lines:

$$u=0\quad u=1\quad v=0\quad v=1$$

If we can redefine the boundaries using $$x,y$$ instead of $$u,v$$, we effectively will find the image of $$S$$.

$$\begin{align} \text{When }\quad & u=0 \quad (0\le v\le 1) \\ & \begin{cases} x=-v^2 \\ y=0 \\ \end{cases} \quad \text{(substitution)}\\ \text{Thus, }\quad & y=0 \quad (-1\le x\le 0) \\ \end{align} $$$$\begin{align} \text{When }\quad & u=1 \quad (0\le v\le 1) \\ & \begin{cases} x=1-v^2 \\ y=2v \\ \end{cases} \\ \text{Thus, }\quad & x=1-\frac{y^2}{4} \quad (0\le x\le 1) \\ \end{align} $$$$\begin{align} \text{When }\quad & v=0 \quad (0\le 0\le 1) \\ & \begin{cases} x=u^2 \\ y=0 \\ \end{cases} \\ \text{Thus, }\quad & y=0 \quad (0\le x\le 1) \\ \end{align} $$$$\begin{align} \text{When }\quad & v=1 \quad (0\le u\le 1) \\ & \begin{cases} x=u^2-1 \\ y=2u \\ \end{cases} \\ \text{Thus, }\quad & x=\frac{y^2}{4}-1 \quad (-1\le x\le 0) \\ \end{align} $$

As a result, the image of $$S $$ is $$R=\{(x,y):0\le y\le 2,\ \frac{y^2}{4}-1\le x\le 1-\frac{y^2}{4}\} $$ We can use the same method to calculate $$S $$ from $$R $$.

The Jacobian
The Jacobian matrix is one of the most important concept in this chapter. It "compromises" the change in area when we change the variables so that after changing the variables, the result of the integral does not change. Recall that at the very beginning of the last section, we reserved the explanation of $$\left| \frac{\partial(x,y)}{\partial(u,v)}\right|$$ from $$\iint_S f(x(u,v),y(u,v))\left| \frac{\partial(x,y)}{\partial(u,v)}\right| \ du\ dv$$ here. To actually start explaining that, we should review some basic concepts.

Review "u-substitution"
Recall that when we are discussing $$u $$-substitution (a simple way to describe "integration by substitution for single-variable functions"), we use the following method to solve integrals."$\int_a^bf(x)\ dx=\int_c^df(x(u))\ \frac{dx}{du}\ du \quad\text{where }c=x(a),d=x(b) $"For example,"$\int \frac{\sin(\ln (x))}{x}\ dx $" $$\begin{align} \text{Let } \quad & u=\ln(x) \\ \text{Thus, } \quad & \frac{du}{dx}=\frac{1}{x} \\ \Rightarrow\ & du=\frac{1}{x}dx \\ \end{align} $$ $$\begin{align} \int \frac{\sin(\ln (x))}{x}\ dx & = \int\sin(\ln (x))\ \Big(\frac{1}{x}\ dx\Big) & \quad\text{rearrangement}\\ & = \int\sin(u)\ du & \quad \text{let }u=\ln(x)\implies du=\frac{1}{x}\ dx \\ & = -\cos(u)+C & \quad\text{integration} \\ & = -\cos(\ln(x))+C & \quad\text{resubstitution} \\ \end{align} $$ If we add endpoints into the integral, the result will be: $$\begin{align} \int_e^{e^2} \frac{\sin(\ln (x))}{x}\ dx & = \int_e^{e^2}\sin(\ln (x))\ \Big(\frac{1}{x}\ dx\Big) & \quad\text{rearrangement}\\ & = \int_1^2\sin(u)\ du & \quad \text{remember }u=\ln(x)\text{ and }du=\frac{1}{x}\ dx \\ & = \Big[-\cos(u)\Big]_1^2 & \quad\text{integration} \\ & = \cos(1)-\cos(2) \\ \end{align} $$ If we look carefully at the "rearrangement" and "remember" part in the solution, we find that we effectively changed our variable from $$x $$ to $$u $$ through this method:"$\int_a^bf(x)dx=\int_{x=a}^{x=b}f(x(u))\ d(x(u))=\int_{u=x(a)}^{u=x(b)}f(x(u))\ \frac{dx}{du}\ du $, which is what we have mentioned above." The appearance of the term $$\frac{dx}{du} $$ not only is a mathematical product of deduction, but also serves a intuitive purpose. When we change our function from $$f(x) $$ to $$f(x(u)) $$, we also change the region we are integrating, which can be seen by looking at the endpoints. This change of region is either "stretched" or "condensed" by a factor of $$\frac{du}{dx} $$. To counter this change, $$\frac{dx}{du} $$ is deduced to compromise (recall that $$\frac{dx}{du}\left(\frac{du}{dx}\right)=1$$). We can simply think this term as a compromise factor that counters the change of region due to a change of variables.

Now, let us put our focus back to two variables. If we change our variables from $$x,y$$ to $$u,v$$, we also change the region we are integrating, as demonstrated in the previous section. So, continuing our flow of thought, there should also be a term deduced to counter the change of region. In other words: $$\iint_Rf(x,y)\,dA_1=\iint_Sf(x(u,v),y(u,v)) \underbrace{\frac{dA_1}{dA_2}}_{\text{informal term}}\,dA_2 $$

Note that the symbols used here are for intuitive purpose and not for official use. Official terms will be introduced later in the chapter, but for now, we use these terms for better understanding. In this case, when we change the function from $$f(x,y) $$ to $$f(x(u),y(u)) $$, we "stretched" or "condensed" the area of our region, by a factor of $$\frac{dA_2}{dA_1} $$; therefore, we need to counter the change with a factor of $$\frac{dA_1}{dA_2} $$. The Jacobian matrix for two variables is basically an expression for calculating $$\frac{dA_1}{dA_2} $$ in terms of $$u,v$$, so that we are able to integrate the new integral after transformation, since the function involved in the new integral can only in terms of $$u,v$$, but not $$x,y$$ (we need to express $$x$$ and $$y$$ in terms of $$u,v$$).

Double integrals
Now, it is time for us to deduce the Jacobian matrix. In the review above, we already established informally that the Jacobian matrix for two variables is basically $$\frac{dA_1}{dA_2} $$, with $$dA_1$$ being the infinitesimally small area in the region $$R$$ in the $$xy$$-plane and $$dA_2$$ being the infinitesimally small area in the region $$S$$ in the $$uv$$-plane. Since we are changing our variables from $$x,y$$ to $$u,v$$, we should describe $$dA_1$$ and $$dA_2$$ in terms of $$u,v$$ over a region in $$uv$$-plane.

Let us start with $$dA_2$$ first because it is easier to calculate. We start with a small rectangle $$S_0$$, which is a part of $$S$$, in the $$uv$$-plane whose lower left corner is the point $$(u_0,v_0)$$ and whose dimensions are $$\Delta u,\Delta v$$. Thus, the area of $$S_0$$ is"$\Delta A_2=\Delta u\Delta v$"The image of $$S_0$$, in this case let's name it $$R_0$$, is in the $$xy$$-plane according to the transformation $$T(S_0)=R_0$$. One of its boundary points is $$(x_0,y_0)=T(u_0,v_0) $$. We can use a vector $$\mathbf{r}$$ to describe the position vector of $$R_0$$ of the point $$(u,v)$$. In other words, $$\mathbf{r}$$ can describe the region $$R_0$$ given that"$\mathbf{r}(u,v)=x(u,v)\mathbf{i}+y(u,v)\mathbf{j}\quad\text{where }u_0\le u\le u_0+\Delta u,\ v_0\le v\le v_0+\Delta v$"The region $$R_0$$ now can be described in terms of $$u,v$$. The next step is to utilize the position vector $$\mathbf{r}(u,v)$$ to calculate its area $$dA_1$$.

The shape of the region $$R_0$$ after transformation $$R_0=T(S_0)$$ can be approximated, which is a parallelogram. As we learnt in algebra, the area of a parallelogram is defined to be the product of its base and height. However, this definition cannot help us with our calculations. Instead, we will use the cross product to determine its area. Recall that the area of a parallelogram formed by vectors $$\mathbf{a}$$ and $$\mathbf{b}$$ can be calculated by taking the magnitude of the cross product of the two vectors."\mathbf{a}\times \mathbf{b}"In this parallelogram, the two vectors $$\mathbf{a}$$ and $$\mathbf{b}$$ are, in terms of $$u,v$$: $$\mathbf{a}=\mathbf{r}(u_0+\Delta u,v_0)-\mathbf{r}(u_0,v_0) \quad \text{ and }\quad \mathbf{b}=\mathbf{r}(u_0,v_0+\Delta v)-\mathbf{r}(u_0,v_0)$$ It seems very similar to the definition of partial derivatives:

$$\mathbf{r}_u=\lim_{\Delta u\rightarrow 0}\frac{\mathbf{r}(u_0+\Delta u,v_0)-\mathbf{r}(u_0,v_0)}{\Delta u}\quad\text{ and }\quad \mathbf{r}_v=\lim_{\Delta v\rightarrow 0}\frac{\mathbf{r}(u_0,v_0+\Delta v)-\mathbf{r}(u_0,v_0)}{\Delta v}$$ As a result, we can approximate that:

$$\begin{align} & \mathbf{a}=\mathbf{r}(u_0+\Delta u,v_0)-\mathbf{r}(u_0,v_0)\approx \Delta u \mathbf{r}_u \quad \text{ and }\quad \\ & \mathbf{b}=\mathbf{r}(u_0,v_0+\Delta v)-\mathbf{r}(u_0,v_0)\approx \Delta v \mathbf{r}_v \\ \end{align}$$ Now, we calculate $$\mathbf{r}_u,\mathbf{r}_v$$, given that $$\mathbf{r}(u,v)=x(u,v)\mathbf{i}+y(u,v)\mathbf{j}$$:

$$\begin{align} & \mathbf{r}_u=x_u(u,v)\ \mathbf{i}+y_u(u,v)\ \mathbf{j}=\frac{\partial x}{\partial u}\ \mathbf{i}+\frac{\partial y}{\partial u}\ \mathbf{j} \quad\text{ and } \\ & \mathbf{r}_v=x_v(u,v)\ \mathbf{i}+y_v(u,v)\ \mathbf{j}=\frac{\partial x}{\partial v}\ \mathbf{i}+\frac{\partial y}{\partial v}\ \mathbf{j} \\ \end{align}$$ We can calculate $$\Delta A_1=||\mathbf{a}\times\mathbf{b}||$$ (we take absolute value to prevent negative area). You can review the cross product in Chapter. Note that the inner bar of || is for calculating the magnitude (or norm) while the outer bar of || is for taking the absolute value. $$\begin{align} \Delta A_1 & = ||\mathbf{a}\times\mathbf{b}|| \\ & = ||(\Delta u\ \mathbf{r}_u)\times(\Delta v\ \mathbf{r}_v)|| & \quad \text{approximation} \\ & = ||\mathbf{r}_u\times\mathbf{r}_v||\Delta u\Delta v \\ & = \begin{vmatrix} \begin{vmatrix} \det\begin{pmatrix} \mathbf{i} & \mathbf{j} & \mathbf{k} \\ \frac{\partial x}{\partial u} & \frac{\partial y}{\partial u} & 0 \\ \frac{\partial x}{\partial v} & \frac{\partial y}{\partial v} & 0 \\ \end{pmatrix} \\ \end{vmatrix} \end{vmatrix}\Delta u\Delta v & \quad\text{cross product} \\ & = \begin{vmatrix} \begin{vmatrix} \det\begin{pmatrix} \frac{\partial x}{\partial u} & \frac{\partial x}{\partial v} \\ \frac{\partial y}{\partial u} & \frac{\partial y}{\partial v} \\ \end{pmatrix} \mathbf{k} \end{vmatrix} \end{vmatrix} \Delta u\Delta v & \quad\text{evaluation} \\ & = \begin{vmatrix} \det\begin{pmatrix} \frac{\partial x}{\partial u} & \frac{\partial x}{\partial v} \\ \frac{\partial y}{\partial u} & \frac{\partial y}{\partial v} \\ \end{pmatrix}\underbrace{|\mathbf k|}_{1} \end{vmatrix} \Delta u\Delta v \\ \end{align}$$ Then, we can substitute our newly deduced terms. $$\frac{\Delta A_1}{\Delta A_2}=\frac{\begin{vmatrix} \det\begin{pmatrix} \frac{\partial x}{\partial u} & \frac{\partial x}{\partial v} \\ \frac{\partial y}{\partial u} & \frac{\partial y}{\partial v} \\ \end{pmatrix} \end{vmatrix} \Delta u\Delta v}{\Delta u\Delta v}=\begin{vmatrix} \det\begin{pmatrix} \frac{\partial x}{\partial u} & \frac{\partial x}{\partial v} \\ \frac{\partial y}{\partial u} & \frac{\partial y}{\partial v} \\ \end{pmatrix} \end{vmatrix} = \left| \frac{\partial x}{\partial u}\frac{\partial y}{\partial v}-\frac{\partial x}{\partial v}\frac{\partial y}{\partial u} \right|$$ Finally, we derived the absolute value of Jacobian. The definition of Jacobian is as follows:

We will then use the Jacobian in the change of variables in integrals. The absolute value is added to prevent a negative area. $$\begin{align} \iint_Rf(x,y)\,dA & \approx \sum_{i=1}^m \sum_{j=1}^n f(x_i,y_j)\Delta A \\ & \approx \sum_{i=1}^m \sum_{j=1}^n f(x(u_i,v_j),y(u_i,v_j))\Delta A_2 \\ \text{Since } & \Delta A_2 \approx \left| \frac{\partial (x,y)}{\partial (u,v)} \right|\Delta u\Delta v \\ \sum_{i=1}^m \sum_{j=1}^n f(x(u_i,v_j),y(u_i,v_j))\Delta A_2 & \approx \sum_{i=1}^m \sum_{j=1}^n f(x(u_i,v_j),y(u_i,v_j))\ \left| \frac{\partial (x,y)}{\partial (u,v)} \right|\Delta u\Delta v \\ & \approx\iint_Sf(x(u,v),y(u,v))\ \left| \frac{\partial (x,y)}{\partial (u,v)} \right|\ du\ dv \\ \end{align}$$ Here is the theorem for the change of variables in a double integral and we have explained intuitively why and how it works, but the above explanations are not proof of this theorem. In particular, we make some approximation, while the statement in the following theorem is equality, and not approximation. The actual proof is quite complicated and advanced, and thus not included here.

{ Example. }

{Choose correct expression(s) for the Jacobian $$\frac{\partial (u,v)}{\partial (x,y)}$$ in which $$x=2u$$ and $$y=5v$$.} + $$\frac{1}{10}$$ - $$\begin{vmatrix}0&\frac{1}{2}\\ \frac{1}{5}&0\end{vmatrix}$$ - $$\begin{vmatrix}2&0\\ 0&5\end{vmatrix}$$ - $$\begin{vmatrix}0&2\\ 5&0\end{vmatrix}$$ - $$10$$
 * Since $$x=2u\implies u=\frac{x}{2}$$ and $$y=5v\implies v=\frac{y}{5}$$,
 * $$\frac{\partial (u,v)}{\partial (x,y)}$$=\begin{vmatrix}\frac{1}{2}&0\\0&\frac{1}{5}\end{vmatrix}=\frac{1}{10}.
 * This is the expression for $$\frac{\partial (u,v)}{\partial (y,x)}$$.
 * This is the expression for $$\frac{\partial (x,y)}{\partial (u,v)}$$.
 * This is the expression for $$\frac{\partial (y,x)}{\partial (u,v)}$$.
 * This is the expression for $$\frac{\partial (x,y)}{\partial (u,v)}$$.

{Choose correct expression(s) for the integral $$\iint_D (x+y)(5x+2y)$$ in which $$D$$ is a region bounded by $$y=1-x,x=2-y,x=\frac{-5y}{3}$$ and $$y=\frac{1-5x}{2}$$. - $$3\int_1^2\int_0^1 uv\,du\,dv$$ - $$-3\int_0^1\int_1^2 uv\,du\,dv$$ - $$-\frac{1}{3}\int_0^1\int_1^2 uv\,du\,dv$$ + $$\frac{1}{3}\int_1^2\int_0^1 uv\,du\,dv$$ + $$\frac{1}{3}\int_0^1\int_1^2 uv\,du\,dv$$
 * type="[]"}
 * Let $$v=x+y$$ and $$u=5x+2y$$, and the bounds in a transformed region via this change of variables are $$1\le v\le 2$$ and $$0\le u\le 1$$.
 * Then, the Jacobian is $$\frac{\partial (u,v)}{\partial (x,y)}=5-2=3.$$
 * Thus, $$\iint_D (x+y)(5x+2y)=\frac{1}{3}\iint_D (x+y)(5x+2y)\left|\frac{\partial (u,v)}{\partial (x,y)}\right|=\frac{1}{3}\int_1^2\int_0^1 uv\,du\,dv$$
 * Let $$u=x+y$$ and $$v=5x+2y$$, and the bounds in a transformed region via this change of variables are $$1\le u\le 2$$ and $$0\le v\le 1$$.
 * Then, the Jacobian is $$\frac{\partial (u,v)}{\partial (x,y)}=2-5=-3.$$
 * Thus, $$\iint_D (x+y)(5x+2y)=\frac{1}{|-3|}\iint_D (x+y)(5x+2y)\left|\frac{\partial (u,v)}{\partial (x,y)}\right|=\frac{1}{3}\int_0^1\int_1^2 uv\,du\,dv$$
 * Let $$u=x+y$$ and $$v=5x+2y$$, and the bounds in a transformed region via this change of variables are $$1\le u\le 2$$ and $$0\le v\le 1$$.
 * Then, the Jacobian is $$\frac{\partial (u,v)}{\partial (x,y)}=2-5=-3.$$
 * Thus, $$\iint_D (x+y)(5x+2y)=\frac{1}{|-3|}\iint_D (x+y)(5x+2y)\left|\frac{\partial (u,v)}{\partial (x,y)}\right|=\frac{1}{3}\int_0^1\int_1^2 uv\,du\,dv$$
 * Let $$v=x+y$$ and $$u=5x+2y$$, and the bounds in a transformed region via this change of variables are $$1\le v\le 2$$ and $$0\le u\le 1$$.
 * Then, the Jacobian is $$\frac{\partial (u,v)}{\partial (x,y)}=5-2=3.$$
 * Thus, $$\iint_D (x+y)(5x+2y)=\frac{1}{3}\iint_D (x+y)(5x+2y)\left|\frac{\partial (u,v)}{\partial (x,y)}\right|=\frac{1}{3}\int_1^2\int_0^1 uv\,du\,dv$$
 * Let $$u=x+y$$ and $$v=5x+2y$$, and the bounds in a transformed region via this change of variables are $$1\le u\le 2$$ and $$0\le v\le 1$$.
 * Then, the Jacobian is $$\frac{\partial (u,v)}{\partial (x,y)}=2-5=-3.$$
 * Thus, $$\iint_D (x+y)(5x+2y)=\frac{1}{|-3|}\iint_D (x+y)(5x+2y)\left|\frac{\partial (u,v)}{\partial (x,y)}\right|=\frac{1}{3}\int_0^1\int_1^2 uv\,du\,dv$$

{Choose correct statement(s) from the following statements.} + If both $$u$$ and $$v$$ are independent from both $$x$$ and $$y$$, the Jacobian $$\frac{\partial (u,v)}{\partial (x,y)}=0$$. + If both $$u$$ and $$v$$ are independent from both $$x$$ and $$y$$, the Jacobian $$\frac{\partial (x,y)}{\partial (u,v)}=0$$. + If $$u$$ is independent from both $$x$$ and $$y$$, while $$v$$ is dependent from both $$x$$ and $$y$$, the Jacobian $$\frac{\partial (u,v)}{\partial (x,y)}=0.$$ + If $$u$$ is independent from both $$x$$ and $$y$$, while $$v$$ is dependent from both $$x$$ and $$y$$, the Jacobian $$\frac{\partial (x,y)}{\partial (u,v)}=0.$$ - If $$v=ku$$ in which $$k$$ is a real number, then the Jacobian $$\frac{\partial (u,v)}{\partial (x,y)}=k.$$
 * This condition implies $$\frac{\partial u}{\partial x}=\frac{\partial u}{\partial y}=\frac{\partial v}{\partial x}=\frac{\partial v}{\partial y}=0$$.
 * Thus, the Jacobian equals zero.
 * Since both $$u$$ and $$v$$ are independent from both $$x$$ and $$y$$ implies that both $$x$$ and $$y$$ are independent from both $$u$$ and $$v$$. (They have the same meaning)
 * This condition implies $$\frac{\partial x}{\partial u}=\frac{\partial x}{\partial v}=\frac{\partial y}{\partial u}=\frac{\partial y}{\partial v}=0$$.
 * Thus, the Jacobian equals zero.
 * The condition $$u$$ is independent from both $$x$$ and $$y$$ implies that $$\frac{\partial u}{\partial x}=\frac{\partial u}{\partial y}=0$$.
 * Thus, the first row of the Jacobian a zero row, and it can be seen that the Jacobian equals zero.
 * The condition $$u$$ is independent from both $$x$$ and $$y$$ implies that $$\frac{\partial u}{\partial x}=\frac{\partial u}{\partial y}=0$$.
 * Thus, the second row of the Jacobian a zero row, and it can be seen that the Jacobian equals zero.
 * Since $$\frac{\partial v}{\partial x}=k\cdot\frac{\partial u}{\partial x}$$ and $$\frac{\partial v}{\partial y}=k\cdot\frac{\partial u}{\partial y}$$ in this case,
 * the Jacobian equals $$\frac{\partial u}{\partial x}\cdot k\cdot\frac{\partial u}{\partial y}-\frac{\partial u}{\partial y}\cdot k\cdot\frac{\partial u}{\partial x}=k\left(\frac{\partial u}{\partial x}\frac{\partial u}{\partial y}-\frac{\partial u}{\partial x}\frac{\partial u}{\partial y}\right)=0$$
 * So, this statement is incorrect unless $$k=0$$, i.e., it is not always correct and thus not a correct statement.

Triple integrals
If we continue our flow of thoughts, we can also find the Jacobian for three variables. Suppose there is a function $$f(x,y,z)$$. $$x,y,z$$ has relations with $$u,v,w$$, which are"$x=x(u,v,w),\quad y=y(u,v,w),\quad \text{and}\quad z=z(u,v,w)$"$$R$$ is a region in the $$xyz$$-space, and $$S$$ is a region in the $$uvw$$-space, with transformation $$T(S)=R$$.

To calculate the Jacobian for three variables, we go through a similar process. The process of transformation will be: a rectangular prism with dimensions $$\Delta u,\Delta v,\Delta w$$ in the $$uvw$$-space to a parallelepiped in the $$xyz$$-space and a volume of $$\Delta V_2=\Delta u\Delta v\Delta w$$. The parallelepiped can be described with the position vector:"$\mathbf{r}(u,v,w)=x(u,v,w)\ \mathbf{i}+y(u,v,w)\ \mathbf{j}+z(u,v,w)\ \mathbf{k}$"The three sides of the parallelepiped can be described by the position vector as: $$\begin{align} & \mathbf{a}=\mathbf{r}(u+\Delta u,v,w)-\mathbf{r}(u,v,w), \\ & \mathbf{b}=\mathbf{r}(u,v+\Delta v,w)-\mathbf{r}(u,v,w),\quad\text{and} \\ & \mathbf{c}=\mathbf{r}(u,v,w+\Delta w)-\mathbf{r}(u,v,w). \\ \end{align}$$ Since the derivatives of $$\mathbf{r}$$ are defined as: $$\begin{align} & \mathbf{r}_u = \lim_{\Delta u\rightarrow 0}\frac{\mathbf{r}(u+\Delta u,v,w)-\mathbf{r}(u,v,w)}{\Delta u}, \\ & \mathbf{r}_v = \lim_{\Delta v\rightarrow 0}\frac{\mathbf{r}(u,v+\Delta v,w)-\mathbf{r}(u,v,w)}{\Delta v},\quad\text{and} \\ & \mathbf{r}_w = \lim_{\Delta w\rightarrow 0}\frac{\mathbf{r}(u,v,w+\Delta w)-\mathbf{r}(u,v,w)}{\Delta w}. \\ \end{align}$$ The three vectors $$\mathbf{a},\mathbf{b},\mathbf{c}$$ can be similarly approximated into: "$\mathbf{a}\approx\Delta u\ \mathbf{r}_u,\quad\mathbf{b}\approx\Delta v\ \mathbf{r}_v,\quad\text{and}\quad\mathbf{c}\approx\Delta w\ \mathbf{r}_w$"Since the position vector $$\mathbf{r}$$ is $$\mathbf{r}(u,v,w)=x(u,v,w)\ \mathbf{i}+y(u,v,w)\ \mathbf{j}+z(u,v,w)\ \mathbf{k}$$, the partial derivatives for $$\mathbf{r}$$ are: $$\begin{align} & \mathbf{r}_u=\frac{\partial x}{\partial u}\ \mathbf{i}+\frac{\partial y}{\partial u}\ \mathbf{j}+\frac{\partial z}{\partial u}\ \mathbf{k}, \\ & \mathbf{r}_v=\frac{\partial x}{\partial v}\ \mathbf{i}+\frac{\partial y}{\partial v}\ \mathbf{j}+\frac{\partial z}{\partial v}\ \mathbf{k},\quad\text{and} \\ & \mathbf{r}_v=\frac{\partial x}{\partial w}\ \mathbf{i}+\frac{\partial y}{\partial w}\ \mathbf{j}+\frac{\partial z}{\partial w}\ \mathbf{k} \\ \end{align}$$ Recall that the volume of a parallelepiped determined by the vectors $$\mathbf{a},\mathbf{b},\mathbf{c}$$ is the magnitude of their scalar triple product:"(\mathbf{a}\times\mathbf{b})\ \cdot\ \mathbf{c}"We just need to substitute the vectors with what we have yielded. $$\begin{align} \Delta V_1=|(\mathbf{a}\times\mathbf{b})\ \cdot\ \mathbf{c}| & = |(\Delta u\ \mathbf{r}_u)\times(\Delta v\ \mathbf{r}_v)\ \cdot\ \Delta w\ \mathbf{r}_w| \\ & = |\mathbf{r}_u\times\mathbf{r}_v\ \cdot\ \mathbf{r}_w|\Delta u\Delta v\Delta w \\ & = \begin{vmatrix} \begin{vmatrix} \mathbf{i} & \mathbf{j} & \mathbf{k} \\ \frac{\partial x}{\partial u} & \frac{\partial y}{\partial u} & \frac{\partial z}{\partial u} \\ \frac{\partial x}{\partial v} & \frac{\partial y}{\partial v} & \frac{\partial z}{\partial v} \\ \end{vmatrix} \ \cdot\ \begin{pmatrix} \frac{\partial x}{\partial w} \\ \frac{\partial y}{\partial w} \\ \frac{\partial z}{\partial w} \\ \end{pmatrix}\end{vmatrix} \Delta u\Delta v\Delta w & \quad\text{cross product}\\ & = \begin{vmatrix} \begin{pmatrix} \frac{\partial y}{\partial u}\frac{\partial z}{\partial v}-\frac{\partial z}{\partial u}\frac{\partial y}{\partial v} \\ \frac{\partial z}{\partial u}\frac{\partial x}{\partial v}-\frac{\partial x}{\partial u}\frac{\partial z}{\partial v} \\ \frac{\partial x}{\partial u}\frac{\partial y}{\partial v}-\frac{\partial y}{\partial u}\frac{\partial x}{\partial v} \\ \end{pmatrix} \ \cdot\ \begin{pmatrix} \frac{\partial x}{\partial w} \\ \frac{\partial y}{\partial w} \\ \frac{\partial z}{\partial w} \\ \end{pmatrix} \end{vmatrix}\Delta u\Delta v\Delta w \\ & = \left| \frac{\partial x}{\partial w}\frac{\partial y}{\partial u}\frac{\partial z}{\partial v}-\frac{\partial x}{\partial w}\frac{\partial y}{\partial v}\frac{\partial z}{\partial u}+ \frac{\partial x}{\partial v}\frac{\partial y}{\partial w}\frac{\partial z}{\partial u}-\frac{\partial x}{\partial u}\frac{\partial y}{\partial w}\frac{\partial z}{\partial v}+ \frac{\partial x}{\partial u}\frac{\partial y}{\partial v}\frac{\partial z}{\partial w}-\frac{\partial x}{\partial v}\frac{\partial y}{\partial u}\frac{\partial z}{\partial w} \right| \Delta u\Delta v\Delta w & \quad\text{dot product}\\ & = \left| \frac{\partial x}{\partial u}\bigg( \frac{\partial y}{\partial v}\frac{\partial z}{\partial w}-\frac{\partial y}{\partial w}\frac{\partial z}{\partial v} \bigg) + \frac{\partial x}{\partial v}\bigg( \frac{\partial y}{\partial w}\frac{\partial z}{\partial u}-\frac{\partial y}{\partial u}\frac{\partial z}{\partial w} \bigg) + \frac{\partial x}{\partial w}\bigg( \frac{\partial y}{\partial u}\frac{\partial z}{\partial v}-\frac{\partial y}{\partial v}\frac{\partial z}{\partial u} \bigg) \right| \Delta u\Delta v\Delta w & \quad\text{rearrangement}\\ & = \begin{vmatrix} \begin{vmatrix} \frac{\partial x}{\partial u} & \frac{\partial x}{\partial v} & \frac{\partial x}{\partial w} \\ \frac{\partial y}{\partial u} & \frac{\partial y}{\partial v} & \frac{\partial y}{\partial w} \\ \frac{\partial z}{\partial u} & \frac{\partial z}{\partial v} & \frac{\partial z}{\partial w} \\ \end{vmatrix} \end{vmatrix} \Delta u\Delta v\Delta w & \quad\text{cross product}\\ \end{align}$$ Thus, $$\frac{\Delta V_1}{\Delta V_2}=\frac{\begin{vmatrix} \begin{vmatrix} \frac{\partial x}{\partial u} & \frac{\partial x}{\partial v} & \frac{\partial x}{\partial w} \\ \frac{\partial y}{\partial u} & \frac{\partial y}{\partial v} & \frac{\partial y}{\partial w} \\ \frac{\partial z}{\partial u} & \frac{\partial z}{\partial v} & \frac{\partial z}{\partial w} \\ \end{vmatrix} \end{vmatrix} \Delta u\Delta v\Delta w}{\Delta u\Delta v\Delta w}= \begin{vmatrix} \begin{vmatrix} \frac{\partial x}{\partial u} & \frac{\partial x}{\partial v} & \frac{\partial x}{\partial w} \\ \frac{\partial y}{\partial u} & \frac{\partial y}{\partial v} & \frac{\partial y}{\partial w} \\ \frac{\partial z}{\partial u} & \frac{\partial z}{\partial v} & \frac{\partial z}{\partial w} \\ \end{vmatrix} \end{vmatrix}$$.

The absolute value is added to prevent a negative volume. $$\begin{align} \iiint_Rf(x,y,z)dV & \approx \sum_{i=1}^m \sum_{j=1}^n \sum_{k=1}^p f(x_i,y_j,z_k)\Delta V \\ & \approx \sum_{i=1}^m \sum_{j=1}^n \sum_{k=1}^p f(x(u_i,v_j,w_k),y(u_i,v_j,w_k),z(u_i,v_j,w_k))\Delta V_2 \\ \text{Since } & \Delta V_2 \approx \left| \frac{\partial (x,y,z)}{\partial (u,v,w)} \right|\Delta u\Delta v\Delta w \\ \sum_{i=1}^m \sum_{j=1}^n \sum_{k=1}^p f(x(u_i,v_j,w_k),y(u_i,v_j,w_k),z(u_i,v_j,w_k))\Delta V_2 & \approx \sum_{i=1}^m \sum_{j=1}^n \sum_{k=1}^p f(x(u_i,v_j,w_k),y(u_i,v_j,w_k),z(u_i,v_j,w_k))\ \left| \frac{\partial (x,y,z)}{\partial (u,v,w)} \right|\Delta u\Delta v\Delta w \\ & \approx\iiint_S f(x(u,v,w),y(u,v,w),z(u,v,w))\ \left| \frac{\partial (x,y,z)}{\partial (u,v,w)} \right|\ du\ dv\ dw \\ \end{align}$$ Then, we have the following theorem which is analogous to the theorem for double integrals. Again, we should aware that the above explanations are not proof of this theorem.

{ Example. }

{Choose correct statement(s) from the following statements. - $$\frac{\partial (x,y,u)}{\partial (x,y,v)}=\frac{\partial u}{\partial v}.$$ - $$\iiint_D xyz\left|\frac{\partial (u,v,w)}{\partial (x,y,z)}\right|\,dx\,dy\,dz$$ gives the 4-dimensional volume under the graph of $$f(x,y,z)=xyz$$ over the region $$D$$ in $$xyz$$-space. + $$\iiint_D (uvw)\,du\,dv\,dw$$ gives the 4-dimensional volume under the graph of $$f(u,v,w)=uvw$$ over the region $$D$$ in $$uvw$$-space. + $$\iiint_D \left|\frac{\partial (x,y,z)}{\partial (u,v,w)}\right|\,du\,dv\,dw$$ gives the volume of the region $$D'$$ in $$xyz$$-space, that is mapped from the region $$D$$ in $$uvw$$-space by a transformation satisfying the conditions mentioned in the theorem about change of variables in a triple integral. Now, we understand the purpose and the derivation of the Jacobian. It is time to apply this new knowledge to some examples. The first two examples consist of the change of coordinates from the Cartesian coordinate system into the polar coordinate system and the change of Cartesian to spherical coordinates.
 * type="[]"}
 * $$\frac{\partial (x,y,u)}{\partial (x,y,v)}=\begin{vmatrix}1&\frac{\partial x}{\partial y}&\frac{\partial x}{\partial v}\\\frac{\partial y}{\partial x}&1&\frac{\partial y}{\partial v}\\\frac{\partial u}{\partial x}&\frac{\partial u}{\partial y}&\frac{\partial u}{\partial v}\end{vmatrix}$$
 * This is not equal to $$\frac{\partial u}{\partial v}$$ in general.
 * The absolute value of the Jacobian is an extra term. Without it, this is true.
 * By the proposition about 4-dimensional volume given by triple integration, this is true.
 * This integral equals $$\iiint_{D'} 1\,dx\,dy\,dz$$ which is the volume of the region $$D'$$ in $$xyz$$ space,
 * since the function involved in the above integral is $$f(x,y,z)\equiv 1$$ (constant function), the value of function still equals one after changing variables $$x,y$$ and $$z$$ to $$u,v$$ and $$w$$ respectively by setting $$x=x(u,v,w),y=y(u,v,w)$$ and $$z=z(u,v,w)$$,
 * and we need to insert an extra term to the integral, namely absolute value of the Jacobian.

Change of coordinate system
Sometimes, we may change the region we are integrating over to another region in other coordinate system. This can simplify the computation of integrals, especially when the region in Cartesian coordinate system is related to circle, e.g. sphere, cone, circle, etc.

Let us start with the change of coordinates from the Cartesian coordinate system into the polar coordinate system.