A unit vector field
is considered, defined on some neighborhood
in
-dimensional Euclidean space
, for which a formula is established that generalizes the Gauss-Bonnet formula. For this purpose, using the vector field
, a map is constructed from an arbitrary hypersurface
onto the
-dimensional unit sphere
. It is proved that the volume element
of the sphere
and the volume element
of the hypersurface
are connected under this map by the relation
, where
is the unit normal to
and
is a vector of the curvature of the field
:

Here the
are symmetric functions of the principal curvatures of the second kind of the field
,
. The flux of the vector field
through a closed hypersurface
, divided by the volume of the
-dimensional unit sphere
, equals the degree of the map of
to
determined by the vector field
. For a field
, given on all of
, including the point at infinity, the Hopf invariant is calculated by use of the vector field
. Bibliography: 5 titles.