Generalized Forces and Generalized Momenta
Watch a robot arm hold a coffee cup perfectly still. Somewhere in its controller, sixty times a second, a computer answers a strange question: not "what force acts on the arm?" but "what torque about each joint does gravity exert, and what must each motor supply to cancel it?" Nobody programmed Newton's component by component into that controller. The arm's software thinks in the arm's own natural coordinates — two joint angles — and in the quantities conjugate to them. Those quantities are the subject of this article. Once a system is described by generalized coordinates , the Newtonian notions of force and momentum must be repackaged to match. The repackaging is energetic and beautifully uniform: the generalized force is whatever multiplies in the virtual work, and the generalized momentum is whatever the Lagrangian's velocity-derivative says it is. If is a length, is a force and looks like ; if is an angle, they become a torque and an angular momentum — automatically, with no special handling. And when velocity-dependent couplings enter, as for a charge in a magnetic field, quietly stops being at all. The payoff is the cleanest statement in mechanics: the Euler–Lagrange equation reads — rate of change of generalized momentum equals generalized force. Newton's second law, re-tailored to fit any coordinates you choose, and the direct gateway to conservation laws and to the Hamiltonian picture.
- The generalized force conjugate to is defined through virtual work, , which unpacks to — the projection of the real applied forces onto the motion that changing actually produces.
- carries whatever units make an energy: a force for a length coordinate, a torque for an angle, a pressure when the coordinate is a volume. Constraint forces never contribute — they are perpendicular to every allowed displacement.
- The generalized (canonical, conjugate) momentum is . For quadratic in velocities it is — a configuration-dependent mixture of velocities, not necessarily .
- With a velocity-dependent potential the split from becomes dramatic: a charge in a magnetic field carries canonical momentum .
- The Euler–Lagrange equation is exactly , with non-conservative pieces appearing on the right as .
- Key idea: generalized force is the coordinate-conjugate of work, ; generalized momentum is the velocity-conjugate of the Lagrangian, . The Euler–Lagrange equation welds them together as the Lagrangian analogue of .
Where this lives today
The manipulator equation of modern robotics is equation (7) wearing industrial clothing: , where is exactly the mass matrix of Derivation B, collects the gravitational generalized forces of the worked example, and the motor torques are the non-conservative . Every physics engine that trains today's humanoid robots and quadrupeds — MuJoCo, Drake, Isaac — assembles and inverts this equation millions of times per training run, in joint coordinates, because that is the space where constraints vanish and motors live. When a 2026-era humanoid catches a thrown package, a computer has just solved for generalized forces along sixty-odd coordinates in under a millisecond. The concept's reach goes far beyond machines. Thermodynamics organizes itself around the same conjugacy: pressure is the generalized force conjugate to volume, surface tension to area, chemical potential to particle number — "whatever multiplies in the work" is one of physics' most reused sentences. And the canonical momentum is the reason your MRI scanner's physics and your quantum mechanics course agree: the operator represents the canonical momentum, so magnetic couplings enter quantum mechanics exactly as Lagrange's derivative said they must.
The physical picture
Configuration space is a surface of allowed shapes: each point is one arrangement of the whole system, and moving along the -direction deforms the system in one specific, constraint-respecting way. The real forces live out in ordinary 3D space and point wherever they point. The generalized force is the answer to a sharper question: of all that force, how much actually pushes along the -direction of allowed motion? Formally it is a dot product with ; informally it is the shadow the physical forces cast on the system's freedom.
The projection picture explains at a stroke the two most useful facts about . First, constraint forces vanish from the bookkeeping: a frictionless wire pushes only perpendicular to itself, and a perpendicular force dotted with an allowed displacement gives zero. You never compute the normal force, the string tension, or the hinge reaction — they are filtered out at the definition. Second, units follow the coordinate: if is an angle, has the length of a lever arm, and comes out as a torque. Work is the universal currency; is denominated in whatever makes come out in joules.
Generalized momentum answers the mirror-image question: how does the dynamics grip the velocity ? For a free particle in Cartesian coordinates the answer is boring, . But the definition takes orders from the Lagrangian, not from Newton. Curve the coordinates and becomes a mixture of several velocities weighted by a configuration-dependent mass matrix. Add a magnetic field and it silently absorbs a piece of the field itself, . The single most instructive mistake in this chapter — one you should make once, carefully, and never again — is to write on autopilot. The pairing is symmetric and worth savoring: comes from differentiating work with respect to a coordinate; from differentiating with respect to a velocity. The Euler–Lagrange equation is the bridge that balances their rates, and because every object in sight is built from derivatives of scalars, the whole structure survives any smooth change of coordinates untouched.
From forces to generalized forces
Start with the definition, which is nothing more than a change of basis applied to work. Displace the system virtually — freeze time, wiggle the configuration by in a way the constraints allow — and tally the work done by the applied forces. Written once in particle language and once in coordinate language, that tally defines the :
where: — the net applied (non-constraint) force on particle ; — its virtual displacement; — the independent virtual changes of the coordinates. Because the can be varied one at a time, the coefficients are uniquely determined — the definition is not circular, it is a component extraction. The machinery of virtual displacements itself belongs to the principle of virtual work and d'Alembert's principle; here we harvest it. Unpacking by the chain rule and swapping the two sums turns the definition into the formula you actually compute with:
where: — the vector telling how particle moves per unit change of , with every other coordinate and time held fixed. Read it as a projection: each particle's force is dotted onto the direction that coordinate actually drags that particle. For the bead of the hero diagram, and give — gravity matters only through the wire's slope, and the normal force never even enters. When the applied forces come from a potential , the projection in (2) is exactly a gradient component, and the generalized force collapses to
where: — the potential energy expressed directly in the generalized coordinates. This is the form that gets absorbed into : conservative generalized forces stop being a separate object and become part of the Lagrangian's landscape. Anything not derivable from — friction, drag, a motor drive — stays outside and re-enters below as an explicit right-hand side.
Generalized momentum
Now the mirror object. Instead of asking how work responds to a coordinate, ask how the Lagrangian responds to a velocity:
where: — the Lagrangian; — the momentum canonically conjugate to . The three names in circulation — generalized, conjugate, canonical — all denote this one derivative. Its units, like those of , follow the coordinate: always carries the units of energy, so an angular coordinate breeds an angular momentum. For the vast standard class of mechanical systems, is quadratic in the velocities, , and is velocity-independent. Differentiating and using the symmetry gives the momentum in its most physical form:
where: — the configuration-dependent mass (inertia) matrix. Two lessons sit in this formula. The momentum conjugate to one coordinate is in general a blend of all the velocities — in a two-link robot arm, contains , because swinging the forearm moves mass that the shoulder angle also carries. And even in one dimension the effective inertia can depend on position: the bead on the parabolic wire below has , larger where the wire is steep because a unit of then implies extra vertical speed. With both conjugate objects defined, the Euler–Lagrange equation — derived from stationary action in its own article — can be read as a physical sentence rather than a formula:
where: — the Lagrangian's own generalized force, containing both and any coordinate-dependence of the kinetic energy (the origin of centrifugal-type terms). This is Newton's second law in coordinate-free dress: rate of change of conjugate momentum equals conjugate force. Its most celebrated corollary costs nothing: if is absent from , the right side vanishes and is conserved — the cyclic-coordinate mechanism that the next article develops into a systematic tool. Real machines have friction and drives. Forces with no potential simply stay in the projected form (2) and sit on the right-hand side:
where: — the non-conservative forces (friction, air drag, motor torques). The conservative part of the physics lives inside ; everything else is projected and appended. This split is exactly how robot dynamics engines organize the manipulator equation, with motor torques appearing as the .
Which formula answers which question
| you want | use | notes |
|---|---|---|
| the force conjugate to , any forces | , eq. (2) | constraint forces drop out automatically |
| conservative case | , eq. (3) | gets absorbed into |
| the momentum conjugate to | , eq. (4) | the definition — always safe |
| explicit momentum, standard | , eq. (5) | a blend of velocities; in general |
| equation of motion | , eq. (6) | Newton II in conjugate variables |
| with friction or drive | , eq. (7) | non-conservative forces projected on the right |
| charge in a field | , eq. (9) | canonical kinetic momentum |
We are deriving Lagrange's equations in their force form, — the equation that shows why the two objects of this article are conjugate partners, because both appear in it and nowhere is a constraint force in sight. The strategy: take d'Alembert's principle (established in its own article, used here as input), project it onto each generalized coordinate, and convert the awkward inertial term into derivatives of the kinetic energy using two small kinematic identities. The step to watch is that conversion — the "dot-cancellation" identities are where the generalized momentum is born, and misremembering them is the classic way to lose a term. No assumption about conservative forces is made until the very last step, so the result holds for friction and drives too.
Step 1. d'Alembert's principle states for every virtual displacement compatible with the constraints. Substitute and use the independence of the to peel off one equation per coordinate:
Why the constraint forces are already gone: they do no virtual work, so only applied forces survive on the right — which is exactly the generalized force of equation (2).
Step 2. Attack the left side with the product rule, trading a second derivative for two first-derivative terms:
Why this move: acceleration dotted into a geometric vector is not yet recognizable as anything; velocity dotted into geometric vectors can be matched against derivatives of .
Step 3. Deploy the two kinematic identities that follow from and the chain rule:
Why they hold: is linear in the , so differentiating by picks out its coefficient ("cancel the dots"); and mixed partials of commute, so the total time derivative and can be swapped.
Step 4. Substitute both identities into Step 2. The first parenthesis becomes ; the second sum becomes . The projected law assembles into
where: the object being time-differentiated is precisely the generalized momentum — it appeared uninvited, as the natural coefficient the algebra produces. Equation (8) is fully general: any forces, any holonomic constraints.
Step 5. Specialize to conservative forces: with and velocity-independent, both -terms fold into , giving — equation (6). Keeping any leftover forces outside reproduces equation (7). Verified: for a single Cartesian coordinate, makes (8) read — Newton recovered; the derivation matches Goldstein §1.4 term for term.
Go deeper · Derivation B · 1 minThe Mass Matrix and Why Momenta Mix Velocities
The goal is the explicit momentum formula (5), , together with the physical claim that hangs on it: conjugate momenta are configuration-dependent blends of all the velocities, reducing to only when the kinetic energy is diagonal with constant coefficients. The strategy is a two-line computation — differentiate the quadratic form carefully — followed by the sanity checks that give the formula meaning. The point to watch is the double sum: both slots of the quadratic form contain , and forgetting one of them silently halves the momentum.
Step 1. For particles at positions (no explicit time dependence), the chain rule gives , so the kinetic energy is a pure quadratic form,
Why is symmetric and positive-definite: it is built from dot products of the same set of vectors, weighted by positive masses — no negative kinetic energies, ever.
Step 2. Differentiate with respect to , remembering that can occupy either slot:
Why the two halves merge: the symmetry makes the two Kronecker-delta terms equal, and the is spent combining them.
Step 3. Read the result. Off-diagonal means momenta mix: for the double pendulum or robot arm, , and depends on the relative angle. Diagonal but position-dependent means the effective inertia varies along the motion: the parabolic-wire bead's . Verified: in Cartesian coordinates and ; in planar polar coordinates gives and — the angular momentum, as it must.
When momentum stops being mass times velocity
Everything so far assumed carries no velocities. Electromagnetism breaks that assumption in the most consequential way in physics. The Lagrangian that reproduces the Lorentz force on a charge in potentials is
where: — scalar potential; — vector potential, . The velocity-linear coupling is a velocity-dependent potential — a genuinely new structural feature, and the reason the momentum conjugate to position acquires a field contribution.
Go deeper · Derivation C · 2 minCanonical Momentum of a Charge and the Lorentz Force
We are deriving the canonical momentum from the Lagrangian (9), and then closing the loop by checking that the Euler–Lagrange machinery hands back the Lorentz force — so that the strange-looking momentum is certified by the right equation of motion. The strategy is direct computation: one velocity-derivative for the momentum, one coordinate-derivative for the generalized force, then a careful assembly in which the total time derivative of is the step to watch — it contains a convective piece that beginners drop, and dropping it destroys the magnetic force.
Step 1. Differentiate by the velocity components. The term gives ; the coupling is linear in velocity and gives ; the scalar potential gives nothing:
where: the canonical momentum splits into the kinetic momentum (what a speed gun measures) plus the field contribution (what the bookkeeping requires). Note inherits the gauge-dependence of — only in a fixed gauge is its value meaningful, though its conservation statements are physical.
Step 2. Differentiate by position to get the generalized force: , with held fixed during the gradient. Why this is velocity-dependent: the "force" side of the EL equation now contains — the hallmark of magnetism, and the reason no scalar could ever produce it.
Step 3. Write the EL equation and expand the total derivative of along the trajectory:
Why the convective term exists: the particle samples the field at a moving point, so changes both because the field evolves and because the particle relocates.
Step 4. Move the -terms to the right and use the vector identity together with and :
Why this closes the case: the kinetic momentum obeys the Lorentz force law, exactly as experiment demands — while the object the formalism conserves and transports into Hamiltonian and quantum mechanics is the canonical of (10). *Verified: matches Goldstein §1.5 and Landau–Lifshitz, Classical Theory of Fields §16–17; setting collapses canonical to kinetic momentum and the force to .*
Limiting cases
| Case | Result | Meaning |
|---|---|---|
| Cartesian length coordinate | , | Newton's force and momentum are the special case length, constant diagonal |
| angular coordinate | , | torque and angular momentum emerge automatically; still in joules |
| conservative forces | the generalized force disappears into | |
| velocity-dependent potential (EM) | canonical splits from kinetic momentum — the gauge field rides inside | |
| coordinate absent from | conservation for free — the cyclic-coordinate mechanism | |
| frozen configuration, diagonal constant | eq. (8) | per-coordinate Newton — the formalism's training wheels |
Worked examples
1 · Bead on a parabolic wire (confidence builder)
A bead of mass slides on a frictionless parabolic wire with , in gravity. Using as the generalized coordinate, find the generalized force and the conjugate momentum at the moment the bead passes with .
Step 1. Geometry first. The position is , so with slope at the given point.
Step 2. Generalized force by projection, eq. (2): with ,
The sign says the force pushes toward decreasing — downhill. The normal force never entered: it is perpendicular to by construction.
Step 3. Momentum from the Lagrangian. The speed obeys , so and
Step 4. Compare with the naive answer: — a 36% error. The effective inertia is the one-coordinate mass matrix : where the wire is steep, a unit of drags extra vertical speed, and the momentum knows it. No field, no exotic units — geometry alone already separates from .
2 · Holding torque for a two-link robot arm (exam level)
A planar two-link arm has link 1: , length , centre of mass at ; link 2: , centre of mass at from the elbow. Joint angles are measured from the horizontal: at the shoulder, and the elbow adds , so link 2 sits at . Find the gravitational generalized forces and the motor torques needed to hold the pose — first bare, then carrying a payload at the wrist, from the elbow.
Step 1. Set up the potential in the joint coordinates. Heights above the shoulder: for link 1's centre of mass, for link 2's. So .
Step 2. Generalized forces by eq. (3), — note both angles move link 2, so collects both terms:
Step 3. Numbers. ; ; , . Then and . These are torques, not forces — the coordinate is an angle.
Step 4. Static balance via eq. (7): holding still means and reduces to , so the motors must supply : , — the shoulder works nineteen times harder than the elbow, because it carries every gram at full lever arm.
Step 5. Add the payload: it hangs at height , so append to the bracket and to both. Recomputing: and . A 2 kg cup of coffee nearly doubles the shoulder torque. This calculation — equation (11) evaluated at every control tick — is called gravity compensation, and it runs inside every collaborative robot on every factory floor.
Origins · 1 minJean le Rond d'Alembert and how this was discovered
Abandoned as a newborn on the steps of the Saint-Jean-le-Rond chapel and raised by a glazier's wife, d'Alembert rose to co-edit the Encyclopédie with Diderot while producing the mechanics that bears his name. His Traité de dynamique (1743) advanced the principle that converts dynamics into statics — treat as one more force and demand zero virtual work — which is precisely the move that banishes constraint forces and opens Step 1 of this article's central derivation. He gave the first general treatment of the wave equation for a vibrating string, fought famously with Clairaut over precession and with Bernoulli over probability, and refused to guess where he could derive. Lagrange, who called the Traité his starting point, built the Mécanique analytique on d'Alembert's projection idea — turning the generalized force from a trick into the foundation of analytical mechanics.
Going further
References. Goldstein, Poole & Safko, Classical Mechanics, 3rd ed., §1.4, §2.6 · Landau & Lifshitz, Mechanics, 3rd ed., §§7–8 · Morin, Introduction to Classical Mechanics, Ch. 6 · Taylor, Classical Mechanics, §7.8
Provenance. Definitions and the d'Alembert-to-Euler-Lagrange derivation follow Goldstein, Poole & Safko §1.4 and Landau–Lifshitz Mechanics §§7–8. A verifier should confirm: (1) the chain-rule derivation of ; (2) the 'dot-cancellation' identities used to convert the inertial term into -derivatives; (3) the EM Lagrangian yields the Lorentz force and (Goldstein §1.5); (4) the central-force result conserved. All numerical/structural relations are standard textbook results, no fabricated constants. Worked-example numbers on this page ( and for the bead; , for the arm) are illustrative arithmetic recomputed from equations (2), (3), (5), (11).
Builds on: Generalized Coordinates and Configuration Space · Virtual Displacements and the Principle of Virtual Work · d'Alembert's Principle · The Lagrangian Function
Leads to: The Euler-Lagrange Equations · Cyclic Coordinates and Conservation of Conjugate Momenta · The Energy Function and Jacobi Integral · Symmetries and Continuous Transformations
Is the generalized force an actual force I could measure with a spring scale?
Only when is a Cartesian length — then is the corresponding force component and a scale would read it. In general is the work coefficient of the coordinate: newton-metres for an angle, pascals (with a sign) for a volume, and stranger units for stranger coordinates. What is always measurable is the product — an energy. The robot-arm example makes it concrete: no single spring scale anywhere on the arm reads ; that number is the assembled gravitational torque about the shoulder axis, which is what the motor must fight. Think of as force re-expressed in the currency of your chosen coordinate, at the exchange rate .
Why does the definition use virtual displacements instead of real ones?
Because the projection must probe configuration directions, one coordinate at a time, without smuggling in time evolution. A real displacement during includes whatever motion the constraints themselves generate (a rotating platform drags you along even if you hold still), and for moving constraints the constraint forces do do real work. The virtual displacement freezes time and wiggles only the coordinates, which is exactly the condition under which ideal constraint forces do zero work and drop out of . That single technicality is what buys the formalism's superpower — never solving for normal forces and tensions. The fine print lives in the article on virtual work and virtual displacements.
How do I actually compute Q_j in practice — the projection sum looks unwieldy?
You almost never evaluate particle by particle. Three shortcuts cover practice. If the forces are conservative, write the potential directly in the generalized coordinates and use — that is how the robot-arm torques took two lines. If the force is a single applied force at a known point, give that point's position as and take one dot product — the bead's . If you only need the units and meaning, displace alone by , compute the work done, and read off the coefficient. The full sum is the definition's insurance policy, not its user interface.
If canonical momentum is gauge-dependent, how can it be physical?
The value of indeed changes under — so nobody's detector reads canonical momentum directly; detectors read . What is physical is the role it plays within a fixed gauge: the conservation statement "if is cyclic, is constant" holds in every gauge in which is cyclic, and differences of around closed loops are gauge-invariant (they become the Aharonov–Bohm phase in quantum mechanics). The situation is like potential energy: its absolute value is convention, its differences and conservation laws are physics. Treat as impeccable bookkeeping — and translate back to whenever you want a number to compare with a speed gun.
When exactly does p_j = m q̇_j actually hold?
Three conditions, all needed: the coordinate is a Cartesian length; the kinetic energy is diagonal in your coordinates with a constant coefficient (no curvilinear mixing, no configuration-dependent inertia); and the potential contains no velocities (no magnetic-type couplings). Break the first and you get angular momenta; the second, mass-matrix blends like the parabolic bead's ; the third, field contributions like . The safe procedure is always the definition: write , differentiate by , and accept whatever comes out. The naive formula is the special case, not the rule — this is the single most common source of wrong answers in Lagrangian coursework.
Where does friction go — it has no potential, so is the Lagrangian method stuck?
Not stuck; friction just refuses to hide inside . Project it like any force, , and carry it on the right-hand side of eq. (7): . For the common case of drag proportional to velocity there is an elegant repackaging, the Rayleigh dissipation function, which generates these from a single scalar much as generates conservative forces — it has its own article in this track. What you may not do is stuff a velocity-dependent friction "potential" into ; the Lorentz-force coupling works only because of its precise linear-in-velocity structure, which friction does not share.
Why is ∂L/∂q_j called a generalized force too — is it the same as Q_j?
They coincide exactly when all applied forces are conservative and absorbed into : then . But is a broader object, because the kinetic energy can also depend on coordinates. In polar coordinates, contains — the "centrifugal force" — which is no applied force at all but the geometry of the coordinates showing up in the bookkeeping. The clean sentence: balances the momentum's rate against everything the Lagrangian knows about — real conservative forces plus coordinate-geometry effects — while genuinely external non-conservative pushes are appended as .
Is there a deep reason force pairs with coordinates and momentum with velocities, or is it notation?
It is structure, and it runs all the way down. The pair is conjugate in the precise sense that later becomes Hamiltonian mechanics: trades velocities for momenta by a Legendre transform, and become independent coordinates on phase space with a symplectic geometry that Poisson brackets encode. The pairing also carries the conservation structure — a symmetry that shifts conserves precisely its partner , the pattern Noether's theorem makes universal. Quantum mechanics then promotes the same pairing to : the reason position and canonical momentum cannot be simultaneously sharp is the same conjugacy you are learning here. The derivative is the classical seed of all of it.