Appendix E
PDF · 10 pages · 395.5 KB
Open PDF file
Appendix E of a larger document on moving frames, apparently by Phil, installed 1.29.17. It sets the physics angle convention for θ and φ, builds the spherical unit vectors from rotation matrices, and gives their spatial and time derivatives and cross products. It then derives velocity and acceleration components, treats the curvilinear approach (metric, Jacobian), polar coordinates, and the affine connection with Christoffel symbols.
AI-written summary; may contain errors. This description is approximate.
Extracted text (machine-read; may contain errors)
1
This was installed on 1.29.17, do not edit here.
E.1 Angle Conventions ............................................................................................................................ 1
E.2 Matrix Approach .............................................................................................................................. 2
E.3 The motion of a particle in spherical coordinates ......................................................................... 5
E.4 Curvilinear coordinates approach .................................................................................................. 6
E.5 Polar Coordinates ............................................................................................................................ 7
Appendix E: Spherical Coordinates and Unit Vectors
E.1 Angle Conventions
Here is our "physics" convention for spherical coordinates angles θ and φ :
(E.1.1)
The reader is advised that the results below are often quoted in the literature with θ↔φ which is the
"math" convention (eg, Wolfram, left below). Sometimes after doing θ↔φ some sources replace polar
angle φ with latitude π/2 - φ (right below) :
Two spherical angle conventions we do not use.
In the right picture, φ and θ might be longitude and latitude, or right ascension and declination.
2
If you are in charge of getting a spacecraft to Vulcan, please pay attention to these conventions.
E.2 Matrix Approach
The usual matrices for actively rotating a vector about the x, y, or z axis are these:
Rx() =
−
cos
sin
0
sin
cos
0
0
0
1
Ry() =
−
cos
0
sin
0
1
0
sin
0
cos
Rz() =
−
1
0
0
0
cos
sin
0
sin
cos
.
(E.2.1)
The Cartesian unit vectors x^, y^. z^ can be rotated into the spherical unit vectors r^, θ^, φ^ as follows
θ^ = Rz(φ) Ry(θ) x^ =
−
−
cos
sin
sin
sin
cos
sin
cos
cos
sin
sin
cos
cos
0
1
0
0
=
cosθcosφ
cosθsinφ
-sinθ
=
θ^•x^
θ^•y^
θ^•y^
φ^ = Rz(φ) Ry(θ) y^ =
−
−
cos
sin
sin
sin
cos
sin
cos
cos
sin
sin
cos
cos
0
0
1
0
=
-sinφ
cosφ
0
r^ = Rz(φ) Ry(θ) z^ =
−
−
cos
sin
sin
sin
cos
sin
cos
cos
sin
sin
cos
cos
0
0
0
1
=
sinθcosφ
sinθsinφ
cosθ
.
(E.2.2)
One can interpret the elements of the vectors on the right as dot products as we show on the first line.
Notice that these three vectors on the right are just the columns of the matrix shown, so one can say
( θ^ φ^ r^ ) =
−
−
cos
sin
sin
sin
cos
sin
cos
cos
sin
sin
cos
cos
0
= Rz(φ) Ry(θ) ≡ R .
(E.2.3)
It is then obvious that
x^•θ^ x^•φ^ x^•r^
y^•θ^ y^•φ^ y^•r^
z^•θ^ z^•φ^ z^•r^
=
−
−
cos
sin
sin
sin
cos
sin
cos
cos
sin
sin
cos
cos
0
= Rz(φ) Ry(θ) = R
(E.2.4)
from which one can read off any desired dot product. As verification, consider an example,
3
Example: y^ • θ^ = y^ • (Rx^) = Σi (y^)i(Rx^)i = Σij(y^)iRij(x^)j = Σijδ2iRijδ1j = R21.
Looking at the last equation of (E.2.2) multiplied by r, since r = r r^ one sees that
x = rsinθcosφ
y = rsinθsinφ
z = rcosθ
(E.2.5)
which is the "inverse transformation" associated with spherical coordinates. See Section E.4 below.
The three equations (E.2.2) can be trivially written out as follows (changing to a standard r,θ,φ order)
r^ = sinθcosφ x^ + sinθsinφ y^ + cosθ z^
θ^ = cosθcosφ x^ + cosθsinφ y^ - sinθ z^
φ^ = -sinφ x^ + cosφ y^
(E.2.6)
which can be inverted to give
x^ = sinθcosφ r^ + cosθcosφ θ^ - sinφ φ^
y^ = sinθsinφ r^ + cosθsinφ θ^ + cosφ φ^
z^ = cosθ r^ - sinθ θ^ .
(E.2.7)
For those not wanting to invert the 3x3 matrix R, (E.2.7) can be quickly verified by looking at the unit
vector dot products in (E.2.4). Eq. (E.2.6) can be similarly verified .
The spherical unit vectors are orthogonal due to their construction in (E.2.3).
Example:
r^ • θ^ = (R z^ ) • (R x^ ) = z^ • (RTRx^) = z^ • x^ = 0
Example:
r^ • r^ = (R z^ ) • (R z^ ) = z^ • (RTRz^) = z^ • z^ = 1
Here R ≡ Rz(φ) Ry(θ) has the property RTR = 1 since it is a rotation. So
r^ • θ^ = r^ • φ^ = θ^ • φ^ = 0 .
(E.2.8)
The spatial derivatives of the spherical unit vectors are easy to compute (∂θr^ means ∂r^/∂θ ),
∂rr^ = 0
∂θr^ = θ^
∂φr^ = sinθ φ^
∂rθ^ = 0
∂θθ^ = - r^
∂φθ^ = cosθ φ^
∂rφ^ = 0
∂θφ^ = 0
∂φφ^ = -sinθ r^ -cosθ θ^ .
(E.2.9)
4
Example: ∂θθ^ = ∂θ
cosθcosφ
cosθsinφ
-sinθ
=
-sinθcosφ
-sinθsinφ
-cosθ
= - r^.
In Fig (E.1.1) one can see for example that ∂θr^ = θ^. Often one draws a little triangle to verify an equation
like this:
(E.2.10)
dr^ = dr θ^ ≈ 1*dθ θ^ = dθ θ^
dr^ = dθ θ^
θ^ = dr^/dθ = ∂θr^ .
Time derivatives of the unit vectors are then obtained by the chain rule ( ∂tr^ means dr^/dt ),
∂tr^ = θ• θ^ + φ• sinθ φ^
∂tθ^ = – θ• r^ + φ• cosθ φ^
∂tφ^ = – φ• sinθ r^ – φ• cosθ θ^ .
(E.2.11)
Example: ∂tr^ = (∂rr^) r• + (∂θr^) θ• + (∂φr^) φ• = 0 + θ^θ• + sinθ φ^φ• .
Note: If we regard r,θ,φ as coordinates of Frame S, then ∂tr^ = (dr^/dt)S = ∂Sr^ as in Section 1.7 and 1.8.
The cross products of the spherical unit vectors follow the right hand rule, so looking at Fig (E.1.1):
r^ x θ^ = φ^
θ^ x φ^ = r^
φ^ x r^ = θ^
(E.2.12)
The first cross product has ordering r,θ,φ and the last two are cyclic permutations. Here are some other
cross products:
x^ x r^ = [sinθcosφ r^ + cosθcosφ θ^ - sinφ φ^] x r^ = - cosθcosφ φ^ - sinφ θ^
x^ x θ^ = [sinθcosφ r^ + cosθcosφ θ^ - sinφ φ^] x θ^ = sinθcosφ φ^ + sinφ r^
x^ x φ^ = [sinθcosφ r^ + cosθcosφ θ^ - sinφ φ^] x φ^ = -sinθ cosφ θ^ + cosθcosφ r^
(E.2.13)
y^ x r^ = [ sinθsinφ r^ + cosθsinφ θ^ + cosφ φ^] x r^ = -cosθsinφ φ^ + cosφ θ^
5
y^ x θ^ = [ sinθsinφ r^ + cosθsinφ θ^ + cosφ φ^] x θ^ = sinθsinφ φ^ - cosφ r^
y^ x φ^ = [ sinθsinφ r^ + cosθsinφ θ^ + cosφ φ^] x φ^ = - sinθsinφ θ^ + sinθsinφ r^
(E.2.14)
z^ x r^ = [cosθ r^ - sinθ θ^ ] x r^ = sinθ φ^
z^ x θ^ = [cosθ r^ - sinθ θ^ ] x θ^ = cosθ φ^
z^ x φ^ = [cosθ r^ - sinθ θ^ ] x φ^ = -cosθ θ^ - sinθ r^
(E.2.15)
E.3 The motion of a particle in spherical coordinates
The equations below are easily derived from (E.2.11):
r = r r^
// position
(E.3.1)
v = vr r^ + vθθ^ + vφ φ^
// velocity
vr = r•
vθ = r θ•
vφ = r φ• sinθ
(E.3.2)
a = ar r^ + aθθ^ + aφ φ^
// acceleration
ar = r•• - rθ•2 – r φ• 2 sin2θ
aθ = 2 r• θ• + rθ•• - r φ• 2 sinθ cosθ
aφ = 2 r• φ• sinθ + 2 r θ• φ• cosθ + rφ••sinθ .
(E.3.3)
Example: v = r• = ∂t(rr^) = r•r^ + r(∂tr^) = r•r^ + r[ θ• θ^ + φ• sinθ φ^ ] = r•r^ + rθ•θ^ + rφ•sinθφ^ .
Notice that v•r ≠ ar and similarly for other components.
If for some reason particle motion is restricted to a spherical surface of radius r (such as in our dumbbell
satellite), we can set r• = r•• = 0 in the above equations to get
r = r r^
// position
(E.3.4)
v = vθθ^ + vφφ^
// velocity is tangent to the sphere : r • v = 0
vθ = r θ•
vφ = r φ• sinθ
(E.3.5)
a = ar r^ + aθθ^ + aφ φ^
// acceleration
6
ar = - rθ•2 – r φ• 2 sin2θ
aθ = rθ•• - r φ•2 sinθ cosθ
aφ = 2 r θ• φ• cosθ + rφ••sinθ .
(E.3.6)
From these equations many other useful results can be obtained, for example,
r^ x v = vθ r^ x θ^ + vφ r^ x φ^ = vθ φ^ – vφ θ^
r^ x a = aθ r^ x θ^ + aφ r^ x φ^ = aθ φ^ – aφ θ^
(E.3.7)
E.4 Curvilinear coordinates approach
Spherical coordinates are defined by the "inverse transformation" on the left below:
inverse transformation
transformation
x = rsinθcosφ
r = + x2+y2+z2
0 ≤ r < ∞
y = rsinθsinφ
cosθ = z/r
0 ≤ θ ≤ π
-1 ≤ cosθ ≤ 1
z = rcosθ
sinθ = + 1-(z/r)2
0 ≤ sinθ ≤ 1
sinφ = y/(rsinθ)
-1 ≤ sinφ ≤ 1
cosφ = x/(rsinθ)
0 ≤ φ < 2π
-1 ≤ cosφ ≤ 1
(E.4.1)
We quote now a set of results from our Tensor document which won't be needed but which we include for
"completeness". Equation numbers (...)T refer to that document.
Spherical coordinates are just an example of curvilinear coordinates which fit into a general formalism:
x = (x1, x2, x3 ) = (x,y,z)
// x-space coordinates
x' = (x1', x2',x3') = (r,θ,φ)
// x'-space coordinates
x = F-1(x') ↔
x = rsinθcosφ
// a non-linear inverse transformation
y = rsinθsinφ
z = rcosθ .
(1.6)T
The linearized transformation local to a point defines certain R and S matrices (the "differentials") :
dx' = R(x) dx
Rik(x) ≡ (∂x'i/∂xk)
R = S-1
// dx'i = Rij dxj
dx = S(x') dx'
Sik(x') ≡ (∂xi/∂x'k)
S = R-1
// dxi = Sij dx'j .
(2.1.6)T
S =
sinθcosφ rcosθcosφ -rsinθsinφ
sinθsinφ rcosθsinφ rsinθcosφ
cosθ
-rsinθ
0
// compute from above definition of Sij
(3.4.4)T
7
g¯' = STS =
1 0
0
0 r2
0
0 0 r2sin2θ
, det(g¯') = r4sin2θ // metric tensor and its determinant
(5.13.14)T
J(r,θ,φ) = det(S) = det(g¯') = r2sinθ .
// Jacobian
(5.13.16)T
(ds)2 = Σijg¯'ij dx'i dxj = (dr)2 + r2(dθ)2 + r2sin2(dφ)2
// distance
(5.13.18)T
Because the metric tensor g¯' is diagonal, the coordinates r,θ.φ are orthogonal.
E.5 Polar Coordinates
Here we use a notation common for two of the cylindrical coordinates (ρ,φ,z),
(E.5.1)
x = ρcosφ
y = ρsinφ
(E.5.2)
ρ^ = cosφ x^ + sinφ y^
ρ^ = Rz(φ) x^
φ^ = -sinφ x^ + cosφ y^
φ^ = Rz(φ) y^
(E.5.3)
x^ = cosφ ρ^ – sinφ φ^
x^ = Rz(-φ) ρ^
y^ = sinφ ρ^ + cosφ φ^
y^ = Rz(-φ) θ^
(E.5.4)
ρ^ • x^ = cosφ
ρ^ • y^ = sinφ
φ^ • x^ = -sinφ
φ^ • y^ = cosφ
(E.5.5)
ρ^• = φ• φ^
φ^• = - φ• ρ^
(E.5.6)
Proof of (E.5.6) :
ρ^• = dρ^/dt = d/dt(cosφ x^ + sinφ y^) = -sinφ φ• x^ + cosφ φ• y^
= -sinφ φ• [cosφ ρ^ – sinφ θ^ ] + cosφ φ• [ sinφ ρ^ + cosφ θ^]
= φ• φ^
8
φ^• = dθ^/dt = d/dt( -sinφ x^ + cosφ y^) = -cosφ φ• x^ - sinφ φ• y^
= -cosφ φ•[cosφ ρ^ – sinφ θ^ ] - sinφ φ• [ sinφ ρ^ + cosφ θ^]
= - φ• ρ^
E.6 The Affine Connection
Recall from above the claim that
∂rr^ = 0
∂θr^ = θ^
∂φr^ = sinθ φ^
∂rθ^ = 0
∂θθ^ = - r^
∂φθ^ = cosθ φ^
∂rφ^ = 0
∂θφ^ = 0
∂φφ^ = -sinθ r^ -cosθ θ^ .
(E.2.9)
(E.6.1)
We wish to put these equations into a more general framework.
In the notation of our Tensor Analysis document, for an arbitrary curvilinear coordinate system x' the
derivatives of the tangent base vectors (called en in that document) are written
∂'jen = ΣiΓ 'ijn ei .
(E.6.2)
This just says that the change in a basis vector obtained by moving a small amount in some direction is
(and of course must be) some linear combination of the basis vectors. The coefficients of the linear
combination are known as the affine connection (or Levi-Civita connection) Γ 'cab = Γ 'cba. The reason
for the primes is that Cartesian coordinates are thought of as x, while curvilinear ones of some particular
type are x'. In Cartesian x-space one has Γcab = 0 because basis vectors don't vary in space. Then Γ'cab is
the affine connection in x'-space. For example, in spherical coordinates one has
x = (x1,x2,x3) = (x,y,z)
x' = (x'1,x'2,x'3) = (r,θ,φ)
(E.6.3)
and the inverse transformation (E.2.5) is x = F-1(x'). As shown below, e1(x') = e1(r,θ,φ) = r^ and then as
an example of (E.6.2) we write (for j=2 and n=1, and the linear combination has only one non-zero term):
∂'2e1 = ∂x2'e1 = ∂θe1(r,θ,φ) = ∂θr^(r,θ,φ) = θ^ = (1/r)eθ = (1/r)e2 = Γ' 221 e2 = Γθθr eθ .
(E.6.4)
The curvilinear unit basis vectors e^n are related to the tangent base vectors by e^n = (1/h'n) en where the
h'n = |en| are the so-called scale factors. The derivatives of the e^n are then given by :
∂'je^n = ∂'j(h'n-1en) = (∂'jh'n-1)en + h'n-1(∂'jen)
= - h'n-2 (∂'jh'n) en + h'n-1( ΣiΓ 'ijn ei)
9
= - h'n-1 (∂'jh'n) e^n + h'n-1( ΣiΓ 'ijn h'i e^i)
= (1/h'n) [Σi h'i Γ 'ijne^i – (∂'jh'n) e^n] .
(E.6.5)
In Tensor the Cartesian basis vectors of x-space are called ui, but in this document they are called ei so
we need a different symbol ei for the tangent base vectors. In Section 14 we use these ei with e^i as the
unit tangent base vectors, ξ = (ξ1,ξ2,ξ3) in place of x' = (x'1,x'2,x'3), and Γ' = Γ with no prime since ξ has
no prime (trying not to confuse Γ = 0 of x-space with Γ ≠ 0 of ξ-space). In this notation (E.6.5) would
appear as
(∂e^n/∂ξj) = (1/hn) [Σi(hiΓ ijne^i) - (∂hn/∂ξj)e^n] .
(E.6.6)
Going back to the Tensor notation, the affine connection for a coordinate system is related to the system's
metric tensor g according to
Γdab = (1/2) gdc [ ∂agbc + ∂bgca – ∂cgab] = 0 since gij = δij
x-space (Cartesian)
Γ'dab = (1/2) g'dc [ ∂'ag'bc + ∂'bg'ca – ∂'cg'ab] .
x'-space
(E.6.7)
For spherical coordinates, one has (using r,θ,φ = 1,2,3 where θ = polar, φ = azimuth)
1
2
3
hr = 1
hθ = r
hφ = rsinθ
// scale factors (h'1= hr)
er = r^
eθ = r θ^
eφ = rsinθ φ^
// tangent base vectors (e1 = er)
e^r = r^
e^θ = θ^
e^φ = φ^
// curvilinear unit basis vectors
g'ab =
1 0
0
0 r2
0
0 0 r2sin2θ
g'ab = inverse(g'ab)
// metric tensor
(E.6.8)
where for example g'33 = gφφ = r2sin2θ. For spherical coordinates only 9 of the 27 elements of Γ'dab are
non-zero (computed from (E.6.7)) :
Γ' 122 = - r
Γ' 212 = Γ' 221 = 1/r
// notation example: Γ' 122 = Γrθθ
Γ' 133 = - r sin2θ
Γ' 313 = Γ' 331 = 1/r
Γ' 233 = - cosθsinθ Γ' 323 = Γ' 332 = cotθ .
(E.6.9)
Example done in Section 14 notation with (E.6.6) :
(∂e^n/∂ξj) = (1/hn) [Σi(hiΓ ijne^i) - (∂hn/∂ξj)e^n]
(∂e^3/∂ξ2) = (1/h3) [Σi(hiΓ i23e^i) - (∂h3/∂ξ2)e^3]
10
(∂φ^/∂θ) = (1/rsinθ) [(h3Γ 323e^3) - (∂[rsinθ]/∂θ)e^3]
= (1/rsinθ) [(rsinθ * cotθ * φ^) - rcosθ * φ^]
= (1/rsinθ) [rcosθ φ^ - rcosθ φ^]
= 0
(E.6.10)
and with some effort we have verified that ∂θφ^ = 0 as appears in (E.6.1). This fact is of course obvious
just looking at Fig (E.1.1), but things can be less obvious in obscure coordinate systems.