In this example we are going to see that, in contrast to the ordinary derivative case, \(\pdiff{r}{x}\) is not, in general, the same as \(\big(\pdiff{x}{r}\big)^{-1}\text{.}\)
Recall that Cartesian and polar coordinates (for \((x,y)\ne (0,0)\) and \(r \gt 0\)) are related by
\begin{align*}
x&=r\cos\theta\\
y&=r\sin\theta\\
r&=\sqrt{x^2+y^2}\\
\tan\theta&=\frac{y}{x}
\end{align*}
We will use the functions
\begin{equation*}
x(r,\theta) = r\cos\theta\qquad
\text{and}\qquad
r(x,y) = \sqrt{x^2+y^2}
\end{equation*}
Fix any point \((x_0,y_0)\ne (0,0)\) and let \((r_0,\theta_0)\text{,}\) \(0\le\theta_0 \lt 2\pi\text{,}\) be the corresponding polar coordinates. Then
\begin{gather*}
\pdiff{x}{r}(r,\theta) = \cos\theta\qquad
\pdiff{r}{x}(x,y) = \frac{x}{\sqrt{x^2+y^2}}
\end{gather*}
so that
\begin{align*}
\pdiff{x}{r}(r_0,\theta_0)=\left(\pdiff{r}{x}(x_0,y_0)\right)^{-1}
&\iff \cos\theta_0= \left(\frac{x_0}{\sqrt{x_0^2+y_0^2}}\right)^{-1}
= \left(\cos\theta_0\right)^{-1}\\
&\iff \cos^2\theta_0= 1\\
&\iff \theta_0=0,\pi
\end{align*}
We can also see pictorially why this happens. By definition, the partial derivatives
\begin{align*}
\pdiff{x}{r}(r_0,\theta_0)
&= \lim_{\dee{r}\rightarrow 0}
\frac{x(r_0+\dee{r},\theta_0) - x(r_0,\theta_0)}{\dee{r}}\\
\pdiff{r}{x}(x_0,y_0)
&= \lim_{\dee{x}\rightarrow 0}
\frac{r(x_0+\dee{x},y_0) - r(x_0,y_0)}{\dee{x}}
\end{align*}
Here we have just renamed the
\(h\) of Definition
2.2.1 to
\(\dee{r}\) and to
\(\dee{x}\) in the two definitions.
In computing \(\pdiff{x}{r}(r_0,\theta_0)\text{,}\) \(\theta_0\) is held fixed, \(r\) is changed by a small amount \(\dee{r}\) and the resulting \(\dee{x}=x(r_0+\dee{r},\theta_0) - x(r_0,\theta_0)\) is computed. In the figure on the left below, \(\dee{r}\) is the length of the orange line segment and \(\dee{x}\) is the length of the blue line segment.
On the other hand, in computing \(\pdiff{r}{x}\text{,}\) \(y\) is held fixed, \(x\) is changed by a small amount \(\dee{x}\) and the resulting \(\dee{r}=r(x_0+\dee{x},y_0) - r(x_0,y_0)\) is computed. In the figure on the right above, \(\dee{x}\) is the length of the pink line segment and \(\dee{r}\) is the length of the orange line segment.
Here are the two figures combined together. We have arranged that the same \(\dee{r}\) is used in both computations. In order for the \(\dee{r}\)’s to be the same in both computations, the two \(\dee{x}\)’s have to be different (unless \(\theta_0=0,\pi\)). So, in general, \(\pdiff{x}{r}(r_0,\theta_0)\ne \big(\pdiff{r}{x}(x_0,y_0)\big)^{-1}\text{.}\)