In analytical mechanics, a branch of applied mathematics and physics, a virtual displacement δri "is an assumed infinitesimal change of system coordinates occurring while time is held constant. It is called virtual rather than real since no actual displacement can take place without the passage of time." This way, virtual displacements are spatial displacements exclusively – time is fixed while they occur. When computing virtual differentials of quantities that are functions of space and time coordinates, no dependence on time is considered. In modernterminology virtual displacement is a tangent vector to the manifold representing the constraints at a fixed time. Unlike regular displacement which arises from differentiating with respect to time parameter t along the path of the motion, virtual displacement arises from differentiating with respect to the parameter ε enumerating paths of the motion varied in a manner consistent with the constraints. The symbol δ is traditionally used to denote the corresponding derivative
Comparison between virtual and actual displacements
Here we consider the total differential of any set of system position vectors, ri, that are functions of other variables and time t. These position vectors are "on-shell" meaning they satisfy the Euler-Lagrange equations and solve for the true evolution trajectories of the system. In other words, these vectors move according to the constraint forces and actual forces of the system at every instant in time. The actual displacement is the differential of the on-shell solution: Now, imagine if we have an arbitrary path through the configuration space/manifold. This means it has to satisfy the constraints of the system but not the actual applied forces. We can think of that as the off-shell differential: This equation is used in Lagrangian mechanics to relate generalized coordinates, qj, to virtual work, δW, and generalized forces, Qj. In the two degree-of-freedom example on the right, the actual displacement is the true trajectory of the particle moving on the two-dimensional surface. The virtual displacement is any tangent vector to the surface.
Virtual work
In analytical mechanics the concept of a virtual displacement, related to the concept of virtual work, is meaningful only when discussing a physical system subject to constraints on its motion. A special case of an infinitesimal displacement, a virtual displacement refers to an infinitesimal change in the position coordinates of a system such that the constraints remain satisfied. For example, if a bead is constrained to move on a hoop, its position may be represented by the position coordinateθ, which gives the angle at which the bead is situated. Say that the bead is at the top. Moving the bead straight upwards from its height z to a height z + dz would represent one possible infinitesimal displacement, but would violate the constraint. The only possible virtual displacement would be a displacement from the bead's position, θ to a new position θ + δθ.