GRADIENTS

Goal: to write Newton's law in arbitrary coordinates. For F we assume there exists a potential, so we want a simple way to evaluate gradients; and for the ma side of Newton's law we want also a derivation from some scalar, which is easier to write than the vector a.

Gradients

Given a function f of any number of variables, one defines the gradient as the set of its partial derivatives.

The gradient at a point P describes the change of the function away from P to linear order:

df = Ñf ·dr = f
x
dx + f
y
dy + f
z
dz +...
The RHS is seen as the first term (beyond the constant) of a Taylor series expansion. If we "divide" both sides by dt, this is just the chain rule for differentiating f(x(t), y(t), z(t) ...).

One can also interpret the d in this formula as the gradient operator: then it tells us how df, the gradient of f, is expanded in terms of a basis dx, dy, dz ... If x, y, z are the usual rectangular coordinates, then dx = grad x = (1, 0, 0) is indeed a unit vector in the x-direction. The same chain rule holds for any coordinates q1, q2, ..., so that the gradient of f has the simple components f/q1, f/q2, ... in the basis dq1, dq2 ..., which in general will not be orthonormal. (Nor will dq1 always point in the "q1-direction". Instead it will be orthogonal, as a vector, to the surfaces q1 = const).

Examle: Let q1 = (x2 + y2)h, q2 = y, where x, y are the usual rectangular coordinates Then dq1 = 2xdx + 2ydy = (2x, 2y) = 2r = radially pointing vector of size r, and dq2 = dy = (0, 1) = unit vector in y-direction - definitely not an orthonormal basis, but cooked up in such a way that getting the components of the gradient is easy. So if f(q1, q2) = q1 - q22 we have

df = dq1 - 2q2 dq2 .      (1)
Of course, in x, y coordinates f = x2, so its gradient is 2x in the x-direction, and that agrees with (1).

Position and Velocity Space

To write Newton's law using this simple expression for the gradient we will need a in the same screwy basis (also called "coordinate basis", as opposed to a "physical" orthonormal basis). Start with a simpler problem: how to write v that way. But v is defined only along the trajectory of a particle, unlike the result of taking a gradient. Instead we declare v to be independent variables from r. (Recall that in thinking of a function as a function of one or several functions, we can be pretty arbitrary: f(t) = 1/2at2 + vt + c can be f(u, v) = u + v + c where u(t) = 1/2at2, v(t) = vt or f(w) = 1/2a(w2 - (v/a)2)) + c where w(t) = t + (v/a), or ...). This makes some sense considering that at a point (at t=0) we have to specify independently the velocity of a particle to get a unique motion.

So we think of v as living in a separate vector space, with basis dvvx, dvvy, dvvz where the subscript v indicates that the partial derivative is to be taken with respect to v. Since the rectangular component vx can be written as (1/2vx2)/vx, ..., we have

v = Ñv 1/2v2     where     v2 = vx2 + vy2 + vz2
and where v2 is a scalar, which is ëasy" to evaluate in any coordinate system.

In rectangular components the basis dx, dy, dz is the same as dvvx, dvvy, dvvz - either is given as (1,0,0), (0,1,0), (0,0,1). By a stroke of luck this is also so in any other coordinates q1, q2, q3, provided that the q's are functions only of the x's, not of the v's or x·'s. This is eaily shown by another application of the chain rule. We'll leave out the subsripts and sums over them, the main idea is that if q = q(x) then

.
q
 
= q/x .
x
 
       hence        .
q
 
/ .
x
 
= q/x
(note that because q is a function only of x, x· only appear linearly in the first equation). But
dq = (q/x) dx     and d .
q
 
= ( .
q
 
/ .
x
 
) d .
x
 
So the factor that chances from rectangular to coordinate basis is the same for the dx and the dx·: if the x- and the v-basis are once equal, they are always equal.
When there are several coordinates, the "factor" is the matrix qi/xj that transforms rectangular into coordinate basis.

Example: If a force F (with potential U) acts on a particle in a very viscous medium with retarding force -kv we can neglect the acceleration, so that the law of motion become F = -kv. To write this in polar coordinates r, f we note v2 = r·2 + (rf·)2. Then the coordinate f-component of F is U/f. (That's the big simplification). The corresponding f-component of v is (1/2v2)/f· = r2f·, hence the law of motion in the f-direction becomes U/f = r2f·, which is the same equation as one gets by taking the usual "physical" or unit-basis components (except multiplied on both sides by a factor r).
Moral: one gets a correct equation, but it is not necessarily a physical velocity. In this case the RHS is more nearly an angular momentum (but the mass is missing ...)

The RHS (ma) of Newton's laws

There is no getting around it: when your vector quantities are expressed in a basis that changes from point to point, and you want a (total) time derivative, you must differentiate both the components and the basis vectors. But in the present formalism both terms become simple (well .. simpler, anyway).

First, it is highly suggestive to talk not about v, but about p = mv: then p = Ñv T where T = 1/2mv2, the kinetic energy.

Next, let's evaluate dp/dt for the RHS of Newton's law. Again we'll write just one term, as if in 1D. (If you put i on the terms and a åi in front of the whole thing you'll get the expression in 3D or more):

Fq dq = Fx dx = (dpx/dt)dx = d
dt
æ
ç
è
T
q·
q
x
ö
÷
ø
dx = d
dt
T
q·
dq - T
q
dq      (2)
The last step follows because T contains only x·, not x, T/x = 0, so
T
q·
q·
x
= - T
q
q
x
.
Now we remember Fq = - U/q and we " erase" the dq on both sides of (2), in other words, we write just the components of the equation and forget about the basis in which these were written:
- U
qi
= d
dt
T
q·i
- T
qi
     (3)
i = 1, 2, ...(as many coordinates as necessary to specify the positions of all the masses.

Example of an application

A spring (zero unstretched length) hangs from a point, with a mass m on the other end. The mass can move anywhere in a vertical plane. What are the equations of motion in terms of r (length of spring) and q (angle of spring with vertical)?

We let U = 0 at the suspension point, then it is easy to write U in terms of r and q:

U = -mgrcosq+ 1/2 kr2

To find T you pretty much have to know the physical components of v, that is, to know that the component in the r-direction is r·, and in the q-direction it is rq·. Since these are in an orthonormal system we square and add to get v2. (Alternatively we could write the relation between r, q and x, y, e.g. x = rsinq, differentiate (x· = r· sinq+ r cosqq·), square and add.) Anyway,

T = 1/2 m (r·2 + (rq·)2

With this we have no longer need to think about vector components explicitly, only about partial derivatives (remembering that there are four independent variables, r, theta, r· amd q·, and correspondingly four different partial derivatives.

The ingredients for Eq (3) are

T
r·
= m r·        T
q·
= mr2q·       T
r
= mrq·2        T
q
= 0
Thus we get for q1 = r:

mg cosq- kr = d/dtmr· - mrq·2 = mr¨ - mrq·2

and for q2 = q:

-mg sinq = d/dtmr2q· = 2mr r· q· + mr2q¨

These are the equations of motion - easily written down, not easy to solve (except in the limit of small q.

Of course, one first integral is given by the total energy = T + U = const.


File translated from TEX by TTH, version 2.53.
On 12 Feb 2003, 23:32.