Transformation from spherical coordinates to rectangular coordinates
From Wikipedia, the free encyclopedia
[edit] Transformation of coordinates
The transformation from spherical coordinates (r,θ,φ) to rectangular coordinates (Cartesian coordinates) (x,y,z) is:
x = rsinθcosφ
y = rsinθsinφ
z = rcosθ
[edit] Transformation of velocities
If we take the total derivatives of these equations, we obtain:
The partial derivatives are easily obtained:
The total derivatives are therefore:
dx = sinθcosφdr + rcosθcosφdθ − rsinθsinφdφ
dy = sinθsinφdr + rcosθsinφdθ + rsinθcosφdφ
dz = cosθdr − rsinθdθ
The total derivatives are easily converted to derivatives wrt time:
Now the velocity of a point particle in 3-space (3D space) may be expressed in either rectangular or spherical coordinates.
In rectangular coordinates, the infinitesimal displacement vector is:
But the infinitesimal displacement vector may also be expressed as:
When these two expressions are compared, it becomes obvious that:
In spherical coordinates, the infinitesimal displacement vector is:
But the infinitesimal displacement vector may also be expressed as:
When these two expressions are compared, it becomes obvious that:
If we now take these expressions for the velocity components, in both rectangular and spherical coordinates, and plug them into the set of equations labelled (*), then we obtain the following velocity transformation:
vx = vrsinθcosφ + vθcosθcosφ + vφ( − sinφ)
vy = vrsinθsinφ + vθcosθsinφ + vφcosφ
vz = vrcosθ + vθ( − sinθ)
[edit] Transformation of unit vectors
Let us consider the unit velocity:
= (1,0,0) in the spherical system
In other words:
vr = 1
vθ = 0
vφ = 0
Using the velocity transformation, we obtain:
vx = sinθcosφ
vy = sinθsinφ
vz = cosθ
Therefore the unit velocity in the rectangular system is:
We therefore have a transformation for the unit vector
Let us consider the unit velocity:
= (0,1,0) in the spherical system
In other words:
vr = 0
vθ = 1
vφ = 0
Using the velocity transformation, we obtain:
vx = cosθcosφ
vy = cosθsinφ
vz = − sinθ
Therefore the unit velocity in the rectangular system is:
We therefore have a transformation for the unit vector
Let us consider the unit velocity:
= (0,0,1) in the spherical system
In other words:
vr = 0
vθ = 0
vφ = 1
Using the velocity transformation, we obtain:
vx = − sinφ
vy = cosφ
vz = 0
Therefore the unit velocity in the rectangular system is:
We therefore have a transformation for the unit vector
Summarizing, the transformation equations for the unit vectors are: