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?