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

From testwiki
Revision as of 22:33, 2 September 2016 by imported>JackBot (β†’top: using AWB)
(diff) ← Older revision | Latest revision (diff) | Newer revision β†’ (diff)
Jump to navigation Jump to search

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

𝐫^=cosϕsinθ𝐱^+sinϕsinθ𝐲^+cosθ𝐳^θ^=cosϕcosθ𝐱^+sinϕcosθ𝐲^sinθ𝐳^ϕ^=sinϕ𝐱^+cosϕ𝐲^

Next, we need to change all the ϕ and θ to x,y,z. We use the following relations, also available on the same page[1]:

r=x2+y2+z2θ=arccos(zr)ϕ=arctan(yx)

Using these, we can find the following quantities:

cosθ=zr=zx2+y2+z2sinθ=1cos2θ=1z2x2+y2+z2=x2+y2x2+y2+z2cosϕ=xx2+y2sinϕ=yx2+y2

Lastly, we simply need to substitute these relations into our first set of equations to obtain our desired result:

𝐫^=xx2+y2x2+y2x2+y2+z2𝐱^+yx2+y2x2+y2x2+y2+z2𝐲^+zx2+y2+z2𝐳^=x𝐱^+y𝐲^+z𝐳^x2+y2+z2θ^=xx2+y2zx2+y2+z2𝐱^+yx2+y2zx2+y2+z2𝐲^x2+y2x2+y2+z2𝐳^=xz𝐱^+yz𝐲^(x2+y2)𝐳^x2+y2x2+y2+z2ϕ^=yx2+y2𝐱^+xx2+y2𝐲^=y𝐱^+x𝐲^x2+y2

Template:CourseCat