Gradient and Divergence in Orthonormal Curvilinear Coordinates


Gradient and Divergence in Orthonormal Curvilinear Coordinates Swapnil Sunil Jain Aug 7, 2006

Gradient and Divergence in Orthonormal Curvilinear Coordinates

Gradient in Curvilinear Coordinates

In rectangular coordinates (where f=f⁢(x,y,z)), an infinitesimalMathworldPlanetmathPlanetmath length vector d⁢l→ is given by

d⁢l→=d⁢x⁢x^+d⁢y⁢y^+d⁢z⁢z^

the gradient is given by

∇=∂∂⁡x⁢x^+∂∂⁡y⁢y^+∂∂⁡z⁢z^

and the differentialMathworldPlanetmath change in the output is given by

d⁢f=∇⁡f∘d⁢l→=∂⁡f∂⁡x⁢d⁢x+∂⁡f∂⁡y⁢d⁢y+∂⁡f∂⁡z⁢d⁢z

Similarly in orthonormal curvilinear coordinates ( where f=f⁢(q1,q2,q3)), the infinitesimal length vector is given by11See my article Unit Vectors in Curvilinear Coordinates for an insight into this expression.

d⁢l→=h1⁢d⁢q1⁢q^1+h2⁢d⁢q2⁢q^2+h3⁢d⁢q3⁢q^3

where

hi=∑k(∂⁡x→k∂⁡qi)2⁢ and ⁢q^i=1hi⁢(∂⁡x→k∂⁡qi)⁢ for ⁢i∈1,2,3

So if

∇=α⁢∂∂⁡q1⁢q^1+β⁢∂∂⁡q2⁢q^2+γ⁢∂∂⁡q3⁢q^3

then since we know that

d⁢f=∂⁡f∂⁡q1⁢d⁢q1+∂⁡f∂⁡q2⁢d⁢q2+∂⁡f∂⁡q3⁢d⁢q3

and

d⁢f=∇⁡F∘d⁢l→=α⁢h1⁢∂⁡f∂⁡q1⁢d⁢q1+β⁢h2⁢∂⁡f∂⁡q2⁢d⁢q2+γ⁢h3⁢∂⁡f∂⁡q3⁢d⁢q3

this implies that

α=1hi;β=1h2;γ=1h3

Hence,

∇ = 1h1⁢∂∂⁡q1⁢q^1+1h2⁢∂∂⁡q2⁢q^2+1h3⁢∂∂⁡q3⁢q^3
= ∑i1hi⁢∂∂⁡qi⁢q^i

Divergence in Curvilinear Coordinates

In the previous sectionMathworldPlanetmath we concluded that in curvilinear coordinates, the gradient operator ∇ is given by

∇=∑i1hi⁢∂∂⁡qi⁢q^i

Then for F→=F1⁢q^1+F2⁢q^2+F3⁢q^3, the divergence of F→ is given by

∇∘F→=(∑i1hi⁢∂∂⁡qi⁢q^i)∘F→

which is not equal to

(∑i1hi⁢∂∂⁡qi⁢q^i)∘F→≠∑i1hi⁢∂⁡Fi∂⁡qi

as one would think! The real expression can be derived the following way,

=∑i[(1hi⁢∂∂⁡qi⁢q^i)∘F→]
=∑i[(1hi⁢q^i)∘(∂⁡F→∂⁡qi)]
=∑i[(1hi⁢q^i)∘(∂∂⁡qi⁢(∑jFj⁢q^j))]
=∑i[(1hi⁢q^i)∘(∑j∂∂⁡qi⁢(Fj⁢q^j))]
=∑i[(1hi⁢q^i)∘(∑jq^j⁢∂⁡Fj∂⁡qi+Fj⁢∂⁡q^j∂⁡qi)]
=∑i[(1hi⁢q^i)∘(∑jq^j⁢∂⁡Fj∂⁡qi+∑jFj⁢∂⁡q^j∂⁡qi)]
=∑i[(1hi⁢q^i)∘∑jq^j⁢∂⁡Fj∂⁡qi+(1hi⁢q^i)∘∑jFj⁢∂⁡q^j∂⁡qi]
=∑i[(1hi⁢q^i)∘∑jq^j⁢∂⁡Fj∂⁡qi]⏟call it A+∑i[(1hi⁢q^i)∘∑jFj⁢∂⁡q^j∂⁡qi]⏟call it B
A = ∑i[(1hi⁢q^i)∘∑jq^j⁢∂⁡Fj∂⁡qi]
= ∑i[1hi⁢∑j(q^i∘q^j)⏟δi⁢j⁢∂⁡Fj∂⁡qi]
= ∑i1hi⁢∂⁡Fi∂⁡qi
B = ∑i[(1hi⁢q^i)∘∑jFj⁢∂⁡q^j∂⁡qi]

Using the following equality22The proof of this identity is left as an exercise for the reader.

∂⁡q^j∂⁡qi=q^ihj⁢∂⁡hi∂⁡qj  ∀i≠j

we can write B as

B = ∑i[(1hi⁢q^i)∘∑jFj⁢(q^i⁢1hj⁢∂⁡hi∂⁡qj)]  ∀i≠j
= ∑i[1hi⁢∑jFj⁢(q^i∘q^i)⏟1⁢1hj⁢∂⁡hi∂⁡qj]  ∀i≠j
= ∑i[1hi⁢∑jFj⁢1hj⁢∂⁡hi∂⁡qj]  ∀i≠j
= ∑i≠jFjhj⁢hi⁢∂⁡hi∂⁡qj
= ∑i≠1F1h1⁢hi⁢∂⁡hi∂⁡q1+∑i≠2F2h2⁢hi⁢∂⁡hi∂⁡q2+∑i≠3F3h3⁢hi⁢∂⁡hi∂⁡q3
⇒∇∘F→ = A+B
= ∑i1hi⁢∂⁡Fi∂⁡qi+∑i≠1F1h1⁢hi⁢∂⁡hi∂⁡q1+∑i≠2F2h2⁢hi⁢∂⁡hi∂⁡q2+∑i≠3F3h3⁢hi⁢∂⁡hi∂⁡q3
= [1h1⁢∂⁡F1∂⁡q1+1h2⁢∂⁡F2∂⁡q2+1h3⁢∂⁡F3∂⁡q3]
+[F1h1⁢h2⁢∂⁡h2∂⁡q1+F1h1⁢h3⁢∂⁡h3∂⁡q1]
+[F2h2⁢h1⁢∂⁡h1∂⁡q2+F2h2⁢h3⁢∂⁡h3∂⁡q2]
+[F3h3⁢h1⁢∂⁡h1∂⁡q3+F3h3⁢h2⁢∂⁡h2∂⁡q3]

Collecting similarMathworldPlanetmathPlanetmath terms together we get,

∇∘F→ = [1h1⁢∂⁡F1∂⁡q1+F1h1⁢h2⁢∂⁡h2∂⁡q1+F1h1⁢h3⁢∂⁡h3∂⁡q1]
+[1h2⁢∂⁡F2∂⁡q2+F2h2⁢h1⁢∂⁡h1∂⁡q2+F2h2⁢h3⁢∂⁡h3∂⁡q2]
+[1h3⁢∂⁡F3∂⁡q3+F3h3⁢h1⁢∂⁡h1∂⁡q3+F3h3⁢h2⁢∂⁡h2∂⁡q3]

If we define Ω≡Πi⁢hi, we can further write the above expression as

∇∘F→ = [h2⁢h3Ω⁢∂⁡F1∂⁡q1+F1⁢h3Ω⁢∂⁡h2∂⁡q1+F1⁢h2Ω⁢∂⁡h3∂⁡q1]
+[h1⁢h3Ω⁢∂⁡F2∂⁡q2+F2⁢h3Ω⁢∂⁡h1∂⁡q2+h1⁢F2Ω⁢∂⁡h3∂⁡q2]
+[h1⁢h2Ω⁢∂⁡F3∂⁡q3+h2⁢F3Ω⁢∂⁡h1∂⁡q3+h1⁢F3Ω⁢∂⁡h2∂⁡q3]
= 1Ω([∂⁡F1∂⁡q1h2h3+F1h3∂⁡h2∂⁡q1+F1h2∂⁡h3∂⁡q1]
+[h1⁢∂⁡F2∂⁡q2⁢h3+∂⁡h1∂⁡q2⁢F2⁢h3+h1⁢F2⁢∂⁡h3∂⁡q2]
+[h1h2∂⁡F3∂⁡q3+∂⁡h1∂⁡q3h2F3+h1∂⁡h2∂⁡q3F3])
= 1Ω⁢(∂∂⁡q1⁢(F1⁢h2⁢h3)+∂∂⁡q2⁢(h1⁢F2⁢h3)+∂∂⁡q3⁢(h1⁢h2⁢F3))

Hence,

∇∘F→ = 1Ω⁢∑i∂∂⁡qi⁢(Ωhi⁢Fi)  where ⁢Ω=Πi⁢hi
Title Gradient and Divergence in Orthonormal Curvilinear Coordinates
Canonical name GradientAndDivergenceInOrthonormalCurvilinearCoordinates1
Date of creation 2013-03-11 19:26:23
Last modified on 2013-03-11 19:26:23
Owner swapnizzle (13346)
Last modified by (0)
Numerical id 1
Author swapnizzle (0)
Entry type Definition