Virtual work and d’Alembert’s principle
Project Newton's law onto allowed instantaneous displacements and keep generalized-force signs and units explicit.
On this page
The question for today
What you’ll understand
- Distinguish a virtual displacement from actual motion.
- Compute generalized forces by projecting virtual work.
- State when ideal constraint reactions can be eliminated.
A constraint force can be large while contributing nothing to the equation for the motion you care about. Tension keeps a pendulum bob on its circle, but gravity changes the bob's angle. Virtual work formalizes this separation by testing forces against admissible instantaneous displacements. The construction is a projection of Newtonian mechanics, with an explicit assumption about reactions; it does not declare constraint forces physically absent.
Freeze time, then compare allowed arrangements
A virtual displacement compares nearby configurations at the same instant. For holonomic constraints, differentiate the position map with respect to independent coordinates while keeping time fixed. This is different from the actual displacement during a short interval, which also contains any motion of the track or support. A bead on a moving wire provides a useful test: its virtual displacement is tangent to the wire's instantaneous shape, although its actual velocity can have a normal component imposed by the wire.
Call a constraint ideal when its reaction forces have zero total virtual work for every allowed virtual displacement. This is an assumption about the contact model, not a consequence of merely writing a holonomic equation. A smooth stationary surface satisfies it, while sliding friction along that surface generally does not. A moving ideal support can still transfer real energy because zero virtual work at fixed time does not imply zero power along the actual motion.
Project applied force and inertia with the same sign
Separate each force into an applied contribution and an ideal reaction. Subtract mass times acceleration from applied force, dot with a virtual displacement, and sum over particles. Newton's law makes this sum vanish after the ideal reactions drop out. The minus sign on inertia matters: d’Alembert's principle is a convenient equation of dynamic balance, not a claim that an actual additional force has been discovered. Retaining this sign makes an independent force-balance check straightforward.
Generalized force is defined by the coefficient of a generalized virtual displacement in applied virtual work. For a length coordinate it has force units; for an angle it has torque units. If a potential depends only on configuration and time, its generalized force is minus its coordinate derivative. A motor torque, a dashpot, or friction not already represented by that potential stays on the right-hand side of Lagrange's equation. Counting the same force in both places doubles its effect.
Recover equations without hiding the contact model
For a plane pendulum, take the angle positive away from the downward vertical. Increasing that angle raises the bob locally when the angle is positive. Gravity therefore has negative generalized force, while the string tension is perpendicular to the allowed virtual displacement. The inertia coefficient is mass times length squared, so dividing a torque by it produces angular acceleration. If the string becomes slack, the original circle constraint fails and this reduced equation no longer describes the motion.
Use the vector lab as a projection check before doing the worked calculation. Set a magnitude and compare positive and negative angles to predict the sign of one Cartesian component. Its single vector can represent a chosen force direction, but it does not display a moving constraint, an acceleration balance, or a second independent vector. You must supply the tangent direction analytically. The teaching point is to check signs geometrically rather than to let an attractive diagram replace the force model.
Work it through
Torque, gravity, and a damped pendulum
A 2 kg bob on a rigid 1 m massless rod has θ=30 degrees and θdot=1 rad/s. A motor applies +3 N m and a pivot damper has coefficient 1 N m s. Use g=10 m/s² to find θddot.
With θ measured from downward vertical, gravity contributes Qg=−mgl sin θ=−10 N m. The motor contributes +3 N m and the damper contributes −b θdot=−1 N m.
Add the applied generalized torques: Q=−10+3−1=−8 N m. Ideal radial reaction has no virtual work for an angular displacement.
The angular inertia is ml²=2 kg m². Thus 2 θddot=−8, giving θddot=−4 rad/s² at this instant.
Positive angular velocity and negative angular acceleration are consistent: the bob is moving away from the bottom while the net torque slows that motion.
The living notebook
Explore the model
Interactive lab · vectors
Predict a projected-force sign
Change Angle across zero while holding Magnitude fixed. Predict the sign of the vertical projection first. This is one vector with projections, not a virtual-work or constrained-motion solver.
- x component
- 1.393
- y component
- 0.975
- Magnitude
- 1.7
Playback traces a fixed vector and its projections. Angle and magnitude set the geometry; the moving marker does not change them. Parameter changes pause playback and recompute the model at the current elapsed time. Reset restores both parameters and returns time to zero. Playback starts paused. Adjust either parameter, then choose Play or Step.
Look forThe sign of generalized work comes from the force dotted with the chosen coordinate tangent.
Pause & reason
Check your understanding
Your turn
Try it yourself
A bead moves along a straight track parameterized by r(s)=(s cos α,s sin α), with s increasing uphill. Gravity is (0,−mg). Find the gravitational generalized force and explain its units.
Take a moment to make a prediction or work it out on paper. Open a hint when you need one.
Give me a hint
Differentiate the position map with respect to s, then take the dot product with gravity.
Compare with the solution
The tangent is (cos α,sin α), so Qs=−mg sin α. Since s has length units, Qs has newton units. For α=30 degrees, m=2 kg, and g=10 m/s², Qs=−10 N. The negative sign means gravity favors decreasing the uphill coordinate.
Keep the idea
Take it with you
- Virtual displacements hold time fixed.
- Eliminate only reactions assumed to have zero virtual work.
- Generalized-force units and signs follow the chosen coordinate.
Read further
Original sources and deeper explanations to follow at your own pace.
Optional progress, saved in this browser when available. Revisit any lesson at any time.
Lesson not marked complete.