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.":263 Also, 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 (formally equivalent to saying δt = 0).
In modern terminology 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 (thus pointing in the direction 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 (thus pointing at a fixed time in the direction tangent to the constraining manifold). The symbol δ is traditionally used to denote the corresponding derivative
Comparison between virtual and actual displacements
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 another 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:
In the two dof 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.
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 (usually notated dr), a virtual displacement (denoted δr) 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 θ + δθ (where δθ could be positive or negative).