Vector Algebra and Calculus: Vector Identities, Curvilinear Co-Ordinate Systems
Vector Algebra and Calculus: Vector Identities, Curvilinear Co-Ordinate Systems
• We then turn to derive expressions for grad, div and curl in curvilinear coordinates.
• After deriving general expressions, we will specialize to the Polar family.
Identity 1: curl grad U = 0 6.2
∂/∂x ∂/∂y ∂/∂z
∇ × a) = ∂/∂x ∂/∂y ∂/∂z
∇ · (∇
ax ay az
∂ 2 az ∂ 2 ay
= −
∂x∂y ∂x∂z
2
∂ az ∂ 2 ax
− +
∂y ∂x ∂y ∂z
2
∂ ay ∂ 2 ax
+ −
∂z ∂x ∂z ∂y
= 0
Identity 3: divergence of Uv 6.4
• Suppose that
• For example
– U(r) is a scalar field
– U(r) could be fluid density; and
– v(r) is a vector field
– v(r) its instantaneous velocity
and we are interested in the divergence of the product
The product would be the mass flux per unit area.
Uv.
• The product Uv is a vector field, so we can compute its divergence ...
∇ · v) + (∇
∇ · (Uv) = U(∇ ∇U) · v = Udivv + (gradU) · v
• In steps:
∂ ∂ ∂
∇ · (Uv) = (Uvx ) + (Uvy ) + (Uvz )
∂x ∂y ∂z
∂vx ∂vy ∂vz ∂U ∂U ∂U
= U +U +U + vx + vy + vz
∂x ∂y ∂z ∂x ∂y ∂z
= Udivv + v · gradU
Identity 3: curl of Ua 6.5
• In a similar way, we can take the curl of the product of a scalar and vector field field Uv.
• The result should be a vector field.
• And you’re probably happy now to write down
∇ × v) + (∇
∇ × (Uv) = U(∇ ∇U) × v .
Identity 4: div of a × b 6.6
• But things get trickier to guess when vector or scalar products are involved!
• Eg, not at all obvious that:
div(a × b) = curla · b − a · curlb
• To show this, use the determinant:
∂/∂x ∂/∂y ∂/∂z
ax ay az
bx by bz
∂ ∂ ∂
= [ay bz − az by ] + [az bx − ax bz ] + [ax by − ay bx ]
∂x ∂y ∂z
= ...
Vector operator identities in HLT 6.7
• We could carry on inventing vector identities for some time, but it is a bit, er, dull.
• Why bother at all, as they are in HLT?
1. Since grad, div and curl describe key aspects of vectors fields, they often arise often in practice.
The identities can save you a lot of time and hacking of partial derivatives, as we will see when we consider
Maxwell’s equation as an example later.
2. Secondly, they help to identify other practically important vector operators.
ı̂ ̂ k̂
curl(a × b) =
∂/∂x ∂/∂y ∂/∂z
ay bz − az by az bx − ax bz ax by − ay bx
∂ ∂
⇒ curl(a × b)x = (ax by − ay bx ) − (az bx − ax bz )
∂y ∂z
This can be written as the sum of four terms:
∂by ∂bz ∂ay ∂az
ax • + + − bx ∗ + + +
∂y ∂z ∂y ∂z
∂ ∂ ∂ ∂
∗ + by + bz ax − • + ay + az bx
∂y ∂z ∂y ∂z
•: ax ∂bx
∂x add to term1, sub from term4
∗: bx ∂a x
∂x : sub from term2, add to term3
Hence
∇ · b)a − (∇
∇ × (a × b) = (∇ ∇ · a)b + [b · ∇ ]a − [a · ∇ ]b
[a · ∇ ] can be regarded as new, and very useful, scalar differential operator.
Definition of the operator [a · ∇ ] 6.9
• Background: Maxwell established a set of four vector equations which are fundamental to working out how eletro-
magnetic waves propagate. The entire telecommunications industry is built on these!
divD = ρ
divB = 0
∂
curlE = − B
∂t
∂
curlH = J + D
∂t
Question: Show that in a material with no free charge, ρ = 0, and with zero conductivity, σ = 0, the electric field E
must be a solution of the wave equation ∇2E = µr µ0ǫr ǫ0 (∂ 2 E/∂t 2 ) .
Answer:
divD = div(ǫr ǫ0E) = ǫr ǫ0divE = ρ = 0; ⇒divE = 0
divB = div(µr µ0H) = µr µ0divH = 0 ⇒divH = 0
curlE = −∂B/∂t = −µr µ0(∂H/∂t)
curlH = J + ∂D/∂t = 0 + ǫr ǫ0(∂E/∂t)
∇ · E) − ∇2E, so
But curlcurlE = ∇ (∇ Then
∂ ∂E
curl [−µr µ0(∂H/∂t)] = −∇2E −µr µ0 ǫr ǫ0 = −∇2E
∂ ∂t ∂t
−µr µ0 [curlH] = −∇2E ∂ 2E
∂t ⇒µr µ0 ǫr ǫ0 2 = ∇2E
∂t
Grad, div, curl and ∇2 in curvilinear coords 6.13
• It is possible to obtain general expressions for grad, div and curl in any orthogonal curvilinear co-ordinate system ...
• Need the scale factors h ...
• We recall that the unit vector in the direction of increasing u, with v and w being kept constant, is
1 ∂r
û =
hu ∂u
where r is the general position vector, and
∂r
hu =
∂u
and similar expressions apply for the other co-ordinate directions. Then
dr = hu duû + hv dv v̂ + hw dw ŵ .
Grad in curvilinear coordinates 6.14
• If the curvilinear coordinates are orthogonal then δvolume is a cuboid (to 1st order in small things) and
dV = hu hv hw du dv dw .
w
h (v) dw
w
h (v+dv) dw
w
• However, it is not quite a cuboid: the area of two
opposite faces will differ as the scale parameters are v
functions of u, v , w . h (v) du
u h u(v+dv) du
h v dv
u The scale params are
functions of u,v,w
• Repeat: the nett efflux from the two faces in the v̂ dirn is
∂av ∂hu ∂hw
= av + dv hu + dv hw + dv dudw − av hu hw dudw
∂v ∂v ∂v
∂(av hu hw )
= dudv dw
∂v
• Now div is net efflux per unit volume, so sum up other faces:
∂(au hv hw ) ∂(av hu hw ) ∂(aw hu hv )
diva dV = + + dudv dw
∂u ∂v ∂w
v
a u (v+dv)
v+dv
• For an orthogonal curvi coord system
h u(v+dv) du
dS = hu hv dudw .
• But the opposite sides are not of same length!
dv
Lengths are
hu (v )du, and hu (v + dv )du. hu (v) du
v u+du
u
a u (v)
• Summing this pair contributes to circulation (in ŵ dirn)
∂(hu au )
au (v )hu (v )du − au (v + dv )hu (v + dv )du = − dv du
∂v
• Add in the other pair to find circulation per unit area
dC 1 ∂(hu au ) ∂(hv av )
= − +
hu hv dudv hu hv ∂v ∂u
Curl in curvilinear coordinates, ctd 6.18
• Substitute the components of gradU into the expression for diva ...
• Much grinding gives the following expression for the Laplacian in general orthogonal co-ordinates:
• We recall that r = r cos θı̂ + r sin θ̂ + z k̂, and that hu = |∂r/∂u|, and so
p
hr = (cos2 θ + sin2 θ) = 1,
q
hθ = (r 2 sin2 θ + r 2 cos2 θ) = r,
hz = 1
• The derivation of the expression for ∇2U in cylindrical polar co-ordinates is set as a tutorial exercise.
Grad, etc, in spherical polars 6.22
• We recall that r = r sin θ cos φı̂ + r sin θ sin φ̂ + r cos θk̂ so that
q
hr = (sin2 θ(cos2 φ + sin2 φ) + cos2 θ) = 1
q
hθ = (r 2 cos2 θ(cos2 φ + sin2 φ) + r 2 sin2 θ) = r
q
hφ = (r 2 sin2 θ(sin2 φ + cos2 φ) = r sin θ
• Hence
∂U 1 ∂U 1 ∂U
gradU = êr + êθ + êφ
∂r r ∂θ r sin θ ∂φ
1 ∂(r 2 ar ) 1 ∂(aθ sin θ) 1 ∂aφ
diva = 2 + +
r ∂r r sin θ ∂θ r sin θ ∂φ
êr ∂ ∂ êθ ∂ ∂
curla = (aφ sin θ) − (aθ ) + (ar ) − (aφr sin θ)
r sin θ ∂θ ∂φ r sin θ ∂φ ∂r
êφ ∂ ∂
+ (aθ r ) − (ar )
r ∂r ∂θ
♣ Examples 6.23
Question:
Find curla in (i) Cartesians and (ii) Spherical polars when a = x(xı̂ + ŷ + z k̂).
Answer (i):
• In Cartesians, using the pseudo determinant gives
ı̂ ̂ k̂
curla = ∂/∂x ∂/∂y ∂/∂z = −ẑ + y k̂
x2 xy xz
♣ Example /ctd 6.24
Answer (ii):
• We were told a = x(xı̂ + ŷ + z k̂).
• In spherical polars x = r sin θ cos φ and (xı̂ + ŷ + z k̂) = r
• Hence a = r sin θ cos φr = r 2 sin θ cos φ êr
or in component form: ar = r 2 sin θ cos φ; aθ = 0; aφ = 0 .
• Expression for curl (earlier, and HLT):
êr ∂ ∂ êθ ∂ ∂ êφ ∂ ∂
curla = (aφ sin θ) − (aθ ) + (ar ) − (aφ r sin θ) + (aθ r ) − (ar )
r sin θ ∂θ ∂φ r sin θ ∂φ ∂r r ∂r ∂θ
• Hence
êθ ∂ 2 êφ ∂ 2
curla = (r sin θ cos φ) + − (r sin θ cos φ)
r sin θ ∂φ r ∂θ
êθ êφ
(−r 2 sin θ sin φ) + −r 2 cos θ cos φ)
=
r sin θ r
= êθ (−r sin φ) + êφ(−r cos θ cos φ)
Example Check: These two results should be the same! 6.25
• Don’t be shocked to see a rotation matrix [R]! We are rotating one right-handed orthogonal coord system into
another.
Check /ctd 6.26
• The key thing when combining operators is to remember that each partial derivative operates on everything to its
right.
• The identities (eg in HLT) are not mysterious. They merely provide useful short cuts.
• There is no need slavishly to learn the expressions for grad, div and curl in curvi coords.
They are in HLT, but
– you need to know how they originate.
– you need to be able to hack them out when asked.
• Ditto with the specializations to polars.
• Just as physical vectors are independent of their coordinate systems, so are differential operators.