The last post introduced the curvilinear mantra for students working with field equations in such disciplines as fluid mechanics, general relativity, and electricity and magnetism.  The textbook example (see, e.g. Acheson Appendix A, pp 352-3) is Euler’s equations for ideal fluids in two spatial dimensions. 

In cartesian coordinates these equations read

ρ(Vxx+Vyy+t)Vx=xp+fx

and

ρ(Vxx+Vyy+t)Vy=yp+fy,

whereas, in polar coordinates these equations read

ρ(Vrr+Vθrθ+t)VrρVθ2r=rp+fr

and

ρ(Vrr+Vθrθ+t)Vθ+ρVrVθr=1rθp+fθ.

As discussed in the previous post, beginning students are often confused by two changes when transitioning from cartesian to polar coordinates.  The first is the appearance of 1/r scale factors that decorate various terms such as Vθ/rθ.  The second is the appearance of additional additive terms, such as VrVθ/r

The curvilinear mantra explains these changes as follows: the scale factors come from minding the units and the additive terms show up to account for how the basis unit vectors change from place to place.

The first half of the mantra was covered in the previous post.  This post finishes the exploration by demonstrating how the additive terms arise due to the spatial variations of the basis vectors. 

The first step involves writing the position vector in terms of the polar coordinates and the cartesian unit basis vectors

r=rcosθˆx+rsinθˆy.

The polar unit basis vectors are defined by taking the derivatives of the position vector with respect to the polar coordinates and then unitizing.  The radial basis vector (not unitized) is

errr=cosθˆx+sinθˆy.

Conveniently, this vector has a unit length and we can immediately write the radial unit basis vector as

ˆr=cosθˆx+sinθˆy.

Following the same procedure, the polar angle basis vector (not unitized) is

eθrθ=rsinθˆx+rcosθˆy.

This vector has length r and so the polar angle unit base vector is

ˆθ=sinθˆx+cosθˆy.

Both vectors are independent of r but do depend on θ and their variations are

θˆr=ˆθ

and

θˆθ=ˆr.

At this point we have all the ingredients we need.  From the first part of the curvilinear mantra we have the velocity in polar coordinates is

V=Vrˆr+Vθrˆθ

and the material (or total) time derivative is

DDt=Vrr+Vθrθ+t,

where the scale factors on the polar angle terms are due to minding units.

Applying the material time derivative to the velocity gives

DVDt=(Vrr+Vθrθ+t)(Vrˆr+Vθrˆθ).

Expanding this expression term-by-term yields

Vrr(Vrˆr)+Vθrθ(Vθˆθ)+Vθrθ(Vrˆr)+(tVr)ˆr+(tVθ)ˆθ.

Expanding the derivatives, taking care to evaluate the spatial derivatives of the unit basis vectors, yields

VrrVrˆr+Vθr(θVθ)ˆθVθ2rˆr+(VθrθVr)ˆr+VθVrrˆθ+(tVr)ˆr+(tVθ)ˆθ.

Collecting terms gives the radial term as

VrrVr+VθrθVrVθ2r+tVr

and the polar angle term as

VθrθVθ+VθrθVθ+VθVrr+tVθ.

Factoring the terms yields

(Vrr+Vθrθ+t)VrVθ2r

and

(Vrr+Vθrθ+t)Vθ+VθVrr.

Happily, these expressions match term-for-term the textbook (up to multiplication by ρ).  This shows the accuracy and power of the curvilinear mantra.  Hopefully it will catch on in classrooms.