# Virtual work

In mechanics, virtual work arises in the application of the principle of least action to the study of forces and movement of a mechanical system. The work of a force acting on a particle as it moves along a displacement is different for different displacements. Among all the possible displacements that a particle may follow, called virtual displacements, one will minimize the action. 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 associated calculus 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]

## History

The principle 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 to Pierre Varignon in 1715, which was later published in Varignon's second volume of Nouvelle 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 his Traité 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 introducing inertial 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, essentially D'Alembert's principle, was given in his Mécanique Analytique of 1788.[3] Although Lagrange had presented his version of least 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]

## Overview

If a force acts on a particle as it moves from point ${\displaystyle A}$ to point ${\displaystyle B}$, 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. The principle 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 termed the calculus of variations.

Consider a point particle that moves along a path which is described by a function ${\displaystyle \mathbf {r} (t)}$ from point ${\displaystyle A}$, where ${\displaystyle \mathbf {r} (t=t_{0})}$, to point ${\displaystyle B}$, where ${\displaystyle \mathbf {r} (t=t_{1})}$. It is possible that the particle moves from ${\displaystyle A}$ to ${\displaystyle B}$ along a nearby path described by ${\displaystyle \mathbf {r} (t)+\delta \mathbf {r} (t)}$, where ${\displaystyle \delta \mathbf {r} (t)}$ is called the variation of ${\displaystyle \mathbf {r} (t)}$. The variation ${\displaystyle \delta \mathbf {r} (t)}$ satisfies the requirement ${\displaystyle \delta \mathbf {r} (t_{0})=\delta \mathbf {r} (t_{1})=0}$. The scalar components of the variation ${\displaystyle \delta r_{1}(t)}$, ${\displaystyle \delta r_{2}(t)}$ and ${\displaystyle \delta r_{3}(t)}$ are called virtual displacements. This can be generalized to an arbitrary mechanical system defined by the generalized coordinates ${\displaystyle q_{i}}$, ${\displaystyle i=1,2,...,n}$. In which case, the variation of the trajectory ${\displaystyle q_{i}(t)}$ is defined by the virtual displacements ${\displaystyle \delta q_{i}}$, ${\displaystyle i=1,2,...,n}$.

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.

## Introduction

Consider a particle P that moves from a point A to a point B along a trajectory r(t), while a force F(r(t)) is applied to it. The work done by the force F is given by the integral

${\displaystyle W=\int _{\mathbf {r} (t_{0})=A}^{\mathbf {r} (t_{1})=B}\mathbf {F} \cdot d\mathbf {r} =\int _{t_{0}}^{t_{1}}\mathbf {F} \cdot {\frac {d\mathbf {r} }{dt}}~dt=\int _{t_{0}}^{t_{1}}\mathbf {F} \cdot \mathbf {v} ~dt,}$

where dr is the differential element along the curve that is the trajectory of P, and v is its velocity. It is important to notice that the value of the work W depends on the trajectory r(t).

Now consider particle P that moves from point A to point B again, but this time it moves along the nearby trajectory that differs from r(t) by the variation δr(t)=εh(t), where ε is a scaling constant that can be made as small as desired and h(t) is an arbitrary function that satisfies h(t0) = h(t1) = 0. Suppose the force F(r(t)+εh(t)) is the same as F(r(t)). The work done by the force is given by the integral

${\displaystyle {\bar {W}}=\int _{\mathbf {r} (t_{0})=A}^{\mathbf {r} (t_{1})=B}\mathbf {F} \cdot d(\mathbf {r} +\epsilon \mathbf {h} )=\int _{t_{0}}^{t_{1}}\mathbf {F} \cdot {\frac {d(\mathbf {r} (t)+\epsilon \mathbf {h} (t))}{dt}}~dt=\int _{t_{0}}^{t_{1}}\mathbf {F} \cdot (\mathbf {v} +\epsilon {\dot {\mathbf {h} }})~dt.}$

The variation of the work δW associated with this nearby path, known as the virtual work, can be computed to be

${\displaystyle \delta W={\bar {W}}-W=\int _{t_{0}}^{t_{1}}(\mathbf {F} \cdot \epsilon {\dot {\mathbf {h} }})~dt.}$

If there are no constraints on the motion of P, then 6 parameters are needed to completely describe P's position at any time t. If there are k (k ≤ 6) constraint forces, then n = (6 - k) parameters are needed. Hence, we can define n generalized coordinates qi (t) (i = 1, 2, ..., n), and express r(t) and δr=εh(t) in terms of the generalized coordinates. That is,

${\displaystyle \mathbf {r} (t)=\mathbf {r} (q_{1},q_{2},...,q_{n};t)}$,
${\displaystyle \mathbf {h} (t)=\mathbf {h} (q_{1},q_{2},...,q_{n};t)}$.

Then, the derivative of the variation δr=εh(t) is given by

${\displaystyle {\frac {d}{dt}}\delta \mathbf {r} ={\frac {d}{dt}}\epsilon \mathbf {h} =\sum _{i=1}^{n}{\frac {\partial \mathbf {h} }{\partial q_{i}}}\epsilon {\dot {q}}_{i},}$

then we have

${\displaystyle \delta W=\int _{t_{0}}^{t_{1}}\left(\sum _{i=1}^{n}\mathbf {F} \cdot {\frac {\partial \mathbf {h} }{\partial q_{i}}}\epsilon {\dot {q}}_{i}\right)dt=\sum _{i=1}^{n}\left(\int _{t_{0}}^{t_{1}}\mathbf {F} \cdot {\frac {\partial \mathbf {h} }{\partial q_{i}}}\epsilon {\dot {q}}_{i}~dt\right).}$

The requirement that the virtual work be zero for an arbitrary variation δr(t)=εh(t) is equivalent to the set of requirements

${\displaystyle Q_{i}=\mathbf {F} \cdot {\frac {\partial \mathbf {h} }{\partial q_{i}}}=0,\quad i=1,\ldots ,n.}$

The terms Qi are called the generalized forces associated with the virtual displacement δr.

## Static equilibrium

Static equilibrium is a state in which the net force and net torque acted upon the system is zero. In other words, both linear momentum and angular momentum of the system are conserved. The principle of virtual work states that the virtual work of the applied forces is zero for all virtual movements of the system from static equilibrium. This principle can be generalized such that three dimensional rotations are included: the virtual work of the applied forces and applied moments is zero for all virtual movements of the system from static equilibrium. That is

${\displaystyle \delta W=\sum _{i=1}^{m}\mathbf {F} _{i}\cdot \delta \mathbf {r} _{i}+\sum _{j=1}^{n}\mathbf {M} _{j}\cdot \delta \mathbf {\phi } _{j}=0,}$

where Fi , i = 1, 2, ..., m and Mj , 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 the virtual displacements and virtual rotations, respectively.

Suppose the system consists of N particles, and it has f (f ≤ 6N) degrees of freedom. It is sufficient to use only f coordinates to give a complete description of the motion of the system, so f generalized coordinates qk , k = 1, 2, ..., f are defined such that the virtual movements can be expressed in terms of these generalized coordinates. That is,

${\displaystyle \delta \mathbf {r} _{i}(q_{1},q_{2},...,q_{f};t),\quad i=1,2,...,m;}$
${\displaystyle \delta \phi _{j}(q_{1},q_{2},...,q_{f};t),\quad j=1,2,...,n.}$

The virtual work can then be reparametrized by the generalized coordinates:

${\displaystyle \delta W=\sum _{k=1}^{f}\left[\left(\sum _{i=1}^{m}\mathbf {F} _{i}\cdot {\frac {\partial \mathbf {r} _{i}}{\partial q_{k}}}+\sum _{j=1}^{n}\mathbf {M} _{j}\cdot {\frac {\partial \mathbf {\phi } _{j}}{\partial q_{k}}}\right)\delta q_{k}\right]=\sum _{k=1}^{f}Q_{k}\delta q_{k},}$

where the generalized forces Qk are defined as

${\displaystyle Q_{k}=\sum _{i=1}^{m}\mathbf {F} _{i}\cdot {\frac {\partial \mathbf {r} _{i}}{\partial q_{k}}}+\sum _{j=1}^{n}\mathbf {M} _{j}\cdot {\frac {\partial \mathbf {\phi } _{j}}{\partial q_{k}}},\quad k=1,2,...,f.}$

Kane[5] shows that these generalized forces can also be formulated in terms of the ratio of time derivatives. That is,

${\displaystyle Q_{k}=\sum _{i=1}^{m}\mathbf {F} _{i}\cdot {\frac {\partial \mathbf {v} _{i}}{\partial {\dot {q}}_{k}}}+\sum _{j=1}^{n}\mathbf {M} _{j}\cdot {\frac {\partial \mathbf {\omega } _{j}}{\partial {\dot {q}}_{k}}},\quad k=1,2,...,f.}$

The principle of virtual work requires that the virtual work done on a system by the forces Fi and moments Mj vanishes if it is in equilibrium. Therefore, the generalized forces Qk are zero, that is

${\displaystyle \delta W=0\quad \Rightarrow \quad Q_{k}=0\quad k=1,2,...,f.}$

### Constraint forces

An important benefit of the principle of virtual work is that only forces that do work as the system moves through a virtual displacement are needed to determine the mechanics of the system. There are many forces in a mechanical system that do no work during a virtual displacement, which means that they need not be considered in this analysis. The two important examples are (i) the internal forces in a rigid body, and (ii) the constraint forces at an ideal joint.

Lanczos[1] presents this as the postulate: "The virtual work of the forces of reaction is always zero for any virtual displacement which is in harmony with the given kinematic constraints." The argument is as follows. The principle of virtual work states that in equilibrium the virtual work of the forces applied to a system is zero. Newton's laws state that at equilibrium 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.

## Law of the lever

A lever 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 force FA at a point A located by the coordinate vector rA on the bar. The lever then exerts an output force FB at the point B located by rB. The rotation of the lever about the fulcrum P is defined by the rotation angle θ.

This is an engraving from Mechanics Magazine published in London in 1824.

Let the coordinate vector of the point P that defines the fulcrum be rP, and introduce the lengths

${\displaystyle a=|\mathbf {r} _{A}-\mathbf {r} _{P}|,\quad b=|\mathbf {r} _{B}-\mathbf {r} _{P}|,}$

which are the distances from the fulcrum to the input point A and to the output point B, respectively.

Now introduce the unit vectors eA and eB from the fulcrum to the point A and B, so

${\displaystyle \mathbf {r} _{A}-\mathbf {r} _{P}=a\mathbf {e} _{A},\quad \mathbf {r} _{B}-\mathbf {r} _{P}=b\mathbf {e} _{B}.}$

This notation allows us to define the velocity of the points A and B as

${\displaystyle \mathbf {v} _{A}={\dot {\theta }}a\mathbf {e} _{A}^{\perp },\quad \mathbf {v} _{B}={\dot {\theta }}b\mathbf {e} _{B}^{\perp },}$

where eA and eB are unit vectors perpendicular to eA and eB, 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

${\displaystyle Q=\mathbf {F} _{A}\cdot {\frac {\partial \mathbf {v} _{A}}{\partial {\dot {\theta }}}}-\mathbf {F} _{B}\cdot {\frac {\partial \mathbf {v} _{B}}{\partial {\dot {\theta }}}}=a(\mathbf {F} _{A}\cdot \mathbf {e} _{A}^{\perp })-b(\mathbf {F} _{B}\cdot \mathbf {e} _{B}^{\perp }).}$

Now, denote as FA and FB the components of the forces that are perpendicular to the radial segments PA and PB. These forces are given by

${\displaystyle F_{A}=\mathbf {F} _{A}\cdot \mathbf {e} _{A}^{\perp },\quad F_{B}=\mathbf {F} _{B}\cdot \mathbf {e} _{B}^{\perp }.}$

This notation and the principle of virtual work yield the formula for the generalized force as

${\displaystyle Q=aF_{A}-bF_{B}=0.}$

The ratio of the output force FB to the input force FA is the mechanical advantage of the lever, and is obtained from the principle of virtual work as

${\displaystyle MA={\frac {F_{B}}{F_{A}}}={\frac {a}{b}}.}$

This equation shows that if the distance a from the fulcrum to the point A where the input force is applied is greater than the distance b from fulcrum to the point B 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 point A is less than from the fulcrum to the output point B, then the lever reduces the magnitude of the input force.

This is the law of the lever, which was proven by Archimedes using geometric reasoning.[6]

## Gear train

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.

Illustration from Army Service Corps Training on Mechanical Transport, (1911), Fig. 112 Transmission of motion and force by gear wheels, compound train

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, or gear ratio, of the gear train. Let R be the speed ratio, then

${\displaystyle {\frac {\omega _{A}}{\omega _{B}}}=R.}$

The input torque TA acting on the input gear GA is transformed by the gear train into the output torque TB exerted by the output gear GB. 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 ratio R of the gear train defines the angular velocity of the output gear in terms of the input gear, that is

${\displaystyle \omega _{A}=\omega ,\quad \omega _{B}=\omega /R.}$

The formula above for the principle of virtual work with applied torques yields the generalized force

${\displaystyle Q=T_{A}{\frac {\partial \omega _{A}}{\partial \omega }}-T_{B}{\frac {\partial \omega _{B}}{\partial \omega }}=T_{A}-T_{B}/R=0.}$

The mechanical advantage of the gear train is the ratio of the output torque TB to the input torque TA, and the above equation yields

${\displaystyle MA={\frac {T_{B}}{T_{A}}}=R.}$

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.

## Dynamic equilibrium for rigid bodies

If the principle of virtual work for applied forces is used on individual particles of a rigid 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 expression compatible 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 to Johann (Jean) Bernoulli (1667–1748) and Daniel Bernoulli (1700–1782).

### Generalized inertia forces

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 and Ti, i=1,...,n. Notice that these applied forces do not include the reaction forces where the bodies are connected. Finally, assume that the velocity Vi 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 one degree of freedom.

Consider a single rigid body which moves under the action of a resultant force F and torque T, 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 by

${\displaystyle Q^{*}=-(M\mathbf {A} )\cdot {\frac {\partial \mathbf {V} }{\partial {\dot {q}}}}-([I_{R}]\alpha +\omega \times [I_{R}]\omega )\cdot {\frac {\partial {\vec {\omega }}}{\partial {\dot {q}}}}.}$

This inertia force can be computed from the kinetic energy of the rigid body,

${\displaystyle T={\frac {1}{2}}M\mathbf {V} \cdot \mathbf {V} +{\frac {1}{2}}{\vec {\omega }}\cdot [I_{R}]{\vec {\omega }},}$

by using the formula

${\displaystyle Q^{*}=-\left({\frac {d}{dt}}{\frac {\partial T}{\partial {\dot {q}}}}-{\frac {\partial T}{\partial q}}\right).}$

A system of n rigid bodies with m generalized coordinates has the kinetic energy

${\displaystyle T=\sum _{i=1}^{n}({\frac {1}{2}}M\mathbf {V} _{i}\cdot \mathbf {V} _{i}+{\frac {1}{2}}{\vec {\omega }}_{i}\cdot [I_{R}]{\vec {\omega }}_{i}),}$

which can be used to calculate the m generalized inertia forces[7]

${\displaystyle Q_{j}^{*}=-\left({\frac {d}{dt}}{\frac {\partial T}{\partial {\dot {q}}_{j}}}-{\frac {\partial T}{\partial q_{j}}}\right),\quad j=1,\ldots ,m.}$

### D'Alembert's form of the principle of virtual work

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 that

${\displaystyle \delta W=(Q_{1}+Q_{1}^{*})\delta q_{1}+\ldots +(Q_{m}+Q_{m}^{*})\delta q_{m}=0,}$

for any set of virtual displacements δqj. This condition yields m equations,

${\displaystyle Q_{j}+Q_{j}^{*}=0,\quad j=1,\ldots ,m,}$

which can also be written as

${\displaystyle {\frac {d}{dt}}{\frac {\partial T}{\partial {\dot {q}}_{j}}}-{\frac {\partial T}{\partial q_{j}}}=Q_{j},\quad j=1,\ldots ,m.}$

The result is a set of m equations of motion that define the dynamics of the rigid body system, known as Lagrange's equations or the generalized equations of motion.

If the generalized forces Qj are derivable from a potential energy V(q1,...,qm), then these equations of motion take the form

${\displaystyle {\frac {d}{dt}}{\frac {\partial T}{\partial {\dot {q}}_{j}}}-{\frac {\partial T}{\partial q_{j}}}=-{\frac {\partial V}{\partial q_{j}}},\quad j=1,\ldots ,m.}$

In this case, introduce the Lagrangian, L=T-V, so these equations of motion become

${\displaystyle {\frac {d}{dt}}{\frac {\partial L}{\partial {\dot {q}}_{j}}}-{\frac {\partial L}{\partial q_{j}}}=0\quad j=1,\ldots ,m.}$

These are known as the Euler-Lagrange equations for a system with m degrees of freedom, or Lagrange's equations of the second kind.

## Virtual work principle for a deformable body

Consider now the free body diagram of a deformable body, which is composed of an infinite number of differential cubes. Let's define two unrelated states for the body:

• The ${\displaystyle {\boldsymbol {\sigma }}}$-State : This shows external surface forces T, body forces f, and internal stresses ${\displaystyle {\boldsymbol {\sigma }}}$ in equilibrium.
• The ${\displaystyle {\boldsymbol {\epsilon }}}$-State : This shows continuous displacements ${\displaystyle \mathbf {u} ^{*}}$ and consistent strains ${\displaystyle {\boldsymbol {\epsilon }}^{*}}$.

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 ${\displaystyle {\boldsymbol {\sigma }}}$-State undergo the displacements and deformations in the ${\displaystyle {\boldsymbol {\epsilon }}}$-State: We can compute the total virtual (imaginary) work done by all forces acting on the faces of all cubes in two different ways:

• First, by summing the work done by forces such as ${\displaystyle F_{A}}$ which act on individual common faces (Fig.c): Since the material experiences compatible displacements, such work cancels out, leaving only the virtual work done by the surface forces T (which are equal to stresses on the cubes' faces, by equilibrium).
• Second, by computing the net work done by stresses or forces such as ${\displaystyle F_{A}}$, ${\displaystyle F_{B}}$ which act on an individual cube, e.g. for the one-dimensional case in Fig.(c):
${\displaystyle F_{B}\left(u^{*}+{\frac {\partial u^{*}}{\partial x}}dx\right)-F_{A}u^{*}\approx {\frac {\partial u^{*}}{\partial x}}\sigma dV+u^{*}{\frac {\partial \sigma }{\partial x}}dV=\epsilon ^{*}\sigma dV-u^{*}fdV}$
where the equilibrium relation ${\displaystyle {\frac {\partial \sigma }{\partial x}}+f=0}$ has been used and the second order term has been neglected.
Integrating over the whole body gives:
${\displaystyle \int _{V}{\boldsymbol {\epsilon }}^{*T}{\boldsymbol {\sigma }}\,dV}$ – Work done by the body forces f.

Equating the two results leads to the principle of virtual work for a deformable body:

${\displaystyle {\mbox{Total external virtual work}}=\int _{V}{\boldsymbol {\epsilon }}^{*T}{\boldsymbol {\sigma }}dV\qquad \mathrm {(d)} }$

where the total external virtual work is done by T and f. Thus,

${\displaystyle \int _{S}\mathbf {u} ^{*T}\mathbf {T} dS+\int _{V}\mathbf {u} ^{*T}\mathbf {f} dV=\int _{V}{\boldsymbol {\epsilon }}^{*T}{\boldsymbol {\sigma }}dV\qquad \mathrm {(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.

### Proof of equivalence between the principle of virtual work and the equilibrium equation

We start by looking at the total work done by surface traction on the body going through the specified deformation:

${\displaystyle \int _{S}\mathbf {u\cdot T} dS=\int _{S}\mathbf {u\cdot {\boldsymbol {\sigma }}\cdot n} dS}$

Applying divergence theorem to the right hand side yields:

${\displaystyle \int _{S}\mathbf {u\cdot {\boldsymbol {\sigma }}\cdot n} dS=\int _{V}\nabla \cdot \left(\mathbf {u} \cdot {\boldsymbol {\sigma }}\right)dV}$

Now switch to indicial notation for the ease of derivation.

{\displaystyle {\begin{aligned}\int _{V}\nabla \cdot \left(\mathbf {u} \cdot {\boldsymbol {\sigma }}\right)dV&=\int _{V}{\frac {\partial }{\partial x_{j}}}\left(u_{i}\sigma _{ij}\right)dV\\&=\int _{V}\left({\frac {\partial u_{i}}{\partial x_{j}}}\sigma _{ij}+u_{i}{\frac {\partial \sigma _{ij}}{\partial x_{j}}}\right)dV\end{aligned}}}

To continue our derivation, we substitute in the equilibrium equation ${\displaystyle {\frac {\partial \sigma _{ij}}{\partial x_{j}}}+f_{i}=0}$. Then

${\displaystyle \int _{V}\left({\frac {\partial u_{i}}{\partial x_{j}}}\sigma _{ij}+u_{i}{\frac {\partial \sigma _{ij}}{\partial x_{j}}}\right)dV=\int _{V}\left({\frac {\partial u_{i}}{\partial x_{j}}}\sigma _{ij}-u_{i}f_{i}\right)dV}$

The first term on the right hand side needs to be broken into a symmetric part and a skew part as follows:

{\displaystyle {\begin{aligned}\int _{V}\left({\frac {\partial u_{i}}{\partial x_{j}}}\sigma _{ij}-u_{i}f_{i}\right)dV&=\int _{V}\left({\frac {1}{2}}\left[\left({\frac {\partial u_{i}}{\partial x_{j}}}+{\frac {\partial u_{j}}{\partial x_{i}}}\right)+\left({\frac {\partial u_{i}}{\partial x_{j}}}-{\frac {\partial u_{j}}{\partial x_{i}}}\right)\right]\sigma _{ij}-u_{i}f_{i}\right)dV\\&=\int _{V}\left(\left[\epsilon _{ij}+{\frac {1}{2}}\left({\frac {\partial u_{i}}{\partial x_{j}}}-{\frac {\partial u_{j}}{\partial x_{i}}}\right)\right]\sigma _{ij}-u_{i}f_{i}\right)dV\\&=\int _{V}\left(\epsilon _{ij}\sigma _{ij}-u_{i}f_{i}\right)dV\\&=\int _{V}\left({\boldsymbol {\epsilon }}:{\boldsymbol {\sigma }}-\mathbf {u} \cdot \mathbf {f} \right)dV\end{aligned}}}

where ${\displaystyle {\boldsymbol {\epsilon }}}$ 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

${\displaystyle \int _{S}\mathbf {u\cdot T} dS=\int _{V}{\boldsymbol {\epsilon }}:{\boldsymbol {\sigma }}dV-\int _{V}\mathbf {u} \cdot \mathbf {f} dV}$

Move the 2nd term on the right hand side of the equation to the left:

${\displaystyle \int _{S}\mathbf {u\cdot T} dS+\int _{V}\mathbf {u} \cdot \mathbf {f} dV=\int _{V}{\boldsymbol {\epsilon }}:{\boldsymbol {\sigma }}dV}$

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:

• In order to impose equilibrium on real stresses and forces, we use consistent virtual displacements and strains in the virtual work equation.
• In order to impose consistent displacements and strains, we use equilibriated virtual stresses and forces in the virtual work equation.

These two general scenarios give rise to two often stated variational principles. They are valid irrespective of material behaviour.

### Principle of virtual displacements

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:

• Virtual displacements and strains as variations of the real displacements and strains using variational notation such as ${\displaystyle \delta \ \mathbf {u} \equiv \mathbf {u} ^{*}}$ and ${\displaystyle \delta \ {\boldsymbol {\epsilon }}\equiv {\boldsymbol {\epsilon }}^{*}}$
• Virtual displacements be zero on the part of the surface that has prescribed displacements, and thus the work done by the reactions is zero. There remains only external surface forces on the part ${\displaystyle S_{t}}$ that do work.

The virtual work equation then becomes the principle of virtual displacements:

${\displaystyle \int _{S_{t}}\delta \ \mathbf {u} ^{T}\mathbf {T} dS+\int _{V}\delta \ \mathbf {u} ^{T}\mathbf {f} dV=\int _{V}\delta {\boldsymbol {\epsilon }}^{T}{\boldsymbol {\sigma }}dV\qquad \mathrm {(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 ${\displaystyle S_{t}}$ 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 ${\displaystyle S_{t}}$, and proceeding in the manner similar to (a) and (b).

Since virtual displacements are automatically compatible when they are expressed in terms of continuous, 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.

### Principle of virtual forces

Here, we specify:

• Virtual forces and stresses as variations of the real forces and stresses.
• Virtual forces be zero on the part ${\displaystyle S_{t}}$ of the surface that has prescribed forces, and thus only surface (reaction) forces on ${\displaystyle S_{u}}$ (where displacements are prescribed) would do work.

The virtual work equation becomes the principle of virtual forces:

${\displaystyle \int _{S_{u}}\mathbf {u} ^{T}\delta \ \mathbf {T} dS+\int _{V}\mathbf {u} ^{T}\delta \ \mathbf {f} dV=\int _{V}{\boldsymbol {\epsilon }}^{T}\delta {\boldsymbol {\sigma }}dV\qquad \mathrm {(g)} }$

This relation is equivalent to the set of strain-compatibility equations as well as of the displacement boundary conditions on the part ${\displaystyle S_{u}}$. It has another name: the principle of complementary virtual work.

## Alternative forms

A specialization of the principle of virtual forces is the unit dummy force method, which is very useful for computing displacements in structural systems. According to D'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:

• allowing variations of all quantities.
• using Lagrange multipliers to impose boundary conditions and/or to relax the conditions specified in the two states.

These are described in some of the references.

Among the many energy principles in structural mechanics, the virtual work principle deserves a special place due to its generality that leads to powerful applications in structural analysis, solid mechanics, and finite element method in structural mechanics.

## See also

This page was last updated at 2021-04-14 15:33, View original page

All information on this site, including but not limited to text, pictures, etc., are reproduced on Wikipedia (wikipedia.org), following the . Creative Commons Attribution-ShareAlike License

Top

If the math, chemistry, physics and other formulas on this page are not displayed correctly, please useFirefox or Safari