Virtual work is a method of analysis in mechanics that uses the principle of virtual work to determine the equilibrium conditions of a system of forces and moments. Virtual work is defined as the work done by virtual displacements that satisfy the constraints of the system.