Derivatives of Unit Vectors in Spherical and Cartesian Coordinates I noticed something interesting yesterday. If I consider the unit vectors in spherical coordinates expressed in terms of the Cartesian unit vectors:
$\hat{\textbf{r}} = 
\sin\theta \cos\phi \, \hat{\textbf{x}}
+ \sin\theta \sin\phi \, \hat{\textbf{y}}
+ \cos\theta \, \hat{\textbf{z}}$
$\hat{\boldsymbol{\theta}} = 
\cos\theta \cos\phi \, \hat{\textbf{x}}
+ \cos\theta \sin\phi \, \hat{\textbf{y}}
-\sin\theta \, \hat{\textbf{z}}$
$\hat{\boldsymbol{\phi}} = 
-\sin\phi \, \hat{\textbf{x}}
+ \cos\phi \, \hat{\textbf{y}},$
I see that one can get the expression for $\hat{\boldsymbol{\theta}}$ by taking the derivative of $\hat{\textbf{r}}$ with respect to $\theta$. Similarly, one can get the expression for $\hat{\boldsymbol{\phi}}$ by taking the derivative of $\hat{\textbf{r}}$ with respect to $\phi$ and then setting $\theta$ to $\pi/2$. (I'm not completely sure what the second part of this means. I know that $\hat{\boldsymbol{\phi}}$ cannot depend on $\theta$, but why that particular value? I guess $\hat{\boldsymbol{\phi}}$ "lives" in the $x$-$y$ plane or something.) Except for this parenthetical remark, this makes sense to me, as the unit vectors in curvilinear coordinates are functions of the coordinates, and their derivatives with respect to the coordinates should be easily related to the other unit vectors in an orthogonal coordinates system. This is particularly useful, because I don't have the expressions for $\hat{\boldsymbol{\phi}}$ and $\hat{\boldsymbol{\theta}}$ in terms of the Cartesian unit vectors memorized, but I can easily derive them from the expression for $\hat{\textbf{r}}$ 
However, I also noticed a similar relationship for the Cartesian unit vectors:
$\hat{\textbf{x}} = 
\sin\theta \cos\phi \, \hat{\textbf{r}}
+\cos\theta \cos\phi \, \hat{\boldsymbol{\theta}}
-\sin\phi \, \hat{\boldsymbol{\phi}}$
$\hat{\textbf{y}} = 
\sin\theta \sin\phi \, \hat{\textbf{r}}
+ \cos\theta \sin\phi \, \hat{\boldsymbol{\theta}}
+\cos\phi \, \hat{\boldsymbol{\phi}}$
$\hat{\textbf{z}} = 
\cos\theta \, \hat{\textbf{r}}
-\sin\theta\, \hat{\boldsymbol{\theta}}$
If one takes the $\textit{partial}$ derivative of $\hat{\textbf{x}}$ with respect to $\phi$ (ignoring the $\phi$-dependence of the spherical unit vectors), one gets the expression for $-\hat{\textbf{y}}$. Similarly, taking the partial derivative of $\hat{\textbf{x}}$ with respect to $\theta$ and setting $\phi$ to $0$, yields the expression for $\hat{\textbf{z}}$. However, since Cartesian coordinates are not curviliear, taking their derivatives with respect to the coordinates doesn't really make sense. 
What's going on here? Is this just a coincidence or something meaningful?
 A: There is a clever way to look at vectors. They are differential operators, for example:
$$ 
\mathbf{x} = \frac{\partial}{\partial x}.
$$
So, in a Cartesian basis, we would have
$$
\mathbf{r} = x \frac{\partial}{\partial x} + y \frac{\partial}{\partial y} + z \frac{\partial}{\partial z}.
$$
It also follows that the usual change of basis is given by the chain rule:
$$
\mathbf{x} = \frac{\partial r}{\partial x} \frac{\partial}{\partial r} +
\frac{\partial \theta}{\partial x} \frac{\partial}{\partial \theta} + \frac{\partial}{\partial \phi} \frac{\partial}{\partial \phi} = \frac{\partial r}{\partial x} \mathbf{r} +
\frac{\partial \theta}{\partial x} \mathbf{\theta} + \frac{\partial \phi}{\partial x} \mathbf{\phi}.
$$
This result is stablished in every differential geometry book. I recommend you take a look at some general relativity texts.
p.s.: Watch out that I did not care to normalize my vectors. But it should explain the phenomenon that you found. 
A: You seem to have raised two questions here. The first is why is $\hat{\boldsymbol\phi} = \dfrac{\partial\hat{\mathbf r}}{\partial\phi}$ only true for $\theta=\pi/2$. The second is why does the same derivative trick seem to work for Cartesian coordinates as well when it shouldn't.
The answer to question 2 is that it doesn't work. When you take the $\phi$ derivative of the expression $\hat{\mathbf x} = \sin\theta\cos\phi\hat{\mathbf r} + \cos\theta\cos\phi\hat{\boldsymbol \theta} -\sin\phi\hat{\boldsymbol \phi}$, you cannot "ignore the $\phi$-dependence of the spherical unit vectors", since they are explicitly dependent on the coordinates. The extra terms containing the $\dfrac{\partial\hat{\mathbf r}}{\partial\phi}$, $\dfrac{\partial\hat{\boldsymbol\theta}}{\partial\phi}$, $\dfrac{\partial\hat{\boldsymbol\phi}}{\partial\phi}$ derivatives will eventually cancel out all the other derivatives and give you $0$.
As for the first question, if you express the derivative $\dfrac{\partial\hat{\mathbf r}}{\partial\phi}$ in terms of $\hat{\mathbf r}$, $\hat{\boldsymbol \theta}$, $\hat{\boldsymbol \phi}$ again (by substituting the expressions for $\hat{\mathbf x}$, $\hat{\mathbf y}$, $\hat{\mathbf z}$ into the expression after you take the derivative, for example), then it becomes
$\sin\theta\hat{\boldsymbol \phi}$. This then equals $\hat{\boldsymbol \phi}$ when you set $\theta$ to $\pi/2$. Now knowing that the algebra checks out, how is this to be interpreted geometrically? Well, consider at a point $(r, \theta, \phi)$, we move a tiny bit in the local $\hat{\boldsymbol\phi}$ direction, which amounts to a $\delta\phi$ rotation about the $z$ axis. The tip of the $\hat{\mathbf r}$ vector will have also rotated after this rotation. However, the amount of rotation depends on the "lattitude" of the point $(r, \theta,\phi)$, or the value of $\theta$. We can see that near the "north pole", a small change in the azimuthal angle only results in a very small change in the $\hat{\mathbf r}$ direction, but the same change will result in a large change at "low lattitudes." and is maximal at the "equator." This is the effect of the $\sin\theta$ factor.
A: Unit vectors in spherical coordinates are not fixed, and depend on other coordinates. E.g., changing $\theta$ changes $\hat r$, and you can imagine that the change is in the direction of $\hat \theta $, and so on:
$ d\hat r/dr = 0; d\hat r/d\theta=\hat \theta; d\hat r/d\phi=sin \theta\hat \phi;$
$d\hat \theta/dr=0; d\hat \theta/d\theta=-\hat r; d\hat \theta/d\phi=cos\theta\hat \phi$
$d\hat \phi/dr=0=d\hat\phi/d\theta; d\hat \phi/d\phi=-sin\theta\hat r-cos\theta \hat\theta$
Polar/cylindrical coordinate derivatives are straightforward; all derivatives of $\hat \rho, \hat \phi, \hat z$ are zero except
$d\hat \rho/d\phi=\hat \phi; d\hat \phi/d\phi=-\hat \rho$
which can be intuitively seen on the x-y plane.
