Mathwords logoMathwords

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 r1,…,rn\mathbf{r}_1, \dots, \mathbf{r}_n with applied forces Fi\mathbf{F}_i. The particles are subject to ideal constraints, meaning the constraint forces do no work in any virtual displacement. A virtual displacement δri\delta \mathbf{r}_i 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 ∑iFi⋅δri=0\sum_i \mathbf{F}_i \cdot \delta \mathbf{r}_i = 0 for every virtual displacement. With independent generalized coordinates qjq_j, this is equivalent to every generalized force Qj=∑iFi⋅∂ri/∂qjQ_j = \sum_i \mathbf{F}_i \cdot \partial \mathbf{r}_i / \partial q_j being zero.

Key Formula

δW=∑i=1nFi⋅δri=0\delta W = \sum_{i=1}^{n} \mathbf{F}_i \cdot \delta \mathbf{r}_i = 0
Where:
  • δW\delta W = Virtual work, the total work done by the applied forces during a virtual displacement
  • Fi\mathbf{F}_i = Applied force on particle i (workless constraint forces are excluded)
  • δri\delta \mathbf{r}_i = Virtual displacement of particle i that the constraints allow
  • nn = 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 δθ\delta\theta so that the right end moves down. To first order, each point moves a distance equal to its distance from the pivot times δθ\delta\theta. The pivot point does not move, so the pivot's reaction force does zero virtual work.
δyweight=2 δθ (up),δyF=3 δθ (down)\delta y_{\text{weight}} = 2\,\delta\theta \text{ (up)}, \qquad \delta y_{F} = 3\,\delta\theta \text{ (down)}
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.
δW=F(3 δθ)−60(2 δθ)=(3F−120) δθ\delta W = F(3\,\delta\theta) - 60(2\,\delta\theta) = (3F - 120)\,\delta\theta
Step 3: Equilibrium requires δW=0\delta W = 0 for every allowed δθ\delta\theta, so the coefficient must be zero.
3F−120=0  ⟹  F=40 lb3F - 120 = 0 \implies F = 40 \text{ lb}
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.

Related Terms

  • Work — Defines the force-times-displacement product that virtual work sums
  • Gradient — Equilibrium of conservative forces means zero potential energy gradient
  • Lagrange Multiplier — Recovers the constraint forces that virtual work eliminates
  • Partial Derivative — Builds generalized forces from position derivatives in each coordinate
  • Jacobian — Converts generalized coordinate changes into virtual displacements
  • Constraint — Ideal constraints define the allowed virtual motions