Generalized coordinates

From Wikipedia, the free encyclopedia
Jump to navigation Jump to search

Template:Short description Template:Sidebar with collapsible lists

In analytical mechanics, generalized coordinates are a set of parameters used to represent the state of a system in a configuration space. These parameters must uniquely define the configuration of the system relative to a reference state.[1] The generalized velocities are the time derivatives of the generalized coordinates of the system. The adjective "generalized" distinguishes these parameters from the traditional use of the term "coordinate" to refer to Cartesian coordinates.

An example of a generalized coordinate would be to describe the position of a pendulum using the angle of the pendulum relative to vertical, rather than by the x and y position of the pendulum.

Although there may be many possible choices for generalized coordinates for a physical system, they are generally selected to simplify calculations, such as the solution of the equations of motion for the system. If the coordinates are independent of one another, the number of independent generalized coordinates is defined by the number of degrees of freedom of the system.[2][3]

Generalized coordinates are paired with generalized momenta to provide canonical coordinates on phase space.

Constraints and degrees of freedom

Script error: No such module "Multiple image". Script error: No such module "Multiple image".

Generalized coordinates are usually selected to provide the minimum number of independent coordinates that define the configuration of a system, which simplifies the formulation of Lagrange's equations of motion. However, it can also occur that a useful set of generalized coordinates may be dependent, which means that they are related by one or more constraint equations.

Holonomic constraints

Script error: No such module "Multiple image".

For a system of Template:Mvar particles in 3D real coordinate space, the position vector of each particle can be written as a 3-tuple in Cartesian coordinates:

𝐫1=(x1,y1,z1),𝐫2=(x2,y2,z2),𝐫N=(xN,yN,zN)

Any of the position vectors can be denoted rkScript error: No such module "Check for unknown parameters". where k = 1, 2, …, NScript error: No such module "Check for unknown parameters". labels the particles. A holonomic constraint is a constraint equation of the form for particle Template:Mvar[4]Template:Efn

f(𝐫k,t)=0

which connects all the 3 spatial coordinates of that particle together, so they are not independent. The constraint may change with time, so time Template:Mvar will appear explicitly in the constraint equations. At any instant of time, any one coordinate will be determined from the other coordinates, e.g. if Template:Mvar and Template:Mvar are given, then so is Template:Mvar. One constraint equation counts as one constraint. If there are Template:Mvar constraints, each has an equation, so there will be Template:Mvar constraint equations. There is not necessarily one constraint equation for each particle, and if there are no constraints on the system then there are no constraint equations.

So far, the configuration of the system is defined by 3NScript error: No such module "Check for unknown parameters". quantities, but Template:Mvar coordinates can be eliminated, one coordinate from each constraint equation. The number of independent coordinates is n = 3NCScript error: No such module "Check for unknown parameters".. (In Template:Mvar dimensions, the original configuration would need Template:Mvar coordinates, and the reduction by constraints means n = NDCScript error: No such module "Check for unknown parameters".). It is ideal to use the minimum number of coordinates needed to define the configuration of the entire system, while taking advantage of the constraints on the system. These quantities are known as generalized coordinates in this context, denoted qj(t)Script error: No such module "Check for unknown parameters".. It is convenient to collect them into an Template:Mvar-tuple

𝐪(t)=(q1(t), q2(t), , qn(t))

which is a point in the configuration space of the system. They are all independent of one other, and each is a function of time. Geometrically they can be lengths along straight lines, or arc lengths along curves, or angles; not necessarily Cartesian coordinates or other standard orthogonal coordinates. There is one for each degree of freedom, so the number of generalized coordinates equals the number of degrees of freedom, Template:Mvar. A degree of freedom corresponds to one quantity that changes the configuration of the system, for example the angle of a pendulum, or the arc length traversed by a bead along a wire.

If it is possible to find from the constraints as many independent variables as there are degrees of freedom, these can be used as generalized coordinates.[5] The position vector rkScript error: No such module "Check for unknown parameters". of particle Template:Mvar is a function of all the Template:Mvar generalized coordinates (and, through them, of time),[6][7][8][5][nb 1]

𝐫k=𝐫k(𝐪(t)),

and the generalized coordinates can be thought of as parameters associated with the constraint.

The corresponding time derivatives of qScript error: No such module "Check for unknown parameters". are the generalized velocities,

𝐪˙=d𝐪dt=(q˙1(t), q˙2(t), , q˙n(t))

(each dot over a quantity indicates one time derivative). The velocity vector vkScript error: No such module "Check for unknown parameters". is the total derivative of rkScript error: No such module "Check for unknown parameters". with respect to time

𝐯k=𝐫˙k=d𝐫kdt=j=1n𝐫kqjq˙j.

and so generally depends on the generalized velocities and coordinates. Since we are free to specify the initial values of the generalized coordinates and velocities separately, the generalized coordinates Template:Mvar and velocities dqj/dtScript error: No such module "Check for unknown parameters". can be treated as independent variables.

Non-holonomic constraints

A mechanical system can involve constraints on both the generalized coordinates and their derivatives. Constraints of this type are known as non-holonomic. First-order non-holonomic constraints have the form

g(𝐪,𝐪˙,t)=0,

An example of such a constraint is a rolling wheel or knife-edge that constrains the direction of the velocity vector. Non-holonomic constraints can also involve next-order derivatives such as generalized accelerations.

Physical quantities in generalized coordinates

Kinetic energy

The total kinetic energy of the system is the energy of the system's motion, defined as[9]

T=12k=1Nmk𝐫˙k𝐫˙k,

in which · is the dot product. The kinetic energy is a function only of the velocities vkScript error: No such module "Check for unknown parameters"., not the coordinates rkScript error: No such module "Check for unknown parameters". themselves. By contrast an important observation is[10]

𝐫˙k𝐫˙k=i,j=1n(𝐫kqi𝐫kqj)q˙iq˙j,

which illustrates the kinetic energy is in general a function of the generalized velocities, coordinates, and time if the constraints also vary with time, so T = T(q, dq/dt, t)Script error: No such module "Check for unknown parameters"..

In the case the constraints on the particles are time-independent, then all partial derivatives with respect to time are zero, and the kinetic energy is a homogeneous function of degree 2 in the generalized velocities.

Still for the time-independent case, this expression is equivalent to taking the line element squared of the trajectory for particle Template:Mvar,

dsk2=d𝐫kd𝐫k=i,j=1n(𝐫kqi𝐫kqj)dqidqj,

and dividing by the square differential in time, dt2Script error: No such module "Check for unknown parameters"., to obtain the velocity squared of particle Template:Mvar. Thus for time-independent constraints it is sufficient to know the line element to quickly obtain the kinetic energy of particles and hence the Lagrangian.[11]

It is instructive to see the various cases of polar coordinates in 2D and 3D, owing to their frequent appearance. In 2D polar coordinates (r, θ)Script error: No such module "Check for unknown parameters".,

(dsdt)2=r˙2+r2θ˙2,

in 3D cylindrical coordinates (r, θ, z)Script error: No such module "Check for unknown parameters".,

(dsdt)2=r˙2+r2θ˙2+z˙2,

in 3D spherical coordinates (r, θ, φ)Script error: No such module "Check for unknown parameters".,

(dsdt)2=r˙2+r2θ˙2+r2sin2θφ˙2.

Generalized momentum

The generalized momentum "canonically conjugate to" the coordinate Template:Mvar is defined by

pi=Lq˙i.

If the Lagrangian Template:Mvar does not depend on some coordinate Template:Mvar, then it follows from the Euler–Lagrange equations that the corresponding generalized momentum will be a conserved quantity, because the time derivative is zero implying the momentum is a constant of the motion;

Lqi=ddtLq˙i=p˙i=0.

Examples

Bead on a wire

File:Bead on wire constraint.svg
Bead constrained to move on a frictionless wire. The wire exerts a reaction force CScript error: No such module "Check for unknown parameters". on the bead to keep it on the wire. The non-constraint force NScript error: No such module "Check for unknown parameters". in this case is gravity. Notice the initial position of the wire can lead to different motions.

For a bead sliding on a frictionless wire subject only to gravity in 2d space, the constraint on the bead can be stated in the form f (r) = 0Script error: No such module "Check for unknown parameters"., where the position of the bead can be written r = (x(s), y(s))Script error: No such module "Check for unknown parameters"., in which Template:Mvar is a parameter, the arc length Template:Mvar along the curve from some point on the wire. This is a suitable choice of generalized coordinate for the system. Only one coordinate is needed instead of two, because the position of the bead can be parameterized by one number, Template:Mvar, and the constraint equation connects the two coordinates Template:Mvar and Template:Mvar; either one is determined from the other. The constraint force is the reaction force the wire exerts on the bead to keep it on the wire, and the non-constraint applied force is gravity acting on the bead.

Suppose the wire changes its shape with time, by flexing. Then the constraint equation and position of the particle are respectively

f(𝐫,t)=0,𝐫=(x(s,t),y(s,t))

which now both depend on time Template:Mvar due to the changing coordinates as the wire changes its shape. Notice time appears implicitly via the coordinates and explicitly in the constraint equations.

Simple pendulum

File:Pendulum constraint.svg
Simple pendulum. Since the rod is rigid, the position of the bob is constrained according to the equation f (x, y) = 0Script error: No such module "Check for unknown parameters"., the constraint force CScript error: No such module "Check for unknown parameters". is the tension in the rod. Again the non-constraint force NScript error: No such module "Check for unknown parameters". in this case is gravity.
File:Simple pendulum generalized coordinates.svg
Dynamic model of a simple pendulum.

The relationship between the use of generalized coordinates and Cartesian coordinates to characterize the movement of a mechanical system can be illustrated by considering the constrained dynamics of a simple pendulum.[12][13]

A simple pendulum consists of a mass Template:Mvar hanging from a pivot point so that it is constrained to move on a circle of radius Template:Mvar. The position of the mass is defined by the coordinate vector r = (x, y)Script error: No such module "Check for unknown parameters". measured in the plane of the circle such that Template:Mvar is in the vertical direction. The coordinates Template:Mvar and Template:Mvar are related by the equation of the circle

f(x,y)=x2+y2L2=0,

that constrains the movement of Template:Mvar. This equation also provides a constraint on the velocity components,

f˙(x,y)=2xx˙+2yy˙=0.

Now introduce the parameter Template:Mvar, that defines the angular position of Template:Mvar from the vertical direction. It can be used to define the coordinates Template:Mvar and Template:Mvar, such that

𝐫=(x,y)=(Lsinθ,Lcosθ).

The use of Template:Mvar to define the configuration of this system avoids the constraint provided by the equation of the circle.

Notice that the force of gravity acting on the mass Template:Mvar is formulated in the usual Cartesian coordinates,

𝐅=(0,mg),

where Template:Mvar is the acceleration due to gravity.

The virtual work of gravity on the mass Template:Mvar as it follows the trajectory rScript error: No such module "Check for unknown parameters". is given by

δW=𝐅δ𝐫.

The variation δrScript error: No such module "Check for unknown parameters". can be computed in terms of the coordinates Template:Mvar and Template:Mvar, or in terms of the parameter Template:Mvar,

δ𝐫=(δx,δy)=(Lcosθ,Lsinθ)δθ.

Thus, the virtual work is given by

δW=mgδy=mgLsin(θ)δθ.

Notice that the coefficient of δyScript error: No such module "Check for unknown parameters". is the Template:Mvar-component of the applied force. In the same way, the coefficient of δθScript error: No such module "Check for unknown parameters". is known as the generalized force along generalized coordinate Template:Mvar, given by

Fθ=mgLsinθ.

To complete the analysis consider the kinetic energy Template:Mvar of the mass, using the velocity,

𝐯=(x˙,y˙)=(Lcosθ,Lsinθ)θ˙,

so,

T=12m𝐯𝐯=12m(x˙2+y˙2)=12mL2θ˙2.

D'Alembert's form of the principle of virtual work for the pendulum in terms of the coordinates Template:Mvar and Template:Mvar are given by,

ddtTx˙Tx=Fx+λfx,ddtTy˙Ty=Fy+λfy.

This yields the three equations

mx¨=λ(2x),my¨=mg+λ(2y),x2+y2L2=0,

in the three unknowns, Template:Mvar, Template:Mvar and Template:Mvar.

Using the parameter Template:Mvar, those equations take the form

ddtTθ˙Tθ=Fθ,

which becomes,

mL2θ¨=mgLsinθ,

or

θ¨+gLsinθ=0.

This formulation yields one equation because there is a single parameter and no constraint equation.

This shows that the parameter Template:Mvar is a generalized coordinate that can be used in the same way as the Cartesian coordinates Template:Mvar and Template:Mvar to analyze the pendulum.

Double pendulum

File:Double-Pendulum.svg
A double pendulum

The benefits of generalized coordinates become apparent with the analysis of a double pendulum. For the two masses mi (i = 1, 2)Script error: No such module "Check for unknown parameters"., let ri = (xi, yi), i = 1, 2Script error: No such module "Check for unknown parameters". define their two trajectories. These vectors satisfy the two constraint equations,

f1(x1,y1,x2,y2)=𝐫1𝐫1L12=0

and

f2(x1,y1,x2,y2)=(𝐫2𝐫1)(𝐫2𝐫1)L22=0.

The formulation of Lagrange's equations for this system yields six equations in the four Cartesian coordinates xi, yi (i = 1, 2)Script error: No such module "Check for unknown parameters". and the two Lagrange multipliers λi (i = 1, 2)Script error: No such module "Check for unknown parameters". that arise from the two constraint equations.

Now introduce the generalized coordinates θi (i = 1, 2)Script error: No such module "Check for unknown parameters". that define the angular position of each mass of the double pendulum from the vertical direction. In this case, we have

𝐫1=(L1sinθ1,L1cosθ1),𝐫2=(L1sinθ1,L1cosθ1)+(L2sinθ2,L2cosθ2).

The force of gravity acting on the masses is given by,

𝐅1=(0,m1g),𝐅2=(0,m2g)

where Template:Mvar is the acceleration due to gravity. Therefore, the virtual work of gravity on the two masses as they follow the trajectories ri (i = 1, 2)Script error: No such module "Check for unknown parameters". is given by

δW=𝐅1δ𝐫1+𝐅2δ𝐫2.

The variations δri (i = 1, 2)Script error: No such module "Check for unknown parameters". can be computed to be

δ𝐫1=(L1cosθ1,L1sinθ1)δθ1,δ𝐫2=(L1cosθ1,L1sinθ1)δθ1+(L2cosθ2,L2sinθ2)δθ2

Thus, the virtual work is given by

δW=(m1+m2)gL1sinθ1δθ1m2gL2sinθ2δθ2,

and the generalized forces are

Fθ1=(m1+m2)gL1sinθ1,Fθ2=m2gL2sinθ2.

Compute the kinetic energy of this system to be

T=12m1𝐯1𝐯1+12m2𝐯2𝐯2=12(m1+m2)L12θ˙12+12m2L22θ˙22+m2L1L2cos(θ2θ1)θ˙1θ˙2.

Euler–Lagrange equation yield two equations in the unknown generalized coordinates θi (i = 1, 2)Script error: No such module "Check for unknown parameters". given by[14]

(m1+m2)L12θ¨1+m2L1L2θ¨2cos(θ2θ1)+m2L1L2θ2˙2sin(θ1θ2)=(m1+m2)gL1sinθ1,

and

m2L22θ¨2+m2L1L2θ¨1cos(θ2θ1)+m2L1L2θ1˙2sin(θ2θ1)=m2gL2sinθ2.

The use of the generalized coordinates θi (i = 1, 2)Script error: No such module "Check for unknown parameters". provides an alternative to the Cartesian formulation of the dynamics of the double pendulum.

Spherical pendulum

File:Spherical pendulum Lagrangian mechanics.svg
Spherical pendulum: angles and velocities.

For a 3D example, a spherical pendulum with constant length Template:Mvar free to swing in any angular direction subject to gravity, the constraint on the pendulum bob can be stated in the form

f(𝐫)=x2+y2+z2l2=0,

where the position of the pendulum bob can be written

𝐫=(x(θ,ϕ),y(θ,ϕ),z(θ,ϕ)),

in which (θ, φ)Script error: No such module "Check for unknown parameters". are the spherical polar angles because the bob moves in the surface of a sphere. The position rScript error: No such module "Check for unknown parameters". is measured along the suspension point to the bob, here treated as a point particle. A logical choice of generalized coordinates to describe the motion are the angles (θ, φ)Script error: No such module "Check for unknown parameters".. Only two coordinates are needed instead of three, because the position of the bob can be parameterized by two numbers, and the constraint equation connects the three coordinates (x, y, z)Script error: No such module "Check for unknown parameters". so any one of them is determined from the other two.

Generalized coordinates and virtual work

The principle of virtual work states that if a system is in static equilibrium, the virtual work of the applied forces is zero for all virtual movements of the system from this state, that is, δW = 0Script error: No such module "Check for unknown parameters". for any variation δrScript error: No such module "Check for unknown parameters"..[15] When formulated in terms of generalized coordinates, this is equivalent to the requirement that the generalized forces for any virtual displacement are zero, that is Fi = 0Script error: No such module "Check for unknown parameters"..

Let the forces on the system be Fj (j = 1, 2, …, m)Script error: No such module "Check for unknown parameters". be applied to points with Cartesian coordinates rj (j = 1, 2, …, m)Script error: No such module "Check for unknown parameters"., then the virtual work generated by a virtual displacement from the equilibrium position is given by

δW=j=1m𝐅jδ𝐫j.

where δrj (j = 1, 2, …, m)Script error: No such module "Check for unknown parameters". denote the virtual displacements of each point in the body.

Now assume that each δrjScript error: No such module "Check for unknown parameters". depends on the generalized coordinates qi (i = 1, 2, …, n)Script error: No such module "Check for unknown parameters". then

δ𝐫j=𝐫jq1δq1++𝐫jqnδqn,

and

δW=(j=1m𝐅j𝐫jq1)δq1++(j=1m𝐅j𝐫jqn)δqn.

The Template:Mvar terms

Fi=j=1m𝐅j𝐫jqi,i=1,,n,

are the generalized forces acting on the system. Kane[16] shows that these generalized forces can also be formulated in terms of the ratio of time derivatives,

Fi=j=1m𝐅j𝐯jq˙i,i=1,,n,

where vjScript error: No such module "Check for unknown parameters". is the velocity of the point of application of the force FjScript error: No such module "Check for unknown parameters"..

In order for the virtual work to be zero for an arbitrary virtual displacement, each of the generalized forces must be zero, that is

δW=0Fi=0,i=1,,n.

See also

Template:Sister project

Notes

<templatestyles src="Reflist/styles.css" />

  1. Some authors e.g. Hand & Finch take the form of the position vector for particle Template:Mvar, as shown here, as the condition for the constraint on that particle to be holonomic.

Script error: No such module "Check for unknown parameters".

Template:Notelist

References

  1. Script error: No such module "Footnotes"., p. 397,  §7.2.1 Selection of generalized coordinates
  2. Script error: No such module "citation/CS1".
  3. Script error: No such module "citation/CS1".
  4. Script error: No such module "Footnotes".
  5. a b Script error: No such module "Footnotes".
  6. Script error: No such module "Footnotes".
  7. Script error: No such module "Footnotes".
  8. Script error: No such module "Footnotes".
  9. Script error: No such module "Footnotes".
  10. Script error: No such module "Footnotes".
  11. Script error: No such module "Footnotes".
  12. Script error: No such module "citation/CS1".
  13. Richard Fitzpatrick, Newtonian Dynamics.
  14. Eric W. Weisstein, Double Pendulum, scienceworld.wolfram.com. 2007
  15. Script error: No such module "Footnotes".
  16. T. R. Kane and D. A. Levinson, Dynamics: theory and applications, McGraw-Hill, New York, 1985

Bibliography of cited references

  • Script error: No such module "citation/CS1".
  • Script error: No such module "citation/CS1".
  • Script error: No such module "citation/CS1".
  • Script error: No such module "citation/CS1".
  • Script error: No such module "citation/CS1".
  • Script error: No such module "citation/CS1".