Formally, given a (pseudo)-Riemannian manifold (M, g) associated with a vector bundle E → M, let ∇ denote the Levi-Civita connection given by the metric g, and denote by Γ(E) the space of the smooth sections of the total space E. Denote by T M the cotangent bundle of M. Then the second covariant derivative can be defined as the composition of the two ∇s as follows: