{
  "id": "generalized-coordinates",
  "title": "Generalized Coordinates",
  "lang": "en",
  "source_lang": "en",
  "summary": "Generalized coordinates are variables that specify a mechanical system’s configuration, chosen to accommodate its constraints, geometry, or symmetries.",
  "category": "science",
  "subcategory": "physics",
  "type": "concept",
  "aliases": [
    "Configuration coordinates",
    "Lagrangian coordinates"
  ],
  "generated_at": "2026-11-05",
  "model": "pro/gpt-6.1-sol",
  "url": "https://aiwiki.page/en/generalized-coordinates/",
  "translations": {
    "zh-Hans": {
      "url": "https://aiwiki.page/zh/generalized-coordinates/",
      "json": "https://aiwiki.page/zh/generalized-coordinates.json"
    }
  },
  "sections": [
    {
      "heading": "",
      "text": "Generalized coordinates are variables used in classical mechanics to specify the configuration of a system. They may be distances, angles, or other parameters rather than the Cartesian coordinates of individual particles. For a system with \\(n\\) independent configuration variables, a set \\(q_1,\\ldots,q_n\\) gives a local description of every allowed configuration. Their principal advantage is that a suitable choice can incorporate geometric constraints directly, reducing the number of variables and simplifying the equations of motion."
    },
    {
      "heading": "Configuration and degrees of freedom",
      "text": "A configuration describes the positions of a system’s components, without specifying their velocities. A system’s configuration space is the set of all its allowed configurations; generalized coordinates label points in this space.\n\nFor \\(N\\) unconstrained point particles moving in three dimensions, \\(3N\\) Cartesian coordinates are needed. Suppose the particles satisfy \\(m\\) independent constraints of the form\n\n\\[f_\\alpha(\\mathbf r_1,\\ldots,\\mathbf r_N,t)=0, \\qquad \\alpha=1,\\ldots,m.\\]\n\nThese are called holonomic constraints because they can be expressed as relations involving positions and, possibly, time. Where the constraints are regular and independent, the number of configuration degrees of freedom is\n\n\\[n=3N-m.\\]\n\nA set of independent generalized coordinates then parameterizes the positions as\n\n\\[\\mathbf r_i=\\mathbf r_i(q_1,\\ldots,q_n,t).\\]\n\nAt a fixed time, the derivatives \\(\\partial\\mathbf r_i/\\partial q_j\\), considered together for all particles, must have rank \\(n\\). This ensures that the coordinates describe independent variations of configuration.\n\nGeneralized coordinates need not have the same dimensions. One coordinate may be a length and another an angle. They also need not be unique: different coordinate systems may describe the same physical configurations.\n\nAlthough the term sometimes includes redundant variables used together with constraint equations, a minimal set of generalized coordinates consists of locally independent variables."
    },
    {
      "heading": "Examples",
      "text": "Plane pendulum\n\nA point mass suspended from a fixed pivot by a massless rod of length \\(\\ell\\), moving in a vertical plane, has one configuration degree of freedom. With the pivot at the origin, the vertical coordinate directed upward, and \\(\\theta\\) measured from the downward vertical,\n\n\\[x=\\ell\\sin\\theta, \\qquad y=-\\ell\\cos\\theta.\\]\n\nThe single generalized coordinate \\(q=\\theta\\) automatically enforces the constraint \\(x^2+y^2=\\ell^2\\). There is no need to solve separately for \\(x\\) and \\(y\\).\n\nPolar coordinates\n\nFor a particle moving freely in a plane, polar coordinates \\(r,\\theta\\) can be used instead of \\(x,y\\):\n\n\\[x=r\\cos\\theta, \\qquad y=r\\sin\\theta.\\]\n\nHere the number of coordinates is not reduced. The benefit is that the coordinates match circular geometry or rotational symmetry.\n\nRigid bodies and linked mechanisms\n\nAn unconstrained rigid body in three-dimensional space has six configuration degrees of freedom: three for translation and three for orientation. Its position may be described using its center of mass, while its orientation can be described locally by three angles.\n\nA planar double pendulum has two configuration degrees of freedom, commonly represented by the angles of its two rods. In a robotic mechanism, joint angles and sliding-joint displacements often provide natural generalized coordinates, although closed mechanical loops can impose additional constraints."
    },
    {
      "heading": "Generalized velocities",
      "text": "The time derivatives\n\n\\[\\dot q_j=\\frac{dq_j}{dt}\\]\n\nare called generalized velocities. Differentiating the position mapping gives\n\n\\[\\dot{\\mathbf r}_i = \\sum_{j=1}^{n} \\frac{\\partial\\mathbf r_i}{\\partial q_j}\\dot q_j + \\frac{\\partial\\mathbf r_i}{\\partial t}.\\]\n\nThe first term describes motion due to changing coordinates. The second accounts for explicit time dependence in the mapping, such as motion of a support or a prescribed moving surface.\n\nGeneralized velocities are coordinate rates, not necessarily Cartesian velocity components. In polar coordinates, for example, the transverse speed is \\(r\\dot\\theta\\), not \\(\\dot\\theta\\).\n\nFor point particles with masses \\(m_i\\), the kinetic energy is\n\n\\[T=\\frac12\\sum_i m_i\\dot{\\mathbf r}_i^{\\,2}.\\]\n\nWhen the position mapping has no explicit time dependence, this becomes\n\n\\[T=\\frac12\\sum_{j,k}M_{jk}(q)\\dot q_j\\dot q_k,\\]\n\nwhere\n\n\\[M_{jk}(q) = \\sum_i m_i \\frac{\\partial\\mathbf r_i}{\\partial q_j} \\mathbin{\\cdot} \\frac{\\partial\\mathbf r_i}{\\partial q_k}.\\]\n\nThe coefficients form the system’s mass matrix. They describe how mass and geometry determine the kinetic energy associated with coordinate rates. With an explicitly time-dependent mapping, kinetic energy can also contain terms linear in \\(\\dot q_j\\) and terms independent of them."
    },
    {
      "heading": "Generalized forces and virtual work",
      "text": "A virtual displacement is an infinitesimal change of configuration consistent with the constraints while time is held fixed. For independent generalized coordinates,\n\n\\[\\delta\\mathbf r_i = \\sum_j \\frac{\\partial\\mathbf r_i}{\\partial q_j}\\delta q_j.\\]\n\nIf forces \\(\\mathbf F_i\\) act on the particles, their virtual work is\n\n\\[\\delta W = \\sum_i\\mathbf F_i\\mathbin{\\cdot}\\delta\\mathbf r_i = \\sum_j Q_j\\,\\delta q_j,\\]\n\nwhere\n\n\\[Q_j = \\sum_i \\mathbf F_i\\mathbin{\\cdot} \\frac{\\partial\\mathbf r_i}{\\partial q_j}\\]\n\nis the generalized force associated with \\(q_j\\).\n\nA generalized force is not necessarily an ordinary force. Its units depend on its associated coordinate: \\(Q_j\\delta q_j\\) has units of energy. For a linear displacement, \\(Q_j\\) has units of force; for a rotation angle, it is a torque.\n\nIf the forces derive from a position-dependent potential energy \\(V(q,t)\\), then\n\n\\[Q_j=-\\frac{\\partial V}{\\partial q_j}.\\]\n\nConstraint forces that do no virtual work on allowed displacements are called ideal. Such forces can disappear from the equations for independent generalized coordinates. This is why a pendulum’s equation can be obtained without first calculating the rod tension. Not all constraint forces are ideal, so their elimination is not automatic."
    },
    {
      "heading": "Lagrange’s equations",
      "text": "Generalized coordinates are central to Lagrangian mechanics. For a system described by a Lagrangian\n\n\\[L(q,\\dot q,t)=T-V,\\]\n\nthe equations of motion are\n\n\\[\\frac{d}{dt} \\left(\\frac{\\partial L}{\\partial\\dot q_j}\\right) - \\frac{\\partial L}{\\partial q_j} = Q_j^{\\mathrm{nc}},\\]\n\nwhere \\(Q_j^{\\mathrm{nc}}\\) represents generalized forces not already included through the potential. If all forces are represented by \\(V\\), the right-hand side is zero.\n\nThese equations can be derived from Newton’s laws of motion using virtual work and ideal constraints, or from a stationary-action principle. In the latter formulation, the action is\n\n\\[S[q]=\\int_{t_1}^{t_2}L(q,\\dot q,t)\\,dt,\\]\n\nand the physical trajectory makes its first variation vanish for suitable variations with fixed endpoints.\n\nFor the plane pendulum,\n\n\\[L = \\frac12m\\ell^2\\dot\\theta^2 - mg\\ell(1-\\cos\\theta),\\]\n\nso Lagrange’s equation yields\n\n\\[m\\ell^2\\ddot\\theta+mg\\ell\\sin\\theta=0.\\]\n\nThe use of an angle rather than a Cartesian position does not alter the physical law; it expresses that law in variables adapted to the constraint."
    },
    {
      "heading": "Generalized momenta and Hamiltonian mechanics",
      "text": "The momentum conjugate to \\(q_j\\) is\n\n\\[p_j=\\frac{\\partial L}{\\partial\\dot q_j}.\\]\n\nA generalized momentum need not equal mass times a coordinate rate. For a particle of mass \\(m\\) in plane polar coordinates with a velocity-independent potential,\n\n\\[p_r=m\\dot r, \\qquad p_\\theta=mr^2\\dot\\theta.\\]\n\nHere \\(p_\\theta\\) is the component of angular momentum perpendicular to the plane.\n\nIf \\(L\\) does not depend explicitly on a coordinate \\(q_j\\), that coordinate is called cyclic or ignorable. In the absence of an additional generalized force in that coordinate, its conjugate momentum is conserved:\n\n\\[\\frac{dp_j}{dt}=0.\\]\n\nThis is a coordinate expression of the connection between symmetry and conservation formalized by Noether’s theorem.\n\nWhen the relation between \\(\\dot q\\) and \\(p\\) is invertible, a Legendre transformation defines\n\n\\[H(q,p,t)=\\sum_jp_j\\dot q_j-L.\\]\n\nThis leads to Hamiltonian mechanics, in which \\(q_j,p_j\\) are coordinates on phase space. Configuration space and phase space are distinct: the former specifies configurations, while the latter also includes momenta."
    },
    {
      "heading": "Nonholonomic constraints",
      "text": "Not every restriction on motion can be incorporated by reducing the number of configuration coordinates. A nonholonomic constraint restricts possible motions without being reducible to a relation among positions and time alone. Rolling without slipping is a common source of such constraints.\n\nA frequent form is\n\n\\[\\sum_j a_{\\alpha j}(q,t)\\dot q_j + a_{\\alpha0}(q,t)=0.\\]\n\nA velocity constraint is genuinely nonholonomic when it is not integrable into a configuration constraint. A system with such constraints may still require \\(n\\) coordinates to specify its configuration while having fewer independently admissible instantaneous velocities. Thus configuration-space dimension and the number of independent velocity parameters need not coincide.\n\nNonholonomic systems generally require constrained dynamical equations, often with Lagrange multipliers or suitably chosen independent velocity variables. Substituting velocity constraints into a Lagrangian and applying unconstrained Lagrange equations is not generally valid."
    },
    {
      "heading": "Coordinate choice and limitations",
      "text": "A coordinate description is usually local rather than global. Polar coordinates are singular at \\(r=0\\), and common three-angle descriptions of rigid-body orientation have singular configurations. These are failures of the coordinate representation, not necessarily of the physical motion.\n\nRedundant representations can avoid some difficulties. For example, unit quaternions describe orientation using four components subject to one normalization constraint. They do not give four independent rotational degrees of freedom.\n\nOther practical considerations include:\n\n- Symmetry: coordinates aligned with a symmetry can reveal conserved momenta.\n- Constraint structure: coordinates that satisfy geometric constraints can remove unnecessary variables and reaction forces.\n- Numerical behavior: a mathematically valid coordinate choice can become poorly conditioned near a singular configuration.\n- Force recovery: eliminating constraint forces simplifies motion equations, but those forces may require a separate calculation.\n- Time dependence: a moving coordinate mapping can complicate the relation between the Hamiltonian and physical energy.\n\nGeneralized coordinates specify configurations, not complete dynamical states. For regular second-order equations of motion, initial coordinate values and coordinate rates are normally both required."
    },
    {
      "heading": "Historical development and applications",
      "text": "The use of variables adapted to constraints grew out of the analytical mechanics of the eighteenth century. Joseph-Louis Lagrange’s Mécanique analytique, published in 1788, presented a systematic formulation in which suitable independent variables and virtual work replaced many separate Cartesian force equations.\n\nGeneralized coordinates are used in mechanism design, robotics, spacecraft attitude dynamics, vibration analysis, and molecular dynamics. In deformable-body models, a finite set of amplitudes can serve as generalized coordinates for approximate displacement patterns. In continuum theories, this finite-dimensional description extends to fields, with a coordinate-like variable associated with each spatial point."
    }
  ],
  "links": [
    "classical-mechanics",
    "configuration-space",
    "degrees-of-freedom",
    "rigid-body",
    "center-of-mass",
    "kinetic-energy",
    "matrix",
    "work-physics",
    "force",
    "torque",
    "potential-energy",
    "lagrangian",
    "newtons-laws-of-motion",
    "action-physics",
    "angular-momentum",
    "noethers-theorem",
    "hamiltonian-mechanics",
    "phase-space",
    "molecular-dynamics"
  ],
  "sources": [],
  "license": "https://creativecommons.org/licenses/by/4.0/"
}