At any time during the motion we may consider perturbing the system by a virtual displacement δ r consistent with the constraints of the system. The displacement is allowed to be either reversible or irreversible. If the displacement is irreversible, then it performs virtual work. We may write the virtual work of the displacement as