I calculated the infinitisimal distance squared $(\mathrm{d}s)^2$ in 3d polar coordinates and 3d cartesian coordinates in an example to show that they were identical. I chose $P(r,\theta,\phi)$ as well as $\mathrm{d}r$, $\mathrm{d}\theta$ and $\mathrm{d}\phi$ and got $(\mathrm{d}s)^2$ via $$(\mathrm{d}s)^2=(\mathrm{d}r)^2+ r^2(\mathrm{d}\theta)^2 + r^2\sin^2\theta (\mathrm{d}\phi)^2$$
I got the corresponding cartesian differentials via \begin{align} \mathrm{d}x&=\frac{\partial x}{\partial r}\mathrm{d}r+\frac{\partial x}{\partial \theta}\mathrm{d}\theta +\frac{\partial x}{\partial \varphi}\mathrm{d}\phi \\&= \sin\vartheta \cos\varphi\ \mathrm{d} r+r\cos\vartheta \cos\varphi\ \mathrm{d}\theta-r\sin\vartheta \sin\varphi\ \mathrm{d} \phi \end{align} $\mathrm{d}y$ = similar; $\mathrm{d}z$ = similar
And via $$(\mathrm{d}s)^2=(\mathrm{d}x)^2+(\mathrm{d}y)^2+(\mathrm{d}z)^2$$ I got the identical result as above.
Then I wanted to go to the 2D surface of a unit sphere by setting $r=1$ and $\mathrm{d}r=0$ in all my formulas (the metric as well as the differentials). And, surprising enough, $(\mathrm{d}s)^2$ (cartesian) is still $(\mathrm{d}s)^2$ (spherical surface), which puzzles me, since the surface of the sphere is not flat while cartesian space should be flat.
What does the cartesian path calculate?
$
symbols, and we use some slightly fancy stuff for the alignment (it's there in the linked tutorial/reference). $\endgroup$