Sunday, October 23, 2016

Generalized coordinates

In this post I’ll try to explain what Generalized coordinates are, how they came to be and finally where they are used with a simple.

To start with imagine a system of point masses present in a dimensional space. The point has a position vector .

Note that if the system was unconstrained, then as any of the bodies can occupy any point in the space, we will need number of scalars to completely define any particular configuration of the system.

For visualization purposes consider , so we use scalars (the coordinates) to define the position of each point mass. As we have a total of such masses we need scalars.

But often the systems we need to analyse are under some sort of constraints. In case of a robotic arm, each hinge point always maintains a fixed distance between them due to the rigid rod connecting them.

In such situations we don’t need all scalars, rather we can use less number of scalars and still manage to uniquely represent all possible states that this constrained system can take. This is because the constraints decrease the degrees of freedom available to that system.

Holonomic constraints

We classify constraints as either being holonomic or nonholonomic.

If a constraint can be expressed purely as a relationship between the position variables () and time .

Then using each such constraint equation we can reduce the number of scalars needed by one. If we knew the time and all but one position variable, using the constraint equation that missing coordinate can be deduced.

When the constraint has inequalities or higher order derivative terms in them, they are classified as nonholonomic. Note that we have an equality symbol in the above expression. Also the function has to of the position variables themselves, not their derivatives.

All constraints which are unable to be expressed in the above form are called nonholonomic constraints.

Note that if there were velocity terms () in the constraint equation, then integrating that constraint could in some cases yield an equation of the form shown above, if so then it’s a holonomic constraint. So what Wikipedia means when they say that if the constraint has velocity terms they “are not usually holonomic” is that it’s kinda hard to bring it to this form in that case.

When constraints are purely dependent on the positions at any time its a holonomic constraint, but in a nonholonomic constraint the constraint changes depending on how you reach that position! This seems to be analogous to path and state functions.

To visualise how a holonomic constraint reduces DOF, imagine a point mass is constrained to move along the line . So without this constraint we needed both position variables to describe its position anywhere in the XY plane, but now we just need . As if we have , its position is now known to be due to the constraint.

Constrained to move in a circle of radius

So a point mass is moving around in a plane (say the plane). We can describe its position at any point of time using the vector,

If we are given that this point mass is constrained to move in a circle of radius , i.e. the constraint equation would like this,


Note how the equation can be written as , i.e. in the form . Therefore we conclude that this is a holonomic constraint.

So the “generalized coordinate” I will use is , the angle between the axis and the position vector .

circle

We know that and .

Let the point mass move a little, it can of course only move in a small arc along the circle due to the constraint imposed on it. Such displacement is called Virtual displacement. In terms of it’s , while in terms of it’s

The following formula relates this change in the generalized coordinates () to that of the change in natural coordinates ().

The term is a measure of how much change in happens for a unit change in , keeping all other generalized coordinates constant - that’s what partial differentiation is.

So by multiplying with , you get the contributed of the generalized coordinate - in the displacement .

Summing over all these contributions (from to ) we get the net virtual displacement .

Coming back to our example, we can therefore note that

Credits to Maschen - for this image, CC0, Link
wikiImage

This makes sense as for small displacement, the shown in the figure will be a straight line, thus instead of a sector, we have a right angled triangle with , and as the sides. will be the length of the arc which is .

So from pythagoras theorem we have .

And sure enough this fits in with our “derived” relationship between the generalized and natural coordinates.

You can also try doing this with rather than like how I showed above. Where is the length of the curve traced out by the point mass from some reference point.

I thought of writing it up but it turns out that the length of a curve from to is . Which is kinda complicated,

Well as always let me know if you have any thoughts on my post.

Written with StackEdit.