What Are Generalized Coordinates in Classical Mechanics? Definition and Examples

Generalized coordinates are variables used to describe the configuration of a mechanical system, such as the position of a pendulum, the rotation of a wheel, or the movement of connected masses. Unlike ordinary Cartesian coordinates, which describe positions using distances along fixed axes, generalized coordinates can represent any convenient set of independent variables needed to specify a system’s configuration. They may describe linear motion, rotation, angles, or other quantities, depending on the physical problem.

In classical mechanics, generalized coordinates provide a systematic way to describe motion, especially when a system contains constraints or interconnected parts. They are central to Lagrangian mechanics, a formulation of mechanics that expresses the laws of motion in terms of energy and generalized coordinates rather than requiring a separate force equation for every component.

What generalized coordinates mean

In ordinary three-dimensional space, the position of a particle is usually described by three Cartesian coordinates: x, y, and z. These coordinates specify how far the particle lies along three perpendicular axes. For a system containing several particles, each particle generally requires its own set of coordinates.

However, many mechanical systems cannot move freely in all available directions. A pendulum bob, for example, is attached to a fixed pivot by a rigid rod or string. Its distance from the pivot remains constant, so its position cannot vary independently in all three spatial directions.

Generalized coordinates address this limitation by describing only the independent information needed to specify the system’s configuration. For a simple pendulum swinging in a plane, one angle is sufficient to determine the bob’s position. Instead of tracking separate horizontal and vertical coordinates, a single angle, commonly written as θ, describes the pendulum’s motion.

More generally, generalized coordinates are denoted by q₁, q₂, q₃, and so on. The subscript identifies each coordinate, while q represents a variable chosen to describe the system’s configuration. These variables do not have to be distances. They can be angles, lengths, or other quantities that uniquely specify the configuration within the range being considered.

The defining feature is not the type of variable but its role: a suitable set of generalized coordinates describes the system’s configuration without unnecessary independent variables.

Why generalized coordinates are useful

The main advantage of generalized coordinates is that they allow mechanical systems to be described using their actual degrees of freedom. A degree of freedom is an independent quantity that can vary while specifying the system’s configuration.

Consider a particle moving freely in three-dimensional space. Its position generally requires three independent coordinates, so it has three degrees of freedom. If the particle is restricted to move along a straight track, only one independent coordinate is needed. If it is constrained to travel along a fixed circular path, its position can be specified by a single angle.

These restrictions reduce the number of independent variables needed to describe motion. Generalized coordinates make that reduction explicit.

They are also useful because the most convenient variables often reflect the geometry of the system. Angles are natural for rotating objects, lengths are convenient for sliding mechanisms, and combinations of angles and distances can describe systems with several moving parts.

Choosing appropriate generalized coordinates can simplify the mathematical description of motion, reduce the number of equations required, and make constraints easier to handle. This is particularly important in systems where multiple objects are connected or where motion is limited by rods, hinges, surfaces, or other physical relationships.

The relationship between generalized coordinates and degrees of freedom

The number of generalized coordinates required to describe a system is usually equal to the number of its degrees of freedom, provided the coordinates are independent and sufficient to specify the configuration.

For example, a rigid body moving freely in three-dimensional space has six degrees of freedom: three describing the position of a reference point and three describing its orientation. Its configuration can therefore be described using six independent variables, although the particular variables chosen may differ.

A rigid body restricted to rotate about a fixed axis has only one degree of freedom. Its orientation is determined by a single angle.

Constraints explain why the number of generalized coordinates can be smaller than the number of Cartesian coordinates initially used to describe a system. A particle in three-dimensional space has three Cartesian coordinates, but if it must remain on a fixed sphere, its position satisfies one independent geometric constraint. Under ordinary conditions, only two independent coordinates are then needed to describe its position on the sphere.

More generally, if a system begins with n independent coordinates and is subject to m independent constraints that can be solved locally to eliminate m variables, it typically has n − m degrees of freedom. This counting rule assumes the constraints are independent and that the configuration is not at a special point where the constraint relationships change their effective rank.

The distinction between coordinates and degrees of freedom matters because listing variables does not automatically mean that every variable can change independently. Generalized coordinates must describe the independent aspects of the system’s configuration.

Examples of generalized coordinates in classical mechanics

Generalized coordinates become easier to understand when applied to familiar mechanical systems. The appropriate coordinates depend on how the system is allowed to move.

A simple pendulum

A simple pendulum consists of a bob attached to a fixed pivot by a rigid, massless rod or an ideal inextensible string. If the pendulum swings in a single vertical plane and the rod length remains constant, its configuration can be specified by one angle, θ, measured from the downward vertical.

The angle is the generalized coordinate. Once θ is known, the bob’s horizontal and vertical positions follow from the geometry:

x = L sin θ

y = −L cos θ

Here, L is the pendulum length, and the pivot is taken as the origin with the positive y-axis pointing upward.

The bob’s Cartesian coordinates are therefore not independent. Both depend on the same angle because the bob must remain a fixed distance from the pivot.

For an ideal pendulum, the generalized coordinate makes it possible to describe the motion using one variable rather than two. Its kinetic and potential energies can be expressed in terms of θ and its rate of change, allowing the equation of motion to be derived through Lagrangian mechanics.

A block sliding along a straight track

Suppose a block moves along a fixed, horizontal, frictionless track. Its position along the track can be described by a single distance, x.

In this case, x is the generalized coordinate. Although the block occupies three-dimensional space, its motion is restricted to one dimension. Its other spatial coordinates remain fixed.

The coordinate x determines the block’s position, while its time derivative, ẋ, gives its velocity along the track. The acceleration is the second time derivative, ẍ.

This example illustrates that generalized coordinates do not need to differ from ordinary Cartesian coordinates. A Cartesian coordinate is already a suitable generalized coordinate when it conveniently describes an independent degree of freedom.

A mass moving around a circular path

A particle constrained to move along a fixed circle can be described by an angular coordinate, φ. If the circle has radius R and lies in the xy-plane, the particle’s position is

x = R cos φ

y = R sin φ

The radius remains constant, so the angle alone specifies the particle’s position on the circle.

The generalized coordinate φ is especially convenient because the particle’s velocity depends directly on how quickly the angle changes. If the angular velocity is φ̇, the particle’s speed is R|φ̇|.

This description is useful for rotating mechanisms, wheels, and other systems in which angular motion is more natural than tracking horizontal and vertical displacements separately.

Two connected masses

Consider two blocks connected by a taut, inextensible string passing over an ideal pulley. If the string length remains constant and the blocks move along fixed tracks, their positions are linked by a constraint.

Let x₁ and x₂ represent the distances of the two blocks from their respective reference points, measured in directions chosen so that the string-length condition is

x₁ + x₂ = L

where L is the constant portion of the string length represented by these coordinates.

Because the sum remains fixed, the two positions cannot vary independently. Knowing x₁ determines x₂, so only one generalized coordinate is required. For example, x₁ can serve as the generalized coordinate, with x₂ expressed as L − x₁.

This approach eliminates a redundant variable and automatically incorporates the string constraint into the description of the motion. It also simplifies the derivation of equations governing the acceleration of the connected blocks.

Generalized coordinates in Lagrangian mechanics

Generalized coordinates are especially important in Lagrangian mechanics, which describes motion using kinetic energy, potential energy, and a mathematical quantity called the Lagrangian.

For many standard mechanical systems, the Lagrangian is defined as

𝓛 = T − V

where T is the system’s kinetic energy and V is its potential energy. Both quantities are expressed in terms of the generalized coordinates, their time derivatives, and, in some cases, time itself.

The equations of motion are then obtained from the Euler–Lagrange equation. For a generalized coordinate qᵢ, it is

d/dt (∂𝓛/∂q̇ᵢ) − ∂𝓛/∂qᵢ = 0

This equation describes how the generalized coordinate changes over time. Here, q̇ᵢ is the time derivative of the coordinate, ∂ denotes a partial derivative, and d/dt represents a total time derivative.

The importance of this formulation is that the equations can be derived directly from the system’s energy expressions. When suitable coordinates are chosen, constraints can be incorporated into those expressions without separately calculating every force that enforces the constraints.

For example, a pendulum’s kinetic energy depends on how quickly its angle changes, while its gravitational potential energy depends on its angle. Substituting these expressions into the Lagrangian and applying the Euler–Lagrange equation produces the pendulum’s equation of motion.

This method is not limited to pendulums. It is widely applicable to coupled oscillators, rotating systems, articulated mechanisms, and many other mechanical models.

Generalized coordinates and generalized forces

In ordinary mechanics, forces are commonly described as vectors with components along spatial axes. In a generalized-coordinate description, the corresponding quantities are called generalized forces.

A generalized force is associated with a particular generalized coordinate and describes how applied forces contribute to changes in that coordinate. Unlike an ordinary force component, a generalized force does not always have units of newtons.

For a translational coordinate measured in meters, the corresponding generalized force usually has units of newtons. For an angular coordinate measured in radians, it may represent a torque, with units of newton-meters.

The connection can be understood through virtual work, the work associated with a hypothetical, infinitesimal displacement consistent with the system’s constraints. If Qᵢ is the generalized force associated with qᵢ, the virtual work can be written as

δW = Σ Qᵢ δqᵢ

Here, δqᵢ represents a small permitted variation of a generalized coordinate, and the sum includes all the coordinates.

For a rotating object, a small angular displacement produces work through torque. For a sliding block, a small linear displacement produces work through force. Generalized forces provide a common framework for describing both situations.

When nonconservative forces, such as friction or an externally applied force, are present, the Euler–Lagrange equation can be written with a generalized force term:

d/dt (∂𝓛/∂q̇ᵢ) − ∂𝓛/∂qᵢ = Qᵢ

This form allows the Lagrangian method to describe systems in which energy is transferred into or out of the mechanical system through forces not captured by the potential energy function.

How to choose suitable generalized coordinates

There is no single set of generalized coordinates that works best for every mechanical system. A good choice depends on the system’s geometry, constraints, and the quantities most relevant to its motion.

For a pendulum, an angle is usually more convenient than separate horizontal and vertical positions. For a block sliding along a straight track, a linear distance is generally simpler. For a mechanism with several rotating joints, a collection of joint angles may provide a natural description.

The coordinates must be sufficient to specify the configuration, and they should be independent within the region of motion being studied. If one coordinate can be determined entirely from the others, including it as an independent variable introduces redundancy.

A coordinate system must also remain valid over the configurations of interest. For example, spherical coordinates describe a point using a radial distance and two angles, but some of those coordinates become ambiguous or singular at particular locations, such as the poles. A different coordinate choice may be more convenient near such configurations.

Generalized coordinates are not necessarily unique. The same system may be described by different independent variables, each leading to a valid formulation of its mechanics. The best choice is generally the one that expresses the constraints simply and makes the equations of motion easiest to derive and interpret.

What generalized coordinates do not mean

Generalized coordinates are not a new kind of physical force, nor do they change the underlying laws of motion. They are variables used to represent the configuration of a mechanical system efficiently.

Their flexibility also does not mean that any arbitrary list of quantities will work. The chosen coordinates must contain enough information to determine the configuration, and their relationships must be consistent with the system’s constraints. Coordinates that depend on one another cannot all be treated as independent without additional care.

Finally, generalized coordinates describe configuration, not motion by themselves. To determine how a system evolves, one also needs information about its velocities, the forces or energy governing it, and the relevant initial conditions. The coordinates establish a convenient framework in which those physical relationships can be expressed.

By matching the mathematical description to the actual degrees of freedom of a system, generalized coordinates connect the geometry of motion with the equations that govern it. They make classical mechanics more flexible and provide the foundation for a powerful approach to understanding both simple mechanical devices and complex systems with many interacting parts.

Looking For Something Else?