Book 8A

© 2026 Neckpinch · www.neckpinch.com · All rights reserved.

Course 8Book 8A: Smooth ManifoldsChapter 7

Tensors and Index Notation

Stress, diffusion and the notation every Ricci flow paper uses.

63 min read · Updated Nov 7, 2026

Read with Lee, Introduction to Smooth Manifolds (2nd edition), chapter 12 (tensors: multilinear algebra, symmetric and alternating tensors, tensor fields, pullbacks). Lee's Introduction to Riemannian Manifolds, chapter 2, covers raising and lowering indices with a metric; this chapter's table is the guide's own.

In this chapter · 7 sections
  1. 7.1The stress tensor
  2. 7.2Tensors
  3. 7.3The metric raises and lowers
  4. 7.4The guide's conventions
  5. 7.5Ten index computations
  6. 7.6History
  7. 7.7Exercises
  8. ↗Free resources

Every paper on the Ricci flow is written in index notation: ∂tgij=−2Rij\partial_tg_{ij} = -2R_{ij}, ΔR=gij∇i∇jR\Delta R = g^{ij}\nabla_i\nabla_jR, ∣Rm⁡∣2=RijklRijkl|\operatorname{Rm}|^2 = R_{ijkl}R^{ijkl}. The notation is compact and powerful, and it is almost never explained in the papers, which assume it. This chapter explains it once, completely. A tensor is a multilinear function of tangent vectors and covectors (8A.3 Tangent Vectors and Bundles); in coordinates it is an array of components with upper and lower indices, transforming in a definite way when the coordinates change. The summation convention sums over each index that appears once up and once down. A metric lets you raise and lower indices, and contraction of an upper with a lower index produces quantities that don't depend on the coordinates at all.

The chapter ends with the guide's notation table and a drill of ten index computations, each of which reappears in the evolution equations of 11A.2 How Curvature Evolves. The last one, the first line of 11A.2 How Curvature Evolves, is the rehearsal.

By the end of this chapter you will be able to:

  • define tensors of type (k,l)(k, l), tensor fields, symmetric and alternating tensors, and contractions;
  • read and write expressions in index notation with the summation convention;
  • use a metric to raise and lower indices, take traces and compute norms of tensors;
  • state the transformation law of a tensor's components;
  • use the guide's conventions for curvature, and check them on the round sphere.

The stress tensor

In the world Model Forces on a surface inside a material

Inside a loaded bridge girder, a pressurised tank or the Earth's crust, every small surface element feels a force from the material on its other side. Cauchy showed in the 1820s that this force depends linearly on the surface's orientation: there is a stress tensor σ\sigma such that the force per unit area (the traction) on a surface with unit normal nn is

ti=σijnj.t_i = \sigma_{ij}n^j.

In Cartesian coordinates σ\sigma is a 3×33\times3 array, and σij\sigma_{ij} is the ii-th component of the force on a face whose normal points along the jj-th axis (Figure 7.1). Balance of angular momentum makes it symmetric, σij=σji\sigma_{ij} = \sigma_{ji}, so it has three real eigenvalues, the principal stresses, along three perpendicular principal directions, where the traction is purely normal: no shear.

Engineers judge whether a ductile metal will yield by a scalar built from the stress tensor alone, the von Mises stress, which is unchanged by rotating the coordinates: σvM=32sijsij\sigma_{\mathrm{vM}} = \sqrt{\frac32s_{ij}s_{ij}}, where sij=σij−13σkkδijs_{ij} = \sigma_{ij} - \frac13\sigma_{kk}\delta_{ij} is the trace-free part (Exercise 7.6). Building such invariants by contracting indices is exactly what this chapter teaches; the scalar curvature R=gijRijR = g^{ij}R_{ij} and the norm ∣Ric⁡∣2|\operatorname{Ric}|^2 are built the same way.

Figure 7.1. Stress components on the faces of a small cube (schematic): on the face with outward normal eje_j, the traction has components σ1j,σ2j,σ3j\sigma_{1j}, \sigma_{2j}, \sigma_{3j}, one normal to the face and two shears along it.

Tensors

Let VV be a real vector space of dimension nn with dual V∗V^*. A tensor of type (k,l)(k, l) on VV is a multilinear map

T:V∗×⋯×V∗⏟k×V×⋯×V⏟l→R.T : \underbrace{V^*\times\dots\times V^*}_{k}\times\underbrace{V\times\dots\times V}_{l} \to \mathbb{R}.

A (0,1)(0, 1)-tensor is a covector, a (1,0)(1, 0)-tensor a vector (via V≅V∗∗V \cong V^{**}), a (0,2)(0, 2)-tensor a bilinear form, and a (1,1)(1, 1)-tensor a linear map V→VV \to V. Given a basis eie_i of VV and the dual basis eie^i of V∗V^* (ei(ej)=δjie^i(e_j) = \delta^i_j), TT is determined by its components

Ti1…ikj1…jl=T(ei1,…,eik,ej1,…,ejl),T^{i_1\dots i_k}{}_{j_1\dots j_l} = T(e^{i_1}, \dots, e^{i_k}, e_{j_1}, \dots, e_{j_l}),

upper indices for the covector slots, lower indices for the vector slots: nk+ln^{k+l} numbers.

On a manifold, tensors at each point TpMT_pM form the tensor bundles, and a tensor field is a smooth section: in coordinates, components Ti…j…(x)T^{i\dots}{}_{j\dots}(x) that are smooth functions, with respect to the bases ∂i\partial_i of TpMT_pM and dxidx^i of Tp∗MT_p^*M. A Riemannian metric gg is a symmetric positive definite (0,2)(0, 2)-tensor field with components gijg_{ij}; the Ricci tensor RijR_{ij} is a symmetric (0,2)(0, 2)-tensor field; the curvature tensor RijklR_{ijkl} is a (0,4)(0, 4)-tensor field (9A.4 Curvature and What It Means).

Tensor products. Tensors can also be built rather than defined as maps. For vector spaces VV and WW, the tensor product V⊗WV\otimes W is a vector space with a bilinear map V×W→V⊗WV\times W \to V\otimes W, (v,w)↦v⊗w(v, w) \mapsto v\otimes w, such that every bilinear map out of V×WV\times W factors uniquely through a linear map out of V⊗WV\otimes W. If eie_i and faf_a are bases, the products ei⊗fae_i\otimes f_a form a basis, so dim⁡V⊗W=dim⁡V⋅dim⁡W\dim V\otimes W = \dim V\cdot\dim W. In this language a (k,l)(k, l)-tensor is an element of V⊗⋯⊗V⊗V∗⊗⋯⊗V∗V\otimes\cdots\otimes V\otimes V^*\otimes\cdots\otimes V^*, with kk factors of VV and ll of V∗V^*, written in the basis as T=Ti1…ikj1…jl ei1⊗⋯⊗ej1⊗⋯T = T^{i_1\dots i_k}{}_{j_1\dots j_l}\,e_{i_1}\otimes\cdots\otimes e_{j_1}\otimes\cdots, and a metric is g=gij dxi⊗dxjg = g_{ij}\,dx^i\otimes dx^j. Tensors of the special form v⊗wv\otimes w are called decomposable, or of rank one, and every tensor is a sum of decomposable ones. For two factors the least number needed is the rank of the matrix of components, computable by elimination. For three or more factors it is the tensor rank, and it behaves very differently: Johan Håstad proved in 1990 that computing it is NP-hard, and the rank of the 9×9×99\times9\times9 tensor that describes multiplication of 3×33\times3 matrices is still unknown. The speed of matrix multiplication algorithms, from Strassen's 1969 method on, is governed by the ranks of such tensors.

The summation convention. In a product, an index that appears once as a superscript and once as a subscript is summed from 11 to nn: viωi=∑iviωiv^i\omega_i = \sum_iv^i\omega_i, AijvjA^i{}_jv^j is the vector AvAv. An index appearing once is free, and an equation must have the same free indices, in the same positions, on both sides. An index appearing twice in the same position, as in viviv_iv_i, is a warning sign: without a metric it is meaningless. Two further rules prevent most errors. A summed index is a dummy: it can be renamed freely, viωi=vkωkv^i\omega_i = v^k\omega_k, and must be renamed when two sums meet, since (viωi)(uiηi)(v^i\omega_i)(u^i\eta_i) is ambiguous while viωiujηjv^i\omega_iu^j\eta_j is not. And no index may appear three times in one term: AiiviA^i{}_iv^i has no meaning. Checking these, and the positions of free indices on both sides of an equation, catches most mistakes before any computation is done.

Two kinds of matrix. A square array of numbers can be the component matrix of a (1,1)(1, 1)-tensor, a linear map, or of a (0,2)(0, 2)-tensor, a bilinear form, and the two transform differently. Under a change of basis with matrix PP, a linear map changes by A↦P−1APA \mapsto P^{-1}AP, which preserves eigenvalues, while a bilinear form changes by B↦PTBPB \mapsto P^{\mathsf T}BP, which does not. A symmetric bilinear form therefore has no eigenvalues of its own. What it does have, by Sylvester's law of inertia (1852), is a signature: the numbers of positive, negative and zero entries in any diagonal form of it are the same for every basis. Its eigenvalues become meaningful only relative to a metric, as the eigenvalues of the linear map hij=gikhkjh^i{}_j = g^{ik}h_{kj} obtained by raising an index. The "eigenvalues of the Ricci tensor" are always meant in this sense, relative to the metric, and the principal stresses of the stress tensor relative to the Euclidean one. Confusing the two transformation laws is a frequent source of errors when tensors are handled as matrices in software.

Tensor equations hold in every coordinate system. If two tensors have equal components in one coordinate system, they have equal components in every coordinate system, since both transform by the same law. So an equation between tensors, such as ∂tgij=−2Rij\partial_tg_{ij} = -2R_{ij}, is either true in all coordinates or in none, and it can be verified in whichever coordinates are most convenient, normal coordinates at a point, an orthonormal frame, coordinates adapted to a symmetry. This was Einstein's reason for adopting the tensor calculus: a physical law written as an equation between tensors holds for every observer. His field equations of general relativity, Rij−12Rgij=8πTijR_{ij} - \frac12Rg_{ij} = 8\pi T_{ij} (in units with G=c=1G = c = 1), equate a tensor built from the curvature of spacetime with the energy–momentum tensor of matter, and the Ricci flow equation has the same shape, a curvature tensor equal to a rate of change of the metric. The contracted Bianchi identity of 8A.6 Flows and the Lie Derivative, ∇i(Rij−12Rgij)=0\nabla^i\big(R_{ij} - \frac12Rg_{ij}\big) = 0, is what makes the left side of Einstein's equations compatible with the conservation of energy and momentum, ∇iTij=0\nabla^iT_{ij} = 0.

The transformation law. Under a change of coordinates, each upper index transforms with ∂x~∂x\frac{\partial\tilde x}{\partial x} and each lower index with ∂x∂x~\frac{\partial x}{\partial\tilde x} (8A.3 Tangent Vectors and Bundles):

T~ab=∂x~a∂xi∂xj∂x~bTij,\tilde T^{a}{}_{b} = \frac{\partial\tilde x^a}{\partial x^i}\frac{\partial x^j}{\partial\tilde x^b}T^i{}_j,

and similarly for more indices. Proof: by 8A.3 Tangent Vectors and Bundles, ∂∂x~b=∂xj∂x~b∂∂xj\frac{\partial}{\partial\tilde x^b} = \frac{\partial x^j}{\partial\tilde x^b}\frac{\partial}{\partial x^j} and dx~a=∂x~a∂xidxid\tilde x^a = \frac{\partial\tilde x^a}{\partial x^i}dx^i, so by multilinearity T~ab=T(dx~a,∂∂x~b)=∂x~a∂xi∂xj∂x~bT(dxi,∂∂xj)\tilde T^a{}_b = T\big(d\tilde x^a, \frac{\partial}{\partial\tilde x^b}\big) = \frac{\partial\tilde x^a}{\partial x^i}\frac{\partial x^j}{\partial\tilde x^b}T\big(dx^i, \frac{\partial}{\partial x^j}\big). Conversely, an array of functions given in every chart and related in overlaps by this law defines a tensor field, since the multilinear map it defines at each point does not depend on the chart. This is how one recognises that an array of functions defined in each chart is a tensor field.

What is not a tensor. The law is a real test, and natural-looking arrays fail it. The partial derivatives ∂ivj\partial_iv^j of the components of a vector field transform by

∂v~b∂x~a=∂xi∂x~a∂x~b∂xj∂vj∂xi+∂xi∂x~a∂2x~b∂xi∂xjvj,\frac{\partial\tilde v^b}{\partial\tilde x^a} = \frac{\partial x^i}{\partial\tilde x^a}\frac{\partial\tilde x^b}{\partial x^j}\frac{\partial v^j}{\partial x^i} + \frac{\partial x^i}{\partial\tilde x^a}\frac{\partial^2\tilde x^b}{\partial x^i\partial x^j}v^j,

and the second term, involving second derivatives of the coordinate change, breaks the law except under linear changes of coordinates. So "the derivative of a vector field" is not a tensor, for the same reason as the Hessian and the acceleration of 8A.3 Tangent Vectors and Bundles. Two things are tensors. The antisymmetrised derivative of a covector field, ∂iωj−∂jωi\partial_i\omega_j - \partial_j\omega_i, is, because the second derivatives are symmetric and cancel; it is the exterior derivative of 8A.8 Differential Forms and Stokes’ Theorem. And the covariant derivative ∇ivj=∂ivj+Γikjvk\nabla_iv^j = \partial_iv^j + \Gamma^j_{ik}v^k, which adds a correction designed to cancel the bad term, is; the correction coefficients Γikj\Gamma^j_{ik}, the Christoffel symbols, are themselves not a tensor, and their failure to be one is exactly the bad term above (9A.2 Connections).

Example 7.1 Raising and lowering in polar coordinates

On the plane with polar coordinates (r,θ)(r, \theta), the Euclidean metric is g=dr2+r2dθ2g = dr^2 + r^2d\theta^2: grr=1g_{rr} = 1, gθθ=r2g_{\theta\theta} = r^2, grθ=0g_{r\theta} = 0, so the inverse has grr=1g^{rr} = 1, gθθ=1/r2g^{\theta\theta} = 1/r^2. For a function ff, the differential has components (∂rf,∂θf)(\partial_rf, \partial_\theta f) and the gradient, with the index raised, has components (∇f)r=∂rf(\nabla f)^r = \partial_rf and (∇f)θ=∂θf/r2(\nabla f)^\theta = \partial_\theta f/r^2. The squared length is

∣df∣2=gij∂if ∂jf=(∂rf)2+(∂θf)2r2,|df|^2 = g^{ij}\partial_if\,\partial_jf = (\partial_rf)^2 + \frac{(\partial_\theta f)^2}{r^2},

the familiar formula. Take f=θf = \theta (on the plane minus a ray): df=dθdf = d\theta has components (0,1)(0, 1), constant, but ∣dθ∣=1/r|d\theta| = 1/r, and the gradient ∇θ=1r2∂θ\nabla\theta = \frac1{r^2}\partial_\theta has length 1r2⋅r=1r\frac1{r^2}\cdot r = \frac1r. The components of a covector, of the corresponding vector and the actual size are three different things, and only the metric relates them. A computation that forgets the position of an index, writing vθv^\theta where vθv_\theta is meant, is wrong by a factor r2r^2 here, and errors of this kind are the most common in tensor calculations.

Densities, and the volume form. The determinant of the metric is not a function but transforms with the square of a Jacobian: since g~ab=∂xi∂x~a∂xj∂x~bgij\tilde g_{ab} = \frac{\partial x^i}{\partial\tilde x^a}\frac{\partial x^j}{\partial\tilde x^b}g_{ij}, taking determinants gives det⁡g~=(det⁡∂x∂x~)2det⁡g\det\tilde g = \big(\det\frac{\partial x}{\partial\tilde x}\big)^2\det g. Quantities that transform by a power of the Jacobian determinant are densities, and det⁡g\sqrt{\det g} is a density of weight one: exactly what makes det⁡g dx1⋯dxn\sqrt{\det g}\,dx^1\cdots dx^n independent of the coordinates, by the change of variables formula (3A.5 Product Measures and Change of Variables). The same factor turns the Levi-Civita symbol [i1…in][i_1\dots i_n], which is +1+1, −1-1 or 00 as (i1,…,in)(i_1, \dots, i_n) is an even permutation, an odd one, or not a permutation, into a genuine tensor on an oriented manifold:

εi1…in=det⁡g [i1…in],\varepsilon_{i_1\dots i_n} = \sqrt{\det g}\,[i_1\dots i_n],

the volume form in components (8A.8 Differential Forms and Stokes’ Theorem). In polar coordinates det⁡g=r\sqrt{\det g} = r, and the area element is r dr dθr\,dr\,d\theta, as calculus teaches.

Cross products and curls. In three dimensions the volume form turns pairs of vectors into vectors: (v×w)i=εijkvjwk(v\times w)^i = \varepsilon^i{}_{jk}v^jw^k, and the curl of a vector field is (curl⁡X)i=εijk∇jXk(\operatorname{curl}X)^i = \varepsilon^{ijk}\nabla_jX_k. Computations with them rest on one identity, which in Cartesian coordinates reads

εijkεilm=δjlδkm−δjmδkl,\varepsilon_{ijk}\varepsilon_{ilm} = \delta_{jl}\delta_{km} - \delta_{jm}\delta_{kl},

and from it the vector identities of calculus follow in a line each: a×(b×c)=(a⋅c)b−(a⋅b)ca\times(b\times c) = (a\cdot c)b - (a\cdot b)c and curl⁡curl⁡X=∇(div⁡X)−ΔX\operatorname{curl}\operatorname{curl}X = \nabla(\operatorname{div}X) - \Delta X in Euclidean space. The factor det⁡g\sqrt{\det g} also explains why physicists call the cross product a pseudovector: under a reflection, which reverses orientation, ε\varepsilon changes sign, so v×wv\times w does not transform like a vector. The angular momentum and the magnetic field are of this kind, and in the language of 8A.8 Differential Forms and Stokes’ Theorem they are really 2-forms, antisymmetric tensors that three dimensions happen to let one pair with vectors.

Recognising a tensor field without coordinates. There is a coordinate-free test that is often quicker than the transformation law. A map TT that takes vector fields (and covector fields) to functions is a tensor field exactly when it is linear over functions in each argument: T(fX,Y)=fT(X,Y)T(fX, Y) = fT(X, Y) for every smooth function ff, not just for constants (Lee, Introduction to Smooth Manifolds, Lemma 12.24). Linearity over functions means the value at pp depends only on the values of the arguments at pp, not on how they vary nearby, which is what a tensor at a point is. The Lie bracket fails the test: [fX,Y]=f[X,Y]−(Yf)X[fX, Y] = f[X, Y] - (Yf)X, and the extra term, involving a derivative of ff, shows that [X,Y][X, Y] at pp depends on more than XpX_p and YpY_p. So does a covariant derivative in its second argument, ∇X(fY)=f∇XY+(Xf)Y\nabla_X(fY) = f\nabla_XY + (Xf)Y. The curvature R(X,Y)ZR(X, Y)Z of 9A.4 Curvature and What It Means, although built from covariant derivatives and a bracket, passes the test in all three arguments: the derivatives of ff cancel, and that cancellation is the proof that curvature is a tensor. The same test shows that the torsion ∇XY−∇YX−[X,Y]\nabla_XY - \nabla_YX - [X, Y] is a tensor, and that the structure constants ckijc^k{}_{ij} of a Lie algebra, defined by [Ei,Ej]=ckijEk[E_i, E_j] = c^k{}_{ij}E_k for left-invariant fields, form a (1,2)(1, 2)-tensor on the Lie algebra.

Pulling back tensors. A smooth map F:M→NF : M \to N pulls back covariant tensors as it pulls back covectors (8A.3 Tangent Vectors and Bundles), and in coordinates the formula is a product of Jacobians, one for each index: for a metric, (F∗g)ij=∂Fa∂xi∂Fb∂xjgab(F^*g)_{ij} = \frac{\partial F^a}{\partial x^i}\frac{\partial F^b}{\partial x^j}g_{ab}. This is how the induced metric of a surface is computed: with FF the parametrisation and gab=δabg_{ab} = \delta_{ab}, (F∗g)ij=∂iF⋅∂jF(F^*g)_{ij} = \partial_iF\cdot\partial_jF, the inner products of the coordinate tangent vectors, the first fundamental form of 8A.9 The Curvature of Surfaces. Contravariant tensors, with upper indices, do not pull back along general maps, only along diffeomorphisms, by using the inverse. For a diffeomorphism every operation of this chapter, contraction, raising and lowering with the pulled-back metric, the inner product, commutes with pullback, which is the formal content of saying that the constructions are natural.

Symmetric and alternating tensors. A covariant tensor is symmetric if it is unchanged by swapping any two arguments (gij=gjig_{ij} = g_{ji}), and alternating if it changes sign (ωij=−ωji\omega_{ij} = -\omega_{ji}). Alternating tensors are the differential forms of 8A.8 Differential Forms and Stokes’ Theorem. The curvature tensor has a mixture of symmetries, Rijkl=−Rjikl=−Rijlk=RklijR_{ijkl} = -R_{jikl} = -R_{ijlk} = R_{klij} (9A.4 Curvature and What It Means).

Contraction. Summing an upper index against a lower one reduces the type from (k,l)(k, l) to (k−1,l−1)(k - 1, l - 1) and gives a tensor again, independent of coordinates: the trace AiiA^i{}_i of a (1,1)(1, 1)-tensor is the trace of the linear map. Contraction is how invariants are built.

Symmetric and alternating parts. Any covariant 2-tensor splits into a symmetric and an alternating part, Tij=12(Tij+Tji)+12(Tij−Tji)T_{ij} = \frac12(T_{ij} + T_{ji}) + \frac12(T_{ij} - T_{ji}), and the velocity gradient of a fluid, split this way, gives the rate of strain of 8A.6 Flows and the Lie Derivative and the rotation, half the vorticity. In dimension nn the symmetric 2-tensors form a space of dimension n(n+1)/2n(n + 1)/2 and the alternating ones n(n−1)/2n(n - 1)/2; for kk arguments the symmetric tensors have dimension (n+k−1k)\binom{n + k - 1}{k} and the alternating ones (nk)\binom nk, which vanishes for k>nk > n. That is why there are no non-zero differential forms of degree above the dimension.

Invariants of a linear map. A (1,1)(1, 1)-tensor AijA^i{}_j is a linear map of each tangent space, and the quantities built from it by contraction alone are functions of its eigenvalues. The principal invariants are the coefficients of its characteristic polynomial: in dimension three, tr⁡A=Aii\operatorname{tr}A = A^i{}_i, the second invariant 12((Aii)2−AijAji)\frac12\big((A^i{}_i)^2 - A^i{}_jA^j{}_i\big), and det⁡A\det A, which are the elementary symmetric functions of the eigenvalues λ1+λ2+λ3\lambda_1 + \lambda_2 + \lambda_3, λ1λ2+λ2λ3+λ3λ1\lambda_1\lambda_2 + \lambda_2\lambda_3 + \lambda_3\lambda_1 and λ1λ2λ3\lambda_1\lambda_2\lambda_3. Every polynomial invariant of AA under change of basis is a polynomial in these. The von Mises stress is built from the second invariant of the trace-free stress, and the evolution of curvature in three-dimensional Ricci flow is governed by the eigenvalues of the curvature operator and by exactly these symmetric functions of them (11A.10 Hamilton–Ivey Pinching).

The metric raises and lowers

A metric gijg_{ij} is an invertible matrix at each point; its inverse is written gijg^{ij}:

gijgjk=δki.g^{ij}g_{jk} = \delta^i_k.

It is a symmetric (2,0)(2, 0)-tensor. Together they identify vectors and covectors:

vi=gijvj(lowering),ωi=gijωj(raising),v_i = g_{ij}v^j \quad\text{(lowering)}, \qquad \omega^i = g^{ij}\omega_j \quad\text{(raising)},

so one writes the same letter with the index in either position. The gradient of a function is dfdf with its index raised, ∇if=gij∂jf\nabla^if = g^{ij}\partial_jf (8A.3 Tangent Vectors and Bundles). Raising both indices of the Ricci tensor gives Rij=gikgjlRklR^{ij} = g^{ik}g^{jl}R_{kl}.

With raising and lowering, any two indices can be contracted. The trace of a (0,2)(0, 2)-tensor is tr⁡gh=gijhij\operatorname{tr}_gh = g^{ij}h_{ij}; for example the scalar curvature is R=gijRijR = g^{ij}R_{ij}, and tr⁡gg=gijgij=δii=n\operatorname{tr}_gg = g^{ij}g_{ij} = \delta^i_i = n. The inner product of two tensors of the same type contracts all indices pairwise,

⟨T,S⟩=gipgjqTijSpq=TijSij,∣T∣2=TijTij,\langle T, S\rangle = g^{ip}g^{jq}T_{ij}S_{pq} = T_{ij}S^{ij}, \qquad |T|^2 = T_{ij}T^{ij},

and in an orthonormal frame (gij=δijg_{ij} = \delta_{ij}) it is the sum of squares of the components. So ∣g∣2=n|g|^2 = n, and ∣Ric⁡∣2=RijRij|\operatorname{Ric}|^2 = R_{ij}R^{ij} is the sum of the squares of the eigenvalues of the Ricci tensor.

Frames instead of coordinates. Components need not be taken with respect to coordinate bases. Any local frame, nn vector fields e1,…,ene_1, \dots, e_n independent at each point, with its dual coframe e1,…,ene^1, \dots, e^n, gives components Tij=T(ei,ej)T^i{}_j = T(e^i, e_j), and the transformation law between two frames uses the matrix relating them in place of the Jacobian. An orthonormal frame, with g(ei,ej)=δijg(e_i, e_j) = \delta_{ij}, makes raising and lowering trivial, the components of gg being the identity, and in it a norm is the sum of squares of components. Orthonormal frames exist locally on every Riemannian manifold (apply Gram–Schmidt to coordinate fields) but are not coordinate frames in general: their brackets [ei,ej][e_i, e_j] need not vanish, and that failure encodes the geometry. Élie Cartan built his method of moving frames on them in the 1920s. In Ricci flow they appear through Uhlenbeck's trick: since the metric changes in time, a frame orthonormal at one time stops being so, and evolving the frame by ∂tei=Ric⁡(ei)\partial_te_i = \operatorname{Ric}(e_i), with the index raised, keeps it orthonormal for all time, which simplifies the evolution of the curvature tensor to a reaction–diffusion equation for its components in a fixed bundle (11A.3 Curvature in a Moving Frame).

Conditions on tensors as convex sets. Many hypotheses in Ricci flow are conditions on a tensor at each point: non-negative Ricci curvature, Rijvivj≥0R_{ij}v^iv^j \geq 0 for all vv; positive curvature operator; pinching conditions comparing eigenvalues. In an orthonormal frame such a condition says that the components lie in a certain set of arrays, and the natural conditions have two properties: the set is convex, since it is cut out by linear inequalities such as Rijvivj≥0R_{ij}v^iv^j \geq 0, and it is invariant under rotations of the frame, since the condition does not depend on which orthonormal frame is chosen. Hamilton's maximum principle for tensors (11A.7 Maximum Principles under Ricci Flow) says that, under a reaction–diffusion equation of the kind Uhlenbeck's trick produces, a convex rotation-invariant set that is preserved by the reaction term alone, an ODE, is preserved by the whole flow. This turns questions about a PDE into questions about convex sets of tensors and an ODE on them, and it is how Hamilton proved that positive Ricci curvature is preserved in dimension three.

Index notation in practice. The summation convention is now built into scientific software. The function einsum in the numerical libraries NumPy and PyTorch takes a string such as "ij,jk->ik" (matrix multiplication) or "ii->" (trace) or "ijkl,ijkl->" (the full contraction of two four-index arrays) and performs the corresponding sums, so that a formula written in index notation can be typed in almost unchanged. The libraries do not track upper and lower indices or apply a metric, and the "tensors" of machine learning are arrays of numbers with no transformation law; the bookkeeping of index positions, and of which metric raises them, stays with the user. A practical check before running any such computation is the one this chapter recommends: count the free indices on each side, check their positions, and test the formula on an example where the answer is known.

Index positions are physics. The position of an index is not a matter of taste; it records what kind of quantity something is, and physical laws respect it. Temperature is a function, and its differential ∂iT\partial_iT is a covector: its natural meaning is the change in temperature along a displacement, which needs no metric. Heat flux is a vector qiq^i: it says in which direction heat moves, and how much crosses a surface. Fourier's law of heat conduction, qi=−Kij∂jTq^i = -K^{ij}\partial_jT, must therefore have a conductivity with two upper indices, a (2,0)(2, 0)-tensor that turns covectors into vectors, and the same holds for the diffusion tensor DijD^{ij} of the imaging example and the electrical conductivity of an anisotropic crystal. In an isotropic material in Cartesian coordinates Kij=kδijK^{ij} = k\delta^{ij} and the distinction disappears, which is why elementary physics writes q=−k∇Tq = -k\nabla T; in a material whose conductivity differs along different axes, or in curvilinear coordinates, it does not. On a Riemannian manifold the isotropic case is Kij=kgijK^{ij} = kg^{ij}, and Fourier's law becomes q=−k∇Tq = -k\nabla T with the gradient defined by raising the index, which is exactly how the heat equation on a manifold is derived (9B.7 The Heat Equation on a Manifold).

Scaling weights. Each geometric quantity scales in a definite way when the metric is multiplied by a constant λ>0\lambda > 0, and keeping track of these weights is a quick check on any formula. Lengths scale by λ\sqrt\lambda, so gij↦λgijg_{ij} \mapsto \lambda g_{ij} and gij↦λ−1gijg^{ij} \mapsto \lambda^{-1}g^{ij}; volumes in dimension nn scale by λn/2\lambda^{n/2}. The Christoffel symbols and the tensors RijklR^i{}_{jkl} and RijR_{ij} are unchanged, since they are built from g−1∂gg^{-1}\partial g, in which the factor cancels. Lowering an index of RijklR^i{}_{jkl} multiplies RijklR_{ijkl} by λ\lambda, and raising one in RijR_{ij} to form R=gijRijR = g^{ij}R_{ij} divides by λ\lambda, so the scalar curvature scales by λ−1\lambda^{-1}, as the inverse square of a length, and so do the sectional curvatures: a sphere of radius rr has curvature 1/r21/r^2. Norms scale accordingly: ∣Rm⁡∣|\operatorname{Rm}| scales by λ−1\lambda^{-1}, ∣∇Rm⁡∣|\nabla\operatorname{Rm}| by λ−3/2\lambda^{-3/2}. Consequently quantities such as ∣Rm⁡∣ d2|\operatorname{Rm}|\,d^2, with dd a distance, or ∣Rm⁡∣ t|\operatorname{Rm}|\,t along a Ricci flow, with time scaling like λ\lambda, are dimensionless, unchanged by rescaling, and the estimates of the singularity analysis are stated in these terms: Shi's estimates bound ∣∇kRm⁡∣|\nabla^k\operatorname{Rm}| by multiples of t−1−k/2t^{-1-k/2} (11A.5 Shi's Derivative Estimates), exactly the powers the weights demand. An equation whose two sides have different weights is wrong. For example, a proposed bound ∣Rm⁡∣≤C/t2|\operatorname{Rm}| \leq C/t^2 along a Ricci flow cannot be scale-invariant, since the left side has the weight of an inverse time and the right side that of an inverse time squared; any constant CC that made it true for one solution would fail for a rescaled copy of it.

An inner product on the space of metrics. The pointwise inner product of symmetric 2-tensors, integrated, gives an inner product on the tangent space to the space of metrics (8A.3 Tangent Vectors and Bundles): for variations hh, kk of a metric gg,

⟨h,k⟩g=∫Mgipgjqhijkpq dVg.\langle h, k\rangle_g = \int_Mg^{ip}g^{jq}h_{ij}k_{pq}\,dV_g.

This is the L2L^2 metric on Met⁡(M)\operatorname{Met}(M) (studied by Bryce DeWitt in 1967 in quantum gravity and by David Ebin in 1970), and it is the inner product that turns the differential of a functional on metrics into a gradient. Perelman's discovery that the Ricci flow is a gradient flow used a modified version, with the volume form replaced by a weighted measure e−fdVe^{-f}dV (12A.2 Ricci Flow as a Gradient Flow). The pointwise inner product of this chapter is therefore not just a tool for norms of curvature: integrated over the manifold, it is the geometry in which the Ricci flow is a steepest descent.

The guide's conventions

Different books use different conventions for curvature, differing by signs and the order of indices, and quoting a formula from one book into another is a classic source of errors. This guide uses one set throughout, following John Lee's Introduction to Riemannian Manifolds; Book 9A defines everything in it. Whatever the source, check a formula on the round unit sphere, where the answers are fixed:

quantity definition in this guide on the round unit SnS^n
metric, inverse gij=g(∂i,∂j)g_{ij} = g(\partial_i, \partial_j), gijgjk=δkig^{ij}g_{jk} = \delta^i_k
curvature endomorphism R(X,Y)Z=∇X∇YZ−∇Y∇XZ−∇[X,Y]ZR(X, Y)Z = \nabla_X\nabla_YZ - \nabla_Y\nabla_XZ - \nabla_{[X, Y]}Z
curvature tensor Rm⁡(X,Y,Z,W)=g(R(X,Y)Z,W)\operatorname{Rm}(X, Y, Z, W) = g(R(X, Y)Z, W), Rijkl=Rm⁡(∂i,∂j,∂k,∂l)R_{ijkl} = \operatorname{Rm}(\partial_i, \partial_j, \partial_k, \partial_l) Rijkl=gilgjk−gikgjlR_{ijkl} = g_{il}g_{jk} - g_{ik}g_{jl}
sectional curvature K(X,Y)=Rm⁡(X,Y,Y,X)∣X∣2∣Y∣2−g(X,Y)2K(X, Y) = \frac{\operatorname{Rm}(X, Y, Y, X)}{\lvert X\rvert^2\lvert Y\rvert^2 - g(X, Y)^2} K≡1K \equiv 1
Ricci tensor Rij=Rkijk=gklRkijlR_{ij} = R_{kij}{}^k = g^{kl}R_{kijl} Rij=(n−1)gijR_{ij} = (n - 1)g_{ij}
scalar curvature R=gijRijR = g^{ij}R_{ij} R=n(n−1)R = n(n - 1)
Hessian, Laplacian ∇i∇jf\nabla_i\nabla_jf, Δf=gij∇i∇jf\Delta f = g^{ij}\nabla_i\nabla_jf Δ≤0\Delta \leq 0 (the "analyst's" sign)
Ricci flow ∂tgij=−2Rij\partial_tg_{ij} = -2R_{ij} g(t)=(1−2(n−1)t)g0g(t) = (1 - 2(n - 1)t)g_0

The Laplacian here is ∑∂i2\sum\partial_i^2 in Euclidean space, with non-positive spectrum (4A.8 Compact Operators and Spectra), so the heat equation is ∂tu=Δu\partial_tu = \Delta u. Some geometry books use the opposite sign; Ricci flow papers almost always use this one.

Checking the table. Two entries can be verified in a few lines and are good practice. For the round unit sphere, contract the curvature tensor: Rij=gklRkijl=gkl(gklgij−gkjgil)=n gij−δjlgil=(n−1)gijR_{ij} = g^{kl}R_{kijl} = g^{kl}(g_{kl}g_{ij} - g_{kj}g_{il}) = n\,g_{ij} - \delta^l_jg_{il} = (n - 1)g_{ij}, and then R=gij(n−1)gij=n(n−1)R = g^{ij}(n - 1)g_{ij} = n(n - 1). The norm of the curvature tensor is

∣Rm⁡∣2=(gilgjk−gikgjl)(gilgjk−gikgjl)=n2−n−n+n2=2n(n−1),|\operatorname{Rm}|^2 = (g_{il}g_{jk} - g_{ik}g_{jl})(g^{il}g^{jk} - g^{ik}g^{jl}) = n^2 - n - n + n^2 = 2n(n - 1),

using gilgil=ng_{il}g^{il} = n and gilgjkgikgjl=δlkδkl=ng_{il}g_{jk}g^{ik}g^{jl} = \delta^k_l\delta^l_k = n; and ∣Ric⁡∣2=(n−1)2∣g∣2=n(n−1)2|\operatorname{Ric}|^2 = (n - 1)^2|g|^2 = n(n - 1)^2, which equals R2/nR^2/n, the equality case of item 5 below, as it must for an Einstein metric. For the Ricci flow entry, the Ricci tensor does not change when the metric is multiplied by a constant, so with g(t)=c(t)g0g(t) = c(t)g_0 the flow says c′(t)g0=−2(n−1)g0c'(t)g_0 = -2(n - 1)g_0, hence c(t)=1−2(n−1)tc(t) = 1 - 2(n - 1)t: the sphere shrinks linearly in the metric, so its radius goes like 1−2(n−1)t\sqrt{1 - 2(n - 1)t}, and it collapses to a point at t=1/2(n−1)t = 1/2(n - 1).

Example 7.2 The cylinder, by index computation

The neck of the Ricci flow is the cylinder S2×RS^2\times\mathbb{R} with metric g=r2gS2+dz2g = r^2g_{S^2} + dz^2, a round sphere of radius rr times a line. In an orthonormal frame e1e_1, e2e_2 tangent to the sphere and e3=∂ze_3 = \partial_z, the curvature is that of the sphere in the first two directions, sectional curvature 1/r21/r^2, and zero in every plane containing e3e_3. So Ric⁡=diag⁡(1/r2,1/r2,0)\operatorname{Ric} = \operatorname{diag}(1/r^2, 1/r^2, 0) in this frame, R=2/r2R = 2/r^2, and

∣Ric⁡∣2=2r4>43⋅1r4=R23,|\operatorname{Ric}|^2 = \frac2{r^4} > \frac43\cdot\frac1{r^4} = \frac{R^2}3,

a strict inequality in item 5: the cylinder is not Einstein, its Ricci tensor having eigenvalues of two different sizes. The Ricci flow acts on each factor separately, since the Ricci tensor of a product is the sum of the Ricci tensors of the factors. The line has none and does not move; the sphere factor, with Ric⁡=gS2\operatorname{Ric} = g_{S^2} for the unit sphere and hence Ric⁡=1r2(r2gS2)\operatorname{Ric} = \frac1{r^2}(r^2g_{S^2}), evolves by ∂t(r2)=−2\partial_t(r^2) = -2. So r(t)2=r02−2tr(t)^2 = r_0^2 - 2t, and the neck pinches to a line at time t=r02/2t = r_0^2/2, with R=2/(r02−2t)R = 2/(r_0^2 - 2t) blowing up like the reciprocal of the remaining time, the rate that the scaling weights predict for a curvature. The product ∣Rm⁡∣ (T−t)|\operatorname{Rm}|\,(T - t), with T=r02/2T = r_0^2/2 the pinching time, stays bounded, and singularities with this property are called Type I; Hamilton's classification of singularities by the rate at which the curvature blows up begins from exactly this computation (11B.5 Singularities).

How curvature decomposes. Index notation makes visible a fact that is central for three-manifolds. A tensor with the symmetries of the curvature tensor (Rijkl=−Rjikl=−Rijlk=RklijR_{ijkl} = -R_{jikl} = -R_{ijlk} = R_{klij} together with the first Bianchi identity) has, in dimension nn, n2(n2−1)/12n^2(n^2 - 1)/12 independent components: 11 for n=2n = 2, 66 for n=3n = 3, 2020 for n=4n = 4. A symmetric 2-tensor, such as the Ricci tensor, has n(n+1)/2n(n + 1)/2: 33, 66, 1010. In dimension three the counts agree, and in fact the Ricci tensor determines the whole curvature tensor:

Rijkl=Rilgjk+Rjkgil−Rikgjl−Rjlgik−R2(gilgjk−gikgjl).R_{ijkl} = R_{il}g_{jk} + R_{jk}g_{il} - R_{ik}g_{jl} - R_{jl}g_{ik} - \frac R2\big(g_{il}g_{jk} - g_{ik}g_{jl}\big).

(Check on the unit S3S^3: with Rij=2gijR_{ij} = 2g_{ij} and R=6R = 6, the first four terms give 4(gilgjk−gikgjl)4(g_{il}g_{jk} - g_{ik}g_{jl}), and subtracting 3(gilgjk−gikgjl)3(g_{il}g_{jk} - g_{ik}g_{jl}) leaves the table's value.) In general the curvature tensor splits orthogonally into a part built from the scalar curvature, a part built from the trace-free Ricci tensor, and the Weyl tensor, the part with all traces zero, which is invariant under conformal changes of the metric. In dimension three the Weyl tensor vanishes identically. This is why the Ricci flow, which controls the Ricci tensor, controls the full curvature in three dimensions, and why Hamilton's 1982 theorem and the Hamilton–Ivey pinching estimate (11A.10 Hamilton–Ivey Pinching, 11A.11 Hamilton’s 1982 Theorem) are three-dimensional: the evolution of the curvature is a system for the three eigenvalues of the Ricci tensor, with nothing left over. In dimension four and above the Weyl tensor is an independent, uncontrolled part of the curvature.

The symmetries also explain why there is essentially one Ricci tensor. Contracting the curvature tensor on two of its four indices can be done in six ways, but by the antisymmetries in the first and in the last pair, contracting within a pair gives zero, and the four contractions across the pairs agree up to sign by the pair symmetry. So, up to sign, one trace of Rm⁡\operatorname{Rm} exists, the Ricci tensor, and one trace of that, the scalar curvature. Quadratic invariants are more numerous: ∣Rm⁡∣2|\operatorname{Rm}|^2, ∣Ric⁡∣2|\operatorname{Ric}|^2 and R2R^2, in terms of which ∣W∣2|W|^2, the squared norm of the Weyl tensor, is a combination, and in four dimensions the integral of one particular combination of them is a multiple of the Euler characteristic, the Gauss–Bonnet–Chern theorem. The norm ∣Rm⁡∣2|\operatorname{Rm}|^2 is the Kretschmann scalar of the Schwarzschild metric in 8A.1 Smooth Structures, the coordinate-free quantity that distinguishes a genuine singularity from a coordinate one.

Normalising the flow. Index computations also show how to remove the trivial part of an evolution. On a closed manifold the Ricci flow changes the volume at the rate −∫R dV-\int R\,dV (item 9 below). The normalised Ricci flow

∂tgij=−2Rij+2nr gij,r=∫R dV∫dV,\partial_tg_{ij} = -2R_{ij} + \frac2nr\,g_{ij}, \qquad r = \frac{\int R\,dV}{\int dV},

adds a multiple of the metric chosen so that the trace part of the velocity integrates to zero: by item 8 the volume changes at the rate ∫(−R+r) dV=0\int\big(-R + r\big)\,dV = 0. The added term is pure trace, so the normalised flow differs from the Ricci flow only by rescaling in space and reparametrising time, and the two have the same solutions up to these changes. Hamilton used the normalised flow to state convergence: on a closed three-manifold with positive Ricci curvature it converges to a metric of constant curvature, whereas the unnormalised flow shrinks to a point (11A.11 Hamilton’s 1982 Theorem). Splitting a symmetric tensor into its trace and its trace-free part, item 4, is what separates the change of size from the change of shape.

Abstract indices. Many authors, following Roger Penrose (1968), read index notation without any basis at all: in abstract index notation, TabT^a{}_b denotes the tensor itself, the indices only recording its type and which slots are contracted, so TaaT^a{}_a is the contraction and gabvbg_{ab}v^b the lowered vector, by definition. Every formula then means the same thing whether or not coordinates have been chosen, and when they have, the abstract indices may be read as components. The Ricci flow literature is written in this spirit even when it does not say so: an equation such as ∂tR=ΔR+2∣Ric⁡∣2\partial_tR = \Delta R + 2|\operatorname{Ric}|^2 is a statement about tensors, and its indices, when shown, are a bookkeeping device that any frame would serve.

Example 7.3 The round sphere in spherical coordinates

On S2S^2 with colatitude ϕ∈(0,π)\phi \in (0, \pi) and longitude θ\theta, the round metric is g=dϕ2+sin⁡2ϕ dθ2g = d\phi^2 + \sin^2\phi\,d\theta^2: gϕϕ=1g_{\phi\phi} = 1, gθθ=sin⁡2ϕg_{\theta\theta} = \sin^2\phi, gϕϕ=1g^{\phi\phi} = 1, gθθ=1/sin⁡2ϕg^{\theta\theta} = 1/\sin^2\phi, and det⁡g=sin⁡ϕ\sqrt{\det g} = \sin\phi, so the area element is sin⁡ϕ dϕ dθ\sin\phi\,d\phi\,d\theta and the total area is ∫02π∫0πsin⁡ϕ dϕ dθ=4π\int_0^{2\pi}\int_0^\pi\sin\phi\,d\phi\,d\theta = 4\pi. The Laplacian of a function, the trace of its Hessian, has the coordinate formula

Δf=1det⁡g ∂i(det⁡g gij∂jf),\Delta f = \frac1{\sqrt{\det g}}\,\partial_i\big(\sqrt{\det g}\,g^{ij}\partial_jf\big),

which here reads Δf=1sin⁡ϕ∂ϕ(sin⁡ϕ ∂ϕf)+1sin⁡2ϕ∂θ2f\Delta f = \frac1{\sin\phi}\partial_\phi(\sin\phi\,\partial_\phi f) + \frac1{\sin^2\phi}\partial_\theta^2f (9A.6 The Laplacian and the Bochner Formula). Test it on f=cos⁡ϕf = \cos\phi, the height x3x^3: ∂ϕf=−sin⁡ϕ\partial_\phi f = -\sin\phi, so Δf=1sin⁡ϕ∂ϕ(−sin⁡2ϕ)=−2cos⁡ϕ=−2f\Delta f = \frac1{\sin\phi}\partial_\phi(-\sin^2\phi) = -2\cos\phi = -2f. The height is an eigenfunction of the Laplacian with eigenvalue −2=−l(l+1)-2 = -l(l + 1) for l=1l = 1, the first spherical harmonic of 8A.5 Lie Groups and Group Actions, and the sign is the analyst's sign of the table below. Every symbol in the formula carries its index in the right place: gij∂jfg^{ij}\partial_jf is the gradient, a vector, det⁡g\sqrt{\det g} times a vector is a vector density, and the coordinate divergence of a vector density is a scalar density, which division by det⁡g\sqrt{\det g} turns back into a function.

Ten index computations

Each of the following takes a line or two and is used later; work through them with the summation convention, and check the free indices on both sides.

  1. δii=n\delta^i_i = n, and gijgij=ng^{ij}g_{ij} = n.
  2. Raising then lowering returns the original: gij(gjkωk)=δikωk=ωig_{ij}(g^{jk}\omega_k) = \delta_i^k\omega_k = \omega_i.
  3. Contraction is coordinate-independent: under the transformation law the Jacobians in TiiT^i{}_i cancel.
  4. The trace-free part of a symmetric hijh_{ij} is h˚ij=hij−tr⁡hngij\mathring h_{ij} = h_{ij} - \frac{\operatorname{tr}h}{n}g_{ij}, with tr⁡h˚=0\operatorname{tr}\mathring h = 0 and ∣h˚∣2=∣h∣2−(tr⁡h)2n|\mathring h|^2 = |h|^2 - \frac{(\operatorname{tr}h)^2}{n}.
  5. Hence ∣h∣2≥(tr⁡h)2n|h|^2 \geq \frac{(\operatorname{tr}h)^2}{n}, with equality iff hh is a multiple of gg. For the Ricci tensor: ∣Ric⁡∣2≥R2n|\operatorname{Ric}|^2 \geq \frac{R^2}{n}, the inequality behind the scalar curvature estimate of 6A.5 Maximum Principles.
  6. The inner product is symmetric and positive: ∣T∣2≥0|T|^2 \geq 0, with equality iff T=0T = 0 (compute in an orthonormal frame).
  7. The derivative of the inverse metric. Differentiating gijgjk=δkig^{ij}g_{jk} = \delta^i_k: ∂tgij gjk+gij∂tgjk=0\partial_tg^{ij}\,g_{jk} + g^{ij}\partial_tg_{jk} = 0, so ∂tgij=−gipgjq∂tgpq\partial_tg^{ij} = -g^{ip}g^{jq}\partial_tg_{pq}.
  8. The derivative of the determinant. ∂tlog⁡det⁡(gij)=gij∂tgij\partial_t\log\det(g_{ij}) = g^{ij}\partial_tg_{ij} (Jacobi's formula, Exercise 7.7). So the volume element dV=det⁡g dxdV = \sqrt{\det g}\,dx changes by ∂tdV=12gij∂tgij dV\partial_tdV = \frac12g^{ij}\partial_tg_{ij}\,dV.
  9. Under Ricci flow ∂tgij=−2Rij\partial_tg_{ij} = -2R_{ij}, item 8 gives ∂tdV=−R dV\partial_tdV = -R\,dV: volume shrinks where the scalar curvature is positive, and the total volume of a closed manifold evolves by ddtVol⁡=−∫R dV\frac{d}{dt}\operatorname{Vol} = -\int R\,dV.
  10. Contracting a symmetric with an antisymmetric tensor gives zero: if Sij=SjiS_{ij} = S_{ji} and Aij=−AjiA^{ij} = -A^{ji}, then SijAij=0S_{ij}A^{ij} = 0 (relabel i↔ji \leftrightarrow j).

Proofs of items 3 and 4. For item 3, T~aa=∂x~a∂xi∂xj∂x~aTij=δijTij=Tii\tilde T^a{}_a = \frac{\partial\tilde x^a}{\partial x^i}\frac{\partial x^j}{\partial\tilde x^a}T^i{}_j = \delta^j_iT^i{}_j = T^i{}_i, because the two Jacobian matrices are inverse to each other. For item 4, tr⁡h˚=tr⁡h−tr⁡hntr⁡g=0\operatorname{tr}\mathring h = \operatorname{tr}h - \frac{\operatorname{tr}h}{n}\operatorname{tr}g = 0 by item 1, and

∣h˚∣2=∣h∣2−2tr⁡hn⟨h,g⟩+(tr⁡h)2n2∣g∣2=∣h∣2−2(tr⁡h)2n+(tr⁡h)2n=∣h∣2−(tr⁡h)2n,|\mathring h|^2 = |h|^2 - 2\frac{\operatorname{tr}h}{n}\langle h, g\rangle + \frac{(\operatorname{tr}h)^2}{n^2}|g|^2 = |h|^2 - 2\frac{(\operatorname{tr}h)^2}{n} + \frac{(\operatorname{tr}h)^2}{n} = |h|^2 - \frac{(\operatorname{tr}h)^2}{n},

using ⟨h,g⟩=hijgij=tr⁡h\langle h, g\rangle = h_{ij}g^{ij} = \operatorname{tr}h and ∣g∣2=n|g|^2 = n. Item 5 follows, since ∣h˚∣2≥0|\mathring h|^2 \geq 0 with equality iff h˚=0\mathring h = 0.

In the world Data Diffusion tensor imaging of the brain

Water diffuses through brain tissue, and in white matter it moves faster along nerve fibres than across them, because fibre membranes and myelin hinder sideways motion. Peter Basser, James Mattiello and Denis Le Bihan showed in 1994 that MRI can measure the full diffusion tensor DijD_{ij} at each point: a symmetric positive definite 3×33\times3 tensor, the coefficient in the anisotropic diffusion equation ∂tc=∂i(Dij∂jc)\partial_tc = \partial_i(D^{ij}\partial_jc) (6A.6 Weak Solutions and Elliptic Regularity). Its eigenvectors give the directions of fastest and slowest diffusion, and its eigenvalues the rates; it is pictured as an ellipsoid at each point, elongated along the fibres (Figure 7.2). Following the principal eigenvector from point to point traces the fibre pathways, tractography, first demonstrated by Susumu Mori and colleagues in the rat brain in 1999. The scalar used most in clinical studies, the fractional anisotropy, is built from the eigenvalues by contractions of the kind in item 4: it is zero for an isotropic tensor and approaches 11 for diffusion along a single direction.

Tensors in materials. The stress tensor is the first of a family that engineers use daily. The strain tensor εij=12(∂iuj+∂jui)\varepsilon_{ij} = \frac12(\partial_iu_j + \partial_ju_i), the symmetric part of the gradient of a displacement field uu, measures deformation, and it is the linearisation of the change in the metric, 12Lug\frac12\mathcal L_ug in the language of 8A.6 Flows and the Lie Derivative. Linear elasticity relates the two by Hooke's law, σij=Cijklεkl\sigma_{ij} = C_{ijkl}\varepsilon_{kl}, with a fourth-order elasticity tensor CC. Its symmetries (Cijkl=Cjikl=CklijC_{ijkl} = C_{jikl} = C_{klij}) cut its 8181 components to 2121 independent ones for the most anisotropic crystal, and isotropy, invariance under all rotations, cuts them to 22: Cijkl=λδijδkl+μ(δikδjl+δilδjk)C_{ijkl} = \lambda\delta_{ij}\delta_{kl} + \mu(\delta_{ik}\delta_{jl} + \delta_{il}\delta_{jk}), with the Lamé constants λ\lambda and μ\mu. That an isotropic fourth-order tensor must have this form, built from Kronecker deltas, is a theorem about invariant tensors under the rotation group, and the same theorem shows that the only rotation-invariant tensors of order two and three in three dimensions are multiples of δij\delta_{ij} and of εijk\varepsilon_{ijk}. Piezoelectric crystals, which produce a voltage when squeezed, are described by a third-order tensor, and by the same invariance argument a crystal with a centre of symmetry cannot be piezoelectric: an odd-order tensor invariant under x↦−xx \mapsto -x must vanish. Quartz lacks such a centre, which is why it is used in watches.

Figure 7.2. Diffusion tensors drawn as ellipses along a curved fibre bundle (a synthetic example, computed): inside the bundle the principal eigenvector follows the fibres and the tensor is strongly anisotropic; outside it is nearly isotropic. Tractography follows the long axes (orange curve).
In the world Model The tennis-racket theorem

A rigid body's resistance to rotation is the inertia tensor IijI_{ij}, a symmetric positive definite tensor whose eigenvectors are the principal axes. Spinning a body about the axis of largest or smallest moment of inertia is stable; about the intermediate axis it is unstable, and the body flips periodically. Toss a tennis racket or a phone spinning about the axis across its face, in the plane of the face, and it comes back turned over. The phenomenon follows from Euler's equations for rigid-body rotation, written in the principal frame, where the inertia tensor is diagonal; it is especially striking in weightlessness, where a spinning wing nut has been filmed flipping again and again aboard space stations.

Where this goes The first line of the evolution equations

11A.2 How Curvature Evolves computes how every geometric quantity evolves under the Ricci flow. It begins with the inverse metric (item 7 with ∂tgpq=−2Rpq\partial_tg_{pq} = -2R_{pq}), the volume form (item 9), then the Christoffel symbols, the curvature tensor, the Ricci tensor and the scalar curvature. Every step is an index computation of the kind in this chapter, with covariant derivatives (9A.2 Connections) in place of partial derivatives. Fluency here is the difference between following those computations and being lost in them.

History

Cauchy introduced the stress tensor in 1822–27. The calculus of components transforming by Jacobians, the absolute differential calculus, was developed by Gregorio Ricci-Curbastro from 1884 and set out with Tullio Levi-Civita in 1900; Einstein, who learned it from Marcel Grossmann, introduced the summation convention in 1916 in his foundation of general relativity, and the subject became known as tensor calculus. The coordinate-free view of tensors as multilinear maps became standard in the twentieth century. Diffusion tensor imaging dates from 1994 and tractography from 1999. James Joseph Sylvester stated his law of inertia in 1852. Penrose's abstract index notation appeared in 1968, and the normalised Ricci flow in Hamilton's paper of 1982. Hermann Weyl introduced his conformal curvature tensor in 1918; Karen Uhlenbeck's frame trick was used by Hamilton in 1986; Volker Strassen's fast matrix multiplication appeared in 1969 and Håstad's hardness result for tensor rank in 1990.

Recall Where we stand

A tensor of type (k,l)(k, l) is a multilinear map on kk covectors and ll vectors, with components carrying kk upper and ll lower indices that transform by Jacobians; tensor fields are smooth families of them. Repeated upper–lower indices are summed; contraction gives coordinate-free quantities. A metric gijg_{ij} with inverse gijg^{ij} raises and lowers indices, defines traces gijhijg^{ij}h_{ij} and norms ∣T∣2=TijTij|T|^2 = T_{ij}T^{ij}. The guide's curvature conventions follow Lee and are checked on the unit sphere: Ric⁡=(n−1)g\operatorname{Ric} = (n - 1)g, R=n(n−1)R = n(n - 1). Under Ricci flow, ∂tgij=2Rij\partial_tg^{ij} = 2R^{ij} and ∂tdV=−R dV\partial_tdV = -R\,dV. Index positions are physical (Fourier's law needs a (2,0)(2, 0) conductivity), scaling weights check formulas and make ∣Rm⁡∣ t|\operatorname{Rm}|\,t dimensionless, and the integrated inner product is the L2L^2 metric on the space of metrics. A field is a tensor exactly when it is linear over functions, which the bracket fails and curvature passes; pullbacks multiply Jacobians; there is essentially one Ricci contraction; the normalised Ricci flow removes the trace part of the velocity to fix the volume; abstract indices denote tensors rather than components. Dummy indices are renamed and never tripled; linear maps and bilinear forms transform differently, so a symmetric form has a signature (Sylvester) but eigenvalues only relative to a metric. Tensor equations hold in all coordinates, which is why Einstein's equations and the Ricci flow are written as tensor equations, and convex rotation-invariant curvature conditions are the setting of Hamilton's maximum principle. The Laplacian is 1det⁡g∂i(det⁡g gij∂jf)\frac1{\sqrt{\det g}}\partial_i(\sqrt{\det g}\,g^{ij}\partial_jf), with Δcos⁡ϕ=−2cos⁡ϕ\Delta\cos\phi = -2\cos\phi on S2S^2. Tensors are elements of tensor products; their rank is easy for matrices and hard beyond. Derivatives of components are not tensors (the Christoffel symbols repair them), det⁡g\sqrt{\det g} is a density that makes the volume form a tensor, and the ε\varepsilon identity gives the vector identities of calculus. Principal invariants of a linear map are symmetric functions of its eigenvalues. Orthonormal frames, evolved by Uhlenbeck's trick, simplify the flow's curvature equations. On the unit sphere ∣Rm⁡∣2=2n(n−1)|\operatorname{Rm}|^2 = 2n(n - 1); in dimension three the Weyl tensor vanishes and the Ricci tensor determines the curvature. Elasticity, strain and piezoelectricity are tensor laws constrained by invariance. 8A.8 Differential Forms and Stokes’ Theorem studies the alternating tensors: differential forms and Stokes' theorem.

Exercises

Exercise 7.4 The inverse metric

Show that gijgjk=δkig^{ij}g_{jk} = \delta^i_k determines gijg^{ij}, that it is symmetric, and that it transforms as a (2,0)(2, 0)-tensor. For the polar-coordinate metric dr2+r2dθ2dr^2 + r^2d\theta^2, write gijg_{ij} and gijg^{ij}.

Solution

(gij)(g^{ij}) is the inverse matrix of (gij)(g_{ij}), unique and symmetric because gg is. If g~ab=JiaJjbgij\tilde g_{ab} = J^i{}_aJ^j{}_bg_{ij} with J=∂x/∂x~J = \partial x/\partial\tilde x, then the inverse is g~ab=(J−1)ai(J−1)bjgij\tilde g^{ab} = (J^{-1})^a{}_i(J^{-1})^b{}_jg^{ij}, the (2,0)(2, 0) law. Polar: g=diag⁡(1,r2)g = \operatorname{diag}(1, r^2), g−1=diag⁡(1,r−2)g^{-1} = \operatorname{diag}(1, r^{-2}).

Exercise 7.5 Norms in an orthonormal frame

For a symmetric 2-tensor hh with eigenvalues λ1,…,λn\lambda_1, \dots, \lambda_n with respect to gg (the eigenvalues of hijh^i{}_j), show tr⁡h=∑λi\operatorname{tr}h = \sum\lambda_i and ∣h∣2=∑λi2|h|^2 = \sum\lambda_i^2. Deduce item 5 from the Cauchy–Schwarz inequality.

Solution

At a point, choose a gg-orthonormal basis that diagonalises hh (the spectral theorem for the self-adjoint map hijh^i{}_j, self-adjoint with respect to gg because hh is symmetric). In it, gij=δijg_{ij} = \delta_{ij} and hij=λiδijh_{ij} = \lambda_i\delta_{ij}, so tr⁡h=gijhij=∑iλi\operatorname{tr}h = g^{ij}h_{ij} = \sum_i\lambda_i and ∣h∣2=∑i,jhij2=∑iλi2|h|^2 = \sum_{i,j}h_{ij}^2 = \sum_i\lambda_i^2; both are invariants, so they hold in any basis. By Cauchy–Schwarz in Rn\mathbb{R}^n, (∑λi⋅1)2≤n∑λi2\big(\sum\lambda_i\cdot1\big)^2 \leq n\sum\lambda_i^2, which is item 5, with equality iff all λi\lambda_i are equal, i.e. h=λgh = \lambda g.

Exercise 7.6 The von Mises stress

For the uniaxial stress σ=diag⁡(σ0,0,0)\sigma = \operatorname{diag}(\sigma_0, 0, 0), compute the trace-free part ss, sijsijs_{ij}s_{ij}, and show σvM=∣σ0∣\sigma_{\mathrm{vM}} = |\sigma_0|. For pure shear, σ12=σ21=τ\sigma_{12} = \sigma_{21} = \tau and all other components zero, show σvM=3∣τ∣\sigma_{\mathrm{vM}} = \sqrt3|\tau|.

Solution

Uniaxial: trace σ0\sigma_0, s=diag⁡(23,−13,−13)σ0s = \operatorname{diag}(\frac23, -\frac13, -\frac13)\sigma_0, sijsij=69σ02=23σ02s_{ij}s_{ij} = \frac69\sigma_0^2 = \frac23\sigma_0^2, so σvM=32⋅23∣σ0∣=∣σ0∣\sigma_{\mathrm{vM}} = \sqrt{\frac32\cdot\frac23}|\sigma_0| = |\sigma_0|. Shear: trace 00, s=σs = \sigma, sijsij=2τ2s_{ij}s_{ij} = 2\tau^2, σvM=3∣τ∣\sigma_{\mathrm{vM}} = \sqrt3|\tau|.

Exercise 7.7 Jacobi's formula

Show that ddtdet⁡A(t)=det⁡A⋅tr⁡(A−1A˙)\frac{d}{dt}\det A(t) = \det A\cdot\operatorname{tr}(A^{-1}\dot A) for invertible A(t)A(t). (At A=IA = I, det⁡(I+tB)=1+ttr⁡B+O(t2)\det(I + tB) = 1 + t\operatorname{tr}B + O(t^2); reduce the general case to it.) Deduce item 8.

Solution

At A=IA = I: det⁡(I+tB)\det(I + tB) is a polynomial in tt, and the terms of order 11 in the expansion of the determinant come only from the product of the diagonal entries, ∏i(1+tBii)=1+ttr⁡B+O(t2)\prod_i(1 + tB_{ii}) = 1 + t\operatorname{tr}B + O(t^2); every other term of the Leibniz expansion has at least two off-diagonal factors, each O(t)O(t). So ddt∣0det⁡(I+tB)=tr⁡B\frac{d}{dt}\big|_0\det(I + tB) = \operatorname{tr}B. In general, det⁡A(t+s)=det⁡A(t)det⁡(I+A(t)−1(A(t+s)−A(t)))\det A(t + s) = \det A(t)\det\big(I + A(t)^{-1}(A(t + s) - A(t))\big) and A(t)−1(A(t+s)−A(t))=sA−1A˙+O(s2)A(t)^{-1}(A(t + s) - A(t)) = sA^{-1}\dot A + O(s^2), so ddtdet⁡A=det⁡A⋅tr⁡(A−1A˙)\frac{d}{dt}\det A = \det A\cdot\operatorname{tr}(A^{-1}\dot A). For item 8, apply this to A=(gij)A = (g_{ij}): ∂tlog⁡det⁡g=tr⁡(g−1∂tg)=gij∂tgij\partial_t\log\det g = \operatorname{tr}(g^{-1}\partial_tg) = g^{ij}\partial_tg_{ij}, and ∂tdet⁡g=12det⁡g gij∂tgij\partial_t\sqrt{\det g} = \frac12\sqrt{\det g}\,g^{ij}\partial_tg_{ij}.

Exercise 7.8 The sphere check

Using the table's formula Rijkl=gilgjk−gikgjlR_{ijkl} = g_{il}g_{jk} - g_{ik}g_{jl} for the unit sphere, compute Rij=gklRkijlR_{ij} = g^{kl}R_{kijl} and R=gijRijR = g^{ij}R_{ij}, and the sectional curvature of a pair of orthonormal vectors. (You should get (n−1)gij(n - 1)g_{ij}, n(n−1)n(n - 1) and 11.)

Solution

gklRkijl=gkl(gklgij−gkjgil)=ngij−δjlgil=ngij−gijg^{kl}R_{kijl} = g^{kl}(g_{kl}g_{ij} - g_{kj}g_{il}) = ng_{ij} - \delta^l_jg_{il} = ng_{ij} - g_{ij}. Then R=gij(n−1)gij=n(n−1)R = g^{ij}(n - 1)g_{ij} = n(n - 1). For orthonormal X=e1X = e_1, Y=e2Y = e_2: Rm⁡(e1,e2,e2,e1)=g11g22−g12g21=1\operatorname{Rm}(e_1, e_2, e_2, e_1) = g_{11}g_{22} - g_{12}g_{21} = 1.

Exercise 7.9 Rehearsal: the evolution of the inverse metric and the volume

Under the Ricci flow ∂tgij=−2Rij\partial_tg_{ij} = -2R_{ij}: (a) show ∂tgij=2Rij\partial_tg^{ij} = 2R^{ij}, using item 7; (b) show ∂tdV=−R dV\partial_tdV = -R\,dV, using item 8; (c) for the round sphere g(t)=(1−2(n−1)t)g0g(t) = (1 - 2(n - 1)t)g_0, check both directly (RijR^{ij} at time tt is computed with g(t)g(t)). This is the first line of 11A.2 How Curvature Evolves.

Solution

(a) ∂tgij=−gipgjq(−2Rpq)=2Rij\partial_tg^{ij} = -g^{ip}g^{jq}(-2R_{pq}) = 2R^{ij}. (b) ∂tdV=12gij(−2Rij)dV=−R dV\partial_tdV = \frac12g^{ij}(-2R_{ij})dV = -R\,dV. (c) With λ=1−2(n−1)t\lambda = 1 - 2(n - 1)t: gij=λ−1g0ijg^{ij} = \lambda^{-1}g_0^{ij}, so ∂tgij=2(n−1)λ−2g0ij\partial_tg^{ij} = 2(n - 1)\lambda^{-2}g_0^{ij}; and Rpq=(n−1)g0,pqR_{pq} = (n - 1)g_{0,pq} (scale-invariant), so Rij=gipgjqRpq=(n−1)λ−2g0ijR^{ij} = g^{ip}g^{jq}R_{pq} = (n - 1)\lambda^{-2}g_0^{ij}. Volume: dV=λn/2dV0dV = \lambda^{n/2}dV_0, ∂tdV=n2λn/2−1(−2(n−1))dV0=−n(n−1)λdV\partial_tdV = \frac n2\lambda^{n/2-1}(-2(n - 1))dV_0 = -\frac{n(n - 1)}{\lambda}dV, and R=n(n−1)λR = \frac{n(n - 1)}{\lambda}.

Free resources for this chapter

Chosen for what this chapter covers, and all free to read or watch. Links checked Nov 6, 2026.

Read

Watch 3 lectures and talks

© 2026 Neckpinch (www.neckpinch.com). All content in the guidebook (text, mathematics, figures and exercises) is protected by copyright. All rights reserved. No part may be copied, republished or redistributed without written permission.