The approximation of an arbitrary vector held on a finite-dimensional
space by gradient vector fields is studied. The distance (in a certain
sense) from a vector field to the manifold of gradient fields is expr
essed via the circulation of the vector field. The formulas obtained a
re, in particular, applied to studying quadratic conditions for singul
ar modes in optimal control theory.