Virtual Work and D'Alembert's Principle
~7 min read · Tier toggle changes depth (T1 plain · T2 standard · T3 rigour)
You should be comfortable with Newton’s second law for systems of particles, the concept of work done by a force, and basic vector calculus including the chain rule for partial derivatives.
Why this matters
D'Alembert's principle provides the crucial bridge between Newtonian vector mechanics and the scalar variational methods that define modern theoretical physics.
Newton's laws are inherently vectorial and local; they require us to track the direction and magnitude of every force acting on every particle. While powerful, this approach becomes unwieldy for complex systems with constraints, such as a double pendulum or a bead on a wire. D'Alembert's principle reframes dynamics as a statement about work. By introducing the concept of "inertial forces," it allows us to treat dynamic problems as if they were static equilibrium problems. This shift is not merely a mathematical trick; it is the foundation upon which the Lagrangian and Hamiltonian formulations are built. It reveals that the geometry of the configuration space, rather than the specific forces, often dictates the structure of the equations of motion.
The Core Idea: Dynamics as Statics
Imagine a particle moving under the influence of a force. Newton tells us that the force equals mass times acceleration. D'Alembert suggests a different perspective: move the acceleration term to the other side of the equation. If we define a "reversed effective force" as negative mass times acceleration, the equation of motion looks exactly like the condition for static equilibrium. The particle is in "dynamic equilibrium" under the action of the applied forces and this new inertial force.
This idea extends to systems of particles. If we consider a virtual displacement—a hypothetical, infinitesimal change in position that is consistent with the constraints at that instant but does not involve the passage of time—the total work done by the applied forces and the inertial forces must sum to zero. This is the essence of D'Alembert's principle. It allows us to eliminate constraint forces (like tension in a string or normal reaction from a surface) from our equations, provided they do no work. This is a massive simplification, as we no longer need to solve for these unknown internal forces explicitly.
Virtual Displacements and Ideal Constraints
To apply D'Alembert's principle rigorously, we must distinguish between a real displacement and a virtual displacement. A real displacement, denoted \( \mathrm{d}\mathbf{r}_i \), occurs over a finite time interval \( \mathrm{d}t \) and is governed by the equations of motion. A virtual displacement, denoted \( \delta \mathbf{r}_i \), is a hypothetical variation in position at a fixed instant in time. It is a tool for analysis, not a physical trajectory.
For the principle to hold in its simplest form, we assume the constraints are "ideal." This means the constraint forces do no work for any virtual displacement consistent with the constraints. Mathematically, if \( \mathbf{R}_i \) is the constraint force on particle \( i \), then \( \sum_i \mathbf{R}_i \cdot \delta \mathbf{r}_i = 0 \). Examples of ideal constraints include a bead sliding on a frictionless wire or a rigid rod connecting two masses. In these cases, the constraint force is always perpendicular to the allowed direction of motion, so its dot product with the virtual displacement is zero.
Here, \( \mathbf{F}_i^{(a)} \) represents the applied (non-constraint) forces. The term \( -m_i \ddot{\mathbf{r}}_i \) is the reversed effective force. This equation states that the total virtual work of the applied forces and the inertial forces vanishes.
Generalized Coordinates and Forces
While D'Alembert's principle is vectorial, its true power emerges when we project it onto generalized coordinates \( q_j \). These coordinates can be angles, distances, or any independent parameters that fully describe the system's configuration. The virtual displacement of particle \( i \) can be expressed in terms of the virtual changes in these generalized coordinates: \( \delta \mathbf{r}_i = \sum_j \frac{\partial \mathbf{r}_i}{\partial q_j} \delta q_j \).
Substituting this into D'Alembert's principle and rearranging terms allows us to isolate the generalized force \( Q_j \). The generalized force is defined as the projection of the applied forces onto the direction of the generalized coordinate:
The kinetic energy \( T \) of the system, expressed in terms of \( q_j \) and \( \dot{q}_j \), leads to the left-hand side of the equation of motion. The result is a scalar equation for each degree of freedom:
This form is remarkably compact. It requires no knowledge of the constraint forces, only the applied forces and the geometry of the system (encoded in the partial derivatives of position with respect to coordinates).
Connection to the Lagrangian
If the applied forces are conservative, they can be derived from a potential energy function \( V \). In this case, the generalized force is \( Q_j = -\frac{\partial V}{\partial q_j} \). Substituting this into the equation of motion and rearranging gives:
Since \( V \) does not depend on velocities, \( \frac{\partial V}{\partial \dot{q}_j} = 0 \). We can define the Lagrangian \( L = T - V \). The equation then becomes the Euler-Lagrange equation:
Thus, D'Alembert's principle is the direct precursor to Lagrangian mechanics. It shows that the variational principle of least action is not an abstract mathematical curiosity, but a natural consequence of Newton's laws when viewed through the lens of virtual work and generalized coordinates.
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 pitfall is assuming that all constraint forces are ideal. Friction is a non-ideal constraint because it does work during virtual displacements. If friction is present, the term \( \sum \mathbf{R}_i \cdot \delta \mathbf{r}_i \) does not vanish, and D'Alembert's principle in its simple form fails. You must explicitly include the work done by friction in the generalized force term \( Q_j \). This distinction is critical when transitioning from idealized textbook problems to real-world engineering applications. C
Worked example
Problem. A particle of mass \( m = 2.0\ \mathrm{kg} \) slides without friction on a horizontal table, tied to a fixed point by a light string of length \( L = 1.0\ \mathrm{m} \), and moves in a circle at \( \omega = 3.0\ \mathrm{rad/s} \). Use D'Alembert's principle to show that \( \omega \) stays constant, and then to find the tension.
- Coordinates: the radius is fixed, so the one degree of freedom is the angle \( \theta \), with \( \mathbf{r} = L\,\hat{\mathbf{e}}_r \) and acceleration \( \ddot{\mathbf{r}} = -L\dot\theta^2\,\hat{\mathbf{e}}_r + L\ddot\theta\,\hat{\mathbf{e}}_\theta \).
- Allowed virtual displacement: \( \delta\mathbf{r} = L\,\delta\theta\,\hat{\mathbf{e}}_\theta \). The tension \( -T\hat{\mathbf{e}}_r \) is perpendicular to it, so it does no virtual work and drops out; there is no applied horizontal force.
- D'Alembert: \( (\mathbf{F}^{(a)} - m\ddot{\mathbf{r}})\cdot\delta\mathbf{r} = -mL^2\ddot\theta\,\delta\theta = 0 \) for every \( \delta\theta \), so \( \ddot\theta = 0 \): the angular velocity stays at \( 3.0\ \mathrm{rad/s} \).
- To find the tension, release the constraint: allow a radial virtual displacement \( \delta r\,\hat{\mathbf{e}}_r \) and treat the tension as an applied force. Then \( (-T + mL\dot\theta^2)\,\delta r = 0 \), so \( T = mL\omega^2 \).
Units check. \( \mathrm{kg\cdot m\cdot s^{-2}} = \mathrm{N} \). The method shows the general rule: an ideal constraint force never appears in the equation for an allowed motion; to compute it you must allow the motion it prevents.
Three quick tests
- What is the key difference between a real displacement and a virtual displacement?
Answer
A real displacement occurs over time and follows the actual trajectory; a virtual displacement is a hypothetical change at a fixed instant consistent with constraints. - Why do ideal constraint forces not appear in the generalized force \( Q_j \)?
Answer
Because they do no work for any virtual displacement consistent with the constraints, so their contribution to the virtual work sum is zero. - If a system has friction, how does D'Alembert's principle change?
Answer
The constraint forces are no longer ideal, so the term \( \sum \mathbf{R}_i \cdot \delta \mathbf{r}_i \) is non-zero. Friction must be included explicitly in the generalized force \( Q_j \).
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.