Multibody Dynamics · Module 4 of 10

Kinematic Constraints and Joints

Every joint is really an equation. Write it once, differentiate it to get the Jacobian, and you have the machinery that a simulator uses to hold a mechanism together.

01

Readiness check

Tick only what you can do closed-notes before starting.

  • Differentiate x² + y² with respect to time.
  • Recall that a gradient points normal to a level curve.
  • State what a Jacobian matrix collects.
  • Recall the chain rule for a function of moving coordinates.
  • Distinguish a position condition from a velocity condition.
0 or 1 weak itemsContinue with this module.
2 weak itemsRevisit partial derivatives in Mathematics, multivariable calculus.
3 or more weak itemsReview coordinates and DOF in Module 3.
02

The core idea

A holonomic constraint is an equation on the coordinates, Φ(q) = 0. Its gradient, the constraint Jacobian Φ_q, turns the position condition into velocity and acceleration conditions that a solver enforces at every instant.

position: Φ(q) = 0velocity: Φ_q q̇ = 0acceleration: Φ_q q̈ = γ

A joint is a promise about geometry: a pin says two points coincide, a slider says a point stays on a line, a rod says a distance is fixed. Each promise is written as a constraint equation Φ(q) = 0 on the coordinates. Because the machine keeps moving, the constraint must hold at every instant, so we differentiate it. The first derivative gives the velocity constraint Φ_q q̇ = 0, where Φ_q is the Jacobian, the matrix of partial derivatives of the constraints with respect to the coordinates. The Jacobian is the single most important object in constrained multibody dynamics: it maps allowed velocities, supplies the directions of constraint forces, and appears in every equation of motion to come. Differentiating once more gives the acceleration constraint Φ_q q̈ = γ, whose right side γ gathers the lower-order velocity terms. Most joints are holonomic (position-level); a rolling wheel that cannot slip is nonholonomic, a constraint on velocities that cannot be integrated back to a position equation.

The skill works when: you write the joint as an equation first and get the Jacobian by honest differentiation.
The skill breaks down when: you try to enforce a rolling or no-slip condition as a position equation when it only exists at the velocity level.
The concept. A joint is an equation the bodies must satisfy. A rod of fixed length keeps a mass on a circle; the constraint gradient (green) points along the rod and is the row of the Jacobian.
03

The skills, taught in order

Five skills convert joints into the equations a solver enforces.

4.1 Write the constraint

Translate each joint into Φ(q) = 0. A distance constraint is x² + y² − L² = 0; a point-on-line constraint sets a coordinate to a fixed value. Getting Φ right is most of the work.

4.2 Build the Jacobian

Differentiate Φ with respect to the coordinates to get Φ_q. Each constraint contributes a row; each coordinate a column. The Jacobian is reused in kinematics and in dynamics.

4.3 Velocity analysis

Solve Φ_q q̇ = 0 (or a driven right side) for the velocities. Given the independent rates, the dependent ones follow from the Jacobian, which is how a mechanism’s velocities are found.

4.4 Acceleration analysis

Differentiate again to get Φ_q q̈ = γ. The term γ holds the velocity-squared pieces; solving gives accelerations, the bridge to the equations of motion.

4.5 Holonomic versus nonholonomic

Classify the constraint. Holonomic constraints reduce configuration freedom; nonholonomic ones (rolling without slipping) restrict velocities only and cannot be integrated to a position law.

Joint (planar)Constraint ideaRows removed
Revolute (pin)two points coincide2
Prismatic (slider)point on a line, no relative turn2
Distance / rodfixed separation1
Rolling (no slip)contact velocity zero1 (nonholonomic)

Each joint is one or more rows of Φ; the Jacobian stacks them for the whole system.

Engineering connection: a rolling wheel or a car tire is nonholonomic, which is exactly why parallel parking takes maneuvers a sideways-sliding block would not need.

04

Worked example 1: the Jacobian of a distance constraint

A point mass is held by a rigid rod of length L = 2 m to a fixed pivot at the origin. At the instant the mass is at (1.732, 1.0) m, write the constraint, its Jacobian, and the velocity condition.

Figure 1. At the position (1.732, 1.0) the Jacobian row is (3.464, 2.0). Velocities allowed by the joint are those perpendicular to it, so the mass slides along the circle.
  1. ProblemFind Φ, Φ_q, and the velocity constraint for the pendulum in Figure 1.
  2. Given / findL = 2 m, position (x, y) = (1.732, 1.0). Find the constraint equation, Jacobian row, and velocity constraint.
  3. AssumptionsRigid rod, frictionless pivot, planar motion; the rod length is exactly fixed.
  4. ModelDistance constraint Φ = x² + y² − L²; Jacobian Φ_q = (2x, 2y); velocity constraint Φ_q q̇ = 0.
  5. EquationsΦ = x² + y² − 4Φ_q = (2x, 2y)ẋx + ẏy = 0
  6. SolveCheck Φ: 1.732² + 1.0² − 4 = 3 + 1 − 4 = 0. Jacobian: (2·1.732, 2·1.0) = (3.464, 2.0).
  7. CheckThe Jacobian points radially outward along the rod, so the velocities it allows are perpendicular to it, tangent to the circle, exactly as a pendulum swings.
  8. ConclusionThe joint gives one constraint row (3.464, 2.0). Any velocity satisfying ẋx + ẏy = 0 keeps the rod length fixed.
Result. Φ_q = (3.464, 2.0); allowed velocities are tangent to the circle.
05

Worked example 2: the acceleration constraint

For the same rod (constraint x² + y² − 4 = 0), the mass moves along the circle with speed 3 m/s. Find the right side gamma of the acceleration constraint Φ_q q̈ = γ.

Figure 2. Differentiating the joint twice gives the acceleration constraint. Its right side gamma collects the velocity terms; here a speed of 3 m/s on the circle needs gamma = −18.
  1. ProblemFind gamma for the pendulum in Figure 2 at a speed of 3 m/s.
  2. Given / findΦ = x² + y² − 4, speed v = 3 m/s so ẋ² + ẏ² = 9. Find gamma.
  3. AssumptionsRigid rod; the velocity is tangent to the circle with magnitude 3 m/s.
  4. ModelDifferentiate the velocity constraint: d/dt(Φ_q q̇) = Φ_q q̈ + (dΦ_q/dt) q̇ = 0, so Φ_q q̈ = γ with γ = −2(ẋ² + ẏ²).
  5. EquationsΦ_q q̈ = 2x·ẍ + 2y·ÿγ = −2(ẋ² + ẏ²)
  6. Solveγ = −2(9) = −18.
  7. CheckThe negative value is the centripetal effect: even with no tangential acceleration, the rod must pull inward to bend the straight-line velocity onto the circle.
  8. ConclusionThe acceleration constraint reads 2x·ẍ + 2y·ÿ = −18. That right side feeds directly into the constrained equations of motion in Module 8.
Result. γ = −18, the velocity term of the acceleration constraint.
06

Misconceptions and diagnostics

MistakeSymptomDiagnostic questionCorrection
Forgetting to differentiate the constraintTrying to enforce position only, so velocities driftDid I write the velocity and acceleration forms?Differentiate Φ once and twice for the full set.
Wrong Jacobian sign or factorConstraint forces point the wrong wayIs Φ_q the true partial derivative?Recompute Φ_q term by term from Φ.
Treating rolling as holonomicExpecting a no-slip wheel to have a position lawCan this condition be integrated to Φ(q)=0?Rolling is nonholonomic; enforce it at the velocity level.
Dropping the gamma termAccelerations violate the constraintDid I keep the velocity-squared terms?Include γ = −(Φ_q q̇)_q q̇ on the right side.
07

Practice ladder

Level 1 · Direct skill

For Φ = x − 3 = 0 (a point held on a vertical line x = 3), write the Jacobian row and the velocity constraint.

Show answer

Φ_q = (1, 0); velocity constraint ẋ = 0. The point may move only in y.

Level 2 · Mixed concept

A rod constraint x² + y² − 25 = 0 holds at (3, 4). Write the Jacobian and check the constraint.

Show answer

Φ = 9 + 16 − 25 = 0; Φ_q = (2x, 2y) = (6, 8).

Level 3 · Independent problem

For the rod x² + y² − 4 = 0 moving at 2 m/s along the circle, find gamma.

Show answer

γ = −2(ẋ² + ẏ²) = −2(4) = −8.

Transfer task | Real engineering

Pick a joint from a machine you know, write its constraint equation, and differentiate to the velocity level.

What good work looks like

A good answer states Φ(q) = 0 for the joint, forms the Jacobian by differentiation, and writes Φ_q q̇ = 0, noting whether the constraint is holonomic.

08

Working with AI, and proving it yourself

Ask AI to check your Jacobian, not to guess the joint

"Differentiate this constraint and confirm my Jacobian row."
"Classify these five constraints as holonomic or nonholonomic and I will check."
"Set up the constraints for me." Writing Φ(q) = 0 is the skill.
"What is the pendulum equation?" Deriving the Jacobian yourself is the point.

Portfolio task

For one mechanism, write every joint constraint, assemble the full Jacobian, and confirm its number of rows equals the constraints you counted in Module 3.

Must include: a constraint equation per joint, an assembled Jacobian, and a row count that matches the mobility bookkeeping.
09

Retrieval and spaced review

Closed notes. Answer out loud, then reveal.

1. What is a holonomic constraint?

An equation on the coordinates, Φ(q) = 0.

2. What does the constraint Jacobian collect?

The partial derivatives Φ_q of the constraints with respect to the coordinates.

3. Write the velocity constraint.

Φ_q q̇ = 0 (or a driven right side).

4. What does gamma represent?

The velocity-dependent right side of the acceleration constraint Φ_q q̈ = γ.

5. Why is rolling nonholonomic?

It restricts velocities but cannot be integrated to a position equation.

TodayFinish this quiz and Levels 1 and 2 of the ladder.
+1 dayRe-derive gamma = −18 from a blank page.
+3 daysForm the Jacobian for three new joints.
+7 daysMove on to mass and inertia in Module 5.
+30 daysReuse the constraint-then-differentiate habit for every joint you model.
10

Textbook mapping

Kinematic relationships and joint constraints are developed in Wittenburg’s formalism. Use these references to read further.

Topic in this moduleWhere to read more
Constraints and kinematic relationshipsWittenburg, Dynamics of Multibody Systems, ch. 5
Systematic joint descriptionSol, Kinematics and Dynamics of Multibody Systems (1983)
Jacobian and constraint equationsNikravesh, Computer-Aided Analysis of Mechanical Systems

Chapter references are to Wittenburg, Dynamics of Multibody Systems (Springer); the systematic connection treatment follows Sol (1983).