Generalized Coordinates and Generalized Forces
~7 min read · Tier toggle changes depth (T1 plain · T2 standard · T3 rigour)
You should be comfortable with vector calculus, specifically the chain rule for multivariable functions, and have a working understanding of the concept of virtual work from the previous lecture.
Why this matters
Generalized coordinates allow us to describe complex mechanical systems using the minimum number of independent variables required.
Newtonian mechanics relies on Cartesian coordinates, which often forces us to deal with constraint forces that do no work but complicate the equations of motion. By shifting to generalized coordinates, we eliminate these constraint forces from the equations entirely, provided the constraints are ideal. This transition is the first major step toward the Lagrangian formulation, where the dynamics of a system are determined by a single scalar function rather than a set of vector force balances. It simplifies the analysis of systems with moving supports, rotating frames, or coupled oscillators, making it an indispensable tool for advanced mechanics and field theory.
The Idea in Plain Language
Imagine a pendulum. In Cartesian coordinates, you must track the horizontal position \(x\) and vertical position \(y\), and you must explicitly include the tension in the string as a force to keep the bob on its circular path. However, the tension does no work because it is always perpendicular to the motion. If instead you describe the system using the angle \(\theta\), you have reduced the problem from two coordinates to one. The tension disappears from your equations of motion because it is a constraint force, and the only force you need to consider is gravity. This angle \(\theta\) is a generalized coordinate. It is any parameter that uniquely defines the configuration of the system without violating its constraints. The corresponding "force" associated with changing this angle is the generalized force. It is not a physical force in the Newtonian sense, but a measure of how much work the applied forces would do if the coordinate were to change by a small amount. This approach allows us to focus solely on the forces that actually drive the motion.
Defining Generalized Coordinates
Consider a system of \(N\) particles. The position of the \(i\)-th particle is given by the vector \(\mathbf{r}_i\). If the system is subject to \(k\) independent holonomic constraints, the number of degrees of freedom is \(f = 3N - k\). We can describe the entire configuration of the system using \(f\) independent parameters \(q_1, q_2, \dots, q_f\), known as generalized coordinates. These coordinates can be anything: lengths, angles, or even combinations thereof, as long as they are independent and sufficient to specify the position.
The relationship between the Cartesian coordinates and the generalized coordinates is given by:
Here, the time dependence \(t\) is included to account for time-dependent constraints, such as a pendulum pivot that moves. The velocity of the \(i\)-th particle is obtained by differentiating with respect to time:
This expression is crucial because it links the generalized velocities \(\dot{q}_j\) to the physical velocities \(\mathbf{v}_i\). It allows us to express the kinetic energy \(T\), which is a function of \(\mathbf{v}_i\), as a function of \(q_j\) and \(\dot{q}_j\).
Deriving the Generalized Force
The generalized force \(Q_j\) associated with the coordinate \(q_j\) is defined through the principle of virtual work. For a virtual displacement \(\delta \mathbf{r}_i\) consistent with the constraints, the total virtual work done by the applied forces \(\mathbf{F}_i^{(a)}\) is:
Since the virtual displacement is a change in the generalized coordinates at a fixed time, we have:
Substituting this into the work equation and rearranging terms, we get:
By definition, the term in the parentheses is the generalized force \(Q_j\):
Thus, the virtual work can be written compactly as \(\delta W = \sum_{j=1}^{f} Q_j \delta q_j\). This shows that \(Q_j\) is the coefficient of the virtual displacement \(\delta q_j\) in the work expression. It is a scalar quantity that may have units of force, torque, or other physical quantities depending on the nature of \(q_j\).
Connection to D'Alembert's Principle
D'Alembert's principle states that for a system in dynamic equilibrium, the sum of the applied forces and the inertial forces (reversed effective forces) does no virtual work. Mathematically, this is expressed as:
where \(\dot{\mathbf{p}}_i = m_i \mathbf{a}_i\) is the rate of change of momentum. Using the expression for \(\delta \mathbf{r}_i\) in terms of generalized coordinates, we can project this principle onto each coordinate \(q_j\). The term involving the applied forces becomes \(Q_j \delta q_j\). The term involving the inertial forces requires more careful manipulation of the kinetic energy \(T\).
It can be shown that the inertial contribution to the virtual work for the \(j\)-th coordinate is:
Therefore, D'Alembert's principle leads directly to the equation of motion for the \(j\)-th generalized coordinate:
This is a powerful result because it provides the equations of motion without explicitly solving for constraint forces. The left-hand side depends only on the kinetic energy, while the right-hand side is the generalized force. This form is the precursor to the Euler-Lagrange equations, where the potential energy \(V\) is introduced to define the Lagrangian \(L = T - V\).
The derivation
D'Alembert's Principle and Generalized Forces
For a system of N particles subject to ideal (workless) constraints, the total virtual work of the applied forces together with the inertial "reversed effective forces" vanishes for every virtual displacement consistent with the instantaneous constraints: Σi (Fi(a) − ṗi) · δri = 0. Projected onto generalized coordinates qj, this is equivalent to d/dt(∂T/∂q̇j) − ∂T/∂qj = Qj, where Qj = Σi Fi(a) · ∂ri/∂qj is the generalized force.
A common misconception is that generalized forces are always conservative. While generalized forces derived from a potential \(V(q,t)\) are conservative, applied forces such as friction or driving forces are generally non-conservative and cannot be derived from a potential. In such cases, \(Q_j\) must be calculated directly from the dot product definition, and the Lagrangian formulation must be modified to include these non-conservative terms explicitly. C
Worked example
Problem. A particle of mass \(m\) is constrained to move on a frictionless circular hoop of radius \(R\) in a vertical plane. The hoop rotates about a vertical diameter with a constant angular velocity \(\omega\). Let \(\theta\) be the angle of the particle measured from the upward vertical (\(\theta = 0\) at the top of the hoop). Find the generalized force \(Q_\theta\) due to gravity.
- Define the position vector of the particle in Cartesian coordinates. Take the \(z\)-axis upward along the rotation axis; at \(t = 0\) the hoop lies in the \(xz\)-plane. The position is \(\mathbf{r} = (R \sin \theta \cos \omega t, R \sin \theta \sin \omega t, R \cos \theta)\).
- Identify the generalized coordinate \(q_1 = \theta\). The time dependence is explicit due to the rotation.
- Calculate the partial derivative \(\frac{\partial \mathbf{r}}{\partial \theta}\): \[ \frac{\partial \mathbf{r}}{\partial \theta} = (R \cos \theta \cos \omega t, R \cos \theta \sin \omega t, -R \sin \theta) \]
- The applied force is gravity \(\mathbf{F}^{(a)} = (0, 0, -mg)\). The normal force from the hoop is a constraint force and does no work, so it is excluded.
- Compute the generalized force \(Q_\theta = \mathbf{F}^{(a)} \cdot \frac{\partial \mathbf{r}}{\partial \theta}\): \[ Q_\theta = (0, 0, -mg) \cdot (R \cos \theta \cos \omega t, R \cos \theta \sin \omega t, -R \sin \theta) = mg R \sin \theta \]
Units check. \(mgR\) has units of \(\mathrm{N \cdot m}\) (torque), and \(\sin \theta\) is dimensionless. Since \(\theta\) is an angle (dimensionless), the generalized force has units of torque, which is consistent with the definition of work \(\delta W = Q_\theta \delta \theta\) having units of energy (\(\mathrm{J}\)).
Three quick tests
- What is the primary advantage of using generalized coordinates over Cartesian coordinates for constrained systems?
Answer
It eliminates the need to explicitly calculate constraint forces, reducing the number of equations to the number of degrees of freedom. - If a generalized coordinate \(q_j\) has units of length, what are the units of the corresponding generalized force \(Q_j\)?
Answer
Force (Newtons), since work \(Q_j \delta q_j\) must have units of energy (Joules). - Can a generalized force be derived from a potential energy function?
Answer
Only if the force is conservative. Non-conservative forces like friction must be treated separately.
Problem set for PU-201 →
Each derivation in this unit ends with five graded problems with full solutions.
Lecture notes drafted with a local model and checked line by line by the editor; every number in the worked example was recomputed.