Generalized Coordinates and Configuration Space
Ask Newton where a double pendulum is, and he answers with six Cartesian numbers — two masses, three coordinates each — tied together by two constraint equations and policed by rod tensions he must compute along the way. Ask Lagrange, and he answers with two angles. Nothing else. The rods, the tensions, the bookkeeping — all of it vanishes into the choice of description, and what remains is the honest content of the problem: two numbers that can each run around a circle, so that the set of every shape the pendulum can take is a torus. The motion of the pendulum — all of its swings, flips, and chaos — is a single curve winding over that doughnut's surface. That is the move this article teaches, and it is the founding move of analytical mechanics: stop describing systems by where their atoms sit in space, and start describing them by any set of independent numbers that pins down the configuration — angles, arc lengths, ratios, whatever fits. These are generalized coordinates, and the space they chart, one point per possible shape of the system, is configuration space. The payoff is structural, not cosmetic. Constraints stop being equations you enforce and become geometry you inhabit: a bead on a wire is a one-dimensional world, a rigid body's orientations are the rotation group . Mechanics becomes the study of curves on manifolds — a viewpoint so durable it survived intact into quantum mechanics (path integrals sum over curves in configuration space) and now runs the motion planners of every robot arm shipping in 2026. This is the first brick of the Lagrangian edifice; lay it carefully.
- Generalized coordinates are any independent parameters that uniquely fix a system's configuration — angles, lengths, ratios; nothing Cartesian is required.
- For particles under independent holonomic constraints, the number needed is , the number of degrees of freedom.
- The set of all attainable configurations is an -dimensional manifold , the configuration space: a circle for a pendulum, a torus for a double pendulum, for a rigid body's orientation.
- The embedding carries the abstract description back to physical space; the chain rule gives linear in the , and the "cancellation of dots" becomes the workhorse identity of everything downstream.
- Kinetic energy in generalized coordinates is for time-independent constraints — the mass matrix is a metric on , and free motions are its geodesics.
- A point of is a photograph, not a movie: dynamics needs , which live in the -dimensional tangent bundle , the home of the Lagrangian.
- Key idea: pick independent parameters that build the constraints into the description from the start; the system then lives on an -dimensional manifold, and dynamics reduces to free motion of these parameters.
Where this lives today
Configuration space stopped being an abstraction the day machines had to plan their own motions. In robotics the term of art is literally C-space: a seven-joint manipulator arm is a point moving on a seven-dimensional torus-like manifold, workspace obstacles map to forbidden C-space regions, and the planning algorithms that ship in 2026-era industrial arms and humanoids — RRTs, probabilistic roadmaps, trajectory optimizers — all answer one question: find a curve through the allowed region of configuration space. Grasping-and-manipulation research spends most of its effort on the geometry and topology of these spaces before any dynamics enters; gimbal-lock avoidance in the wrist is exactly the chart-singularity problem of from this article, solved in production code by quaternion charts. The same picture organizes physics at the molecular scale. A protein of atoms lives in a -dimensional configuration space, and folding is the search for low-energy basins in that space; the energy landscapes community and the AlphaFold generation of structure predictors both work, in different languages, on the geography of . And when mechanics went quantum, configuration space kept its job: Feynman's path integral assigns amplitudes to curves in configuration space, and the wavefunction of a many-body system is a function on , not on physical space — a fact responsible for most of quantum theory's strangeness and all of quantum chemistry's computational cost.
The physical picture
Thread a bead onto a bent wire and ask: how much information does it take to say where the bead is? Three Cartesian coordinates is the wrong answer — they are shackled by two constraint equations (the bead cannot leave the wire) and carry redundant information. The right answer is one number: the arc length measured along the wire. Give me and I know everything; change and the bead moves in the only way it can. The wire's bends and kinks, which would torture the Cartesian description with position-dependent constraint forces, are silently absorbed into the meaning of . That one number is a generalized coordinate, and the wire itself — regarded abstractly as a one-dimensional line the bead lives on — is the configuration space. Now scale the idea up. A planar pendulum needs one angle , and since and are the same configuration, its configuration space is a circle . A double pendulum needs two angles, each periodic, so its configuration space is the product of two circles — a torus , an honest doughnut. Every possible contortion of the double pendulum is one point on that doughnut; every actual motion is a curve winding across it.
Three habits of mind make the machinery feel natural. First, a configuration is a photograph, not a movie: a point of configuration space records where everything is, and says nothing about where anything is going. Two identical photographs of a pendulum at its lowest point can hide wildly different fates — hanging at rest, or blasting through at ten radians per second. The dynamical state needs the pair , and that pair lives in a bigger space (the tangent bundle) that we will meet below. Second, coordinates are labels, not physics. You may chart the same configuration space by angles, by arc lengths, by any invertible relabeling, and no experiment can tell the difference; the art — most of the craft of problem-solving in this subject — is picking labels that make the equations pretty. Nature does not care that you measured from the downward vertical. Third, the space itself carries physics even before any equation of motion is written. That the double pendulum's space is a compact torus rather than an infinite plane already shapes what motions are possible; that a rigid body's orientation space cannot be covered by one smooth chart is precisely why every flight controller must manage gimbal lock or switch to quaternions. Topology is destiny.
The core equations
Everything begins with a declaration of independence. A system's configuration shall be specified by a tuple of independent parameters, whose number is fixed by the counting rule made precise in the degrees-of-freedom article:
where: — the -th generalized coordinate (an angle, a length, a ratio — anything); — the number of point particles; — the number of independent holonomic constraints, each one scalar equation of the kind classified in constraints and their classification. Independent means no is a function of the others; complete means the tuple pins the configuration uniquely. The count is intrinsic to the system; the choice of which parameters is gloriously free. The abstract labels must still connect to physical space — forces act on particles, not on angles. The bridge is the embedding map, which every problem's setup phase constructs explicitly:
where: — the Cartesian position of particle , written as a function of the generalized coordinates. The explicit appears only when the constraints themselves move — a bead on a rotating wire, a pendulum whose pivot is being shaken (the rheonomic case). For the double pendulum the map reads , : six Cartesian numbers manufactured from two angles, constraints satisfied automatically, forever, by construction.
We are deriving the two identities on which the entire Lagrangian formalism will run: the expansion of a particle's true velocity in terms of generalized velocities , and the innocent-looking "cancellation of dots" . The strategy is nothing but the multivariable chain rule applied to the embedding map (2), followed by careful bookkeeping of what depends on what. The point to watch is exactly that bookkeeping: on the tangent bundle, and are treated as independent variables — a convention that confuses everyone once, and which this derivation makes precise rather than mysterious.
Step 1. Differentiate the embedding along a motion. On an actual trajectory the coordinates are functions of time, , so the chain rule gives
where: — the generalized velocities; — the tangent vectors, pointing along the direction particle moves when coordinate alone is nudged; — the drift velocity imposed by moving constraints, zero in the scleronomic case. Why this is more than calculus: the vectors span, at each configuration, the directions of allowed motion — they are a moving basis for the constraint surface, and every legal velocity is a linear combination of them plus the drift.
Step 2. Read off the structure. The generalized velocities enter (3) linearly, with coefficients that depend only on and — not on any velocity. The velocity is thus a fixed, configuration-dependent linear machine fed by the .
Step 3. Differentiate with respect to a generalized velocity, treating as independent arguments:
where: only the term survives, because the coefficients and the drift are -independent. Why treating and as independent is legitimate: the derivative asks how responds when the system passes through the SAME configuration with a slightly different velocity — comparing neighboring states, not neighboring instants of one motion. States with equal and unequal are genuinely different points of the state space, so the partial derivative is well defined.
Step 4. Record the companion identity for later use. Differentiating (3) with respect to instead, and comparing with the total time derivative of , shows that — time differentiation and -differentiation commute on the embedding. Why both identities matter: the pair (4) and this commutation rule are precisely the two moves that will turn Newton's equations into the Euler–Lagrange equations one article downstream — they are the entire technical content of that future derivation, banked here. *Verified: Goldstein §1.4 and Landau–Lifshitz §1–2 state both identities in this form; check on the planar pendulum, : eq. (3) gives , and indeed .*
One more object completes the kinematic toolkit: the virtual displacement, the difference between neighboring configurations at frozen time,
where: — independent, arbitrary variations of the coordinates; the explicit-time drift of (3) is absent because by decree. Freezing time looks like a technicality and is anything but: for moving constraints the real displacement in time includes the constraint's own motion, while the virtual one probes only the directions the constraint currently permits. This distinction is the load-bearing wall of the principle of virtual work, where these become the test probes of statics; here we need only the definition.
Which formula answers which question
| you want | use | notes |
|---|---|---|
| how many coordinates a system needs | , eq. (1) | holonomic constraints only; details in the DOF article |
| to set up a problem in your chosen | the embedding , eq. (2) | write it once, differentiate forever |
| particle velocities from generalized ones | chain rule, eq. (3) | drift term only for moving constraints |
| the workhorse identity for Lagrangian proofs | cancellation of dots, eq. (4) | plus the commutation rule of Step 4 |
| constraint-respecting test displacements | , eq. (5) | frozen time; feeds virtual work |
| kinetic energy in the | , eq. (7) | scleronomic; from eq. (8) |
The geometry: configuration space and its tangent bundle
The set of every configuration the constraints allow is not just a list — it has a shape. It is a smooth -dimensional manifold, the configuration space : locally chartable by real numbers (that is what a coordinate system is), globally as curved or as wrapped as the constraints dictate. A motion of the system is a curve on ; solving a mechanics problem means finding which curves nature selects. Positions alone, however, do not determine futures. To launch a motion you must supply a configuration and a velocity, and the velocity at a point is a vector in the tangent space at that point. The full state space is therefore the collection of all (point, attached velocity) pairs — the tangent bundle:
where: — the tangent bundle, coordinatized by . This is the natural home of the Lagrangian function , and the doubling from to is why the equations of motion will be second-order in time: a point of underdetermines the future exactly by the missing velocities. (One more doubling awaits much later: replacing velocities by momenta trades for the phase space of Hamiltonian mechanics — same dimension, profoundly different geometry.)
Distance on is not measured with a ruler — it is measured with mass. The kinetic energy, rewritten in generalized coordinates, hands the manifold a natural metric, and that rewriting is short enough to do in full:
Go deeper · Derivation B · 2 minKinetic energy as a quadratic form and the mass metric
The goal is the master formula for kinetic energy in generalized coordinates: for time-independent constraints, is a homogeneous quadratic form , whose coefficient matrix — the mass matrix — is symmetric, positive-definite, and configuration-dependent. The strategy is direct substitution of the velocity expansion (3) into the Cartesian kinetic energy, then reading the resulting structure with a geometer's eye. Watch two things: where the scleronomic assumption enters (it kills the drift term, and with it any pieces linear in or independent of ), and the fact that depends on but never on — that is what "quadratic form" means and what makes the geometry clean.
Step 1. Start from the Cartesian kinetic energy of particles, . Why this is the honest starting point: whatever exotic coordinates we adopt, the physical kinetic energy is defined in the inertial Cartesian frame; the generalized-coordinate expression must be derived, not decreed.
Step 2. Substitute the velocity expansion. With scleronomic constraints, , so (3) collapses to — homogeneous linear in the generalized velocities. Why the drift's absence matters: keep it, and squaring would generate terms linear in and a term with no velocities at all — the rheonomic complications the second worked example exhibits concretely.
Step 3. Expand the dot product and swap summation order:
Step 4. Name the object in parentheses:
where: — the mass matrix (or mass metric): symmetric by inspection, positive-definite because for any nonzero velocity, and a function of configuration alone. Why "metric" is the right word: assigns a squared length to every small step in configuration space, weighted by how much mass each direction drags. With no forces acting, the system coasts along geodesics of this metric — straightest-possible lines in the mass geometry — which is the earliest glimpse of mechanics becoming geometry.
Step 5. Sanity-check on one particle in polar coordinates. The embedding gives tangent vectors and ; their dot products give , , , so — the formula every textbook quotes, now manufactured rather than memorized. Verified: Landau & Lifshitz §5 and Goldstein §1.4 give (7)–(8) in identical form; the polar-coordinate special case and the positive-definiteness argument match Arnold Ch. 4, where the geodesic reading is developed.
Go deeper · Derivation C · 2 minThe mass matrix of the double pendulum
The goal is to see the machinery of the previous derivation produce something with real teeth: the mass matrix of the planar double pendulum (masses , rod lengths , angles from the vertical), whose off-diagonal entry — the dynamical coupling between the two arms — is the seed of the system's celebrated chaos. The strategy is the assembly line just built: write the embedding, differentiate for the tangent vectors, take dot products weighted by mass. The step to watch is the cross term: it appears because both angles move the second mass, and its size depends on the relative angle , which is what makes the matrix genuinely configuration-dependent rather than constant.
Step 1. Write the embedding, measuring downward for convenience: and . Why mass 2 is the interesting one: it is carried by both coordinates, so both tangent vectors at are nonzero — the anatomical source of the coupling.
Step 2. Differentiate. For mass 1: , . For mass 2: , .
Step 3. Assemble from (8). The diagonal entries collect every mass moved by each angle:
Step 4. Compute the off-diagonal entry — only mass 2 contributes, and the dot product of the two unit tangent directions is :
where: the coupling is strongest when the arms are parallel (, straight or folded) and vanishes when they are perpendicular — momentarily, the two angles then move mass 2 in orthogonal directions and cannot trade kinetic energy. Why this matters downstream: a configuration-dependent, non-diagonal mass matrix is precisely what no rescaling of coordinates can globally flatten, and the resulting velocity-dependent couplings are the mechanical origin of the double pendulum's chaotic dynamics.
Step 5. Sanity checks. Set : the matrix collapses to , a lone pendulum, as it must. Freeze : the remaining is a simple pendulum hung from a fixed point. Positive-definiteness: always. Verified: matches the double-pendulum kinetic energy in Goldstein Ch. 1 problems and Morin Ch. 6; the determinant is positive for all angles, confirming positive-definiteness, and both limiting checks reduce to the correct single-pendulum results.
Limiting cases
| Case | Result | Meaning |
|---|---|---|
| no constraints | , | Cartesian coordinates are already generalized coordinates; nothing to gain |
| one particle on a surface | the surface itself is the configuration space; its curvature enters | |
| rigid body ( large, distances all fixed) | , | particles, six numbers — the greatest data compression in physics |
| scleronomic constraints | , purely quadratic | energy bookkeeping stays simple; downstream |
| rheonomic constraints | gains linear and -free terms | moving constraints pump energy; in general |
| nonholonomic constraints | coordinates cannot be eliminated | velocity restrictions do not shrink ; see the constraints article |
Worked examples
1 · Charting the spherical pendulum (confidence builder)
A mass hangs from a rigid massless rod of length , free to swing in any direction. Count its degrees of freedom, name its configuration space, and compute its kinetic energy at the instant when the rod makes with the vertical, with and azimuthal rate .
Step 1. Count. One particle, ; the rigid rod fixes one distance, ; so . Natural coordinates: polar angle from the downward vertical and azimuth . The configuration space is the sphere of radius — every point the bob can occupy.
Step 2. Build the mass matrix from the embedding . The tangent vectors have squared lengths and , and they are orthogonal, so , , — the standard metric of a sphere, weighted by mass.
Step 3. Kinetic energy from equation (7): . Insert numbers: , and . So .
Step 4. Read the structure: never appears in (only does) — the azimuth is on its way to becoming a cyclic coordinate with a conserved momentum, the payoff banked for a later article. The coordinate choice did that, not the physics.
2 · Bead on a spinning hoop — a rheonomic embedding (exam level)
A bead of mass slides on a circular hoop of radius that is forced to spin about its vertical diameter at constant . (a) Count the degrees of freedom and write the embedding. (b) Find the bead's kinetic energy at polar angle (from the downward vertical) when . (c) Identify which term violates the "purely quadratic" rule and why.
Step 1. Count. One particle, ; two constraints (on the hoop's sphere of radius , and in the hoop's instantaneous plane), ; so . One generalized coordinate: the polar angle . But the hoop's plane is prescribed to rotate, so the embedding carries explicit time: — the rheonomic case of equation (2).
Step 2. Differentiate via equation (3). The part (along the hoop) has speed ; the drift part (azimuthal, from the forced spin) has speed . The two directions are orthogonal, so .
Step 3. Put in the numbers. Along-hoop: . Drift: . Then and .
Step 4. Diagnose the structure: . The first term is the honest quadratic form in the single generalized velocity. The second contains no at all — it is the drift energy the motor forces on the bead, the fingerprint of a rheonomic constraint predicted in the kinetic-energy derivation. (No term linear in appears here only because drift and hoop directions happen to be orthogonal; a skewed drive would produce one.)
Step 5. The physical consequence, stated for later: because the motor continuously does work through the constraint, the bead's is not conserved — energy bookkeeping for rheonomic systems must wait for the energy-function machinery of a downstream article. The counting , however, was never in danger: rheonomic or not, one number locates the bead.
Origins · 1 minJoseph-Louis Lagrange and how this was discovered
Lagrange taught himself mathematics as a teenager in Turin, and by nineteen he had mailed Euler a solution of the isoperimetric problem so elegant that Euler delayed publishing his own to let the young man claim the calculus of variations. It was the perfect apprenticeship for the book that defines this article's subject: the Mécanique analytique of 1788, which he boasted contained not a single diagram — mechanics rebuilt as pure analysis, with configurations described by arbitrary parameters and the equations of motion generated by a universal recipe rather than drawn force-by-force. He succeeded Euler in Berlin at Frederick the Great's invitation ("the greatest king in Europe" required "the greatest mathematician"), survived the French Revolution as the Republic's favorite savant while colleagues lost their heads, chaired the commission that created the metric system, and taught at the new École Polytechnique. Napoleon made him a count. The coordinates of this article are called "Lagrangian coordinates" in older books with justice: the freedom to describe a system by any independent parameters — and the guarantee that mechanics survives the relabeling — is his single most consequential idea, the one on which the next several articles are built.
Going further
References. Goldstein, Poole & Safko, Classical Mechanics, 3rd ed., §1.3–1.4 · Landau & Lifshitz, Mechanics, 3rd ed., §1 · Morin, Introduction to Classical Mechanics, Ch. 6 · Taylor, Classical Mechanics, Ch. 7 · Arnold, Mathematical Methods of Classical Mechanics, Ch. 4
Provenance. DOF formula and configuration-space discussion: Goldstein §1.3–1.4. Kinetic-energy quadratic form and mass metric: Landau & Lifshitz §5, Goldstein §1.4. Tangent bundle / manifold viewpoint and example: Arnold Ch. 4. A verifier should recompute the chain-rule velocity expression, the 'cancellation of dots' identity , the DOF counts in the worked examples (pendulum on , double pendulum on , rigid body ), and confirm in polar coordinates as a special case of the quadratic-form derivation. Worked-example numbers on this page ( J for the spherical pendulum; and J for the bead on the spinning hoop; for the double pendulum) are illustrative arithmetic recomputed from the stated formulas.
Builds on: Constraints and Their Classification · Degrees of Freedom. Leads to: The Lagrangian Function · The Euler-Lagrange Equations · Generalized Forces and Generalized Momenta · Cyclic Coordinates and Conservation of Conjugate Momenta · Virtual Displacements and the Principle of Virtual Work.
Is configuration space a real place or just bookkeeping?
It is exactly as real as any coordinate description of physics — which is to say, the structure is real even though the labels are conventions. No experiment can distinguish two chartings of the same , but the manifold's intrinsic properties — its dimension, its topology, its mass metric — have measurable consequences. The double pendulum's torus is compact, which bounds its excursions; 's failure to admit one global chart forces every satellite attitude controller to handle gimbal lock or adopt quaternions; the metric decides which motions are "straight." A good test for what is real: anything that survives every change of coordinates. Dimension, topology, and the metric survive; the particular angles you chose do not.
Why exactly is the double pendulum's configuration space a torus and not, say, a square?
Because each angle is periodic: and are the same physical configuration, so the coordinate space must glue those edges together. Start with the square , glue the left edge to the right (periodicity of ) to get a cylinder, then glue the top to the bottom (periodicity of ): the result is a torus. The gluing is not pedantry — it changes the physics of paths. On the true torus, a motion in which the inner arm swings all the way over the top is a loop that cannot be shrunk to a point, a genuinely different class of motion from small oscillations. On a square, every loop is shrinkable, and that classification would be lost.
What is the difference between configuration space, state space, and phase space?
Three rungs of one ladder. Configuration space ( dimensions): positions only — where the system is. State space (the tangent bundle , dimensions): positions plus velocities — enough to determine the future, and the natural home of the Lagrangian . Phase space (, also dimensions): positions plus momenta — the Hamiltonian description, coming several articles downstream. The middle and last rungs have equal dimension but different geometry, and the differences only start to matter once you meet transformations that mix coordinates and momenta. For now, the crucial boundary is the first one: alone cannot run a movie.
Do generalized coordinates have to have units of length?
No — and most of the useful ones do not. Angles (dimensionless), arc lengths (m), areas (m²), even voltage-like variables in electromechanical analogies are all legitimate, provided the set is independent and complete. The units migrate elsewhere: in , the mass-matrix entries absorb whatever is needed to make energy come out in joules — for an angle, carries , a moment of inertia. Corollary worth flagging early: the "momentum conjugate to " that appears downstream is , and for an angle it is an angular momentum. If your generalized momentum fails a naive unit check, that is the formalism working, not failing.
What actually goes wrong at gimbal lock — does the physics become singular?
Nothing physical goes wrong; a chart dies. Euler angles label orientations the way longitude and latitude label the globe, and they inherit the same disease: at the poles ( or for Euler angles), distinct values of and describe the same orientation, the Jacobian of the labeling drops rank, and two of your three knobs momentarily steer the same way. The rigid body itself rotates serenely through the "lock" — ask it, and nothing happened. The lesson generalizes: provably cannot be covered by a single nonsingular three-parameter chart, so any three-angle attitude description must go singular somewhere. Engineering fixes are chart-management: switch between overlapping Euler charts, or embed in four parameters (quaternions) with one constraint — the standard choice in every modern flight computer.
If I choose terrible coordinates, do I get wrong physics?
No — you get correct physics wearing uncomfortable clothes. Any invertible, smooth relabeling (a point transformation) describes the same configurations, and the formalism being built in these articles is expressly designed so its equations keep their form under every such change — that form-invariance is the deep reason for preferring this machinery to raw Newton. What a bad choice costs is labor: coupled equations that better coordinates would separate, hidden symmetries that adapted coordinates would expose as cyclic. The spherical pendulum's was invisible-by-design in Cartesian coordinates and conservation-law-adjacent in polar ones. Same physics; radically different Tuesday afternoon.
Why do rolling constraints not reduce the number of coordinates the way a rigid rod does?
Because they constrain velocities, not configurations. A rigid rod says "these two points are always 0.5 m apart" — an equation among coordinates, usable to eliminate one of them. Rolling without slipping says "the contact point's velocity is zero right now" — a condition on that cannot be integrated into a relation among the alone. The startling consequence: a rolling sphere can reach every position with every orientation (park a car anywhere at any heading despite never sliding sideways), so its configuration space stays full-dimensional even though its instantaneous freedoms are fewer. Such constraints are called nonholonomic, and they get a full classification — and their own warning labels — in the constraints article.
Is the mass matrix the same as the moment of inertia?
The moment of inertia is one corner of it. For a single coordinate that happens to be a rotation angle, is exactly the moment of inertia about that axis — the spherical pendulum's , for instance. But is the general-purpose object: it handles mixed coordinate types (an angle and a length in the same system), it varies with configuration (the double pendulum's coupling), and its off-diagonal entries encode inertia shared between coordinates, for which elementary mechanics has no standard name. Think of the familiar scalars — mass for translation, moment of inertia for rotation — as the diagonal, constant special cases of one configuration-dependent metric tensor.