This article needs editing tocomply with Wikipedia'sManual of Style. In particular, it has problems withMOS:FORMULA - avoid mixing <math>...</math> and{{math}} in the same expression. Please helpimprove the content.(July 2025) (Learn how and when to remove this message) |
| Part of a series on |
| Classical mechanics |
|---|
Core topics |
Inmechanics,virtual work arises in the application of theprinciple of least action to the study offorces andmovement of amechanical system. Thework of a force acting on a particle as it moves along adisplacement is different for different displacements. Among all the possible displacements that a particle may follow, calledvirtual displacements, one will minimize theaction. This displacement is therefore the displacement followed by the particle according to the principle of least action.
The work of a force on a particle along a virtual displacement is known as the virtual work.
Historically, virtual work and the associatedcalculus of variations were formulated to analyze systems of rigid bodies,[1] but they have also been developed for the study of the mechanics of deformable bodies.[2]
Theprinciple of virtual work had always been used in some form since antiquity in the study of statics. It was used by the Greeks, medieval Arabs and Latins, and Renaissance Italians as "the law of lever".[3] The idea of virtual work was invoked by many notable physicists of the 17th century, such as Galileo, Descartes, Torricelli, Wallis, and Huygens, in varying degrees of generality, when solving problems in statics.[3] Working with Leibnizian concepts,Johann Bernoulli systematized the virtual work principle and made explicit the concept of infinitesimal displacement. He was able to solve problems for both rigid bodies as well as fluids. Bernoulli's version of virtual work law appeared in his letter toPierre Varignon in 1715, which was later published in Varignon's second volume ofNouvelle mécanique ou Statique in 1725. This formulation of the principle is today known as the principle of virtual velocities and is commonly considered as the prototype of the contemporary virtual work principles.[3] In 1743 D'Alembert published hisTraité de Dynamique where he applied the principle of virtual work, based on Bernoulli's work, to solve various problems in dynamics. His idea was to convert a dynamical problem into static problem by introducinginertial force.[4] In 1768,Lagrange presented the virtual work principle in a more efficient form by introducing generalized coordinates and presented it as an alternative principle of mechanics by which all problems of equilibrium could be solved. A systematic exposition of Lagrange's program of applying this approach to all of mechanics, both static and dynamic, essentiallyD'Alembert's principle, was given in hisMécanique Analytique of 1788.[3] Although Lagrange had presented his version ofleast action principle prior to this work, he recognized the virtual work principle to be more fundamental mainly because it could be assumed alone as the foundation for all mechanics, unlike the modern understanding that least action does not account for non-conservative forces.[3]
If a force acts on a particle as it moves from point to point, then, for each possible trajectory that the particle may take, it is possible to compute the total work done by the force along the path. Theprinciple of virtual work, which is the form of the principle of least action applied to these systems, states that the path actually followed by the particle is the one for which the difference between the work along this path and other nearby paths is zero (to the first order). The formal procedure for computing the difference of functions evaluated on nearby paths is a generalization of the derivative known from differential calculus, and is termedthe calculus of variations.
Consider a point particle that moves along a path which is described by a function from point, where, to point, where. It is possible that the particle moves from to along a nearby path described by, where is called the variation of. The variation satisfies the requirement. The scalar components of the variation, and are called virtual displacements. This can be generalized to an arbitrary mechanical system defined by thegeneralized coordinates,. In which case, the variation of the trajectory is defined by the virtual displacements,.
Virtual work is the total work done by the applied forces and the inertial forces of a mechanical system as it moves through a set of virtual displacements. When considering forces applied to a body in static equilibrium, the principle of least action requires the virtual work of these forces to be zero.
Consider a particleP that moves from a pointA to a pointB along a trajectoryr(t), while a forceF(r(t)) is applied to it. The work done by the forceF is given by the integralwheredr is the differential element along the curve that is the trajectory ofP, andv is its velocity. It is important to notice that the value of the workW depends on the trajectoryr(t).
Now consider particleP that moves from pointA to pointB again, but this time it moves along the nearby trajectory that differs fromr(t) by the variationδr(t) =εh(t), whereε is a scaling constant that can be made as small as desired andh(t) is an arbitrary function that satisfiesh(t0) =h(t1) = 0. Suppose the forceF(r(t) +εh(t)) is the same asF(r(t)). The work done by the force is given by the integralThe variation of the workδW associated with this nearby path, known as thevirtual work, can be computed to be
If there are no constraints on the motion ofP, then 3 parameters are needed to completely describeP's position at any timet. If there arek (k ≤ 3) constraint forces, thenn = (3 −k) parameters are needed. Hence, we can definen generalized coordinatesqi (t) (i = 1,...,n), and expressr(t) andδr =εh(t) in terms of the generalized coordinates. That is,Then, the derivative of the variationδr =εh(t) is given bythen we have
The requirement that the virtual work be zero for an arbitrary variationδr(t) =εh(t) is equivalent to the set of requirementsThe termsQi are called thegeneralized forces associated with the virtual displacementδr.
Static equilibrium is a state in which the net force and net torque acted upon the system is zero. In other words, bothlinear momentum andangular momentum of the system are conserved. The principle of virtual work states thatthe virtual work of the applied forces is zero for allvirtual movements of the system fromstatic equilibrium. This principle can be generalized such that three dimensionalrotations are included: the virtual work of the applied forces and applied moments is zero for allvirtual movements of the system from static equilibrium. That iswhereFi ,i = 1, 2, ...,m andMj ,j = 1, 2, ...,n are the applied forces and applied moments, respectively, andδri ,i = 1, 2, ...,m andδφj,j = 1, 2, ...,n are thevirtual displacements andvirtual rotations, respectively.
Suppose the system consists ofN particles, and it hasf (f ≤ 6N)degrees of freedom. It is sufficient to use onlyf coordinates to give a complete description of the motion of the system, sofgeneralized coordinatesqk ,k = 1, 2, ...,f are defined such that thevirtual movements can be expressed in terms of thesegeneralized coordinates. That is,
The virtual work can then bereparametrized by thegeneralized coordinates:where thegeneralized forcesQk are defined asKane[5] shows that thesegeneralized forces can also be formulated in terms of the ratio of time derivatives. That is,
The principle of virtual work requires that the virtual work done on a system by the forcesFi and momentsMj vanishes if it is inequilibrium. Therefore, the generalized forcesQk are zero, that is
An important benefit of the principle of virtual work is that only forces that do work as the system moves through avirtual displacement are needed to determine the mechanics of the system. There are many forces in a mechanical system that do no work during avirtual displacement, which means that they need not be considered in this analysis. The two important examples are (i) the internal forces in arigid body, and (ii) the constraint forces at an idealjoint.
Lanczos[1] presents this as the postulate: "The virtual work of the forces of reaction is always zero for anyvirtual displacement which is in harmony with the given kinematic constraints." The argument is as follows. The principle of virtual work states that inequilibrium the virtual work of the forces applied to a system is zero.Newton's laws state that atequilibrium the applied forces are equal and opposite to the reaction, or constraint forces. This means the virtual work of the constraint forces must be zero as well.
Alever is modeled as a rigid bar connected to a ground frame by a hinged joint called a fulcrum. The lever is operated by applying an input forceFA at a pointA located by the coordinate vectorrA on the bar. The lever then exerts an output forceFB at the pointB located byrB. The rotation of the lever about the fulcrumP is defined by the rotation angleθ.

Let the coordinate vector of the pointP that defines the fulcrum berP, and introduce the lengthswhich are the distances from the fulcrum to the input pointA and to the output pointB, respectively.
Now introduce the unit vectorseA andeB from the fulcrum to the pointA andB, soThis notation allows us to define the velocity of the pointsA andB aswhereeA⊥ andeB⊥ are unit vectors perpendicular toeA andeB, respectively.
The angleθ is the generalized coordinate that defines the configuration of the lever, therefore using the formula above for forces applied to a one degree-of-freedom mechanism, the generalized force is given by
Now, denote asFA andFB the components of the forces that are perpendicular to the radial segmentsPA andPB. These forces are given byThis notation and the principle of virtual work yield the formula for the generalized force as
The ratio of the output forceFB to the input forceFA is themechanical advantage of the lever, and is obtained from the principle of virtual work as
This equation shows that if the distancea from the fulcrum to the pointA where the input force is applied is greater than the distanceb from fulcrum to the pointB where the output force is applied, then the lever amplifies the input force. If the opposite is true that the distance from the fulcrum to the input pointA is less than from the fulcrum to the output pointB, then the lever reduces the magnitude of the input force.
This is thelaw of the lever, which was proven byArchimedes using geometric reasoning.[6]
A gear train is formed by mounting gears on a frame so that the teeth of the gears engage. Gear teeth are designed to ensure the pitch circles of engaging gears roll on each other without slipping, this provides a smooth transmission of rotation from one gear to the next. For this analysis, we consider a gear train that has one degree-of-freedom, which means the angular rotation of all the gears in the gear train are defined by the angle of the input gear.

The size of the gears and the sequence in which they engage define the ratio of the angular velocityωA of the input gear to the angular velocityωB of the output gear, known as the speed ratio, orgear ratio, of the gear train. LetR be the speed ratio, then
The input torqueTA acting on the input gearGA is transformed by the gear train into the output torqueTB exerted by the output gearGB. If we assume, that the gears are rigid and that there are no losses in the engagement of the gear teeth, then the principle of virtual work can be used to analyze the static equilibrium of the gear train.
Let the angleθ of the input gear be the generalized coordinate of the gear train, then the speed ratioR of the gear train defines the angular velocity of the output gear in terms of the input gear, that is
The formula above for the principle of virtual work with applied torques yields the generalized force
Themechanical advantage of the gear train is the ratio of the output torqueTB to the input torqueTA, and the above equation yields
Thus, the speed ratio of a gear train also defines its mechanical advantage. This shows that if the input gear rotates faster than the output gear, then the gear train amplifies the input torque. And, if the input gear rotates slower than the output gear, then the gear train reduces the input torque.
If the principle of virtual work for applied forces is used on individual particles of arigid body, the principle can be generalized for a rigid body:When a rigid body that is in equilibrium is subject to virtual compatible displacements, the total virtual work of all external forces is zero; and conversely, if the total virtual work of all external forces acting on a rigid body is zero then the body is in equilibrium.
If a system is not in static equilibrium, D'Alembert showed that by introducing the acceleration terms of Newton's laws as inertia forces, this approach is generalized to define dynamic equilibrium. The result is D'Alembert's form of the principle of virtual work, which is used to derive the equations of motion for a mechanical system of rigid bodies.
The expressioncompatible displacements means that the particles remain in contact and displace together so that the work done by pairs of action/reaction inter-particle forces cancel out. Various forms of this principle have been credited toJohann (Jean) Bernoulli (1667–1748) andDaniel Bernoulli (1700–1782).
Let a mechanical system be constructed from n rigid bodies, Bi, i=1,...,n, and let the resultant of the applied forces on each body be the force-torque pairs,Fi andTi,i = 1,...,n. Notice that these applied forces do not include the reaction forces where the bodies are connected. Finally, assume that the velocityVi and angular velocitiesωi,i=1,...,n, for each rigid body, are defined by a single generalized coordinate q. Such a system of rigid bodies is said to have onedegree of freedom.
Consider a single rigid body which moves under the action of a resultant forceF and torqueT, with one degree of freedom defined by the generalized coordinate q. Assume the reference point for the resultant force and torque is the center of mass of the body, then the generalized inertia force Q* associated with the generalized coordinate q is given byThis inertia force can be computed from the kinetic energy of the rigid body,by using the formula
A system of n rigid bodies with m generalized coordinates has the kinetic energywhich can be used to calculate the m generalized inertia forces[7]
D'Alembert's form of the principle of virtual work states that a system of rigid bodies is in dynamic equilibrium when the virtual work of the sum of the applied forces and the inertial forces is zero for any virtual displacement of the system. Thus, dynamic equilibrium of a system of n rigid bodies with m generalized coordinates requires thatfor any set of virtual displacementsδqj. This condition yieldsm equations,which can also be written asThe result is a set of m equations of motion that define the dynamics of the rigid body system, known asLagrange's equations or thegeneralized equations of motion.
If the generalized forces Qj are derivable from a potential energyV(q1,...,qm), then these equations of motion take the form
In this case, introduce theLagrangian,L =T −V, so these equations of motion becomeThese are known as theEuler-Lagrange equations for a system with m degrees of freedom, orLagrange's equations of the second kind.
Consider now thefree body diagram of adeformable body, which is composed of an infinite number of differential cubes. Let's define two unrelated states for the body:
The superscript * emphasizes that the two states are unrelated. Other than the above stated conditions, there is no need to specify if any of the states are real or virtual.
Imagine now that the forces and stresses in the-State undergo thedisplacements anddeformations in the-State: We can compute the total virtual (imaginary) work done byall forces acting on the faces of all cubes in two different ways:
Equating the two results leads to the principle of virtual work for a deformable body:
| d |
where the total external virtual work is done byT andf. Thus,
| e |
The right-hand-side of (d,e) is often called the internal virtual work. The principle of virtual work then states:External virtual work is equal to internal virtual work when equilibrated forces and stresses undergo unrelated but consistent displacements and strains. It includes the principle of virtual work for rigid bodies as a special case where the internal virtual work is zero.
We start by looking at the total work done by surface traction on the body going through the specified deformation:
Applying divergence theorem to the right hand side yields:
Now switch to indicial notation for the ease of derivation.
To continue our derivation, we substitute in the equilibrium equation. Then
The first term on the right hand side needs to be broken into a symmetric part and a skew part as follows:where is the strain that is consistent with the specified displacement field. The 2nd to last equality comes from the fact that the stress matrix is symmetric and that the product of a skew matrix and a symmetric matrix is zero.
Now recap. We have shown through the above derivation that
Move the 2nd term on the right hand side of the equation to the left:
The physical interpretation of the above equation is,the External virtual work is equal to internal virtual work when equilibrated forces and stresses undergo unrelated but consistent displacements and strains.
For practical applications:
These two general scenarios give rise to two often stated variational principles. They are valid irrespective of material behaviour.
Depending on the purpose, we may specialize the virtual work equation. For example, to derive the principle of virtual displacements in variational notations for supported bodies, we specify:
The virtual work equation then becomes the principle of virtual displacements:
| f |
This relation is equivalent to the set of equilibrium equations written for a differential element in the deformable body as well as of the stress boundary conditions on the part of the surface. Conversely, (f) can be reached, albeit in a non-trivial manner, by starting with the differential equilibrium equations and the stress boundary conditions on, and proceeding in the manner similar to (a) and (b).
Since virtual displacements are automatically compatible when they are expressed in terms ofcontinuous,single-valued functions, we often mention only the need for consistency between strains and displacements. The virtual work principle is also valid for large real displacements; however, Eq.(f) would then be written using more complex measures of stresses and strains.
Here, we specify:
The virtual work equation becomes the principle of virtual forces:
| g |
This relation is equivalent to the set of strain-compatibility equations as well as of the displacement boundary conditions on the part. It has another name: the principle of complementary virtual work.
A specialization of the principle of virtual forces is theunit dummy force method, which is very useful for computing displacements in structural systems. According toD'Alembert's principle, inclusion of inertial forces as additional body forces will give the virtual work equation applicable to dynamical systems. More generalized principles can be derived by:
These are described in some of the references.
Among the manyenergy principles in structural mechanics, the virtual work principle deserves a special place due to its generality that leads to powerful applications instructural analysis,solid mechanics, andfinite element method in structural mechanics.
{{cite book}}:ISBN / Date incompatibility (help)