Principle of Virtual Work — Definition, Formula & Example
The principle of virtual work says that a system held only by ideal, workless constraints (frictionless pivots, smooth surfaces, rigid links) is in equilibrium exactly when the applied forces do zero total work for every tiny imagined motion those constraints allow. The forces from the constraints themselves never enter the calculation.
Consider particles at positions with applied forces . The particles are subject to ideal constraints, meaning the constraint forces do no work in any virtual displacement. A virtual displacement is an infinitesimal change in configuration that is compatible with the constraints at a fixed instant of time. The system, starting at rest, is in static equilibrium if and only if for every virtual displacement. With independent generalized coordinates , this is equivalent to every generalized force being zero.
Key Formula
Where:
- = Virtual work, the total work done by the applied forces during a virtual displacement
- = Applied force on particle i (workless constraint forces are excluded)
- = Virtual displacement of particle i that the constraints allow
- = Number of particles or points where forces act
How It Works
Choose one coordinate for each independent way the system can move, such as an angle or a slider position. Express each point's virtual displacement in terms of that coordinate's tiny change, using the constraints. Add up force times displacement for the applied forces only, then set the total to zero for every allowed change. One equation per coordinate gives the equilibrium conditions without solving for pivot or contact forces.
Worked Example
Problem: A rigid, horizontal lever rests on a frictionless pivot. A 60 lb weight hangs 2 ft to the left of the pivot. What downward force F, applied 3 ft to the right of the pivot, holds the lever in equilibrium? Ignore the lever's own weight.
Step 1: Imagine rotating the lever by a tiny angle so that the right end moves down. To first order, each point moves a distance equal to its distance from the pivot times . The pivot point does not move, so the pivot's reaction force does zero virtual work.
Step 2: Add the virtual work of the applied forces. F points down and its point moves down, so its work is positive. The weight points down but its point moves up, so its work is negative.
Step 3: Equilibrium requires for every allowed , so the coefficient must be zero.
Answer: A downward force of 40 lb at 3 ft balances the lever. The unknown pivot force never appeared in the calculation, which is the main advantage of the method.
Why It Matters
In an engineering statics course, virtual work solves linkages, scissor lifts, and multi-pulley systems with one equation per degree of freedom, skipping every internal reaction force. In structural analysis, the same principle gives the weak form that the finite element method discretizes. For conservative forces it becomes the condition that the gradient of potential energy is zero at equilibrium.
Common Mistakes
Mistake: Applying the principle when friction acts and treating the friction force as a constraint force that can be left out.
Correction: Only workless constraint forces drop out. Friction does work during sliding, so it is not an ideal constraint. A block at rest on a rough incline is in equilibrium, yet gravity does nonzero work along the incline. If friction is present, count it as an applied force, or use ordinary force balance.
