Part 0 · The Toolkit — Chapter 0.4

Vector Spaces and Linear Maps

The matrix is not the point. The matrix is a shadow the point casts once you pick coordinates.

Where we are

Linear algebra is not the study of matrices. It is the study of things that add and scale. A matrix is what one of those things looks like after you have made an arbitrary choice of how to describe it. Almost every difficulty people have later in this book traces back to having learned the shadow instead of the object.

Physics is overwhelmingly linear, for two reasons that are worth keeping strictly apart.

The first is that we linearise everything. Chapter 0.1 replaced functions by their best linear approximations, and Chapter 0.3 turned that into a controlled expansion. When the linear term is the first surviving one, linear algebra is the mathematics of the leading behaviour of anything at all.

The second reason is different in kind. In quantum mechanics superposition is not an approximation. If a system can be in state ψ1\ket{\psi_1} and in state ψ2\ket{\psi_2}, it can be in αψ1+βψ2\alpha\ket{\psi_1}+\beta\ket{\psi_2}, exactly, with no small parameter and no correction terms. Quantum mechanics is not approximately linear algebra. From Chapter 4.2 onward it simply is linear algebra, and the physical content lives in which vector space and which operators.

So this chapter builds the object first and the array second. By the end you will know three things. You will know why matrix multiplication has the shape it has, which is forced rather than chosen. You will know what a determinant is before anyone writes down a cofactor. And you will know why the trace, an apparently trivial sum of diagonal entries, turns out to be one of the most reused quantities in theoretical physics.

Tools you'll need  — Chapter 0.1: linearisation, and the characterisation of the exponential as the function equal to its own derivative (we use it once, in §6). Nothing else. Everything about vectors is built here from scratch.

1 · What a vector actually is

Let's start by asking what the word "vector" is actually doing, because the answer decides how far everything later will reach.

You were probably told that a vector is an arrow, a thing with magnitude and direction. That description is a special case of a special case. It will strand you in Chapter 4.2, where the vectors are functions and there is not an arrow in sight.

Here is the actual definition. A vector space over a field of scalars F\mathbb{F} (for us always R\R or C\C) is a set VV carrying two operations. The first is addition of two elements of VV. The second is multiplication of an element of VV by a scalar. Both operations must land back inside VV, and both must satisfy eight rules:

(A1)u+v=v+u(S1)1v=v(A2)(u+v)+w=u+(v+w)(S2)a(bv)=(ab)v(A3) 0: v+0=v(S3)a(u+v)=au+av(A4) (v): v+(v)=0(S4)(a+b)v=av+bv \begin{aligned} &\text{(A1)}\quad u+v = v+u &&\text{(S1)}\quad 1\,v = v\\[2pt] &\text{(A2)}\quad (u+v)+w = u+(v+w) &&\text{(S2)}\quad a(bv) = (ab)v\\[2pt] &\text{(A3)}\quad \exists\ 0:\ v+0 = v &&\text{(S3)}\quad a(u+v) = au+av\\[2pt] &\text{(A4)}\quad \exists\ (-v):\ v+(-v)=0 &&\text{(S4)}\quad (a+b)v = av+bv \end{aligned} (0.4.1)

That is the whole definition. Notice what is not in it. There is no length, no angle, no coordinates and no arrows. Those all come later and they cost extra. Length and angle are Chapter 0.5. Coordinates are §2 of this chapter, and they are always a choice.

The axioms are not decoration. They do work, and here are two examples of that work, both of which you have used a thousand times without noticing that they need proving.

The scalar 00 annihilates. Nothing in (0.4.1) says that 0v0\,v is the zero vector. The symbol 00 on the left is a number and the one on the right is a vector, and those are different objects, so the statement has to be earned.

By (S4), 0v=(0+0)v=0v+0v0v = (0+0)v = 0v+0v. Add (0v)-(0v) to both sides, use (A4) and (A3), and what is left is 0=0v0 = 0v.

The same style of argument gives (1)v=v(-1)v = -v. Compute v+(1)v=1v+(1)v=(1+(1))v=0v=0v + (-1)v = 1v + (-1)v = \big(1+(-1)\big)v = 0v = 0. By (A4), the thing you add to vv to get 00 is exactly what the symbol "v-v" means.

1.1 · The examples that are not arrows

The six examples below have almost nothing in common as objects. They have everything in common as vector spaces, and that is the whole point of the definition.

1. Tuples, Rn\R^{n}. Add componentwise, scale componentwise. This is the familiar one, and it is the only one that looks like arrows.

2. Polynomials of degree at most nn. Call this space PnP_{n}. The sum of two polynomials of degree n\le n again has degree n\le n, and so does a scalar multiple of one. The zero polynomial is the zero vector. All eight axioms hold because they hold coefficient by coefficient.

There is a trap here worth stopping on. Polynomials of degree exactly nn do not form a vector space. Take x2x^{2} and x2+x-x^{2}+x, both of degree exactly 22. Their sum is not of degree 22, and the zero polynomial is missing from the set entirely. Closure is a real condition, not a formality.

3. The solutions of a linear differential equation. This one matters more than the other five, so let's do it properly. Take the general second-order linear equation:

L[y]    y+p(x)y+q(x)y  =  0. L[y] \;\equiv\; y'' + p(x)\,y' + q(x)\,y \;=\; 0. (0.4.2)

We want to know whether the solution set is closed under addition and scaling, so take two solutions y1y_{1} and y2y_{2} and feed a combination of them into LL. The only facts we need are that differentiation is itself additive and that it commutes with constants:

L[ay1+by2]  =  a(y1+py1+qy1)+b(y2+py2+qy2)=  a0+b0  =  0. \begin{aligned} L[a y_{1} + b y_{2}] \;&=\; a\big(y_{1}''+py_{1}'+qy_{1}\big) + b\big(y_{2}''+py_{2}'+qy_{2}\big)\\[4pt] &=\; a\cdot 0 + b\cdot 0 \;=\; 0. \end{aligned} (0.4.3)

Both terms vanished, so the combination solves the equation as well. The solution set is closed under addition and scaling, which makes it a vector space.

That statement has a name in physics. It is called superposition, and it does a great deal of work. It is why you may add two solutions of the wave equation and get a solution. It is why normal modes work (Chapter 0.8). It is why a plucked string can be decomposed into harmonics (Chapter 0.9).

Now notice what it is not. It is not a physical principle. It is the observation that LL is a linear map, together with the fact that the set of things a linear map sends to zero is a vector space.

The matching trap is worth seeing now, because it explains a rule you were once made to memorise. Suppose the equation is inhomogeneous, meaning L[y]=fL[y]=f with f0f\neq0. Then the solution set is not a vector space at all, since the sum of two solutions gives 2f2f rather than ff.

Something almost as good survives. Let ypy_{p} be any one solution and let yy be any other. Then L[yyp]=ff=0L[y-y_{p}] = f-f = 0, so the difference solves the homogeneous equation. That gives general solution = particular solution + (vector space of homogeneous solutions).

Picture it as a plane sitting inside a larger space, shifted off the origin. The "arbitrary constants" you were told to add are coordinates on that shifted plane.

4. Functions on an interval. Take all real-valued functions on [a,b][a,b] and add them pointwise, so that (f+g)(x)f(x)+g(x)(f+g)(x)\equiv f(x)+g(x) and (cf)(x)cf(x)(cf)(x)\equiv c\,f(x). Every axiom holds pointwise, because it holds for real numbers. This space is infinite-dimensional in the sense §2 is about to make precise, and it is the arena of Chapters 0.9 and 4.3.

5. Matrices. The m×nm\times n real matrices form a vector space under entrywise addition. Read that twice, because matrices are themselves vectors.

If you are carrying around the idea that a vector is a column of numbers, you cannot even parse that sentence. You will need to parse it in Chapter 6.1, where the vector space in question is a space of matrices and its elements are the generators of a symmetry group.

6. Quantum states. The states of a quantum system form a vector space over C\C, and not in any metaphorical sense. The superposition principle is precisely the assertion that the axioms (0.4.1) hold for physical states. This is why Chapter 4.2 is a linear algebra chapter with physics vocabulary sprinkled on top.

The definition to carry forward

"Vector" does not mean "arrow". It means "element of a vector space". The word is a statement about what you are allowed to do to the object, which is to add it to another one and to scale it. It says nothing whatever about anything else.

A function, a polynomial, a matrix, a solution of a differential equation and a quantum state are all vectors, and every theorem in this chapter applies to all of them without modification. That is not generality for its own sake. It is why the same eigenvalue machinery solves a coupled-oscillator problem in Chapter 0.8 and a hydrogen atom in Chapter 4.13.

In plain terms 0.4.1

There is no arrow anywhere in the definition of a vector, and no length and no angle either, which is exactly what gives the subject its reach. What the definition lists is what you are permitted to do to the object: add two of them together, stretch one by a number, and find that the results still belong to the collection you started with. Anything meeting that short list is a vector, and no theorem proved from the list can tell one example from another.

Which is why the examples are so unalike. A polynomial is a vector, a function on an interval is a vector, an array of numbers is a vector, and so is the state of a quantum system. Most consequential of all, the solutions of a linear differential equation form a vector space, because adding two solutions produces a solution and scaling one produces another. Physicists call that superposition and speak of it as a principle of nature. It is nothing of the sort. It is an observation about the equation.

Carry that forward, because it is what makes the abstraction worth its awkwardness. One body of results, proved once and never again, will later solve a room full of coupled pendulums and a hydrogen atom without needing to be told which of the two it is looking at.

2 · Span, independence, basis, dimension

We now want to describe an abstract vector by a list of numbers, because a list of numbers is something we can compute with. The machinery of this section does that. Just as importantly, it tells us that the list is not the vector.

Three definitions, in the order they are needed. A linear combination of v1,,vkv_{1},\dots,v_{k} is any vector c1v1++ckvkc_{1}v_{1}+\cdots+c_{k}v_{k}. The span of a set is the collection of all its linear combinations, and the span is itself a vector space, since a sum of two linear combinations is a linear combination and so is a multiple of one.

The third definition rules out redundancy. The set {v1,,vk}\{v_{1},\dots,v_{k}\} is linearly independent if

c1v1+c2v2++ckvk=0c1=c2==ck=0, c_{1}v_{1}+c_{2}v_{2}+\cdots+c_{k}v_{k} = 0 \quad\Longrightarrow\quad c_{1}=c_{2}=\cdots=c_{k}=0, (0.4.4)

In words, the only way to build the zero vector out of them is to use none of them. Put the two ideas together and you have the object we are after. A basis is a set that is linearly independent and that also spans the whole space.

2.1 · Coordinates exist, and they are unique

Let {e1,,en}\{e_{1},\dots,e_{n}\} be a basis of VV. Because it spans, every vVv\in V can be written as v=jxjejv=\sum_{j}x_{j}e_{j} for some scalars xjx_{j}. What we need to show is that those scalars are uniquely determined by vv, since otherwise the phrase "the coordinates of vv" would not mean anything. So suppose vv had two expansions, and watch what independence forces:

v=j=1nxjej=j=1nyjejj=1n(xjyj)ej=0xj=yj  j, v = \sum_{j=1}^{n} x_{j}e_{j} = \sum_{j=1}^{n} y_{j}e_{j} \quad\Longrightarrow\quad \sum_{j=1}^{n}(x_{j}-y_{j})\,e_{j} = 0 \quad\Longrightarrow\quad x_{j}=y_{j}\ \ \forall j, (0.4.5)

The last step is exactly the definition of independence (0.4.4), applied to the coefficients cj=xjyjc_{j}=x_{j}-y_{j}.

The converse is just as quick. Suppose every vector has a unique expansion, and apply that to v=0v=0. The zero vector certainly has the expansion with all coefficients zero, and uniqueness says there is no other one. That is independence.

So the two conditions are one condition, which is worth stating on its own:

Basis, restated

A set is a basis exactly when every vector in the space has one and only one coordinate list with respect to it. Spanning is what gives you at least one list. Independence is what gives you at most one.

The scalars xjx_{j} are the coordinates of vv in the basis {ej}\{e_{j}\}. We will write them as a column and give that column its own symbol, deliberately different from the symbol for the vector itself:

v=j=1nxjejx=(x1xn). v = \sum_{j=1}^{n} x_{j}\,e_{j} \qquad\longleftrightarrow\qquad \vv{x} = \begin{pmatrix} x_{1}\\ \vdots\\ x_{n}\end{pmatrix}. (0.4.6)

Throughout this chapter, vv is the vector and x\vv{x} is its coordinate list. They are not the same kind of thing. Keeping them typographically apart is not pedantry. It is the entire subject.

2.2 · Dimension

The dimension of VV is the number of elements in a basis. Before that can count as a definition, we need to know that two different bases of the same space cannot have different sizes. They cannot. The proof is a swapping argument worth seeing once, and it is in the grind box below. Granting it, the examples fall out:

SpaceA basisDimension
Rn\R^{n}e1,,ene_{1},\dots,e_{n} (the standard columns)nn
P3P_{3}, polynomials of degree 3\le31, x, x2, x31,\ x,\ x^{2},\ x^{3}44
2×22\times2 real matricesthe four matrices with a single 1144
Solutions of y+ω2y=0y''+\omega^{2}y=0cosωt, sinωt\cos\omega t,\ \sin\omega t22
Functions on [a,b][a,b]no finite basis exists\infty

The polynomial entry deserves a word, since it is the one people wave through. Why are 1,x,x2,x31,x,x^{2},x^{3} independent? Suppose c0+c1x+c2x2+c3x3=0c_{0}+c_{1}x+c_{2}x^{2}+c_{3}x^{3}=0 as a function, meaning true for every xx. Then that polynomial has infinitely many roots. But a nonzero polynomial of degree 3\le3 has at most three roots. So it must be the zero polynomial, and all ck=0c_{k}=0.

The independence of cos\cos and sin\sin is Problem 1, and it is proved the same way, by evaluating somewhere convenient.

Grind box — why every basis has the same size (the exchange lemma)

Lemma. If {w1,,wm}\{w_{1},\dots,w_{m}\} spans VV and {v1,,vk}\{v_{1},\dots,v_{k}\} is independent, then kmk\le m. An independent set can never be larger than a spanning set.

Proof. We swap the vv's in one at a time, keeping a spanning set at every step.

Since the ww's span, we may write v1=jcjwjv_{1}=\sum_{j}c_{j}w_{j}. Not every cjc_{j} is zero, because that would make v1=0v_{1}=0, and a set containing 00 is never independent. (Take c1=1c_{1}=1 and the rest zero in (0.4.4).) Relabel so that c10c_{1}\neq0, and then solve for w1w_{1}:

w1=1c1(v1j2cjwj), w_{1} = \frac{1}{c_{1}}\Big(v_{1} - \sum_{j\ge2}c_{j}w_{j}\Big),

so anything expressible with w1w_{1} is expressible with v1v_{1} instead, and {v1,w2,,wm}\{v_{1},w_{2},\dots,w_{m}\} still spans VV.

Now suppose we have got as far as {v1,,vr,wr+1,,wm}\{v_{1},\dots,v_{r},w_{r+1},\dots,w_{m}\} spanning, with r<kr\lt k. Expand the next one:

vr+1=iraivi+j>rbjwj. v_{r+1} = \sum_{i\le r} a_{i}v_{i} + \sum_{j\gt r} b_{j}w_{j}.

Ask what would happen if every bjb_{j} vanished. Then vr+1v_{r+1} would be a linear combination of v1,,vrv_{1},\dots,v_{r}, and a1v1++arvrvr+1=0a_{1}v_{1}+\cdots+a_{r}v_{r}-v_{r+1}=0 would be a nontrivial vanishing combination, since the coefficient of vr+1v_{r+1} is 10-1\neq0. That contradicts independence. So some bj0b_{j}\neq0. Relabel it as br+1b_{r+1}, solve for wr+1w_{r+1} as above, and swap it out. The new set still spans.

Each step consumes one ww. If k>mk\gt m we would run out of ww's while vv's remained. But the step above proved that some bjb_{j} with j>rj\gt r is nonzero, and that requires at least one ww to still be present. Contradiction. Hence kmk\le m. \blacksquare

Consequence. Let B1B_{1} and B2B_{2} be bases with n1n_{1} and n2n_{2} elements. B1B_{1} is independent and B2B_{2} spans, so n1n2n_{1}\le n_{2}. B2B_{2} is independent and B1B_{1} spans, so n2n1n_{2}\le n_{1}. Therefore n1=n2n_{1}=n_{2}, and dimension is a property of the space, not of the description. \blacksquare

A corollary we need in §5. In an nn-dimensional space, any nn independent vectors already form a basis. Suppose they failed to span. Then there would be some uu outside their span, and {v1,,vn,u}\{v_{1},\dots,v_{n},u\} would be independent. To see that, take a vanishing combination civi+cu=0\sum c_{i}v_{i}+cu=0. It must have c=0c=0, since otherwise u=1cciviu=-\frac1c\sum c_iv_i would lie in the span, and then all ci=0c_{i}=0 by independence of the vv's. That gives n+1n+1 independent vectors in a space spanned by nn, contradicting the lemma.

The sentence that governs the rest of this book

The vector is the object. The coordinate list is a description of it relative to a choice you made. Change the choice and every number in the list changes, while nothing whatsoever happens to the vector.

This is the seed of two things that will otherwise look like arbitrary formalism when you meet them.

In Chapter 2.4, a tensor is defined as an object whose components transform in the particular way that keeps the underlying object fixed while the description changes. That bookkeeping is §4 of this chapter, promoted to a definition.

In Chapter 3.2, the demand that physics must not depend on the coordinates becomes the organising principle of general relativity. A coordinate system is a choice of labels for events, no more physical than a choice of basis, so any equation whose content depends on that choice is not a law of nature. Both of those are this paragraph.

In plain terms 0.4.2

Coordinates arrive as a convenience and become a hazard within a page, so it is worth being exact about what they are. Choose a collection of vectors large enough to build everything in sight and lean enough that none of them is redundant, and every vector in the space acquires one list of numbers with respect to that collection. Being able to build everything gets you at least one such list; having no redundancy gets you at most one; a basis is the name for a collection with both properties at once.

The hazard hides in the phrase with respect to. The list is not the vector. It is a description of the vector relative to a choice somebody made, and a different choice yields a completely different list while nothing whatever happens to the thing being described. This is the first appearance of the idea the whole book is organised around, which is the separation of what depends on your point of view from what does not, and the habit is worth installing now, while the stakes are still small.

One thing does survive every choice. Any two bases of the same space contain the same number of vectors, so that count is a property of the space rather than of anybody's description of it. It is the first invariant you meet.

3 · Linear maps, and why matrix multiplication looks the way it does

We have the objects. Now we need the maps between them, and the only maps worth having are the ones that respect the two operations the objects were defined by. A map T:VWT:V\to W between vector spaces is linear if it does exactly that:

T(u+v)=T(u)+T(v),T(av)=aT(v)T(au+bv)=aT(u)+bT(v). \begin{aligned} &T(u+v) = T(u)+T(v), \qquad T(av) = a\,T(v)\\[4pt] &\qquad\Longleftrightarrow\qquad T(au+bv) = a\,T(u)+b\,T(v). \end{aligned} (0.4.7)

Here are some examples, deliberately not all of them matrices. Rotation of the plane is linear. So is differentiation yyy\mapsto y', acting on polynomials or on smooth functions. So is the operator LL of (0.4.2). So is definite integration fabff\mapsto\int_{a}^{b}f, which is a linear map from a function space to R\R. And in Chapter 4.2, so is every physical observable.

3.1 · A linear map is determined by what it does to a basis

A linear map looks at first like an enormous amount of data, since it has to say what happens to every one of infinitely many vectors. We want to show that it is far less than that.

Let {e1,,en}\{e_{1},\dots,e_{n}\} be a basis of VV and let T:VWT:V\to W be linear. Take any vVv\in V, expand it in coordinates as in (0.4.6), then apply additivity n1n-1 times and homogeneity to each term:

T(v)  =  T(j=1nxjej)  =  j=1nxjT(ej). T(v) \;=\; T\Big(\sum_{j=1}^{n} x_{j}e_{j}\Big) \;=\; \sum_{j=1}^{n} x_{j}\,T(e_{j}). (0.4.8)

Let's read what that says. If you know the nn vectors T(ej)T(e_{j}), you know TT completely. Its value on every one of the infinitely many vectors in VV is then forced.

The converse holds too, and it is worth spelling out. Choose any nn vectors w1,,wnw_{1},\dots,w_{n} in WW, whatever you like, and define T(v)jxjwjT(v)\equiv\sum_{j}x_{j}w_{j}. That is a legitimate definition precisely because the coordinates xjx_{j} are unique, which is what (0.4.5) was for. And it is linear because coordinates add and scale.

So linear maps VWV\to W correspond exactly to arbitrary lists of nn vectors in WW. Nothing is left over on either side.

3.2 · The matrix, defined

Those nn vectors T(ej)T(e_{j}) are still abstract objects, and what we want is numbers. So pick a basis {f1,,fm}\{f_{1},\dots,f_{m}\} of the target space WW as well. Each T(ej)T(e_{j}) lives in WW, so it has coordinates there, and we give those coordinates a name:

  T(ej)  =  i=1mTijfi   \boxed{\;T(e_{j}) \;=\; \sum_{i=1}^{m} T_{ij}\,f_{i}\;} (0.4.9)

The m×nm\times n array of numbers TijT_{ij} is the matrix of TT in the bases {ej},{fi}\{e_{j}\},\{f_{i}\}. Here is the sentence to remember, in words: the jj-th column of the matrix is the coordinate list of the image of the jj-th basis vector.

The two indices are doing different jobs. The first labels which component in the target space you are looking at. The second labels which basis vector went in.

Now let's find out what the array does to coordinates, since that is what we will spend it on. Combine (0.4.8) with (0.4.9) and swap the order of two finite sums:

T(v)  =  jxjiTijfi  =  i(jTijxj)fi(T(v))i=j=1nTijxj. \begin{aligned} T(v) \;&=\; \sum_{j} x_{j}\sum_{i} T_{ij}f_{i} \;=\; \sum_{i}\Big(\sum_{j}T_{ij}x_{j}\Big)f_{i}\\[4pt] &\Longrightarrow\qquad \big(T(v)\big)_{i} = \sum_{j=1}^{n} T_{ij}\,x_{j}. \end{aligned} (0.4.10)

That is the row-times-column rule for a matrix acting on a column vector. We did not postulate it. It is what (0.4.9) forces.

3.3 · Composition, and the punchline

Here is the moment this section exists for. We want to know which array describes doing one map and then another, so set two maps up end to end. Let T:UVT:U\to V and S:VWS:V\to W, with bases {uk}\{u_{k}\} of UU, {vj}\{v_{j}\} of VV and {wi}\{w_{i}\} of WW. Each map gets its matrix from (0.4.9):

T(uk)=jTjkvj,S(vj)=iSijwi. T(u_{k}) = \sum_{j} T_{jk}\,v_{j}, \qquad\qquad S(v_{j}) = \sum_{i} S_{ij}\,w_{i}. (0.4.11)

The composite map ST:UWS\circ T:U\to W means "do TT, then SS". It is linear, which you can check by composing the definitions, so it has a matrix of its own. By (0.4.9) that matrix is read off from what STS\circ T does to the basis {uk}\{u_{k}\}. So let's compute exactly that:

(ST)(uk)=S(T(uk))=S(jTjkvj)=jTjkS(vj)=jTjkiSijwi  =  i(jSijTjkcoefficient of wi)wi. \begin{aligned} (S\circ T)(u_{k}) &= S\big(T(u_{k})\big) = S\Big(\sum_{j}T_{jk}\,v_{j}\Big) = \sum_{j} T_{jk}\,S(v_{j})\\[4pt] &= \sum_{j} T_{jk}\sum_{i} S_{ij}\,w_{i} \;=\; \sum_{i}\Big(\underbrace{\sum_{j} S_{ij}T_{jk}}_{\text{coefficient of }w_{i}}\Big) w_{i}. \end{aligned} (0.4.12)

Now compare that last line with the definition (0.4.9), and read off the matrix of the composite:

  (ST)ik  =  j=1dimVSijTjk   \boxed{\;(ST)_{ik} \;=\; \sum_{j=1}^{\dim V} S_{ij}\,T_{jk}\;} (0.4.13)

There it is. Matrix multiplication is not a convention someone chose. It is what composition of linear maps does to the arrays. Every strange feature of the rule is now explained rather than memorised:

  • Why rows times columns. The summed index jj labels a basis of the middle space VV, which is where the output of TT lands and where the input of SS comes from. It has to be summed because (0.4.12) feeds every component of T(uk)T(u_{k}) through SS. The free indices ii and kk label the two ends.
  • Why the shapes must match. An m×nm\times n times an n×pn\times p is legal and nothing else is, because the middle dimension is the dimension of the middle space. Mismatched shapes are not a typing error. They are an attempt to compose maps that do not connect.
  • Why STST means "first TT". Because (ST)(u)=S(T(u))(S\circ T)(u)=S(T(u)) and the function nearest the argument acts first. The reversed-looking order is inherited from function notation, which is in turn inherited from writing f(x)f(x) rather than (x)f(x)f.
  • Why it is associative for free. (RS)T=R(ST)(RS)T = R(ST) requires no computation whatsoever. Composition of functions is associative, since both sides mean "do TT, then SS, then RR". People verify this with triple sums. There is no need.
  • Why it need not commute. Doing TT then SS is a different operation from doing SS then TT. See the warning box below, and then most of twentieth-century physics.

The repeated index jj in (0.4.13), summed over while the free indices survive, is your first contraction. In Chapter 2.4 it gets a notation of its own, Einstein's convention, in which a repeated index is silently summed. From there it never stops.

Familiar ground

You already iterate a linear map professionally. Take a three-state disease model, with states progression-free (PF), progressed (P) and dead (D), and a cycle length of say three months.

Let the state of a cohort be a column of probabilities p\vv{p}, and let the transition matrix act on the left, so that p(n+1)=Pp(n)\vv{p}^{(n+1)} = P\,\vv{p}^{(n)}. With that convention Pij=Pr(next state icurrent state j)P_{ij} = \Pr(\text{next state } i \mid \text{current state } j), so the columns sum to one. (Much of the health-economics literature writes the state as a row vector and multiplies on the right, in which case the rows sum to one instead. Both are correct. Mixing them silently is the standard way to get a wrong answer.)

With per-cycle probabilities 0.150.15 for progression, 0.050.05 for death from PF and 0.300.30 for death from P:

P=(0.80000.150.7000.050.301),p(0)=(100). P = \begin{pmatrix} 0.80 & 0 & 0\\ 0.15 & 0.70 & 0\\ 0.05 & 0.30 & 1 \end{pmatrix}, \qquad \vv{p}^{(0)} = \begin{pmatrix}1\\0\\0\end{pmatrix}.

nn cycles is PnP^{n}, the matrix of the nn-fold composite, by (0.4.13) applied n1n-1 times.

And the entries of P2P^{2} are exactly the derivation in (0.4.12) read aloud. The chance of being progressed after two cycles is (P2)21=jP2jPj1=0.15×0.70+0.80×0.15=0.225(P^{2})_{21}=\sum_{j}P_{2j}P_{j1} = 0.15\times0.70 + 0.80\times0.15 = 0.225, which is a sum over the intermediate state jj: progress-then-survive plus survive-then-progress. The summed middle index of matrix multiplication is a sum over all the ways of getting there.

The column-sum constraint has an algebraic reading. Write 1 ⁣\vv{1}^{\!\top} for the row of ones. Then "every column sums to one" says 1 ⁣P=1 ⁣\vv{1}^{\!\top}P = \vv{1}^{\!\top}, meaning that row vector is left unchanged by PP.

A vector the map leaves alone is what §7 will call an eigenvector, here with eigenvalue 11. This one is the algebraic form of "probability is conserved", since the total is the thing this map cannot change.

Everything else about the model's long run is likewise eigenvalues. The eigenvalues are the numbers λ\lambda for which PλIP-\lambda I fails to be invertible, and §7 proves that this is the same condition. This PP is triangular, and §5 shows that the determinant of a triangular matrix is the product of the diagonal. So det(PλI)=(0.8λ)(0.7λ)(1λ)\det(P-\lambda I) = (0.8-\lambda)(0.7-\lambda)(1-\lambda) and the eigenvalues are 1, 0.8, 0.71,\ 0.8,\ 0.7.

The λ=1\lambda=1 direction is the absorbing state, since everyone is eventually dead. The rate of approach is governed by the largest of the others: the PF fraction is exactly 0.8n0.8^{n}, and at n=10n=10 the cohort is 10.7%10.7\% PF, 11.9%11.9\% progressed and 77.4%77.4\% dead. Which sub-unit eigenvalue dominates, and how fast, is the whole content of Chapter 0.5.

In plain terms 0.4.3

Knowing what a map does to the members of a basis is knowing everything about it, since every other vector is a combination of those few and the map respects combinations. That single observation is where the array of numbers comes from. Record what happens to each basis vector, in coordinates, stack the answers as columns, and you have the array; it is a transcript of that and of nothing else.

Once the array is defined that way, the strange rule for multiplying two of them stops being a rule. Ask which array describes doing one map and then a second, follow the bookkeeping, and rows against columns emerges at the far end with no choice made anywhere. Every odd feature is thereby explained rather than memorised: why the inner sizes must agree, since that number counts the dimensions of the space in the middle; and why nobody need check that the operation is associative, since doing three things in sequence cannot depend on how you bracket the description of it.

The same reading explains the failure that matters most. Two maps applied in opposite orders are two different operations, so the arrays do not commute, and the size of that discrepancy is not a blemish on the notation. Turn a book and then flip it, then flip a book and turn it, and the book finishes somewhere else.

4 · Change of basis

Two people describe the same space with different bases. What is the relationship between their arrays? This is the most mechanical section of the chapter, and it is also the one with the longest reach. It is the prototype of every transformation law in relativity.

Let {ej}\{e_{j}\} and {ej}\{e'_{j}\} both be bases of VV. Each new basis vector is itself a vector, so it has coordinates in the old basis. Call those coordinates PijP_{ij}:

ej  =  i=1nPijei. e'_{j} \;=\; \sum_{i=1}^{n} P_{ij}\,e_{i}. (0.4.14)

In words, the columns of PP are the new basis vectors, written in old coordinates.

We are going to need PP to be invertible, and we can see that it is without appealing to anything outside what we already have. Since {ek}\{e'_{k}\} is also a basis, we may equally expand the old vectors in the new ones, ei=kQkieke_{i}=\sum_{k}Q_{ki}e'_{k}. Now substitute each expansion into the other:

ej=iPijkQkiek=k(iQkiPij)ekiQkiPij=δkj, e'_{j} = \sum_{i}P_{ij}\sum_{k}Q_{ki}\,e'_{k} = \sum_{k}\Big(\sum_{i}Q_{ki}P_{ij}\Big)e'_{k} \quad\Longrightarrow\quad \sum_{i}Q_{ki}P_{ij} = \delta_{kj}, (0.4.15)

The implication is uniqueness of coordinates (0.4.5) again. The left side has to be the expansion of eje'_{j} in the basis {ek}\{e'_{k}\}, which is 11 in slot jj and 00 elsewhere, and that is what the Kronecker delta δkj\delta_{kj} means.

So QP=IQP=I. Running the same argument with the roles exchanged gives PQ=IPQ=I, and hence Q=P1Q=P^{-1}.

4.1 · Components go the other way

The vector itself is not changing, so the two coordinate lists must be related somehow, and we want that relation. Take a vector vv and expand it both ways, v=jxjej=jxjejv=\sum_{j}x_{j}e_{j}=\sum_{j}x'_{j}e'_{j}, then substitute (0.4.14) into the second expansion:

v=jxjiPijei=i(jPijxj)eix=Px,x=P1x. v = \sum_{j}x'_{j}\sum_{i}P_{ij}e_{i} = \sum_{i}\Big(\sum_{j}P_{ij}x'_{j}\Big)e_{i} \quad\Longrightarrow\quad \vv{x} = P\vv{x}', \qquad \vv{x}' = P^{-1}\vv{x}. (0.4.16)

Let's stop on that, because it is the source of a lifetime of index confusion. The basis vectors transform with PP. The components transform with P1P^{-1}.

They have to go in opposite directions, because their product is the actual vector, and the vector does not change at all. Make your ruler twice as long and every measurement expressed in rulers is halved.

In Chapter 2.4 this opposition is given names, covariant and contravariant, and it is why some indices are written upstairs and some downstairs.

4.2 · The similarity transformation

Finally we come to the case that matters most, which is a linear map from a space to itself. Such a map is called an operator. Let T:VVT:V\to V be one, with matrix AA in the old basis and AA' in the new one:

T(ej)=iAijei,T(ej)=iAijei. T(e_{j}) = \sum_{i}A_{ij}\,e_{i}, \qquad\qquad T(e'_{j}) = \sum_{i}A'_{ij}\,e'_{i}. (0.4.17)

The trick is to compute T(ej)T(e'_{j}) in two different ways and then set the answers side by side. First, push TT through the definition of the new basis (0.4.14):

T(ej)=T(kPkjek)=kPkjT(ek)=kPkjiAikei=i(AP)ijei. T(e'_{j}) = T\Big(\sum_{k}P_{kj}e_{k}\Big) = \sum_{k}P_{kj}\,T(e_{k}) = \sum_{k}P_{kj}\sum_{i}A_{ik}e_{i} = \sum_{i}(AP)_{ij}\,e_{i}. (0.4.18)

Second, use the new-basis matrix instead, and then express the new basis vectors back in the old basis:

T(ej)=kAkjek=kAkjiPikei=i(PA)ijei. T(e'_{j}) = \sum_{k}A'_{kj}\,e'_{k} = \sum_{k}A'_{kj}\sum_{i}P_{ik}e_{i} = \sum_{i}(PA')_{ij}\,e_{i}. (0.4.19)

Both lines are expansions of the same vector in the same basis {ei}\{e_{i}\}. So by uniqueness of coordinates the coefficients have to agree, which gives AP=PAAP=PA', and therefore

  A=P1AP   \boxed{\;A' = P^{-1}AP\;} (0.4.20)

Two matrices related this way are called similar, and the content of (0.4.20) is short. Similar matrices are the same map, seen twice.

Here is a sanity check in coordinates. If y=Ax\vv{y}=A\vv{x} then y=P1y=P1APx\vv{y}'=P^{-1}\vv{y}=P^{-1}AP\vv{x}'. The sandwich reads right to left as "translate the new coordinates into old, apply the map, translate back".

Now let's look at what that line is worth, because it is more than it appears. Everything that is genuinely about the map must be left unchanged by (0.4.20), since PP encodes only our change of mind. Sections 5 and 6 will prove that the determinant and the trace are two such invariants, and Chapter 0.5 adds the eigenvalues and the characteristic polynomial.

The reverse reading is just as useful. Anything that changes under (0.4.20), such as any individual entry, is a fact about your description rather than about the physics.

⚠ Why this isn't obvious

(a) The matrix is not the map. A single linear map has infinitely many matrices, one for every basis, and there are infinitely many bases.

Consider reflection of the plane in the line y=xy=x. In the standard basis its matrix is (0110)\begin{pmatrix}0&1\\1&0\end{pmatrix}, which looks like a swap. Now change to the basis e1=(1,1)e'_{1}=(1,1), e2=(1,1)e'_{2}=(1,-1), which runs along the mirror and perpendicular to it. There the matrix is (1001)\begin{pmatrix}1&0\\0&-1\end{pmatrix}, which looks like "keep one direction, flip the other", and that is a much better description of what the map actually does.

You can check with P=(1111)P=\begin{pmatrix}1&1\\1&-1\end{pmatrix} that the two are related by (0.4.20). Same map. Different arrays. Note that the trace is 00 and the determinant 1-1 in both.

Confusing the two is the single most common failure mode in everything downstream. It is why people think a tensor "is" an array of numbers (Chapter 2.4), why the Schrödinger and Heisenberg pictures look like different physics instead of different bases (Chapter 4.9), and why gauge transformations look like magic instead of like changes of description (Chapter 6.3).

(b) Matrices do not commute, and the reason is not algebraic. Take R=(0110)R=\begin{pmatrix}0&-1\\1&0\end{pmatrix}, rotation by 9090^{\circ}, and F=(1001)F=\begin{pmatrix}1&0\\0&-1\end{pmatrix}, reflection in the xx-axis. Then

FR=(0110),RF=(0110),[R,F]RFFR=(0220)0. FR = \begin{pmatrix}0&-1\\-1&0\end{pmatrix}, \qquad RF = \begin{pmatrix}0&1\\1&0\end{pmatrix}, \qquad [R,F] \equiv RF-FR = \begin{pmatrix}0&2\\2&0\end{pmatrix} \neq 0.

These are genuinely different operations. FRFR is a reflection in the line y=xy=-x, and RFRF is a reflection in the line y=+xy=+x.

Follow the single vector e1=(1,0)e_{1}=(1,0) through each of them. Rotating first sends it to (0,1)(0,1), and then reflecting sends it to (0,1)(0,-1). Reflecting first leaves it at (1,0)(1,0), and then rotating sends it to (0,+1)(0,+1). Same start, opposite finish.

Pick up a book and try it. Turn it 9090^{\circ} then flip it, then start over and flip it then turn it. Matrix multiplication fails to commute because composing transformations fails to commute. The algebra is only reporting.

The quantity [A,B]=ABBA[A,B]=AB-BA that measures the failure is the commutator, and its refusal to vanish is not a nuisance to be tidied away. It is most of modern physics. Three cash-outs follow, and every one of them is this box.

[x^,p^]=i[\hat x,\hat p]=\ii\hbar is the uncertainty principle (Chapter 4.9). Measuring position and then momentum is a different operation from momentum and then position, by an amount \hbar.

The commutator of two covariant derivatives is the curvature of spacetime (Chapter 3.4). Transporting a vector east-then-north differs from north-then-east, and the difference is gravity.

The commutator of two gauge fields is why gluons interact with each other while photons do not (Chapter 6.4). That is why quarks are confined, and why you are made of protons rather than a plasma.

That box tells you the failure exists and shows it at full size. It does not tell you how large the failure is when both operations are made small. That smaller version is the form every one of the three cash-outs takes, and the figure below measures it.

ε = 0.1000
A = rotation generator, B = squeeze generator · [A,B] = [ 0.000 2.000 ; 2.000 0.000 ]
x = (1.000, 0.300) [A,B]x = (0.600, 2.000) |[A,B]x| = 2.088061
|r| = 1.9269e-2 |r|/ε = 0.192694 |r|/ε² = 1.926940
∠(r, [A,B]x) = 2.274° · loop drawn ×12.9 about x (its true size is 9.68e-2)
The commutator, drawn. The left panel carries the base point xx, which you may drag anywhere, once round the four-leg circuit (I+εA)(I+εB)(I+εA)1(I+εB)1(I+\varepsilon A)(I+\varepsilon B)(I+\varepsilon A)^{-1}(I+\varepsilon B)^{-1}, whose factors act right to left as §3.3 insisted they do: back along BB, back along AA, forward along BB, forward along AA. Blue legs are the AA steps and purple the BB steps, dashed where the step is being undone. Every leg is an actual matrix acting on an actual vector, and the two inverses are formed from the entries rather than assumed. Because the whole circuit shrinks with ε\varepsilon it is drawn magnified about xx by the factor in the last readout, which also gives its true size. The orange arrow is the gap that is left over, and the green dashed ray is ε2[A,B]x\varepsilon^{2}[A,B]x, with [A,B][A,B] multiplied out from the two matrices. The right panel runs the identical circuit at 160160 step sizes and plots the two ratios. Now drive ε\varepsilon down. r/ε|r|/\varepsilon (orange) crashes to zero, so to first order the two operations do commute, which is why nobody noticed for three centuries. And r/ε2|r|/\varepsilon^{2} (blue) climbs onto the green line and stays. For rotate + squeeze at x=(1,0.3)x=(1,\,0.3), across three decades of ε\varepsilon, the pairs run 0.1926940.192694 and 1.9269401.926940 at ε=0.1\varepsilon=0.1, then 0.0207080.020708 and 2.0707642.070764 at 0.010.01, then 0.0020860.002086 and 2.0863192.086319 at 0.0010.001. Set those against a computed [A,B]x=2.088061\left|[A,B]x\right| = 2.088061, which the second column is walking into one digit at a time. The orange arrow swings onto the green ray with it, 2.2742.274^{\circ} away at ε=0.1\varepsilon=0.1 and 0.0260.026^{\circ} at ε=0.001\varepsilon=0.001. Rotate + dilate is a commuting pair, and its gap never rises above 2.3×10162.3\times10^{-16} at any step size at all. The quadrilateral is simply shut, which is what commuting is. Rotate + reflect is the box's own RR and FF at full size, where there is no small parameter at all. The right panel then shows the two two-leg paths from e1e_{1} landing at (0,1)(0,-1) and (0,+1)(0,+1), and the circuit itself sends xx to x-x. The faint green arrows are the direction of [A,B][A,B] at other base points: the gap is not a number but a field, and in Chapter 3.4 that field is gravity.
In plain terms 0.4.4

Set two descriptions of one space side by side and a small opposition appears which is worth more than it looks. The new basis vectors are assembled from the old ones by some recipe, and the components of any particular vector are reassembled by the exact reverse of it. They must oppose each other, because their product is the vector, and the vector is taking no part in the change. Lengthen your ruler and every measurement expressed in rulers shrinks by the compensating factor.

For a map from a space to itself the same argument yields a sandwich: translate the new description into the old, apply the map, translate back again. Two arrays related in that way are one map seen twice. Whatever genuinely belongs to the map must be left untouched by the sandwich, and whatever moves was a fact about your bookkeeping rather than about the physics. An individual entry means nothing on its own.

A promise starts here as well. Reflection in a diagonal line looks like a swap of two numbers in one description and like keeping one direction while flipping the other in a better one, and the better description is the one in which the map has fallen apart into independent pieces that no longer interfere. Finding such a description, in general, is what the following chapter exists to do.

5 · The determinant, as signed volume

The determinant is usually introduced as a formula involving alternating signs and minors, and from that formula nothing at all is visible. We will do it the other way round. First state the three properties that pin the determinant down, then notice that those are the properties of volume, and get the formulas afterwards as a consequence.

Think of an n×nn\times n matrix AA as an ordered list of its columns a1,,ana_{1},\dots,a_{n}, each of them a vector in Rn\R^{n}. The three properties are:

(D1) Multilinear:D(, αaj+βaj, )=αD(,aj,)+βD(,aj,)(D2) Alternating:swapping any two columns flips the sign of D(D3) Normalised:D(e1,e2,,en)=1 \begin{aligned} \textbf{(D1) Multilinear:}\quad & D(\dots,\ \alpha a_{j}+\beta a_{j}',\ \dots)\\[2pt] &\qquad = \alpha\,D(\dots,a_{j},\dots) + \beta\,D(\dots,a_{j}',\dots)\\[7pt] \textbf{(D2) Alternating:}\quad & \text{swapping any two columns flips the sign of } D\\[7pt] \textbf{(D3) Normalised:}\quad & D(e_{1},e_{2},\dots,e_{n}) = 1 \end{aligned} (0.4.21)

(D1) says linear in each column separately, with the others held fixed.

One consequence of (D2) is worth extracting straight away, because we will lean on it repeatedly. Suppose two columns are equal. Swapping them changes nothing, yet by (D2) it must flip the sign. So D=DD=-D, and therefore D=0D=0. Repeated column \Rightarrow zero.

5.1 · These are the properties of volume

Let Vol(a1,,an)\mathrm{Vol}(a_{1},\dots,a_{n}) be the signed volume of the parallelepiped spanned by the columns from a common corner. In two dimensions that is the area of the parallelogram with edges a1,a2a_{1},a_{2}. In three it is the volume of the skewed box.

We take exactly one fact from geometry, which is that volume equals base times perpendicular height. That is the fact which makes a leaning stack of paper occupy the same volume as a straight one. With it, all three properties follow.

(D3) is the choice of unit. The unit cube, spanned by e1,,ene_{1},\dots,e_{n}, has volume 11. That is what "unit" means.

(D2) is orientation. The parallelepiped spanned by (a1,a2)(a_{1},a_{2}) and the one spanned by (a2,a1)(a_{2},a_{1}) are the same set of points. But the two ordered lists have opposite handedness, since going from the first edge to the second is counterclockwise in one case and clockwise in the other. Signed volume records that with a sign. And if two edges coincide the solid is flat and its volume is genuinely zero, which matches the consequence we just derived from (D2).

(D1) is base times height. Hold all columns but aja_{j} fixed. They span a "base", meaning an (n1)(n-1)-dimensional parallelepiped of some fixed content BB lying in a hyperplane through the origin. The volume of the whole solid is then B×hB\times h, where hh is the signed perpendicular height of aja_{j} above that hyperplane.

Now look at what hh is. It is the component of aja_{j} along the fixed unit normal n^\hat n of the base, and taking a component is a linear operation, so h(αaj+βaj)=αh(aj)+βh(aj)h(\alpha a_{j} + \beta a'_{j}) = \alpha h(a_{j}) + \beta h(a'_{j}). Multiply through by the constant BB and you have exactly (D1). (If the base is itself degenerate then B=0B=0 and both sides vanish.)

So signed volume satisfies (D1)–(D3). Now for the structural fact that makes this worth anything, proved in the grind box below. Those three properties determine the function completely, in the sense that there is exactly one DD satisfying them. Since det\det and signed volume both satisfy them, they have to be the same thing:

  detA  =   the signed volume of the parallelepiped spanned by the columns of A.   \boxed{\;\begin{aligned} \det A \;=\;& \text{ the signed volume of the parallelepiped}\\ &\text{ spanned by the columns of } A. \end{aligned}\;} (0.4.22)

One more step converts that from a statement about an array into a statement about a map. (0.4.9) makes the columns of AA the images AejA e_{j} of the standard basis vectors, so the parallelepiped in question is the image of the unit cube.

So here is the sentence to carry away. detA\det A is the factor by which the map AA multiplies volumes, with a sign recording whether it preserves or reverses orientation. The interactive below lets you drive that with your hands.

Grind box — uniqueness, the explicit formula, and the 2×22\times2 and 3×33\times3 cases

Uniqueness. Suppose DD satisfies (D1)–(D3). Expand every column in the standard basis, aj=iAijeia_{j}=\sum_{i}A_{ij}e_{i}, and use multilinearity in each of the nn slots in turn. Every slot contributes a sum over which basis vector was chosen there, so

D(a1,,an)=i1=1nin=1nAi11Ai22Ainn  D(ei1,,ein). D(a_{1},\dots,a_{n}) = \sum_{i_{1}=1}^{n}\cdots\sum_{i_{n}=1}^{n} A_{i_{1}1}A_{i_{2}2}\cdots A_{i_{n}n}\; D(e_{i_{1}},\dots,e_{i_{n}}).

Any term in which two of the ii's coincide has a repeated column and dies. So only the terms where (i1,,in)(i_{1},\dots,i_{n}) is a permutation σ\sigma of (1,,n)(1,\dots,n) survive. Each such D(eσ(1),,eσ(n))D(e_{\sigma(1)},\dots,e_{\sigma(n)}) can be sorted back into D(e1,,en)=1D(e_{1},\dots,e_{n})=1 by a sequence of swaps, each costing a factor 1-1 by (D2). Writing sgn(σ)=(1)#swaps\mathrm{sgn}(\sigma)=(-1)^{\#\text{swaps}},

detA  =  σsgn(σ)Aσ(1)1Aσ(2)2Aσ(n)n, \det A \;=\; \sum_{\sigma} \mathrm{sgn}(\sigma)\, A_{\sigma(1)1}A_{\sigma(2)2}\cdots A_{\sigma(n)n},

which is determined, with no freedom left anywhere. This is the Leibniz formula, and the derivation is simultaneously the proof that at most one such DD exists.

Is sgn\mathrm{sgn} well defined? It had better not depend on which sequence of swaps you used, so here is the check. Count the inversions of σ\sigma, meaning the pairs i<ji\lt j with σ(i)>σ(j)\sigma(i)\gt\sigma(j). Swapping two adjacent entries changes that count by exactly ±1\pm1. A swap of two entries dd apart can be built from 2d12d-1 adjacent swaps, so any single swap changes the inversion count by an odd number. Hence the parity of the number of swaps needed is fixed by σ\sigma alone, and sgn(σ)=(1)#inversions\mathrm{sgn}(\sigma)=(-1)^{\#\text{inversions}}.

Existence. Uniqueness is worthless if nothing satisfies the axioms, so check that the Leibniz formula does. Each term contains exactly one factor from each column, so it is linear in each column: (D1). ✓ Swapping columns p,qp,q replaces each σ\sigma by σ\sigma composed with a transposition, which is a relabelling of the sum that flips every sign: (D2). ✓ For A=IA=I every factor δσ(j)j\delta_{\sigma(j)j} forces σ=id\sigma=\mathrm{id}, leaving the single term 11: (D3). ✓

Rows or columns? Substituting i=σ(j)i=\sigma(j) in the product shows that detA=σsgn(σ)iAσ1(i)i\det A^{\top} = \sum_{\sigma}\mathrm{sgn}(\sigma)\prod_{i}A_{\sigma^{-1}(i)\,i}. Now σ1\sigma^{-1} has the same parity as σ\sigma, since you reverse the order of the same swaps, and σσ1\sigma\mapsto\sigma^{-1} merely reshuffles which terms are being summed. So detA=detA\det A^{\top}=\det A, and every statement about columns is equally a statement about rows.

The 2×22\times2 case, straight from the axioms. No formula is needed here. Expand bilinearly and kill the repeated columns:

D(ae1+ce2,  be1+de2)=abD(e1,e1)0+adD(e1,e2)1+cbD(e2,e1)1+cdD(e2,e2)0=adbc. \begin{aligned} D\big(ae_{1}+ce_{2},\; be_{1}+de_{2}\big) &= ab\underbrace{D(e_{1},e_{1})}_{0} + ad\underbrace{D(e_{1},e_{2})}_{1} + cb\underbrace{D(e_{2},e_{1})}_{-1} + cd\underbrace{D(e_{2},e_{2})}_{0}\\[4pt] &= ad-bc. \end{aligned}

The 3×33\times3 case. Six permutations of (1,2,3)(1,2,3): three even (123,231,312123,231,312) and three odd (213,132,321213,132,321). The Leibniz formula gives

det(abcdefghi)=aei+bfg+cdhcegbdiafh, \det\begin{pmatrix}a&b&c\\ d&e&f\\ g&h&i\end{pmatrix} = aei + bfg + cdh - ceg - bdi - afh,

which regroups into the cofactor expansion you may have memorised, a(eifh)b(difg)+c(dheg)a(ei-fh)-b(di-fg)+c(dh-eg). Both are the same six products. The alternating signs of the cofactor rule are (D2) in disguise, and the reason the formula has n!n! terms is that it is a sum over permutations. That is also why nobody computes a large determinant this way.

Triangular matrices. If Aij=0A_{ij}=0 whenever i<ji\lt j (lower triangular), then any σid\sigma\neq\mathrm{id} must somewhere send a column jj to a row i<ji\lt j, contributing a zero factor. Only the identity permutation survives, leaving detA=A11A22Ann\det A = A_{11}A_{22}\cdots A_{nn}. That is the fact the Familiar Ground box used to read off the eigenvalues of the transition matrix.

5.2 · The product rule, in one line

Now the payoff for having done it geometrically. We want det(AB)\det(AB), so think about what the composite does to a volume. The map BB multiplies every volume by detB\det B. The map AA then multiplies whatever it is handed by detA\det A. Doing both multiplies volumes by the product of the two. Hence

  det(AB)=detA  detB   \boxed{\;\det(AB) = \det A\;\det B\;} (0.4.23)

That is the entire proof, and it is worth pausing on how much better it is than the algebraic version. Nothing is being manipulated at all. The identity says that scaling factors multiply, which is a fact about the word "factor". (If you want the geometric hand-waving cashed out into axioms, the airtight version is in the next grind box, and it runs to four lines.)

Two consequences follow immediately. First, take B=A1B=A^{-1}, which gives det(A)det(A1)=detI=1\det(A)\det(A^{-1})=\det I = 1 and therefore det(A1)=1/detA\det(A^{-1}) = 1/\det A. Undoing a map undoes its volume scaling, as it must.

Second, and this is the one we will lean on for the rest of the chapter, the determinant is basis independent:

det(P1AP)=det(P1)detAdetP=1detPdetAdetP=detA. \det(P^{-1}AP) = \det(P^{-1})\,\det A\,\det P = \frac{1}{\det P}\,\det A\,\det P = \det A. (0.4.24)

So the determinant is not a property of the array. It is a property of the map, which is why it will still make sense in Chapter 3.3, where there is no preferred basis anywhere.

Grind box — the product rule without the hand-waving

Fix AA and define D(B)det(AB)D(B) \equiv \det(AB), regarded as a function of the columns b1,,bnb_{1},\dots,b_{n} of BB. Column jj of ABAB is AbjA b_{j}, by (0.4.10). Now check the three axioms:

(D1) bjAbjb_{j}\mapsto Ab_{j} is linear, and det\det is linear in each column, so the composite is linear in each bjb_{j}. ✓

(D2) Swapping bpb_{p} and bqb_{q} swaps columns AbpAb_{p} and AbqAb_{q} of ABAB, which flips the sign of det(AB)\det(AB). ✓

(D3) Not normalised: D(I)=det(A)D(I) = \det(A), not 11. Fix that by dividing. If detA0\det A\neq0, the function D~(B)=D(B)/detA\tilde D(B) = D(B)/\det A satisfies all three axioms, so by the uniqueness proved above D~=det\tilde D = \det, i.e. det(AB)=detAdetB\det(AB) = \det A\,\det B. ✓

If detA=0\det A = 0 the division is illegal. But in that case the columns of AA are dependent, as proved just below, and the columns of ABAB are combinations of the columns of AA, so they are dependent too. Both sides are then 00. The identity holds in every case. \blacksquare

5.3 · Zero determinant means information destroyed

Here is the single most-used fact about determinants, and both directions of it are now cheap:

detA0A is invertible. \det A \neq 0 \qquad\Longleftrightarrow\qquad A \text{ is invertible.} (0.4.25)

(\Leftarrow) If AA is invertible then detAdet(A1)=1\det A\det(A^{-1})=1, so detA0\det A\neq0.

(\Rightarrow) Take the contrapositive, and suppose AA is not invertible. Then its columns cannot be independent. To see why, suppose they were. The corollary in the §2 grind box says that nn independent vectors in Rn\R^{n} form a basis, so every vector in Rn\R^{n} is AxA\vv{x} for exactly one x\vv{x}, and the map yx\vv{y}\mapsto\vv{x} that undoes it is linear and is an inverse. That contradicts what we assumed.

So some column is a combination of the others, say a1=j2cjaja_{1}=\sum_{j\ge2}c_{j}a_{j}. Expanding by multilinearity in the first slot gives a sum of determinants, each with a repeated column, and each therefore zero. Hence detA=0\det A=0. \blacksquare

The geometry says the same thing more vividly. detA=0\det A = 0 means the image of the unit cube has no volume. The map has flattened nn-dimensional space onto something lower-dimensional, such as a plane, a line or a point.

A whole direction's worth of information has been thrown away, and no map can retrieve it, because many different inputs now share an output. Non-invertible is not a technicality about matrices. It is destruction of information, visible as the collapse of a volume. That is exactly what the "singular" preset in the figure below does, and you can watch it happen by hand.

1.20
0.60
-0.30
1.00
det = 1.380 (area = 1.380)
tr = 2.20
A 2×22\times2 matrix, doing its job. The dashed grey square and circle are the originals, and the solid shapes are their images under A=(abcd)A=\left(\begin{smallmatrix}a&b\\c&d\end{smallmatrix}\right). The two arrows are the columns of AA, which is to say the images Ae1A e_{1} and Ae2Ae_{2} of the basis vectors, and that is all a matrix ever is. See (0.4.9). The shaded area is detA\abs{\det A}, meaning the area of the original square, namely 11, times the factor the map applies to every area, which is the whole content of (0.4.22). Three things to do. (i) Hit rotation: the square is rigidly turned, area unchanged, det=1\det=1. (ii) Hit reflection, and watch the shape flip through the axis while det\det goes negative. The sign is orientation, nothing else. (iii) Hit singular, or just tune the sliders until ad=bcad=bc: the parallelogram collapses onto a line, the circle collapses with it, the area goes to zero, and two-dimensional space has been crushed into one. Everything that used to lie on a line perpendicular to that image now lands on a single point, so the map cannot be undone. That is (0.4.25), made visible. The trace readout is there for §6. Note that it is not the area, and that shearing changes the trace while leaving the area alone.
In plain terms 0.4.5

Three demands pin the determinant down completely, and not one of them mentions a formula. Ask for a quantity that responds linearly to each edge of a solid separately, that reverses sign when two edges are exchanged, and that assigns the value one to the standard cube. Those are the properties of signed volume, and because only a single quantity can satisfy all three, the determinant and the signed volume of the box spanned by the columns are one thing under two names.

Read it as a statement about the map rather than the array and the useful sentence appears. The determinant is the factor by which a map multiplies every volume, and its sign records whether handedness survived the trip. The celebrated product rule then requires no proof whatever: do one map and then another, and volume is scaled twice, and scaling factors multiply because multiplying is what the word factor means. The algebra people are usually made to suffer proves something visible by inspection once you know what the quantity is.

The vanishing case is the one to keep. A determinant of zero means the image of the cube has been flattened onto something thinner, so a whole direction has been discarded and no map can recover it. That is not a technicality about invertibility. It is the destruction of information, made visible as a collapse.

6 · Trace, and the identity that matters

The trace of a square matrix is the sum of its diagonal entries:

trA    i=1nAii. \mathrm{tr}\,A \;\equiv\; \sum_{i=1}^{n} A_{ii}. (0.4.26)

This looks like the least interesting definition in the chapter. It is the most useful one in the book, and everything follows from a single identity.

6.1 · The cyclic property

The identity worth having is that tr(AB)\mathrm{tr}(AB) and tr(BA)\mathrm{tr}(BA) agree. To get it, write out both sides using (0.4.13) and then swap the order of two finite sums:

tr(AB)  =  i(AB)ii  =  ijAijBji=  jiBjiAij  =  j(BA)jj  =  tr(BA). \begin{aligned} \mathrm{tr}(AB) \;&=\; \sum_{i}(AB)_{ii} \;=\; \sum_{i}\sum_{j} A_{ij}B_{ji}\\[4pt] &=\; \sum_{j}\sum_{i} B_{ji}A_{ij} \;=\; \sum_{j}(BA)_{jj} \;=\; \mathrm{tr}(BA). \end{aligned} (0.4.27)

The only thing used was that scalars commute, meaning AijBji=BjiAijA_{ij}B_{ji}=B_{ji}A_{ij}, even though the matrices emphatically do not. That is why the identity is startling. In general ABBAAB\neq BA, and yet their traces always agree. (Worked example 1 shows a pair whose two products differ in three of their four entries and whose traces are equal anyway.)

Here is the immediate consequence, and it is the reason the trace is worth anything at all:

tr(P1AP)  =  tr((AP)P1)  =  tr(A), \mathrm{tr}(P^{-1}AP) \;=\; \mathrm{tr}\big((AP)P^{-1}\big) \;=\; \mathrm{tr}(A), (0.4.28)

That is (0.4.27) with X=P1X=P^{-1} and Y=APY=AP. The trace is basis independent. Like the determinant, it is a property of the map rather than of the array. That deserves a second look, because the definition mentions only diagonal entries, and "diagonal" has no meaning until a basis has been chosen.

6.2 · Trace is the infinitesimal determinant

Now the identity this section exists for. Take any AA and any small number ϵ\epsilon, and ask for the determinant of the matrix that is almost the identity:

  det(I+ϵA)  =  1+ϵtrA+O(ϵ2)   \boxed{\;\det(I+\epsilon A) \;=\; 1 + \epsilon\,\mathrm{tr}A + O(\epsilon^{2})\;} (0.4.29)

Here is the honest derivation for general nn, which needs nothing but the Leibniz formula from the §5 grind box. Write M=I+ϵAM = I+\epsilon A, so Mij=δij+ϵAijM_{ij} = \delta_{ij}+\epsilon A_{ij}, and

detM  =  σsgn(σ)i=1n(δσ(i)i+ϵAσ(i)i). \det M \;=\; \sum_{\sigma}\mathrm{sgn}(\sigma)\prod_{i=1}^{n}\Big(\delta_{\sigma(i)\,i} + \epsilon A_{\sigma(i)\,i}\Big). (0.4.30)

The plan is to split that sum into two pieces, the identity permutation and everything else, and then to show that everything else is too small to matter.

Every non-identity permutation contributes only at order ϵ2\epsilon^{2}. If σid\sigma\neq\mathrm{id} then it moves at least one index, and therefore at least two of them. A permutation cannot displace exactly one thing and leave everything else fixed, because if σ(i)i\sigma(i)\ne i then whatever was at σ(i)\sigma(i) has been displaced as well.

Now count powers of ϵ\epsilon. For each moved index ii the Kronecker delta δσ(i)i\delta_{\sigma(i)i} vanishes, so the factor is ϵAσ(i)i\epsilon A_{\sigma(i)i} and carries one power of ϵ\epsilon. Two or more moved indices means two or more powers of ϵ\epsilon. So all of these terms are O(ϵ2)O(\epsilon^{2}), and none of them can affect the first-order answer.

The identity permutation gives the trace. With σ=id\sigma=\mathrm{id} every delta is 11 and sgn=+1\mathrm{sgn}=+1, leaving

i=1n(1+ϵAii)  =  1  +  ϵi=1nAii  +  O(ϵ2), \prod_{i=1}^{n}\big(1+\epsilon A_{ii}\big) \;=\; 1 \;+\; \epsilon\sum_{i=1}^{n}A_{ii} \;+\; O(\epsilon^{2}), (0.4.31)

Let's see where that came from. Expanding the product means choosing, from each of the nn factors, either the 11 or the ϵAii\epsilon A_{ii}. Taking all the 11s gives the leading 11. Taking ϵAii\epsilon A_{ii} from exactly one factor and 11 from the rest gives ϵAii\epsilon A_{ii}, and summing over which factor was chosen gives ϵtrA\epsilon\,\mathrm{tr}A. Any choice of two or more is O(ϵ2)O(\epsilon^{2}).

Adding the two contributions gives (0.4.29). \blacksquare

What this identity says

The trace is the infinitesimal version of the determinant. The determinant is the factor by which a map multiplies volume. The trace is the rate at which a map changes volume when it barely does anything at all.

One is a multiplicative statement about a transformation, and the other is an additive statement about a tendency. (0.4.29) is the bridge between them, and it is exactly the relationship ex1+x\ee^{x}\approx1+x has to e\ee. That is not a coincidence, as we are about to see.

6.3 · Where this gets spent — four places, immediately

1. The divergence of a vector field is the trace of its Jacobian. Let a fluid have velocity field v(x)v(x). In a short time ϵ\epsilon each particle moves from xx to x+ϵv(x)x+\epsilon\,v(x). That map has derivative matrix I+ϵJI + \epsilon J, where Jij=vixjJ_{ij}=\pdv{v_{i}}{x_{j}}, and Chapter 0.6 will call that matrix the Jacobian.

Chapter 0.6 will also show that the determinant of a map's derivative matrix is precisely its local volume factor, which is (0.4.22) applied to the linear approximation. So the volume of a small blob is multiplied, in time ϵ\epsilon, by

det(I+ϵJ)  =  1+ϵtrJ+O(ϵ2)=  1+ϵivixi+O(ϵ2)  =  1+ϵ( ⁣v)+O(ϵ2). \begin{aligned} \det(I+\epsilon J) \;&=\; 1 + \epsilon\,\mathrm{tr}\,J + O(\epsilon^{2})\\[4pt] &=\; 1 + \epsilon\sum_{i}\pdv{v_{i}}{x_{i}} + O(\epsilon^{2}) \;=\; 1 + \epsilon\,(\nabla\!\cdot v) + O(\epsilon^{2}). \end{aligned} (0.4.32)

The divergence arrives in Chapter 0.7 looking like an arbitrary sum of partial derivatives. What that line says is that it is the fractional rate of change of volume, and it is that because the trace is the infinitesimal determinant. "Incompressible" and "divergence-free" are the same sentence.

2. Liouville's theorem is this identity. In Chapter 1.3 the state of a mechanical system is a point in phase space (q,p)(q,p), moving with velocity q˙=Hp\dot q = \pdv{H}{p}, p˙=Hq\dot p = -\pdv{H}{q}. That is a vector field on phase space, and its divergence is

 ⁣v  =  q ⁣(Hp)+p ⁣(Hq)  =  2Hqp2Hpq  =  0, \nabla\!\cdot v \;=\; \pdv{}{q}\!\left(\pdv{H}{p}\right) + \pdv{}{p}\!\left(-\pdv{H}{q}\right) \;=\; \frac{\partial^{2}H}{\partial q\,\partial p} - \frac{\partial^{2}H}{\partial p\,\partial q} \;=\; 0, (0.4.33)

The two mixed partial derivatives cancel because they commute (Chapter 0.6). The trace of the Jacobian therefore vanishes identically, so by (0.4.32) phase-space volume is exactly conserved by Hamiltonian flow. That is Liouville's theorem, one of the deepest facts in classical mechanics, and it is three lines of §6.

3. deteA=etrA\det \ee^{A} = \ee^{\mathrm{tr}A}. Define the matrix exponential by the series etA=ktkAk/k!\ee^{tA}=\sum_{k}t^{k}A^{k}/k!. It converges for every tt, because the terms are bounded by those of a convergent scalar exponential series, which is Chapter 0.3. Differentiating term by term is legitimate for a power series in tt, and gives ddtetA=AetA\dv{}{t}\ee^{tA} = A\,\ee^{tA}. So to first order in ϵ\epsilon:

e(t+ϵ)A=etA+ϵAetA+O(ϵ2)=(I+ϵA+O(ϵ2))etA. \ee^{(t+\epsilon)A} = \ee^{tA} + \epsilon A\,\ee^{tA} + O(\epsilon^{2}) = \big(I + \epsilon A + O(\epsilon^{2})\big)\,\ee^{tA}. (0.4.34)

What we want next is a differential equation for the determinant. So let f(t)detetAf(t)\equiv\det \ee^{tA}, take determinants of (0.4.34), and use the product rule (0.4.23) together with (0.4.29). That last step is legitimate because det\det is a polynomial in the entries, so an O(ϵ2)O(\epsilon^{2}) change in the entries makes an O(ϵ2)O(\epsilon^{2}) change in the determinant:

f(t+ϵ)  =  (1+ϵtrA+O(ϵ2))f(t)f(t)=(trA)f(t),f(0)=detI=1. \begin{aligned} f(t+\epsilon) \;&=\; \big(1+\epsilon\,\mathrm{tr}A + O(\epsilon^{2})\big)\,f(t)\\[4pt] &\Longrightarrow\qquad f'(t) = (\mathrm{tr}A)\,f(t), \qquad f(0)=\det I=1. \end{aligned} (0.4.35)

By Chapter 0.1, the function equal to a constant times its own derivative, starting at 11, is the exponential. Hence f(t)=ettrAf(t)=\ee^{t\,\mathrm{tr}A}, and setting t=1t=1 gives the identity we wanted:

  deteA=etrA   \boxed{\;\det \ee^{A} = \ee^{\,\mathrm{tr}A}\;} (0.4.36)

4. Why the generators of SU(NN) are traceless. A continuous symmetry is built by exponentiating a generator, U(θ)=eθXU(\theta) = \ee^{\theta X}. The "S" in SU(NN) stands for special, which means detU=1\det U = 1, so the transformations preserve volume. By (0.4.36) that requires eθtrX=1\ee^{\theta\,\mathrm{tr}X}=1 for every θ\theta, which forces

detU=1  for all θtrX=0. \det U = 1 \ \ \text{for all }\theta \qquad\Longleftrightarrow\qquad \mathrm{tr}\,X = 0. (0.4.37)

This is not a bookkeeping convention. In Chapter 6.1 you will count the anti-Hermitian 3×33\times3 matrices and find a 99-dimensional space. Tracelessness is one real linear condition, which removes exactly one dimension, leaving 321=83^{2}-1=8.

There are eight gluons because of (0.4.29). The most consequential appearance of a sum of diagonal entries in physics is a particle count.

In plain terms 0.4.6

Adding up the diagonal entries of an array looks like the least promising operation in the chapter, and it is the one this book spends most often. Two facts do the work. The first is that the sum is unaltered when the array is rewritten in another description, which is startling, since the word diagonal has no meaning until a description has been chosen. The second connects it to volume: take a map that barely differs from doing nothing, and the amount by which it multiplies volume is one plus that sum, scaled by how small the disturbance is.

So the trace is the infinitesimal shadow of the determinant. One is a multiplicative statement about a transformation that has happened, the other an additive statement about a tendency, and they are the same quantity caught at two moments — the relation the exponential bears to its own first correction, which is no coincidence.

A surprising amount follows. The rate at which a flowing fluid expands is the trace of its derivative, which is why a certain sum of partial derivatives measures compressibility. Volume in the space of mechanical states is conserved because a particular trace vanishes identically, which is one of the deepest facts in classical mechanics. And there are eight gluons rather than nine because tracelessness is one condition, removing exactly one direction from the candidates.

7 · Why complex vector spaces

Everything so far worked equally over R\R and over C\C. Here is where they part, and the difference is not aesthetic.

An eigenvector of an operator TT is a nonzero vv with Tv=λvTv=\lambda v. It is a direction the map leaves alone, stretching it by the factor λ\lambda. These are the directions in which a linear map is simple, and Chapter 0.5 is devoted to finding them.

Over R\R, they need not exist. Let RR be rotation of the plane by 9090^{\circ}. Suppose Rv=λvRv=\lambda v for real λ\lambda and nonzero real vv, and apply RR again to get R2v=λ2vR^{2}v=\lambda^{2}v. But rotating twice by 9090^{\circ} is R2=IR^{2}=-I, so λ2v=v\lambda^{2}v = -v and λ2=1\lambda^{2}=-1. There is no real solution.

The geometric statement is plain once said. A rotation leaves no direction pointing along itself. That is what rotating means.

Over C\C, they always exist. Let AA be any n×nn\times n complex matrix, n1n\ge1. Consider

p(λ)    det(AλI). p(\lambda) \;\equiv\; \det(A-\lambda I). (0.4.38)

By the Leibniz formula this is a polynomial in λ\lambda of degree exactly nn. The identity permutation contributes i(Aiiλ)\prod_{i}(A_{ii}-\lambda), whose leading term is (λ)n(-\lambda)^{n}. Every other permutation misses at least two diagonal factors and so has degree at most n2n-2, which means nothing can cancel that leading term.

Now bring in the fundamental theorem of algebra: every non-constant polynomial with complex coefficients has a complex root. (⚑ Quoted, not proved: this is the one result in this chapter we import rather than prove; it is a theorem of complex analysis, and Chapter 0.3's discussion of the complex plane is the right place to have made peace with it.)

So there is a λ0C\lambda_{0}\in\C with det(Aλ0I)=0\det(A-\lambda_{0}I)=0. By (0.4.25) the matrix Aλ0IA-\lambda_{0}I is then not invertible, so some nonzero vv has (Aλ0I)v=0(A-\lambda_{0}I)v=0, which says

Av=λ0v. A v = \lambda_{0} v. (0.4.39)

Every operator on a complex vector space has at least one eigenvalue. Over R\R that statement is flatly false, and the 9090^{\circ} rotation is the counterexample.

Watch what the complex numbers do to that rotation. Over C\C the rotation by angle θ\theta, Rθ=(cosθsinθsinθcosθ)R_{\theta}=\begin{pmatrix}\cos\theta&-\sin\theta\\ \sin\theta&\cos\theta\end{pmatrix}, acting on the complex vector (1,i)(1,-\ii), gives

Rθ(1i)=(cosθ+isinθsinθicosθ)=(cosθ+isinθ)(1i)=eiθ(1i). R_{\theta}\begin{pmatrix}1\\ -\ii\end{pmatrix} = \begin{pmatrix}\cos\theta+\ii\sin\theta\\ \sin\theta-\ii\cos\theta\end{pmatrix} = (\cos\theta+\ii\sin\theta)\begin{pmatrix}1\\ -\ii\end{pmatrix} = \ee^{\ii\theta}\begin{pmatrix}1\\ -\ii\end{pmatrix}. (0.4.40)

The eigenvalue of a rotation is eiθ\ee^{\ii\theta}. That is Euler's formula from Chapter 0.3, arriving here as the spectrum of a rotation matrix. The rotation that had no real eigenvector has two complex ones, with eigenvalues e±iθ\ee^{\pm\ii\theta} of unit modulus.

Rotation and complex phase are the same phenomenon written twice, which is why Chapter 0.3 could say that U(1)\mathrm{U}(1) and SO(2)\mathrm{SO}(2) are the same group.

This is why quantum mechanics is built on complex vector spaces rather than real ones, and the argument comes in two halves.

Physical quantities in Chapter 4.2 are represented by operators, and their measurable values are eigenvalues. A theory in which operators can fail to have any is not a theory of measurement.

And time evolution is a rotation in state space, which was Chapter 0.1's closing observation and is now precise. The operator eiH^t/\ee^{-\ii\hat Ht/\hbar} has unit-modulus eigenvalues, so it preserves lengths, so probability is conserved. Take away the complex numbers and you lose the eigenvalues, the phases and the conservation of probability together.

In plain terms 0.4.7

A direction a map leaves pointing where it was, changing only its length, is the simplest behaviour available, and hunting for such directions is the whole business of the next chapter. Whether any exist depends on which numbers you allowed yourself at the outset, and that is not a technicality. Rotate the plane by a quarter turn and no direction survives pointing along itself, since turning everything is what rotating means. Over the real numbers it has no special directions whatever.

Admit complex numbers and the obstruction evaporates, for a reason almost embarrassing in its brevity: the special directions are the roots of a polynomial, and over the complex numbers every polynomial has roots. That is the second time a description has turned out to be a restricted view of something larger, as the chapter on series said it would not be the last. The rotation that had none now has two, their multipliers phases of unit length, which is Euler's formula arriving unannounced. Rotation and complex phase were never two phenomena.

This settles in advance a question usually raised much later and treated as mysterious. Measurable quantities are going to be these multipliers, so a theory whose maps might have none is no theory of measurement; and evolution in time is going to be a rotation, so probability survives because rotations preserve lengths. Both were decided here, with no physics anywhere in the argument.

8 · Worked examples

Worked example 1 — matrix multiplication, derived on a concrete pair

Let TT be the shear (1201)\begin{pmatrix}1&2\\0&1\end{pmatrix} and SS the map (3011)\begin{pmatrix}3&0\\1&-1\end{pmatrix}, both from R2\R^{2} to R2\R^{2} in the standard basis. Find the matrix of STS\circ T by tracking basis vectors only, then check against (0.4.13).

First read the columns as images of basis vectors, which is all (0.4.9) says:

Te1=(10)=e1,Te2=(21)=2e1+e2;Se1=(31),Se2=(01). \begin{aligned} T e_{1} &= \begin{pmatrix}1\\0\end{pmatrix} = e_{1}, &\qquad T e_{2} &= \begin{pmatrix}2\\1\end{pmatrix} = 2e_{1}+e_{2};\\[6pt] S e_{1} &= \begin{pmatrix}3\\1\end{pmatrix}, &\qquad S e_{2} &= \begin{pmatrix}0\\-1\end{pmatrix}. \end{aligned}

Now push the basis vectors through both maps in turn, using linearity of SS and nothing else:

(ST)e1=S(e1)=(31),(ST)e2=S(2e1+e2)=2Se1+Se2=2(31)+(01)=(61). \begin{aligned} (S\circ T)e_{1} &= S(e_{1}) = \begin{pmatrix}3\\1\end{pmatrix},\\[4pt] (S\circ T)e_{2} &= S(2e_{1}+e_{2}) = 2\,S e_{1} + S e_{2} = 2\begin{pmatrix}3\\1\end{pmatrix}+\begin{pmatrix}0\\-1\end{pmatrix} = \begin{pmatrix}6\\1\end{pmatrix}. \end{aligned}

Those two columns are the matrix of the composite: ST=(3611)ST=\begin{pmatrix}3&6\\1&1\end{pmatrix}. Check against the formula (ST)ik=jSijTjk(ST)_{ik}=\sum_{j}S_{ij}T_{jk}:

(ST)11=31+00=3,(ST)12=32+01=6,(ST)21=11+(1)0=1,(ST)22=12+(1)1=1. \begin{aligned} (ST)_{11} &= 3\cdot1+0\cdot0 = 3, & (ST)_{12} &= 3\cdot2+0\cdot1 = 6,\\ (ST)_{21} &= 1\cdot1+(-1)\cdot0 = 1, & (ST)_{22} &= 1\cdot2+(-1)\cdot1 = 1. \quad\checkmark \end{aligned}

Identical, as it must be. The formula was derived from this procedure, so the check is really a check that we can add.

Now reverse the order. TS=(5211)TS = \begin{pmatrix}5&-2\\1&-1\end{pmatrix}, which agrees with STST in only one of its four entries. Composition does not commute, and here is the visible reason. STST means shear first and TSTS means shear last, and a shear applied to an already-distorted figure does something different from a shear applied to the original.

Two invariants survive anyway. Start with the determinants. We have detS=3\det S = -3 and detT=1\det T = 1, and det(ST)=3161=3=det(TS)=5(1)(2)(1)\det(ST) = 3\cdot1-6\cdot1 = -3 = \det(TS) = 5(-1)-(-2)(1). Both equal detSdetT\det S\det T, exactly as (0.4.23) requires. Volume scalings multiply and do not care about order, because numbers commute even when maps do not.

Now the traces. We have tr(ST)=3+1=4\mathrm{tr}(ST) = 3+1 = 4 and tr(TS)=51=4\mathrm{tr}(TS) = 5-1 = 4. Equal, as (0.4.27) promised, despite every single entry being different. That is the cyclic identity earning its keep.

Worked example 2 — det(I+ϵA)\det(I+\epsilon A) for a 3×33\times3, with the ϵ2\epsilon^{2} terms exposed

Verify (0.4.29) explicitly for A=(210013145)A = \begin{pmatrix}2&1&0\\ 0&-1&3\\ 1&4&5\end{pmatrix}, whose trace is 21+5=62-1+5=6.

Write out the perturbed matrix and expand the determinant exactly, with no approximation anywhere, using the 3×33\times3 formula from the §5 grind box:

I+ϵA=(1+2ϵϵ001ϵ3ϵϵ4ϵ1+5ϵ) I+\epsilon A = \begin{pmatrix}1+2\epsilon & \epsilon & 0\\ 0 & 1-\epsilon & 3\epsilon\\ \epsilon & 4\epsilon & 1+5\epsilon\end{pmatrix} det(I+ϵA)=(1+2ϵ)[(1ϵ)(1+5ϵ)12ϵ2]ϵ[03ϵ2]+0=(1+2ϵ)(1+4ϵ17ϵ2)+3ϵ3=1+6ϵ9ϵ231ϵ3. \begin{aligned} \det(I+\epsilon A) &= (1+2\epsilon)\Big[(1-\epsilon)(1+5\epsilon) - 12\epsilon^{2}\Big] - \epsilon\Big[0 - 3\epsilon^{2}\Big] + 0\\[4pt] &= (1+2\epsilon)\big(1+4\epsilon-17\epsilon^{2}\big) + 3\epsilon^{3}\\[4pt] &= 1 + 6\epsilon - 9\epsilon^{2} - 31\epsilon^{3}. \end{aligned}

The coefficient of ϵ\epsilon is 6=trA6=\mathrm{tr}A. ✓ The identity holds, and we now have the whole polynomial rather than just its first two terms, so we can see precisely what was discarded.

Where the ϵ2\epsilon^{2} terms come from. There are two sources, exactly as the general derivation said there would be.

First, the identity permutation. Taking ϵAii\epsilon A_{ii} from two of the three diagonal factors in (0.4.31) gives ϵ2(A11A22+A11A33+A22A33)=ϵ2(2+105)=3ϵ2\epsilon^{2}(A_{11}A_{22}+A_{11}A_{33}+A_{22}A_{33}) = \epsilon^{2}(-2+10-5)=3\epsilon^{2}.

Second, the transpositions, meaning the permutations that swap exactly two indices and fix the rest. The swap 131\leftrightarrow3 contributes ϵ2A13A31(1+ϵA22)-\epsilon^{2}A_{13}A_{31}(1+\epsilon A_{22}), and so on. At order ϵ2\epsilon^{2} these give ϵ2(A12A21+A13A31+A23A32)=ϵ2(0+0+12)=12ϵ2-\epsilon^{2}(A_{12}A_{21}+A_{13}A_{31}+A_{23}A_{32}) = -\epsilon^{2}(0+0+12) = -12\epsilon^{2}. The total is 312=93-12=-9. ✓

Combining the two sources, the ϵ2\epsilon^{2} coefficient is i<j(AiiAjjAijAji)\sum_{i\lt j}\big(A_{ii}A_{jj}-A_{ij}A_{ji}\big), which is the sum of the principal 2×22\times2 minors, 2+1017=9-2+10-17=-9. ✓ And the ϵ3\epsilon^{3} coefficient is detA=31\det A = -31, which it must be, since taking ϵA\epsilon A from every slot is the same as scaling AA by ϵ\epsilon in all three columns.

The pattern continues for every nn. The coefficient of ϵk\epsilon^{k} in det(I+ϵA)\det(I+\epsilon A) is the sum of the principal k×kk\times k minors, starting at 11, then trA\mathrm{tr}A, and ending at detA\det A. Trace and determinant are the first and last members of one family, and it is the family Chapter 0.5 will identify with the coefficients of the characteristic polynomial.

How good is first order? At ϵ=0.01\epsilon=0.01 the exact value is 1.0590691.059069, against the linear estimate 1+6ϵ=1.061+6\epsilon=1.06. That is an error of 9.31×104-9.31\times10^{-4}, where the quadratic term alone predicts 9ϵ2=9.00×104-9\epsilon^{2}=-9.00\times10^{-4}. Agreement to two figures, with the small residue supplied by the cubic term, which is exactly the behaviour the O(ϵ2)O(\epsilon^{2}) notation promises. This is Chapter 0.1's linearisation applied to a function of nine variables, and it behaves exactly as advertised.

9 · Your turn

Problem 1 · a two-dimensional space with no arrows in it

Show that the set of solutions of y+ω2y=0y''+\omega^{2}y=0 (with ω0\omega\neq0 fixed) is a vector space, that {cosωt, sinωt}\{\cos\omega t,\ \sin\omega t\} is a basis for it, and hence that its dimension is 22. Then say what the "two arbitrary constants" of your first differential-equations course actually are.

Solution

Vector space. This is (0.4.3) with p=0p=0, q=ω2q=\omega^{2}: if y1,y2y_{1},y_{2} are solutions then (ay1+by2)+ω2(ay1+by2)=a(y1+ω2y1)+b(y2+ω2y2)=0(ay_{1}+by_{2})''+\omega^{2}(ay_{1}+by_{2}) = a(y_{1}''+\omega^{2}y_{1}) + b(y_{2}''+\omega^{2}y_{2}) = 0. The zero function is a solution, so the set is nonempty and closed under both operations. ✓

Both candidates are solutions. d2dt2cosωt=ω2cosωt\dv{^{2}}{t^{2}}\cos\omega t = -\omega^{2}\cos\omega t and likewise for sin\sin (Chapter 0.1). ✓

Independent. Suppose acosωt+bsinωt=0a\cos\omega t + b\sin\omega t = 0 for all tt. Put t=0t=0: a=0a=0. Differentiate and put t=0t=0: bω=0b\omega = 0, and ω0\omega\neq0, so b=0b=0. ✓

Spanning, which is the only part with any content. Let yy be any solution. Set c1=y(0)c_{1}=y(0) and c2=y(0)/ωc_{2}=y'(0)/\omega, and define u=yc1cosωtc2sinωtu = y - c_{1}\cos\omega t - c_{2}\sin\omega t. Then uu solves the same equation, since it is a combination of solutions, and it satisfies u(0)=0u(0)=0 and u(0)=0u'(0)=0. Now consider

E(t)    (u)2+ω2u2,E=2uu+2ω2uu=2u(u+ω2u)=0. E(t) \;\equiv\; \big(u'\big)^{2} + \omega^{2}u^{2}, \qquad E' = 2u'u'' + 2\omega^{2}uu' = 2u'\big(u''+\omega^{2}u\big) = 0.

So EE is constant, and E(0)=0E(0)=0. Both terms of EE are non-negative and sum to zero, so each is zero for every tt. In particular u0u\equiv0, and y=c1cosωt+c2sinωty = c_{1}\cos\omega t + c_{2}\sin\omega t. ✓ (That EE is the energy of a harmonic oscillator is not an accident, and Chapter 0.8 will make a habit of this trick.)

Hence the solution set has a basis with two elements and dimension 22.

The constants. They are coordinates. Specifying a solution means specifying a vector in a two-dimensional space, which takes exactly two numbers.

The familiar alternative form y=Ccos(ωtφ)y = C\cos(\omega t-\varphi) is not a different solution set. It is a different parametrisation of the same plane. Expanding it gives Ccosφcosωt+CsinφsinωtC\cos\varphi\cos\omega t + C\sin\varphi\sin\omega t, so (c1,c2)=(Ccosφ,Csinφ)(c_{1},c_{2}) = (C\cos\varphi, C\sin\varphi), which is polar coordinates on the same two-dimensional space. Amplitude-and-phase versus sine-and-cosine is a change of description, and the physics is in neither.

Problem 2 · differentiation as a matrix, and why integration needs a +C+C

Let DD be the derivative operator on P3P_{3}, the polynomials of degree 3\le3, with basis {1, x, x2, x3}\{1,\ x,\ x^{2},\ x^{3}\}. Write down its matrix. Compute detD\det D and trD\mathrm{tr}\,D, and interpret both.

Solution

Apply (0.4.9): the jj-th column is the image of the jj-th basis vector, written in coordinates. With e1=1, e2=x, e3=x2, e4=x3e_{1}=1,\ e_{2}=x,\ e_{3}=x^{2},\ e_{4}=x^{3}:

D(1)=0,D(x)=1=e1,D(x2)=2x=2e2,D(x3)=3x2=3e3, D(1)=0, \qquad D(x)=1=e_{1}, \qquad D(x^{2})=2x=2e_{2}, \qquad D(x^{3})=3x^{2}=3e_{3}, soD=(0100002000030000). \text{so}\qquad D = \begin{pmatrix}0&1&0&0\\ 0&0&2&0\\ 0&0&0&3\\ 0&0&0&0\end{pmatrix}.

Determinant. The first column is entirely zero, so by multilinearity (D1) the determinant is linear in that column and D(,0,)=0D(\dots,0,\dots)=0. Hence detD=0\det D = 0. Equivalently, the matrix is triangular with zero diagonal.

By (0.4.25) the operator is not invertible, and §5 says what that means concretely. It destroys information, and here you can name the information exactly. DD kills every constant, so 11 and 1+71+7 and 1π1-\pi all have the same image, and no operation can tell them apart afterwards.

That is the constant of integration. The +C+C is not a bookkeeping nicety. It is the statement that detD=0\det D=0, and that antidifferentiation is therefore not a function but a one-parameter family.

Here is the geometry. The image of DD is P2P_{2}, of dimension 33, so a four-dimensional space has been flattened onto a three-dimensional one. The unit hypercube of P3P_{3} has been crushed to zero four-volume, which is exactly the collapse the interactive shows in two dimensions.

Trace. trD=0+0+0+0=0\mathrm{tr}\,D = 0+0+0+0 = 0. That is consistent with (0.4.29), because det(I+ϵD)=1\det(I+\epsilon D) = 1 exactly, since I+ϵDI+\epsilon D is triangular with 11s on the diagonal, and the linear term ϵtrD\epsilon\,\mathrm{tr}D is indeed zero.

Nudging the identity in the direction of "differentiate a bit" changes no volume at all to first order. That is reassuring, since DD is nilpotent, meaning D4=0D^{4}=0: differentiate a cubic four times and nothing is left. Nilpotent operators always have zero trace.

Problem 3 · how far does the cyclic property go?

Prove tr(AB)=tr(BA)\mathrm{tr}(AB)=\mathrm{tr}(BA) for all square A,BA,B of the same size. Then show tr(ABC)=tr(BCA)\mathrm{tr}(ABC)=\mathrm{tr}(BCA) follows immediately, but that tr(ABC)=tr(ACB)\mathrm{tr}(ABC)=\mathrm{tr}(ACB) is false in general. Give an explicit 2×22\times2 counterexample.

Solution

Two factors. This is (0.4.27): tr(AB)=i,jAijBji=j,iBjiAij=tr(BA)\mathrm{tr}(AB)=\sum_{i,j}A_{ij}B_{ji}=\sum_{j,i}B_{ji}A_{ij}=\mathrm{tr}(BA), using only commutativity of the scalars and the fact that a finite double sum may be reordered.

Three factors, cyclically. Apply the two-factor result with X=ABX=AB and Y=CY=C:

tr(ABC)=tr((AB)C)=tr(C(AB))=tr(CAB), \mathrm{tr}(ABC) = \mathrm{tr}\big((AB)C\big) = \mathrm{tr}\big(C(AB)\big) = \mathrm{tr}(CAB),

and once more with X=AX=A, Y=BCY=BC gives tr(ABC)=tr(BCA)\mathrm{tr}(ABC)=\mathrm{tr}(BCA). So the three cyclic rotations ABCABC, BCABCA, CABCAB all agree.

The other three orderings need not. Take

A=(0100),B=(0010),C=(1000). A = \begin{pmatrix}0&1\\0&0\end{pmatrix},\qquad B = \begin{pmatrix}0&0\\1&0\end{pmatrix},\qquad C = \begin{pmatrix}1&0\\0&0\end{pmatrix}.

Then AB=(1000)AB = \begin{pmatrix}1&0\\0&0\end{pmatrix}, so ABC=(1000)ABC = \begin{pmatrix}1&0\\0&0\end{pmatrix} and tr(ABC)=1\mathrm{tr}(ABC)=1. But AC=(0100)(1000)=0AC = \begin{pmatrix}0&1\\0&0\end{pmatrix}\begin{pmatrix}1&0\\0&0\end{pmatrix} = 0, so ACB=0ACB = 0 and tr(ACB)=01\mathrm{tr}(ACB) = 0 \neq 1. ✓

The moral. The trace is invariant under cyclic permutation and not under arbitrary permutation. Cycling is the only rearrangement you can reach by repeatedly moving the last factor to the front, and that is all tr(XY)=tr(YX)\mathrm{tr}(XY)=\mathrm{tr}(YX) licenses. Anyone who forgets this and "simplifies" tr(ABC)\mathrm{tr}(ABC) to tr(ACB)\mathrm{tr}(ACB) has assumed BC=CBBC=CB.

This is not an idle warning. In Chapter 5.9 you will evaluate traces of products of gamma matrices, which anticommute rather than commute. The cyclic property is what makes those traces computable, and the absence of the non-cyclic property is what makes them interesting.

Problem 4 · every entry changes, two numbers do not

Let TT have matrix A=(2134)A = \begin{pmatrix}2&1\\3&4\end{pmatrix} in the standard basis. Change to the basis e1=e1+e2e'_{1}=e_{1}+e_{2}, e2=2e1+3e2e'_{2}=2e_{1}+3e_{2}. Compute A=P1APA'=P^{-1}AP, verify directly from (0.4.17) that AA' really is the matrix of the same map, and check the determinant and trace.

Solution

By (0.4.14) the columns of PP are the new basis vectors in old coordinates, so P=(1213)P = \begin{pmatrix}1&2\\1&3\end{pmatrix}, with detP=1\det P = 1. The 2×22\times2 inverse, which you can verify by multiplying out, is P1=(3211)P^{-1} = \begin{pmatrix}3&-2\\-1&1\end{pmatrix}. Then

AP=(2134)(1213)=(37718),A=P1(AP)=(515411). AP = \begin{pmatrix}2&1\\3&4\end{pmatrix}\begin{pmatrix}1&2\\1&3\end{pmatrix} = \begin{pmatrix}3&7\\7&18\end{pmatrix}, \qquad A' = P^{-1}(AP) = \begin{pmatrix}-5&-15\\ 4&11\end{pmatrix}.

Direct check. (0.4.17) says that column 11 of AA' should be the coordinates of T(e1)T(e'_{1}) in the new basis. Compute the left side, which is T(e1)=A(11)=(37)T(e'_{1}) = A\begin{pmatrix}1\\1\end{pmatrix} = \begin{pmatrix}3\\7\end{pmatrix}. Now the right side, which is 5e1+4e2=5(11)+4(23)=(37)-5e'_{1}+4e'_{2} = -5\begin{pmatrix}1\\1\end{pmatrix}+4\begin{pmatrix}2\\3\end{pmatrix} = \begin{pmatrix}3\\7\end{pmatrix}. ✓ Same vector. Likewise T(e2)=A(23)=(718)T(e'_{2}) = A\begin{pmatrix}2\\3\end{pmatrix} = \begin{pmatrix}7\\18\end{pmatrix} and 15e1+11e2=(15+2215+33)=(718)-15e'_{1}+11e'_{2} = \begin{pmatrix}-15+22\\ -15+33\end{pmatrix} = \begin{pmatrix}7\\18\end{pmatrix}. ✓

Invariants.

trA=2+4=6,trA=5+11=6;detA=83=5,detA=55+60=5. \mathrm{tr}A = 2+4 = 6, \qquad \mathrm{tr}A' = -5+11 = 6; \qquad \det A = 8-3 = 5, \qquad \det A' = -55+60 = 5.

Not one of the four entries stayed where it was. The numbers 2,1,3,42,1,3,4 became 5,15,4,11-5,-15,4,11, and only the 44 so much as reappears, in a different slot. Yet the trace and the determinant are untouched, exactly as (0.4.24) and (0.4.28) guarantee.

If you were handed only AA' and asked "what does this map do to areas?", you would answer 55, the same answer as from AA, because that question is about the map. If you were asked "what is the top-left entry?", you would be answering a question about the basis.

This is the entire chapter in four numbers.

The brick you just laid

You have the vector space defined by what you may do to its elements rather than by what they look like, so that functions, polynomials, matrices, solutions of differential equations and quantum states are all vectors and all obey the same theorems.

You have coordinates, proved unique, together with the discipline of never confusing the vector with its coordinate list.

You have matrix multiplication derived from composition of maps, including why the shapes must match, why it is associative for free, and why it does not commute.

You have the change-of-basis law A=P1APA'=P^{-1}AP, and the distinction between what changes with the description and what does not.

You have the determinant as signed volume, from three properties rather than a formula, with det(AB)=detAdetB\det(AB)=\det A\det B as a one-line statement that scaling factors multiply, and det=0\det=0 as the destruction of information.

And you have the trace: cyclic, basis independent, and, in the identity worth the whole chapter, the first-order determinant det(I+ϵA)=1+ϵtrA+O(ϵ2)\det(I+\epsilon A)=1+\epsilon\,\mathrm{tr}A+O(\epsilon^{2}).

Where this gets spent. Basis and coordinates → Chapter 2.4 (a tensor is defined by its transformation law, which is §4) and Chapter 3.2 (physics must not depend on coordinates). Composition of linear maps → Chapter 0.6, where the chain rule becomes a product of Jacobian matrices and is the same statement as (0.4.13). Determinant → Chapter 0.6 again (the Jacobian determinant in a change of variables is precisely "the factor by which volume is multiplied") and Chapter 3.5, where g\sqrt{-g}, the square root of a determinant, is what makes an integral over curved spacetime mean anything. Trace → Chapter 0.7 (divergence is the trace of the Jacobian), Chapter 1.3 (Liouville's theorem is tr=0\mathrm{tr}=0), and Chapter 6.1 (the generators of SU(NN) are traceless because deteA=etrA\det\ee^{A}=\ee^{\mathrm{tr}A}, which is why there are eight gluons). Non-commutativity → Chapter 4.9 (uncertainty), Chapter 3.4 (curvature), Chapter 6.4 (Yang–Mills self-interaction). Complex scalars → Chapter 4.2, where the existence of eigenvalues is the existence of measurable values.

Next, Chapter 0.5 asks the follow-up question this chapter has been setting up. Given an operator, can we find a basis in which its matrix is as simple as possible? For a large and physically crucial class of operators the answer is yes, and the simple form is diagonal. The diagonal entries are the eigenvalues that this chapter has twice promised.