A metric tensor field g on M assigns to each point p of M a metric tensor g p in the tangent space at p in a way that varies smoothly with p. More precisely, given any open subset U of manifold M and any (smooth) vector fields X and Y on U, the real function g ( X , Y ) ( p ) = g p ( X p , Y p ) is a smooth function of p.