To find how a bead on a wire or a pendulum on a rod moves without solving for unknown normal forces and tensions, we replace x,y,z with coordinates that only trace out the allowed path.
1
Constraints, Degrees of Freedom, and Generalized Coordinates
We want to find the minimum number of independent coordinates needed to give every particle's position in a constrained system.
Constraints, Degrees of Freedom, and Generalized Coordinates
Each independent constraint equation ties coordinates together and removes one independent choice from the system. For N particles moving in 3D space with k independent constraint equations, the number of degrees of freedom is
If the motion stays in a 2D plane, each particle starts with 2 coordinates instead of 3, so n=2N−k. Once we know n, we choose n independent generalized coordinatesq1,q2,…,qn (such as an angle θ or an arc length s) that describe the allowed positions directly.
Turning the single dial θ to any value automatically places (x,y) on the circle x2+y2=L2 without ever stretching the rod, so the rod's tension disappears from the coordinate description.
Turn one angle dial to see how it sets both the x and y positions on the circle while keeping the rod length fixed.
2
Holonomic and Non-Holonomic Constraints
Before we cross out a coordinate for every rule in a problem, we need to check whether the constraint actually keeps the system on a smaller surface of allowed positions.
Holonomic and Non-Holonomic Constraints
When a constraint equation is given in terms of velocities (x˙,y˙,θ˙), we check whether it is just the time derivative dtdf=0 of a position equation f=0, or a velocity rule that cannot be integrated.
Text solution
Integrable velocity constraint (holonomic)Rewrite xx˙+yy˙=0 as a single time derivative using the chain rule in reverse, then integrate with respect to time to get back the position constraint.
xdtdx+ydtdy=dtd(21x2+21y2)=0⟹x2+y2−L2=0
Match coefficients for the non-slipping carIf the car's velocity constraint −x˙sinθ+y˙cosθ=0 came from differentiating a position function dtdf(x,y,θ)=∂x∂fx˙+∂y∂fy˙+∂θ∂fθ˙=0, its partial derivatives would have to match term by term.
∂x∂f=−sinθ,∂y∂f=cosθ,∂θ∂f=0
Check mixed partial derivatives (non-holonomic)Differentiate ∂x∂f with respect to θ and compare it against ∂x∂(∂θ∂f) to see if a smooth function f(x,y,θ) can exist.
∂θ∂(∂x∂f)=−cosθ=∂x∂(∂θ∂f)=0
Because the mixed partial derivatives do not match, the car's rule as written is not dtdf=0 for any f. That check alone isn't the whole test, because a velocity rule can become a time derivative after we multiply it by a function: yx˙−xy˙=0 fails the mixed-partial check, but divided by y2 it is dtd(yx)=0. For the car, multiplying by any function g would need ∂x∂f=−gsinθ,∂y∂f=gcosθ and ∂θ∂f=0. The last makes the first two independent of θ, yet their ratio is −tanθ. So the car's rule does not come from any position equation f(x,y,θ)=const, and all 3 coordinates (x,y,θ) are still needed to give the car's position and heading in the lot.
For a ball rolling without slipping on a flat table, bringing the ball back to the exact same (x,y) spot along different closed paths leaves the chalk dot at different 3D orientations, showing that the rolling constraint cannot fix orientation as a function of (x,y).
When you roll a ball back to its starting spot without slipping, the way it faces at the end depends on the path you took.
3
Energy in Generalized Coordinates: Cart and Pendulum
We now want to write a system's kinetic energy T and potential energy V in terms of its generalized coordinates qi and generalized velocities q˙i. Because physical speed comes from the Cartesian velocities in T=21m(x˙2+y˙2+z˙2), we cannot simply plug q˙ in for v; we first write the Cartesian positions (x,y) as functions of our dials qi and take their time derivatives.
Energy in Generalized Coordinates: Cart and Pendulum
Text solution
Choose generalized coordinatesTwo independent dials describe the system in the plane: the cart's horizontal position q1=X and the pendulum's angle from the vertical q2=θ.
q1=X,q2=θ
Write Cartesian positions in terms of X and θUse the right triangle of the rod to write the positions of the cart and the bob so that (x−X)2+y2=L2 holds automatically.
xcartycart=X,=0
xy=X+Lsinθ,=−Lcosθ
Differentiate with respect to timeUse the chain rule to find the bob's horizontal and vertical velocity components as both X and θ change with time.
x˙y˙=X˙+Lcosθθ˙,=Lsinθθ˙
Square and add the bob's velocity componentsExpand x˙2+y˙2 and factor out L2θ˙2 to simplify with cos2θ+sin2θ=1.
Assemble T and VAdd the kinetic energies of the cart and bob, and write the gravitational potential energy from the bob's vertical height y.
T(X,θ,X˙,θ˙)=21MX˙2+21m(X˙2+2LX˙θ˙cosθ+L2θ˙2)
V(θ)=mgy=−mgLcosθ
So the energies depend only on the two unconstrained dials (X,θ) and their rates (X˙,θ˙), with the cross term 2LX˙θ˙cosθ showing how the sliding cart and swinging rod combine in the bob's horizontal speed.
4
Moving Constraints: The Driven Pendulum
Now suppose a motor shakes the pivot horizontally on a fixed schedule xpivot(t)=Acos(ωt), making the constraint time-dependent (rheonomic). We want to find the bob's kinetic energy T(θ,θ˙,t) and potential energy V(θ) when the pivot motion is driven by the motor rather than free to slide.
Moving Constraints: The Driven Pendulum
Whenever a position equation x(q1,…,qn,t) contains time t explicitly, the chain rule adds the velocity of the moving constraint itself to the velocity coming from the dials:
x˙=from turning the dials qi∂q1∂xq˙1+⋯+∂qn∂xq˙n+from the movingconstraint∂t∂x
Text solution
Write Cartesian positions in terms of θ and tBecause the motor holds the pivot at Acos(ωt), only q1=θ remains as a generalized coordinate, and t enters x explicitly.
x(θ,t)y(θ,t)=Acos(ωt)+Lsinθ,=−Lcosθ
Take the total time derivativeAdd the swing term ∂θ∂xθ˙ and the explicit motor velocity ∂t∂x to get x˙.
x˙y˙=∂θ∂xθ˙+∂t∂x=Lcosθθ˙−Aωsin(ωt),=Lsinθθ˙
Square and add the velocity componentsExpand x˙2+y˙2 and combine the θ˙2 terms using cos2θ+sin2θ=1.
In the free-cart T, every term was a product of two velocities. Because of the ∂t∂x term from the moving pivot, T(θ,θ˙,t) now includes a term with a single factor of θ˙ and a term A2ω2sin2(ωt) with no velocity at all, which depends purely on time.
The bob's velocity combines its swing velocity ∂θ∂rθ˙ and the pivot's velocity ∂t∂r, so the bob gets kinetic energy from the motor even when θ˙=0.
On a moving track, the bob’s velocity is the sum of its swing around the pivot and the pivot’s own motion, so the bob keeps moving even when its angle is held still.
5
Virtual Work and the Four-Step Recipe
Why do normal forces and rod tensions drop out when we use q1,…,qn? A virtual displacementδr is a tiny nudge of the coordinates by δqi along the allowed surface with time held frozen (δt=0).
Virtual Work and the Four-Step Recipe
At a frozen instant δt=0, even a moving wire or pivot stands still, so nudging qi moves the particle purely tangent to the constraint surface while an ideal normal force N or tension pushes purely perpendicular to it:
δW=perpendicular toallowed surfaceN⋅tangent to allowedsurface at δt=0δr=0
Key concepts
To set up any constrained system for energy-based mechanics, start by deciding which rules actually eliminate coordinates. A constraint reduces the degrees of freedom (n=3N−k in 3D, or 2N−k in 2D) only if it is holonomic: an equation of positions and time f(r1,…,t)=0, or a velocity constraint that integrates into one, such as xx˙+yy˙=dtd(21x2+21y2)=0. Do not eliminate a coordinate when a velocity rule cannot be written as dtdf=0, even after multiplying it by a function (like a car's no-sideslip condition −x˙sinθ+y˙cosθ=0 or a ball rolling on a table) or when the rule is an inequality like r≤R; those are non-holonomic and still need every coordinate to give the position. Likewise, if a motor drives a pivot or wire on a known schedule like xpivot(t)=Acos(ωt), do not give a generalized coordinate to the motor: the constraint is rheonomic (time-dependent, rather than scleronomic, which is independent of time), so t goes directly into the position equations.
Once you have picked n independent dials q1,…,qn, never plug q˙i straight into 21mq˙2 for kinetic energy. For an angle θ,21mθ˙2 does not even have units of energy! Always go through Cartesian coordinates in four steps:
Key concept
Count n=3N−k and choose n independent generalized coordinates q1,…,qn.
Key concept
Write the Cartesian positions x,y,z of each mass in terms of qi (and t if the constraint moves), such as x(θ,t)=Acos(ωt)+Lsinθ and y(θ)=−Lcosθ.
Key concept
Differentiate with respect to time using the chain rule, including the explicit moving-constraint term ∂t∂x whenever t appears in the position equation:
x˙=∂q1∂xq˙1+⋯+∂qn∂xq˙n+∂t∂x
Key concept
Substitute the Cartesian velocities and heights into T=21m(x˙2+y˙2+z˙2) and V=mgy. Because a virtual displacement δr=∑i∂qi∂rδqi taken at frozen time (δt=0) points purely along the constraint surface at that instant, ideal normal forces and tensions are perpendicular to δr and do zero virtual work (δW=N⋅δr=0).
6
Practice
1
Three particles move in 3D space, joined to one another by three rigid rods of fixed lengths L12,L23, and L31 so that they form a rigid triangle. Write the constraint equations for the system, use n=3N−k to find the number of degrees of freedom, and explain what those degrees of freedom represent physically.
Because a triangle is flat, it is tempting to use the 2D formula 2N−k=2(3)−3=3, which only counts motion if the triangle were trapped inside a fixed 2D plane. Here the particles move in 3D space, so they start with 3N=9 coordinates.
Start with the total number of coordinates for N=3 particles in 3D space, and write one Pythagorean distance equation for each of the three rods.
Let the positions of the three particles be (x1,y1,z1),(x2,y2,z2), and (x3,y3,z3). The three rigid rods give k=3 independent distance constraints:
(x1−x2)2+(y1−y2)2+(z1−z2)2−L122=0
(x2−x3)2+(y2−y3)2+(z2−z3)2−L232=0
(x3−x1)2+(y3−y1)2+(z3−z1)2−L312=0
With N=3 particles moving in 3D space and k=3 independent constraint equations, the number of degrees of freedom is
n=3N−k=3(3)−3=6.
(Watch out: Because a triangle is flat, it is tempting to use the 2D formula 2N−k=2(3)−3=3, which only counts motion if the triangle were trapped inside a fixed 2D plane. Here the particles move in 3D space, so they start with 3N=9 coordinates.)
Physically, 3 degrees of freedom give the (x,y,z) position of the triangle's center in 3D space, and the remaining 3 degrees of freedom are angles that give the 3D orientation of the rigid triangle.
2
A bead of mass m slides without friction along a rigid, stationary wire bent into the parabola y=ax2 in a vertical (x,y) plane, where a is a constant and gravity g points in the −y direction. How many degrees of freedom does the bead have? Using the horizontal position q=x as the generalized coordinate, write the Cartesian position and velocity equations and find the kinetic energy T(q,q˙) and potential energy V(q).
Write both x and y in terms of q, then use the chain rule to differentiate y=aq2 with respect to time t before substituting into T=21m(x˙2+y˙2).
The bead moves in a 2D plane (2 coordinates) with 1 holonomic constraint equation, y−ax2=0, so it has
n=2−1=1 degree of freedom.
Choosing q=x as the generalized coordinate gives the position equations:
x=q,y=aq2.
Taking the time derivative of each coordinate using the chain rule gives the Cartesian velocities:
x˙=q˙,y˙=dtd(aq2)=2aqq˙.
(Watch out: Two common slips here are forgetting y˙ altogether, which gives T=21mq˙2, or differentiating aq2 with respect to q instead of t and writing y˙=2aq without the chain-rule factor q˙, which gives 21m(q˙2+4a2q2) and doesn't even have units of energy.)
Substituting x˙ and y˙ into the kinetic energy T=21m(x˙2+y˙2) gives
T(q,q˙)=21m(q˙2+(2aqq˙)2)=21m(1+4a2q2)q˙2.
The gravitational potential energy V=mgy is
V(q)=mgaq2.
3
Consider two velocity constraints: (a) A particle moving in a 2D plane whose velocity components obey yx˙+xy˙=0. (b) A particle moving in 3D space whose velocity components obey zx˙+y˙=0. Determine whether each constraint is holonomic or non-holonomic by testing whether it can be written in the form dtdf=0 for a position function f, and state how many coordinates are needed to give the particle's position in each case.
Match the coefficients of x˙,y˙,z˙ against the chain-rule expansion ∂x∂fx˙+∂y∂fy˙+∂z∂fz˙=0, and check whether the mixed partial derivatives of f agree.
(a) (Watch out: Don't assume a constraint is non-holonomic just because it is written with velocity dots x˙ and y˙; always check whether it integrates first.) By the product rule (chain rule in reverse), the left-hand side of yx˙+xy˙=0 is an exact time derivative:
ydtdx+xdtdy=dtd(xy)=0.
Integrating with respect to time gives the position constraint xy−C=0, where C is a constant. Because it integrates to an equation of positions alone, the constraint is holonomic. It keeps the particle on a 1D hyperbola in the 2D plane, reducing the required coordinates from 2 down to 1 generalized coordinate.
(b) Suppose there were a position function f(x,y,z) such that dtdf(x,y,z)=0 gave zx˙+y˙=0. Expanding by the chain rule gives
∂x∂fx˙+∂y∂fy˙+∂z∂fz˙=0.
Matching coefficients with zx˙+y˙=0 requires
∂x∂f=z,∂y∂f=1,∂z∂f=0.
(Watch out: Do not treat z as a constant and integrate zx˙+y˙=0 to zx+y=C; differentiating zx+y gives zx˙+xz˙+y˙=0, which has an extra xz˙ term that is not zero.) Checking the mixed partial derivatives with respect to x and z shows a mismatch:
∂z∂(∂x∂f)=1=∂x∂(∂z∂f)=0.
So zx˙+y˙ is not itself dtdf. Multiplying the constraint by a function g first doesn't help: we would need ∂x∂f=gz,∂y∂f=g and ∂z∂f=0. The last makes f, and so g=∂y∂f, independent of z, and then ∂x∂f=gz depends on z unless g=0. Therefore, the constraint does not come from any position equation f(x,y,z)=const. The constraint is non-holonomic, cannot eliminate a coordinate, and all 3 coordinates are still needed to give the particle's position.
4
A straight frictionless wire lies in a vertical (x,y) plane. A motor rotates the wire counterclockwise about the origin at a constant angular speed ω, so that the wire makes an angle θ(t)=ωt with the +x axis. A bead of mass m slides along the wire at a signed distance r from the origin, with gravity g pointing in the −y direction. Is the wire constraint scleronomic or rheonomic? Using q=r as the single generalized coordinate, find the Cartesian velocities x˙ and y˙ and the energies T(r,r˙,t) and V(r,t).
Leaving out the explicit time derivatives ∂t∂x and ∂t∂y drops the −rωsin(ωt) and +rωcos(ωt) terms, which misses the tangential speed rω from the rotating wire and leads to the wrong kinetic energy 21mr˙2.
Write x(r,t) and y(r,t) using trigonometry for the angle ωt, and include both ∂r∂r˙ and ∂t∂ when computing x˙ and y˙.
Because the angle of the wire θ(t)=ωt changes as a given function of time t, the constraint equation explicitly contains t and is rheonomic (and holonomic, leaving 1 degree of freedom, q=r).
The Cartesian coordinates of the bead in terms of r and t are
x(r,t)y(r,t)=rcos(ωt),=rsin(ωt).
Using x˙=∂r∂xr˙+∂t∂x and y˙=∂r∂yr˙+∂t∂y, the velocity components are
x˙=r˙cos(ωt)−rωsin(ωt),
y˙=r˙sin(ωt)+rωcos(ωt).
(Watch out: Leaving out the explicit time derivatives ∂t∂x and ∂t∂y drops the −rωsin(ωt) and +rωcos(ωt) terms, which misses the tangential speed rω from the rotating wire and leads to the wrong kinetic energy 21mr˙2.)
Squaring both velocity expressions and adding them gives
since the cross terms −2rωr˙cos(ωt)sin(ωt) and +2rωr˙sin(ωt)cos(ωt) cancel and cos2(ωt)+sin2(ωt)=1. Thus the kinetic and potential energies are
T(r,r˙)V(r,t)=21m(r˙2+r2ω2),=mgy=mgrsin(ωt).
5
For the motor-driven pendulum, the bob's position is x(θ,t)=Acos(ωt)+Lsinθ and y(θ,t)=−Lcosθ, and the rod tension FT always points along the rod toward the moving pivot. Find the components of a virtual displacement δr=(δx,δy) produced by a small nudge δθ, show mathematically that the tension does zero virtual work (δW=FT⋅δr=0), and explain why δr must be taken at frozen time (δt=0) for this cancellation to hold.
Hold time frozen (δt=0) to find δx=∂θ∂xδθ and δy=∂θ∂yδθ, then take the dot product with the tension vector FT=(−FTsinθ,FTcosθ).
A virtual displacement freezes time (δt=0) and nudges only the generalized coordinate θ by δθ:
δxδy=∂θ∂xδθ=Lcosθδθ,=∂θ∂yδθ=Lsinθδθ.
(Watch out: Do not use the actual displacement dx=Lcosθdθ−Aωsin(ωt)dt with dt=0; including the motor step −Aωsin(ωt)dt leaves a non-zero work term FTAωsinθsin(ωt)dt because the moving tension does real work on the bob over time dt.)
The vector from the moving pivot (Acos(ωt),0) to the bob is (Lsinθ,−Lcosθ), so the rod tension FT pointing back toward the pivot has components
FT=(−FTsinθ,FTcosθ).
Taking the dot product of FT with δr=(Lcosθδθ,Lsinθδθ) gives the virtual work:
Freezing time (δt=0) is needed because at a single instant the allowed circle is standing still, so δr points purely tangent to the circle while FT points purely radially along the rod. Over a real time step dt=0, the actual displacement dr=δr+∂t∂rdt includes the horizontal pivot motion (−Aωsin(ωt)dt,0), which is not perpendicular to the rod.