# Tensor contraction and Covariant Derivative

What is the importance and intuition behind the the contraction operator on tensors (or the trace of a matrix, for that matter)?

In addition, I see that one of the requirements for a covariant derivative (in the context of connections) is to commute with contraction. Why is that a natural requirement (like it would be for, say, the product rule)?

-

I like the question. Below is a somewhat sketchy version of how I see this.

I think the importance of tensors and contraction of tensors originates from trying to do basic differential geometry or vector calculus from a co-ordinate-free point of view. The most basic objects are curves and velocity vectors of curves. The key observation is that the set of all possible velocity vectors at a single point in space is naturally an abstract vector space. Given any set of co-ordinates, the $n$ velocity vectors you get by holding all but one co-ordinates fixed form a basis of this vector space. If you change co-ordinates, then chain rule leads to the appropriate change of basis formula for velocity vectors. This space of all velocity vectors at a point in space is also known as the tangent space at that point. The construction described above defines the tangent space at each point in a smooth manifold.

But once you have a naturally defined abstract vector space, all of linear and multilinear algebra becomes available for use. For example, the dual space to the space of velocity vectors is the cotangent space, and at each point there is a natural contraction between a tangent vector and a cotangent vector. It is also natural to consider tensor products of copies of the tangent and cotangent spaces, leading to higher order tensors. Whether this is useful or not is not immediately obvious and becomes clear only after you go on further and discover how to construct tensors that have important geometric, physical, or topological meaning. But the upshot is that I like to think of a smooth manifold as being, among other things, a parameterized family of abstract vector spaces. Of course, that is exactly what a vector bundle is.

As for the covariant derivative, this can be introduced on its own. It arises, because if you try to find a natural co-ordinate-free way to differentiate vector fields, the best you can do is the Lie derivative or Lie bracket of two vector fields and a closer study of this shows that it is limited in its properties and usefulness. In particular, you want to, say, be able to define the directional derivative of one vector field $V$ in the direction of another vector field $W$. Moreover, just as the directional derivative at a point of a function in the direction $W$ depends only on the value of $W$ at that point (and not a neighborhood), you want the same property for the directional derivative of $V$. Moreover, the Leibniz rule for a scalar multiple of a vector field is a natural property to want. But you find that these properties don't determine a unique connection, so a connection is an additional geometric assumption. This is somehow unsatisfying.

The covariant derivative becomes more compelling, when it is introduced in the context of a Riemannian metric, which given the discussion about tangent vectors above, is a natural extension of the concept of Euclidean space and the inner product. Note that the Riemannian metric, as defined, is naturally a tensor. Next, there is something that, as far as I know is simply a miracle, namely that there is a unique naturally compatible torsion-free connection known as the Levi-Civita connection. After this, the value of tensors and the Levi-Civita connection is justified both because they correspond to naturally defined and interesting geometric concepts for submanifolds of Euclidean space and because they lead to so much insight and deep results in geometry, analysis, and topology.

-
Gunnar, thanks! –  Deane Yang Jan 26 at 22:25

I'm not sure what you're looking for, but maybe this will help. I am completely avoiding any mention of coordinates or bases.

A connection on a vector bundle determines and is determined by the corresponding covariant derivative on sections of $V$.

Connections on vector bundles $V$ and $W$ determine a connection on $V\otimes W$. In terms of covariant derivatives the rule is $\nabla(v\otimes w)=\nabla v\otimes w+v\otimes \nabla w$, just like the usual product rule.

A connection on $V$ determines a connection on the dual $V^\ast$. If we write $<\omega,v>$ for the result of evaluating $\omega\in V^\ast$ on $v\in V$, then the rule is $$d<\omega,v>=<\nabla\omega,v>+<\omega, \nabla v>.$$ Here $d$ denotes the usual derivative of functions; if we like we can call it the covariant derivative for the trivial connection on the trivial bundle $1$ with fiber $\mathbb R$. This equation may then be read as saying that the canonical "contraction" map $V\otimes V^\ast\to 1$ is compatible with connections: the result is the same whether you first contract $\omega\otimes v$ and then differentiate or first differentiate and then contract. (Of course, the equation may also be used as a definition of the connection on $V^\ast$ determined by a connection on $V$, by rewriting: $<\nabla\omega,v>=d<\omega,v>-<\omega, \nabla v>$.)

Connections on $V$ and $W$ also determine a connection on $Hom(V,W)$. The rule can be given as $\nabla(Tv)=(\nabla T)(v)+T(\nabla v)$. This generalizes the rule for $V^\ast=Hom(V,1)$. It also agrees with the rule for tensor products, if we identify $Hom(V,W)$ with $V^\ast\otimes W$. Note that a section $T$ of $Hom(V,W)$ satisfies $\nabla T=0$ if and only if this map $T:V\to W$ satisfies $\nabla (Tv)=T(\nabla v)$.

The contraction operator $\omega\otimes v\mapsto <\omega,v>$ is a section of $Hom(V\otimes V^\ast,1)$. The displayed equation says that the covariant derivative of this section has zero.

In general a connection on $V$ determines connections on all the bundles you can make from $V$ by dualizing and tensoring (and symmetrizing). It works out that every contraction operator, for example the various maps $V\otimes V\otimes V\otimes V^\ast \otimes V^\ast\to V\otimes V\otimes V^\ast$, will have zero derivative,

The usual connection on a Riemannian manifold is chosen to be compatible with the inner product in the sense that $d(v.w)=\nabla v.w+v.\nabla w$. In other words, it is chosen so that the inner product, as a section of $T^\ast\otimes T^\ast=(T\otimes T)^\ast$, has zero derivative.

-
Is contraction the only map $V\otimes V^*\to\mathbb R$ which is parallel wrt every connection on $V$? –  Mariano Suárez-Alvarez Jan 26 at 16:55
(Up to a non-triviality condition, to exclude the zero map, I guess) –  Mariano Suárez-Alvarez Jan 26 at 16:56
Yes, up to a locally constant factor. Equivalently the identity $V\to V$ is the only map, up to such a factor, that commutes with parallel transport for every connection on $V$. –  Tom Goodwillie Jan 26 at 17:05
Ah, put that way it is pretty obvious! This gives some sort of explanation for the importance of contraction. (Another, connection-free way to put this «explanation» is that the identity map is obviously an important gadget, and contraction is just the identity up to transposition; if one likes one's tensors to be elements of $V^{\otimes r}\otimes V^{*\otimes s}$, as is classically done, then it is the closest to the identity that one gets) –  Mariano Suárez-Alvarez Jan 26 at 17:13

Consider the category of $n$-dimensional smooth manifolds and local diffeomorphisms between them. A natural vector bundle is a functor on this category which associates a vector bundle over $M$ to each manifold $M$ and a vector bundle homomorphism over $f$ to each local diffeomorphism. Examples are the tangent bundle, the cotangent bundle, and all tensor bundles. Indeed, each natural bundle is associated to a (higher order) frame bundle with respect to a representation of the (higher order) jet group.

Now for first order natural bundles (i.e., tensor bundles) contractions and permutations of the tensor orders (order of the indices) are the only natural transformations. See this book (pdf) for all this. Covariant derivatives should be equivariant with respect to all natural transformations (that is the meaning of covariant).

As for the trace on matrices, $Trace: \mathfrak g\mathfrak l(n)\to \mathbb R$, is the simplest (and only nontrivial) Lie algebra homomorphism; it is the infinitesimal version of the determinant. This is of course the source of the naturality described above.

-

It is a natural requirement and is more-ore less equivalent to the natural analog of the leibniz rule. Let us consider the following example: $$d g(v,u) = \nabla g(u, v)+ g(\nabla u, v)+ g(u, \nabla v) \hspace{1cm} (\ast)$$

$g$ is a $(0,2)$-tensor and $u,v$ are two vector fields. In the index notation this formula reads

${(g_{ij} v^i u^j)}_ {,\ k}= g_{ij, k} v^i u^j + g_{ij} v^i_{\ ,k} u^j + g_{ij,k} v^i u^j_{\ ,k}$

The left hand side of the formula is "you first contract and then differentiate", the right hand side of the formula is "you first differentiate using the Leibniz rule for the product and then contract".

I do not think you need an explanation why the Leibniz rule is a natural condition.

-
Why is the left side a contraction? Wouldn't a contraction have the same index twice ($i=j$)? –  R S Jan 26 at 18:59
@RS: $g_{ij}v^i=v_j$. –  Andreas Blass Jan 26 at 19:13
Just a nitpick about notation: in Einstein notation, isn't it more common to use , for a partial derivative and ; for a covariant derivative? –  Ben Crowell Jan 26 at 20:19
As a physical example, when Schwarzschild found the metric for the spacetime surrounding a spherical body, he found that if the body was compact enough, the metric's elements would blow up at some radius $r>0$, and so would some elements of the Ricci curvature tensor $R_{jk}$. Did this mean that the fabric of spacetime was torn apart at this $r$? No, because the singularity depended on his choice of coordinates; by switching to different coordinates, the singularity could be eliminated. A typical technique in relativity to prove that a singularity is physical (not just a coordinate singularity) is to take contractions such as $R^i{}_i$ and show that they blow up. Scalars like this are coordinate-independent, so if they blow up, it's not just because of a bad choice of coordinates. This is how we know, for instance, that the singularity at $r=0$ for a black hole is real and not an artifact of the choice of coordinates.
The most common application of contracting an index (as opposed to contracting two indices of the same tensor) is simply to find the norm of a vector, $x^ix_i$. Again, the reason we care is because the norm is independent of the choice of basis.
A very common physical application of contractions involving derivatives is continuity equations, e.g., $\nabla_m J^m=0$, which expresses charge conservation in terms of the four-dimensional charge-current vector.