15.5  Index Notation and the Transformation Law

Outside mathematics, a tensor is usually not a vector in Tqp(V) at all: it is an array of numbers with some indices written upstairs and some downstairs, together with a rule saying how the array changes when the coordinates change. That older definition is still the working one in physics and in differential geometry, and a reader who meets it after this chapter deserves a dictionary. This section supplies one. We write the components of a tensor, derive — not assert — how they transform under a change of basis, and then prove that the classical definition and ours describe the same objects in finite dimensions. The section ends with the warning the classical definition exists to make: an array of numbers is not automatically a tensor.

15.5.1. Components, upstairs and downstairs

Fix a finite-dimensional V over F with n=dim⁡V≥1, an ordered basis B=(v1,…,vn), and its dual basis B∗=(φ1,…,φn), characterized by φi(vj)=δji (Definition 5.1.3). By Theorem 15.2.5, the np+q tensors vi1⊗⋯⊗vip⊗φj1⊗⋯⊗φjq form a basis of Tqp(V), so every tensor has unique coordinates in it.

Definition 15.5.1 (Components of a tensor)

Let t∈Tqp(V). The components of t in the basis B are the unique scalars Tj1…jqi1…ip∈F, for 1≤i1,…,ip,j1,…,jq≤n, with t=∑Tj1…jqi1…ipvi1⊗⋯⊗vip⊗φj1⊗⋯⊗φjq, the sum running over all p+q indices from 1 to n. An index written upstairs belongs to a V-slot and is called contravariant; an index written downstairs belongs to a V∗-slot and is called covariant.

In words: the position of an index records which kind of slot it labels, so that the shape of a symbol already tells you the type of the tensor. Nothing here is new mathematics; it is the coordinate vector of Theorem 15.2.5, with the indices arranged to be readable.

Two pieces of shorthand come with it. The first is the placement rule: a vector has its coordinates upstairs, v=∑ivivi, while a functional has them downstairs, ξ=∑jξjφj — which is Theorem 5.1.3 (c) written in the new notation. The second is the summation convention: an index appearing once upstairs and once downstairs in a product is summed over, and the ∑ is not written. With it, the displayed formula above reads t=Tj1…jqi1…ipvi1⊗⋯⊗φjq, and the evaluation of a functional on a vector is ξ(v)=ξivi. The rest of this book writes its sums out; this section is the one place where the convention is used, and it is used because the transformation law is unreadable without it.

Examples.

  1. Type (1,1): an operator. If t∈T11(V) corresponds to S∈L(V) under Theorem 15.3.9, then Tji is the (i,j) entry of [S]BB: the tensor vi⊗φj is the operator u↦φj(u)vi, whose matrix is Eij. Upper index = row, lower index = column.
  2. Type (0,2): a bilinear form. If t∈T20(V) corresponds to the bilinear form β (Proposition 15.4.3 and Exercise (B3: Which statements hold?)), then Tij=β(vi,vj), which is the Gram matrix [β]BB of Definition 14.1.2. Both indices downstairs.
  3. Contraction. In components, Definition 15.4.3 is “set an upper index equal to a lower one and sum”. For t∈T11(V), C11(t)=Tii(=∑i=1nTii), which is the trace, by Theorem 15.4.1. This is the whole reason the convention pairs an upper with a lower index: a repeated index is a contraction, and contraction is the only basis-free way to remove slots.

Remark. The names are historically backwards, and it is worth saying so once. A contravariant index sits upstairs, on a V-slot, and its components transform by the inverse of the matrix that transforms the basis vectors; a covariant index sits downstairs and transforms by the same matrix as the basis vectors. The names describe the components, not the slots. Theorem 15.5.2 below is what they refer to.

15.5.2. How the components change

Let B=(v1,…,vn) and B′=(v1′,…,vn′) be two ordered bases, and let P=[id]B′B=(pji) be the change-of-coordinates matrix from B′ to B (Definition 4.2.1), whose j-th column is [vj′]B. That is, vj′=∑i=1npjivi, with the row index upstairs and the column index downstairs. Write Q=P−1=(qji), which exists because a change-of-coordinates matrix is invertible (Proposition 4.2.2).

The dual bases move by the inverse matrix. This is the one computation the whole section rests on, so we do it first.

Lemma 15.5.1 (Dual Bases Move by the Inverse Matrix)

With the notation above, (φ′)k=∑l=1nqlkφl for each k, where (φ′)1,…,(φ′)n is the dual basis of B′ supplied by Theorem 5.1.3.

Proof. Both sides are linear maps on V, so by the uniqueness clause of Theorem 2.1.5 it is enough to check that they agree at each vector of the basis B′. By Definition 5.1.3 the left side gives (φ′)k(vj′)=δjk. The right side gives ∑lqlkφl(∑ipjivi)=∑l∑iqlkpjiδil=∑iqikpji, which is the (k,j) entry of QP=In, that is δjk. The two agree.

So the dual basis vectors carry the entries of P−1, while the basis vectors carry the entries of P. Substituting both into the expansion of a tensor gives the transformation law.

Theorem 15.5.2 (Transformation Law for Components)

Let t∈Tqp(V) have components Tj1…jqi1…ip in B and (T′)l1…lqk1…kp in B′, and let P=(pji) and Q=P−1=(qji) be as above. Then, with the summation convention, (T′)l1…lqk1…kp=qi1k1⋯qipkp×pl1j1⋯plqjqTj1…jqi1…ip. Each upper index is contracted with a factor of P−1, each lower index with a factor of P.

Idea. There is only one move: write t in the new basis, replace every new basis vector and every new dual basis vector by its expression in the old ones, multiply out using multilinearity of ⊗, and compare with the expansion of t in the old basis. Coordinates in a basis are unique, so the comparison is an equality of coefficients. Doing it once for type (1,0) shows the whole pattern; the general case is the same computation with more indices.

Proof. Start with the expansion of t in the new basis: t=(T′)l1…lqk1…kpvk1′⊗⋯⊗vkp′⊗(φ′)l1⊗⋯⊗(φ′)lq. Substitute vk′=pkivi and, by Lemma 15.5.1, (φ′)l=qjlφj. Since ⊗ is linear in each of its slots, the scalars may be pulled out of all p+q factors at once, giving t=(T′)l1…lqk1…kppk1i1⋯pkpipqj1l1⋯qjqlq×vi1⊗⋯⊗vip⊗φj1⊗⋯⊗φjq. The tensors on the right form a basis of Tqp(V) (Theorem 15.2.5), so coordinates in them are unique (Theorem 1.5.1). Comparing with Definition 15.5.1, (∗)Tj1…jqi1…ip=pk1i1⋯pkpipqj1l1⋯qjqlq(T′)l1…lqk1…kp. It remains to invert (∗). Contract both sides of (∗) with qi1m1⋯qipmppr1j1⋯prqjq and sum over i1,…,ip,j1,…,jq. On the right, each pair qimpki sums to (QP)km=δkm, and each pair qjlprj sums to δrl; every delta then collapses one summation. What survives on the right is (T′)r1…rqm1…mp, and what stands on the left is the asserted expression. Renaming m to k and r to l gives the theorem.

The two smallest cases are results the book already has, and they are worth reading off as a check.

  • Type (1,1). The law reads (T′)lk=qikpljTji, that is T′=P−1TP. This is Theorem 4.2.3: matrices of an operator in two bases are similar.
  • Type (0,2). The law reads (T′)kl=pkipljTij, that is T′=P⊤TP. This is Theorem 14.2.1: Gram matrices of a bilinear form in two bases are congruent.

So similarity and congruence are not two unrelated relations that happen to look alike. They are the transformation laws of type (1,1) and type (0,2), and the difference between P−1 and P⊤ is exactly the difference between an upper and a lower index.

15.5.3. The classical definition

The classical definition turns the theorem into a definition: a tensor is a rule producing arrays that obey the law.

Definition 15.5.2 (Classical tensor)

Let V be a vector space over F with dim⁡V=n≥1, and let p,q≥0. A classical tensor of type (p,q) on V is a rule B↦AB assigning to every ordered basis B of V an array AB=(Aj1…jqi1…ip) of np+q scalars, such that for any two ordered bases B,B′, with P=[id]B′B and Q=P−1, (AB′)l1…lqk1…kp=qi1k1⋯qipkp×pl1j1⋯plqjq(AB)j1…jqi1…ip.

Theorem 15.5.3 (The Two Definitions Agree)

Let V be finite-dimensional over F with dim⁡V=n≥1, and let p,q≥0. The map sending t∈Tqp(V) to the rule B⟼(components of t in B) is a bijection from Tqp(V) onto the set of classical tensors of type (p,q) on V. It is linear for the entrywise operations on arrays.

Idea. Well defined is Theorem 15.5.2. Injective because a tensor is determined by its coordinates in one basis. Surjective is the only step with content, and it is short: fix one basis B0, build the tensor whose components there are the given array, and then observe that its components in any other basis obey the same law as the rule’s array does, starting from the same array — so the two agree.

Proof. Well defined. If t∈Tqp(V), its components in the various bases satisfy the required identity, by Theorem 15.5.2. So the rule attached to t is a classical tensor.

Injective. Fix a basis B0. If two tensors give the same rule, they have the same components in B0, hence are equal, since coordinates in the basis of Theorem 15.2.5 are unique (Theorem 1.5.1).

Surjective. Let B↦AB be a classical tensor. Fix an ordered basis B0=(v1,…,vn) with dual basis (φ1,…,φn), and define t:=(AB0)j1…jqi1…ipvi1⊗⋯⊗φjq∈Tqp(V), so that the components of t in B0 are exactly AB0. Let B′ be any other ordered basis and put P=[id]B′B0. By Theorem 15.5.2 the components of t in B′ are obtained from AB0 by the law with this P; by Definition 15.5.2, AB′ is obtained from AB0 by the law with the same P. Both are the value of the same expression, so they are equal. Hence the rule attached to t is the given one.

Linearity. The components of t+ct′ in each basis are A+cA′, because coordinate maps are linear (Corollary 2.5.5).

Why the older definition survives. It is tempting to file Definition 15.5.2 as a historical curiosity, and that would be a mistake. Three honest reasons keep it in use.

  • Components are what gets measured and computed. A stress tensor, a metric, an inertia tensor: the physicist has numbers in a chosen frame, and the question that matters is what those numbers become in another frame. The transformation law is not a consequence to be derived afterwards; it is the datum.
  • There is often no global basis to be abstract about. On a curved space, the objects of interest are tensor fields, and a manifold generally admits no single coordinate system covering it. What it does admit is many local coordinate patches with prescribed rules for passing between them. In that setting “an array in each chart, transforming correctly on overlaps” is a definition that works, while “an element of Tqp(V)” needs a V that varies from point to point, which is a later and heavier construction.
  • It is a usable test. Given a recipe that produces an array from a basis, checking the transformation law is a finite computation, and it is the standard way to certify that a quantity is geometric rather than an artifact of the coordinates. The next warning is exactly such a test, failed.

15.5.4. An array is not a tensor

Warning. A matrix is not automatically a tensor. Consider the rule that assigns to every ordered basis of V the same array, written as a matrix, AB=(1000),dim⁡V=2, read as a type (1,1) array. Take B=(v1,v2) and B′=(v1,v1+v2), so that P=(1101),P−1=(1−101). The law demands AB′=P−1ABP, which is (1100), not AB. So this rule is not a classical tensor of type (1,1): it is a matrix, and nothing more. The operator it describes in B — projection onto span(v1) along span(v2) — is a perfectly good tensor, but then its array in B′ is the second matrix, not the first. “Write down the same numbers in every basis” is a rule, and almost never a tensor.

Two refinements of the same point are worth having.

The same array can be two different tensors. Take the array I2. As a type (1,1) rule it is a tensor: P−1I2P=I2 for every P, and the tensor is the identity operator, which is the ι of Exercise (C2: The contraction of the identity, over any field). As a type (0,2) rule, the same constant array is not a tensor: the law demands P⊤I2P, and for the P above that is (1112)≠I2. Geometrically: “the identity operator” is basis-free, while “the bilinear form whose Gram matrix is the identity”, that is, the choice of an inner product declaring the basis orthonormal, is not — it depends on the basis, and orthonormality, as Chapter 11 defines it, is relative to a chosen inner product.

Warning. Which type an array has is not visible in the array. The array (1000) transforms as P−1AP if it is the matrix of an operator and as P⊤AP if it is the Gram matrix of a form, and for the P above those give (1100) and (1111). Same numbers, same basis change, different answers. This is why index position is not decoration: writing Aji rather than Aij is a statement about what the object is.

Quick check. Let dim⁡V=2. Is the rule assigning to every ordered basis the array Aij=δij of type (0,2) ever a classical tensor — say, over F2, or if we only allow bases obtained from one another by permutation? Decide, with a reason.

Solution. Over F2 it still fails: with P=(1101), the law demands P⊤I2P=(1110) (since 2=0 in F2), which is not I2. If the bases are restricted to permutations of one fixed basis, then P is a permutation matrix, so P⊤=P−1 and P⊤I2P=I2: the rule survives. But Definition 15.5.2 quantifies over every ordered basis, and a rule that works only for a restricted family is exactly the kind of coordinate-dependent object the definition is designed to exclude. The lesson is that the law is a demand about all changes of basis, not about some.

15.5.5. Exercises

A. Check your understanding

Exercise (A1)
  • (a) Define the components of a tensor of type (p,q) in an ordered basis, and say which indices go upstairs.
  • (b) State the summation convention, and write ξ(v) with it.
  • (c) For a type (1,1) tensor, write out the transformation law and name the relation it expresses between the two matrices.
  • (d) Give the transformation law for type (0,2) and name the relation.
  • (e) True or false: any n×n array of scalars, attached to every basis, is a tensor of type (1,1). Justify your answer.

Solution.

  • (a) They are the unique coordinates of t in the basis of Theorem 15.2.5 built from B and B∗ (Definition 15.5.1). An index belonging to a V-slot goes upstairs; one belonging to a V∗-slot goes downstairs.

  • (b) An index occurring once upstairs and once downstairs in a product is summed from 1 to n, with the summation sign suppressed. So ξ(v)=ξivi.

  • (c) (T′)lk=qikpljTji, that is T′=P−1TP: the two matrices are similar (Theorem 4.2.3).

  • (d) (T′)kl=pkipljTij, that is T′=P⊤TP: the two matrices are congruent (Theorem 14.2.1, Definition 14.2.1).

  • (e) False. The rule must satisfy the transformation law; the constant rule (1000) does not, as the warning above shows.

B. Practice

Exercise (B1: Transforming components)

Let V be a 2-dimensional space over Q with basis B=(v1,v2), and let B′=(v1+v2,v1+2v2).

  • (a) Write down P=[id]B′B and Q=P−1.
  • (b) Let t∈T11(V) have components T11=1, T21=2, T12=3, T22=4 in B. Find its components in B′.
  • (c) Let s∈T20(V) have the same array Sij of components in B. Find its components in B′, and compare with (b).
  • (d) Compute C11(t) in both bases and check that the two answers agree.

Solution.

  • (a) The columns of P are the B-coordinates of the vectors of B′, so P=(1112),Q=P−1=(2−1−11), using Theorem 0.9.8 with detP=1.

  • (b) By Theorem 15.5.2, T′=P−1TP. With T=(1234), P−1T=(−1022),T′=(−1−146).

  • (c) Now the law gives S′=P⊤SP. With P⊤=(1112) (this P is symmetric), P⊤S=(46710),S′=(10161727). The same array in the same two bases produces completely different answers, because the two objects are of different types.

  • (d) In B: T11+T22=1+4=5. In B′: −1+6=5. They agree, as they must, since Definition 15.4.3 is defined without reference to a basis. (By contrast, the “trace” of the type (0,2) arrays is 1+4=5 against 10+27=37: there is no contraction of two lower indices, and summing Sii is not a basis-free operation.)

Exercise (B2: Tensor or not?)

Let dim⁡V=2. For each rule below, determine whether it is a classical tensor of the stated type. Justify your answer, using B=(v1,v2) and B′=(v2,v1) or B′=(v1,v1+v2) where a counterexample is needed.

  • (a) Type (1,1): AB=I2 for every B.
  • (b) Type (1,1): AB=(0100) for every B.
  • (c) Type (0,2): AB=O for every B.
  • (d) Type (1,1): AB=(trMB)I2, where MB is the matrix in B of one fixed operator M∈L(V).

Solution.

  • (a) Yes. The law demands P−1I2P=I2, which holds for every invertible P. The tensor is idV.

  • (b) No. With B′=(v2,v1) we get P=(0110)=P−1, and P−1AP=(0010)≠A. (This is the standard nondiagonalizable matrix of Chapter 9; here it is failing a different test.)

  • (c) Yes. The law reads O=P⊤OP, which holds. The tensor is the zero tensor, and the zero array is the one array that is a tensor of every type.

  • (d) Yes. By Theorem 4.2.5 the scalar c=trMB is the same for every B, so the rule is the constant rule cI2, and P−1(cI2)P=cI2. The tensor is cidV. The point of contrast with (b) is that c was itself built basis-freely.

C. Going deeper

Exercise (C1: Contraction in indices)

Let dim⁡V=n and let t∈T11(V) have components Tji in B and (T′)lk in B′.

  • (a) Prove directly from Theorem 15.5.2 that (T′)kk=Tii, without using Theorem 15.4.1.
  • (b) Let t∈T12(V) with components Tkij. Show that Uj:=Tiij are the components of a type (1,0) tensor, and identify it in terms of Definition 15.4.3.
  • (c) Let s∈T02(V) have components Sij. Show that the scalar ∑iSii is not basis-independent, and say which step of (b) fails for it.

Solution.

  • (a) By the law, (T′)lk=qikpljTji. Setting l=k and summing, (T′)kk=∑k∑i,jqikpkjTji=∑i,j(∑kpkjqik)Tji=∑i,jδijTji=∑iTii, where the inner sum is the (j,i) entry of PQ=In.

  • (b) By Theorem 15.5.2 for type (2,1), (T′)lkm=qikqjmplrTrij. Setting l=k and summing over k, (U′)m=∑k(T′)kkm=qjm(∑k,i,rqikpkrTrij)=qjmδirTrij=qjmUj, which is the transformation law for a single upper index. So (Uj) is a classical tensor of type (1,0), and by Theorem 15.5.3 it is a vector; it is C11(t), the contraction of the first upper slot against the lower one (Definition 15.4.3).

  • (c) Take n=2 and s=v1⊗v1, so S11=1 and the other components vanish; then ∑iSii=1. Let B′=(v1+v2, v2), so that P=(1011) and v1=v1′−v2′. Expanding, s=(v1′−v2′)⊗(v1′−v2′), so (S′)11=(S′)22=1 and (S′)12=(S′)21=−1. Hence ∑k(S′)kk=2≠1. The step that fails is the collapse in (b): setting the two indices equal pairs a factor qik with another factor qjk, and ∑kqikqjk is an entry of Q⊤Q, not of PQ=In, so nothing cancels. Only an upper index repeated against a lower one is a contraction.

Exercise (C2: Raising an index needs a form)

Let V be finite-dimensional over F and let β be a nondegenerate bilinear form on V, with components gij=β(vi,vj) in B.

  • (a) Prove that the matrix G=(gij) is invertible, and let (gij) denote the entries of G−1.
  • (b) Let t∈T10(V) have components Tj. Show that Ui:=gijTj satisfies the type (1,0) transformation law, so that “raising the index with β” produces a genuine tensor.
  • (c) Explain in one or two sentences why this does not contradict the warning that there is no canonical map V∗→V.

Solution.

  • (a) By Proposition 14.1.2, β is nondegenerate exactly when G=[β]BB is invertible.

  • (b) By Theorem 14.2.1, G′=P⊤GP, so (G′)−1=P−1G−1(P⊤)−1=QG−1Q⊤, that is (g′)kl=qikqjlgij: the inverse array carries two upper indices. Also (T′)l=plrTr by Theorem 15.5.2. Hence (U′)k=(g′)kl(T′)l=qikgij(∑lqjlplr)Tr=qikgijδjrTr=qikgijTj=qikUi, using ∑lplrqjl=(PQ)jr=δjr. That is the type (1,0) law.

  • (c) The map is canonical given β, not given V alone: a different nondegenerate form raises indices differently, and there is no distinguished choice. This is the same point as the warning after Definition 15.4.1: the isomorphism V≅V∗ is extra structure, which Chapter 11 supplies with an inner product and Chapter 14 with a form.

Found a typo or a mistake? Report it, or read this page’s source

The text of this book is licensed under CC BY-NC-SA 4.0.