Jump to content

Coordinate systems/Derivation of formulas/Cartesian from spherical unit vectors

From Wolfram Mathworld[1], we have the following relations for the unit vectors in a Spherical coordinate system:

𝐫̂=sin⁡θcos⁡ϕ𝐱̂+sin⁡θsin⁡ϕ𝐲̂+cos⁡θ𝐳̂𝜽̂=cos⁡θcos⁡ϕ𝐱̂+cos⁡θsin⁡ϕ𝐲̂−sin⁡θ𝐳̂𝝓̂=−sin⁡ϕ𝐱̂+cos⁡ϕ𝐲̂

We first write this as a matrix equation:

(𝐫̂𝜽̂𝝓̂)=(sin⁡θcos⁡ϕsin⁡θsin⁡ϕcos⁡θcos⁡θcos⁡ϕcos⁡θsin⁡ϕ−sin⁡θ−sin⁡ϕcos⁡ϕ0)(𝐱̂𝐲̂𝐳̂)

We can then find the inverse of the matrix to make 𝐱̂,𝐲̂,𝐳̂ the subjects.

(𝐱̂𝐲̂𝐳̂)=(sin⁡θcos⁡ϕcos⁡θcos⁡ϕ−sin⁡ϕsin⁡θsin⁡ϕcos⁡θsin⁡ϕcos⁡ϕcos⁡θ−sin⁡θ0)(𝐫̂𝜽̂𝝓̂)

Which was what we set out to show.

  1. ↑ http://mathworld.wolfram.com/SphericalCoordinates.html