Conversion of Cartesian Coordinate System Unit Vectors to Spherical Coordinate System Unit Vectors
📂Mathematical PhysicsConversion of Cartesian Coordinate System Unit Vectors to Spherical Coordinate System Unit Vectors
The expression for converting the unit vectors from the Cartesian coordinate system to the spherical coordinate system is as follows.
x^y^z^=cosϕsinθr^+cosϕcosθθ^−sinϕϕ^=sinϕsinθr^+sinϕcosθθ^+cosϕϕ^=cosθr^−sinθθ^
The expression for converting the unit vectors from the spherical coordinate system to the Cartesian coordinate system is as follows. (Relation between spherical and Cartesian coordinate systems)
r^θ^ϕ^=cosϕsinθx^+sinϕsinθy^+cosθz^=cosϕcosθx^+sinϕcosθy^−sinθz^=−sinϕx^+cosϕy^
Derivation
Unit vector x^
To find x^, you need to multiply certain terms by r^, θ^, ϕ^ and add them so that the y^, z^ term disappears. It can be seen that multiplying r^ by sinθ and adding that to θ^ multiplied by cosθ makes the z^ term vanish.
sinθr^+cosθθ^=(cosϕsin2θ+cosϕcos2θ)x^+(sinϕsin2θ+sinϕcos2θ)y^=cosϕx^+sinϕy^
Further, by multiplying this result by cosϕ and adding it to ϕ^ multiplied by −sinϕ, you can neatly obtain x^.
cosϕ(sinθr^+cosθθ^)−sinϕϕ^=(cos2ϕx^+cosϕsinϕy^)+(sin2ϕx^−sinϕcosϕy^)=x^
Therefore, it is summarized as follows.
x^=cosϕsinθr^+cosϕcosθθ^−sinϕϕ^
Unit vector y^
The method is the same as in the case of x^, so I will just write the equations without explanation. Removing the z^ term is the same as in the case of x^.
⟹sinθr^+cosθθ^sinϕ(sinθr^+cosθθ^)=cosϕx^+sinϕy^=sinϕcosϕx^+sin2ϕy^
And
cosϕϕ^=−sinϕcosϕx^+cos2ϕy^
Therefore, it is as follows.
sinϕ(sinθr^+cosθθ^)+cosϕϕ^=(cos2ϕ+sin2ϕ)y^=y^
∴y^=sinϕsinθr^+sinϕcosθθ^+cosϕϕ^
Unit vector z^
Since the z^ term must remain, multiplying r^ by cosθ and adding that to θ^ multiplied by −sinθ results in the following.
cosθr^−sinθθ^=cosθ(cosϕsinθx^+sinϕsinθy^+cosθz^)−sinθ(cosϕcosθx^+sinϕcosθy^−sinθz^)=(sinθcosθcosϕx^+sinθcosθsinϕy^+cos2θz^)+(−sinθcosθcosϕx^−sinθcosθsinϕy^+sin2θz^)=(cos2θ+sin2θ)z^=z^
∴z^=cosθr^−sinθθ^