Vous êtes sur la page 1sur 4

Vector calculus in curvilinear coordinates

D. Jaksch

Goals:
Understand the difference between coordinates and vector components
Understand the implications of basis vectors in curvilinear coordinates not being constant
Learn how to use curvilinear coordinate systems in vector calculus

Coordinate systems and vector fields


Coordinate systems
A point in coordinate space r is often represented as r = (x, y, z)T with x, y, and z the distances along the
three coordinate axes. We can equally introduce cylindrical polar coordinates which we will use here as the
prime example for curvilinear coordinate systems. They are defined through the relations

x = cos(), y = sin(), and z = z.

The point in space is now written as r = ( cos(), sin(), z)T where the meaning of the components is still
that they give the distances along the three coordinate axes.

Vector fields
A vector field assigns a vector to each point r and is usually denoted as F(r) or simply F. The vector field
is often defined through components p Fi (r) which are the projections of the vector onto the three coordinate
axes. For instance F = (y, x, 0)T / x2 + y 2 assigns vectors as indicated in figure 1a). Using cylindrical polar
coordinates this vector field is given by F = ( sin(), cos(), 0)T . Here we have rewritten the vector field in
different coordinates but not changed the meaning of its components.

a) b) c)



z y z y z y





x x x
p
Figure 1: (a) Vector field F = (y, x, 0)T / x2 + y 2 (red arrows) and showing cartesian (b) and cylindrical
polar (c) components for two of its vectors.

Basis vectors
Each point in coordinate space has a vector space associated with it where the vectors of vector fields live. A
coordinate system {xi } allows us to define bases for all of these vector spaces through

r
ei = .
xi
For cartesian coordinates the normalized basis vectors are ex = i, ey = j, and ez = k pointing along the three
coordinate axes. They are orthogonal, normalized and constant, i.e. their direction does not change with the
point r1 .
Next we calculate basis vectors for a curvilinear coordinate systems using again cylindrical polar coordinates.
They are given by
r 1 r
e = = cos()ex + sin()ey , e = = sin()ex + cos()ey , and ez = ez .

The 1/ in the definition of e is required for the vector to be properly normalized to 1. These basis vectors
are mutually orthogonal and normalized. However, they are not constant, their direction changes with position.
By inverting this set of linear equations for the basis vectors we find
ex = cos()e sin()e , ey = sin()e + cos()e , and ez = ez .
We can now write a vector field F(r) = (Fx (r), Fy (r), Fz (r))Tc Fx (r)ex + Fy (r)ey + Fz (r)ez in new
components using the above relations between the basis vectors for different coordinate systems. This is still
the same vector field but now written as F(r) = (F (r), F (r), Fz (r))Tp F (r)e + F (r)e + Fz (r)ez . The
new components are projections on the basis vectors e , e , and ez . We use indices c and p to make explicit
which components are used. In detail, the change of components is carried out by

Fx
F = Fy = Fx ex + Fy ey + Fz ez = Fx [cos()e sin()e ]
Fz c

Fx cos() + Fy sin()
+Fy [sin()e + cos()e ] + Fz ez = Fx sin() + Fy cos()
Fz p

Cartesian and cylindrical polar components for the vector field F = ( sin(), cos(), 0)Tc = (0, 1, 0)Tp are shown
in figures 1b) and 1c) respectively. Produce a similar figure for the vector field F = r = (x, y, z)Tc = (, 0, z)Tp .
The most commonly used coordinate systems produce orthogonal right handed bases. This means that scalar
and vector products between the basis vectors obey the familiar relations ei ej = ij and ei ej = ek ijk ,
where ij is the Kronecker delta and ijk the totally antisymmetric tensor. For cylindrical polar coordinates
(, , z) we explicitly have
e e = e e = ez ez = 1 and e e = e ez = ez e = 0 ,
e e = e e = ez ez = 0, e e = ez , e ez = e and ez e = e ,

Vector Calculus
Partial derivatives
The partial derivatives with respect to the coordinates are found using the chain rule2
= cos()x + sin()y , = sin()x + cos()y , and z = z ,
and
sin() cos()
x = cos() , y = sin() + , and z = z .

-operator
We now rewrite the -operator by using these relations

x
e
= y = ex x + ey y + ez z = e + + ez z = 1

z c z p
1 This might seem obvious but needs to be revisited in relativity and has far reaching consequences for the physical nature of

space.
2 The calculation is identical to working out the basis vectors but replacing r/i . The partial derivatives can thus directly
i
be read off from the relations between the basis vectors.
Gradient
The gradient of a scalar field U in cylindrical polar coordinates is now given by
U

gradU = U = 1 U = e U + e U + ez z U .

U
z p

The expression for the -operator in cylindrical polar components is thus indirectly given on the data-sheet3 .
There you will find an expression for U and the del-operator is found by simply leaving out U in this expression.

Divergence
When working out the divergence we need to properly take into account that the basis vectors are not constant
in general curvilinear coordinates. For cylindrical polar coordinates we have two nonzero derivatives

e = cos()ex sin()ey = e
and e = sin()ex + cos()ey = e .
P
The divergence will thus in general not be given by F(r) = i i Fi (r) which is only true for an orthogonal
coordinate system whose basis vectors are constant in space. Using the product rule we find

e e
F = [e + + ez z ] [F e + F e + Fz ez ] = F + [ (F e ) + (F e )] + z Fz

e (F ) F
= F + [e F + F e + e F e F ] + z Fz = + + z Fz .

Rotation
The calculation is similar to working out the divergence

e
F = [e + + ez z ] [F e + F e + Fz ez ] = e [e F + ez Fz ] +

e
[e F e F + ez Fz ] + ez [e z F + e z F ]

   
Fz (F ) F
= e z F + e [ Fz + z F ] + ez .

Laplace operator
We obtain the Laplace operator by replacing F in the expression for the divergence
1 1
== ( ) + 2 2 + z2 .

Example
A velocity field describing a vortex is given by u = Ae / with A a constant. Its divergence and rotation are
given by
   
e Ae e Ae A
u = e + + ez z = 0, u = e + + ez z = 2 (ez ez ) = 0 .

The acceleration of a parcel of fluid is given by (this term appears in the Navier Stokes equation)

A Ae A
(u )u = 2
= 3 e .

Work out these expressions using cartesian components.

3 Also spherical polar coordinates can be found on the data sheet.


Summary
Cylindrical polar coordinates (, , z)
Relation to cartesian coordinates (care is required to obtain in the correct quadrant)
x = cos() , y = sin() and z = z
p
= x2 + y 2 , = arctan(y/x) and z = z
Basis vectors e = r, e = r, ez = z r
e = cos()ex + sin()ey , e = sin()ex + cos()ey and ez = ez
ex = cos()e sin()e , ey = sin()e + cos()e and ez = ez
Non-zero derivatives of basis vectors
e = e , e = e

-operator
e
= e + + ez z

Divergence
(F ) F
F= + + z Fz

Rotation    
Fz (F ) F
F(r) = e z F + e [ Fz + z F ] + ez

Laplace
1 1
= ( ) + 2 2 + z2

Spherical polar coordinates (r, , )


Relation to cartesian and cylindrical coordinates (care is required to obtain in the correct quadrant)
x = r cos() sin() , y = r sin() sin() , z = r cos() and = r sin()
p
r = x2 + y 2 + z 2 , = arctan(y/x) and = arccos(z/r) = arctan(/z)
Basis vectors er = r r, re = r, r sin()e = r
er = cos()ez + sin()e , e = sin()ez + cos()e and e = e
ez = cos()er sin()e , e = sin()er + cos()e and e = e
ex = sin() cos()er + cos() cos()e sin()e and ey = sin() sin()er + cos() sin()e + cos()e
Non-zero derivatives of basis vectors
er = e , e = er , er = sin()e , e = cos()e and e = e

-operator
e e
= er r + +
r r sin()
Divergence
r (r2 Fr ) (sin()F ) F
F= 2
+ +
r r sin() r sin()
Rotation
 
er e Fr e
F= [ (F sin()) F ] + r (rF ) + + [r (rF ) Fr ]
r sin() r sin() r
Laplace
1 1 1
= 2
r (r2 r ) + 2 (sin() ) + 2 2 2
r r sin() r sin ()

Vous aimerez peut-être aussi