In classical mechanics, holonomic constraints are relations between the position variables (and possibly time)[1] that can be expressed in the following form:
where are n generalized coordinates that describe the system (in unconstrained configuration space). For example, the motion of a particle constrained to lie on the surface of a sphere is subject to a holonomic constraint, but if the particle is able to fall off the sphere under the influence of gravity, the constraint becomes non-holonomic. For the first case, the holonomic constraint may be given by the equation
where is the distance from the centre of a sphere of radius , whereas the second non-holonomic case may be given by
Velocity-dependent constraints (also called semi-holonomic constraints)[2] such as
are not usually holonomic.[citation needed]