2.1.2 · D3Analytical Mechanics

Worked examples — Generalized coordinates — choosing them, degrees of freedom

4,448 words20 min readBack to topic

The scenario matrix

Before counting anything, let us map the territory. Every degrees-of-freedom problem falls into one of these cells. Each cell is a different way the counting can behave — and each has one worked example below.

Cell Case class What is tricky Example
A Single particle, one constraint (2D) the base case, sanity anchor Ex 1
B Many particles, several independent constraints subtracting the right Ex 2
C Rigid body (finite trick) use , not Ex 3
D Rheonomic (time-dependent) constraint is a parameter, not a DOF Ex 4
E Degenerate / dependent constraints writing more equations than count Ex 5
F Zero-DOF (fully pinned) limit means fixed, not broken Ex 6
G Non-holonomic (rolling) — formula fails velocity constraint ≠ position equation Ex 7
H Real-world word problem translating prose into and Ex 8
I Exam-style twist (coordinate pole) a good coordinate breaks at a special point Ex 9

The axes of this matrix are: how many particles (one → many → rigid body → ∞), what kind of constraint (none → holonomic scleronomic → rheonomic → non-holonomic), and degenerate limits (dependent constraints, zero DOF, coordinate singularities). Together the nine cells tile the whole space.

Recall The two words you must not confuse

Scleronomic constraint ::: time does not appear: . Rheonomic constraint ::: time appears explicitly: ; still holonomic, still removes one DOF.


Ex 1 — Cell A: single particle, one constraint

  1. Count raw numbers. One particle in a plane means , so raw Cartesian numbers . Why this step? Always start from the most wasteful honest description — the parent's rule "start raw".
  2. Write the constraint as one equation. The bead stays on the ring: . This is one holonomic scleronomic constraint, so . Why this step? An equation lets us solve for one variable in terms of the other, killing one number.
  3. Subtract. . Why this step? Each independent holonomic constraint removes exactly one DOF.
  4. Choose the smart coordinate. Use the angle with . Why this step? Any automatically satisfies : the constraint is baked in and disappears.

Figure 1 — what to look at: the cyan circle is the wire (the constraint ); the amber dot is the bead; the amber arc measured from the positive -axis is the single coordinate ; the white dashed radius shows that fixing fixes the bead completely. Watch that exactly one thing varies as the bead slides — the size of the amber angle.

Figure — Generalized coordinates — choosing them, degrees of freedom

Verify: Substitute back: ✓ The constraint holds for every , confirming alone is complete. One coordinate ⇒ .


Ex 2 — Cell B: many particles, several constraints

  1. Raw count. ⇒ raw . Why this step? Three independent points, two numbers each ().
  2. List the rigid rods as equations. Write for the position vectors of the three masses (the bold- symbol defined in the box above). Sides fixed: , where each is the distance between two masses. That is . Why this step? Each fixed distance is one holonomic constraint equation.
  3. Check independence. Are these three truly independent? For a triangle, yes — fixing three sides fixes the shape but you cannot derive one length from the other two (except at degenerate collapse). So all three count. Why this step? The parent warns: only independent constraints subtract.
  4. Subtract. . Why this step? The rules-removed principle.
  5. Interpret. Those 3 DOF = 2 for the triangle's centre position + 1 for its orientation angle in the plane. This matches the "rigid body in 2D has 3 DOF" rule (2 translation + 1 rotation). Why this step? Cross-checking against the rigid-body rule confirms the count.

Verify: Independent check via the rigid-body shortcut: a rigid body in a 2D plane has DOF regardless of how many particles compose it. agrees. ✓


Ex 3 — Cell C: the rigid-body trick

  1. Do NOT use literally. With and the rigid constraints also become infinite, and is meaningless. Why this step? The naive formula chokes on rigid bodies — this is the trick the parent flags.
  2. Use the rigid-body shortcut. Every finite rigid body needs exactly numbers: 3 to say where it is (centre of mass ) and 3 to say how it is oriented. Why this step? Rigidity pins every particle once you know position + orientation of a reference frame glued to the body.
  3. Name the 3 orientation numbers. These are the Euler angles — see Rigid body kinematics — Euler angles. Why this step? You must be able to name the coordinates, not just count them.
  4. State their ranges and watch for their singularity. The three Euler angles do not roam freely: typically (first spin), (tilt), (final spin). At the tilt extremes or the first and third axes line up, so and turn the body about the same axis — you cannot tell them apart. This is gimbal lock: two of the three angle-coordinates momentarily merge, exactly like the pole trap of Ex 9. Why this step? Orientation coordinates have edge cases just like position ones; ignoring them makes you think a DOF was lost.
  5. The DOF is still despite gimbal lock. Gimbal lock is a defect of the chart , not of the body: the cube genuinely still has 3 free rotations there. As with Ex 9 you switch to a different chart (or use quaternions) near the singular tilt. Why this step? Never confuse a broken coordinate label with a lost degree of freedom.
  6. Total. . Why this step? Translation DOF plus rotation DOF.

Verify: is independent of particle count — the defining property of a rigid body. Consistent with the parent's " for a rigid body" box; gimbal lock does not reduce it. ✓


Ex 4 — Cell D: rheonomic (time-dependent) constraint

  1. Raw count. One bead in a plane: ⇒ raw . Why this step? Base description.
  2. Write BOTH constraints.
    • Angle forced: . Rather than the risky ratio form, write it as the clean equation (this is just "the point lies on the line at angle ").
    • Radius forced: . Each contains explicitly — both are rheonomic but still holonomic. So . Why this step? Time-dependent equations still count as constraints; is a parameter we cannot vary.
  3. Note why the pole-free angle form is used, not . The ratio form is only valid where ; it blows up (division by zero) whenever the wire points straight up, i.e. , where is infinite. The form has no pole: it stays finite and correct for every angle including the vertical. Why this step? We must confirm the constraint we subtract is valid in every case, including the degenerate orientation — otherwise the count silently fails at those instants.
  4. Subtract. . Why this step? Two independent equations remove two numbers.
  5. Interpret. means the bead's position is a fully determined function of time — no freedom at all: . Why this step? Zero DOF does not mean "no motion" — it means motion is prescribed, not free (contrast Ex 6).

Verify: Plug back at any : ✓, and the pole-free angle equation ✓. Both hold with no free coordinate left, confirming .


Ex 5 — Cell E: degenerate / dependent constraints

  1. List what they wrote. : three sides + one area. Why this step? We must audit independence, not just count equations.
  2. Test independence. The area of a triangle is fully determined by its three side lengths (Heron's formula: with ). So the area equation is a consequence of the three side equations, not new information. Why this step? The parent's rule: a constraint that follows logically from others does not reduce DOF.
  3. Recount. Independent constraints . Therefore , matching Ex 2. Why this step? Only independent constraints subtract.

Verify: With (a right triangle), Heron gives , Area . The area is pinned once the sides are — so it carries no new restriction. Correct DOF , not . ✓


Ex 6 — Cell F: the zero-DOF limit

  1. Raw count. Two moving particles in a plane: ⇒ raw . (The pivots are fixed given points, not particles — they contribute no coordinates.) Why this step? Only the free masses carry coordinates; anchored points are constants.

  2. List the three independent rod equations — exactly , each a genuine written equation.

    • Rod pivot-1 → mass 1: (1 equation)
    • Rod mass 1 → mass 2: (1 equation)
    • Rod mass 2 → pivot-2: (1 equation) So , not 4 — there is no fourth equation, and I am not inventing one. Why this step? Honest accounting: every constraint subtracted must be an equation I can actually write down.
  3. Subtract. . Why this step? Three independent holonomic constraints remove three numbers from four.

  4. Interpret — this is a one-DOF linkage, not zero. Equations (1) and (3) confine each mass to its own circle about its pivot; equation (2) links them. For generic pivot spacing this "four-bar-like" mechanism still has one freedom: turning the input rod at drives the whole chain. So . Why this step? We must report the number the honest count gives, even when intuition guessed "locked".

  5. Now truly reach zero DOF (the pinned limit). Add a fourth rigid rod, from mass 1 directly to a third fixed pivot : (equation 4). With mass 1 now tied to two fixed pivots ( and ), its position is pinned; equation (2) then pins mass 2. Now independent equations and Why this step? is only legitimate when four honest independent equations are present. This delivers the genuine locked-truss limit the matrix promised.

  6. Read what means. Zero DOF = the whole structure is rigidly fixed in place: there is no number left to vary. Unlike Ex 4 (where meant motion prescribed by time), here means genuinely no motion at all. Why this step? The same number has two flavours — prescribed-by-time versus truly static — and the reader must be able to tell them apart.

Verify: The three-rod chain gives (a working linkage). The four-rod version gives (rigidly pinned). If any count returned you have over-counted constraints (revisit independence, Ex 5). Both results are . ✓


Ex 7 — Cell G: where the formula FAILS (non-holonomic)

  1. Describe the configuration. To locate the coin you need: contact point , heading angle (which way it points), and spin angle (how far it has rotated). That is 4 configuration numbers. Why this step? Before we can ask whether a constraint reduces anything, we must first fix the complete list of numbers that place the object — configuration means every number needed to pose it, ignoring for now how it got there.
  2. Write the rolling condition. Rolling-without-slipping ties velocities: . These involve — rates, not positions. (The dot means "rate of change with time".) Why this step? This is the crux: the constraint is on velocities.
  3. Try to integrate it into a position equation. You cannot: there is no function whose derivative gives these. The constraint is non-holonomic (see Constraints — holonomic vs non-holonomic). Why this step? subtracts position equations. A velocity constraint that will not integrate is not a position equation.
  4. Conclude the split. The configuration space stays 4-dimensional (the coin can be brought to any by clever manoeuvres), yet only 2 velocity directions are free at each instant. So "DOF" splits: 4 accessible configurations, 2 instantaneous freedoms. Why this step? This is exactly the parent's warning that "may not apply directly."

Figure 2 — what to look at: the cyan dashed curve is a path the contact point can trace on the table; the amber dot is the current contact ; the amber arrow is the heading (the direction the coin faces); the small white circle above shows the spin angle . Read the caption text on the figure — it states the key fact: 4 configuration numbers exist, but only 2 of their velocities are independently free, so the rolling law cannot be subtracted like a position equation.

Figure — Generalized coordinates — choosing them, degrees of freedom

Verify: Test integrability. If came from , then would have to stay constant — but itself changes as you steer, so is not a clean total differential. No integrating factor exists ⇒ genuinely non-holonomic ⇒ formula does not subtract it. Configuration DOF . ✓


Ex 8 — Cell H: real-world word problem

  1. Translate prose to particles + constraints. Treat the arm as its three link endpoints beyond the shoulder. Easier: recognise each joint is one free rotation angle. Why this step? Robot arms are cleanest counted joint-by-joint.
  2. Count the free angles directly. Shoulder angle , elbow angle , wrist angle — three independent angles, each freely choosable. Why this step? Every free joint that changes the configuration is one generalized coordinate.
  3. Cross-check with . Three moving endpoints in a plane: ⇒ raw . Constraints: each link has fixed length (3 equations), so : . Why this step? Two methods agreeing is your safety net.
  4. Answer. : you need three motors, one per joint. Why this step? DOF = number of independent controls.

Verify: Both methods give . A serial planar arm with revolute joints has DOF; here . ✓ Units: angles are dimensionless (radians) — legal generalized coordinates, confirming the parent's "coordinates need not be lengths."


Ex 9 — Cell I: exam twist — a coordinate that breaks at a pole

  1. Count DOF (coordinate-free). One particle in 3D: ⇒ raw ; one constraint ; so . Why this step? DOF is a property of the system, computed before choosing any coordinates.
  2. Choose coordinates. Polar angle (down from vertical) and azimuth (around): . Why this step? These two angles bake in the length constraint automatically.
  3. Find the singularity. At (mass hanging straight down) or (straight up), , so every value of gives the same point. The azimuth becomes meaningless — the coordinate chart degenerates. Why this step? See the figure: at the pole the amber -circle shrinks to a single point, so stops labelling anything.
  4. Resolve the trap. The DOF is still 2 everywhere. The system genuinely has two freedoms; only the labelling fails at the poles, not the physics. Near a pole you would switch to a different chart. Why this step? Exam punchline: coordinate singularities are artefacts of the choice, never of the DOF count.

Figure 3 — what to look at: the cyan circle is the sphere of radius the mass is confined to; the white dashed vertical line is the axis; the tilted amber ellipse is the circle of constant latitude that the azimuth sweeps; the white dot is the mass at angles ; the amber star at the top marks the pole . Watch the pole: that amber -circle collapses to a single point there, showing visually that carries no information while the DOF count stays .

Figure — Generalized coordinates — choosing them, degrees of freedom

Verify: Constraint check: ✓ for all — including at , where the answer is regardless of , confirming is redundant there. DOF throughout. ✓


Recall

Recall Rapid-fire scenario recall

Bead on a fixed hoop (2D) — DOF? ::: (angle ). Rigid planar triangle of 3 masses — DOF? ::: ( translation rotation). Free rigid body in 3D — DOF and why not ? ::: ; particle count is infinite so use position + orientation . What is gimbal lock, and does it lower the DOF? ::: At Euler tilt or the angles turn about the same axis and merge; it is a chart defect, DOF stays . Bead forced to AND — DOF? ::: ; both rheonomic constraints remove one each; motion fully prescribed by . Adding "area = const" to the three side-length constraints of a triangle changes how? ::: Not at all — area follows from sides (Heron), so it is dependent and does not count. Three-rod chain pinned at two fixed points — DOF? ::: (); a working linkage, not locked. A fourth independent rod is needed to reach . Rolling upright disk — configuration DOF, and does apply? ::: configuration numbers; formula does not subtract the rolling condition because it is non-holonomic (velocity constraint). Planar 3-joint robot arm — DOF? ::: (one angle per joint). Spherical pendulum — DOF, and what breaks at the pole? ::: ; the azimuth becomes meaningless at , but DOF stays — only the chart fails.


Connections