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.
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 and in state , it can be in , 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 (for us always or ) is a set carrying two operations. The first is addition of two elements of . The second is multiplication of an element of by a scalar. Both operations must land back inside , and both must satisfy eight rules:
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 annihilates. Nothing in (0.4.1) says that is the zero vector. The symbol 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), . Add to both sides, use (A4) and (A3), and what is left is .
The same style of argument gives . Compute . By (A4), the thing you add to to get is exactly what the symbol "" 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, . 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 . Call this space . The sum of two polynomials of degree again has degree , 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 do not form a vector space. Take and , both of degree exactly . Their sum is not of degree , 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:
We want to know whether the solution set is closed under addition and scaling, so take two solutions and and feed a combination of them into . The only facts we need are that differentiation is itself additive and that it commutes with constants:
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 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 with . Then the solution set is not a vector space at all, since the sum of two solutions gives rather than .
Something almost as good survives. Let be any one solution and let be any other. Then , 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 and add them pointwise, so that and . 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 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 , 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.
"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.
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 is any vector . 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 is linearly independent if
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 be a basis of . Because it spans, every can be written as for some scalars . What we need to show is that those scalars are uniquely determined by , since otherwise the phrase "the coordinates of " would not mean anything. So suppose had two expansions, and watch what independence forces:
The last step is exactly the definition of independence (0.4.4), applied to the coefficients .
The converse is just as quick. Suppose every vector has a unique expansion, and apply that to . 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:
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 are the coordinates of in the basis . We will write them as a column and give that column its own symbol, deliberately different from the symbol for the vector itself:
Throughout this chapter, is the vector and 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 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:
| Space | A basis | Dimension |
|---|---|---|
| (the standard columns) | ||
| , polynomials of degree | ||
| real matrices | the four matrices with a single | |
| Solutions of | ||
| Functions on | no finite basis exists |
The polynomial entry deserves a word, since it is the one people wave through. Why are independent? Suppose as a function, meaning true for every . Then that polynomial has infinitely many roots. But a nonzero polynomial of degree has at most three roots. So it must be the zero polynomial, and all .
The independence of and 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 spans and is independent, then . An independent set can never be larger than a spanning set.
Proof. We swap the 's in one at a time, keeping a spanning set at every step.
Since the 's span, we may write . Not every is zero, because that would make , and a set containing is never independent. (Take and the rest zero in (0.4.4).) Relabel so that , and then solve for :
so anything expressible with is expressible with instead, and still spans .
Now suppose we have got as far as spanning, with . Expand the next one:
Ask what would happen if every vanished. Then would be a linear combination of , and would be a nontrivial vanishing combination, since the coefficient of is . That contradicts independence. So some . Relabel it as , solve for as above, and swap it out. The new set still spans.
Each step consumes one . If we would run out of 's while 's remained. But the step above proved that some with is nonzero, and that requires at least one to still be present. Contradiction. Hence .
Consequence. Let and be bases with and elements. is independent and spans, so . is independent and spans, so . Therefore , and dimension is a property of the space, not of the description.
A corollary we need in §5. In an -dimensional space, any independent vectors already form a basis. Suppose they failed to span. Then there would be some outside their span, and would be independent. To see that, take a vanishing combination . It must have , since otherwise would lie in the span, and then all by independence of the 's. That gives independent vectors in a space spanned by , contradicting the lemma.
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.
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 between vector spaces is linear if it does exactly that:
Here are some examples, deliberately not all of them matrices. Rotation of the plane is linear. So is differentiation , acting on polynomials or on smooth functions. So is the operator of (0.4.2). So is definite integration , which is a linear map from a function space to . 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 be a basis of and let be linear. Take any , expand it in coordinates as in (0.4.6), then apply additivity times and homogeneity to each term:
Let's read what that says. If you know the vectors , you know completely. Its value on every one of the infinitely many vectors in is then forced.
The converse holds too, and it is worth spelling out. Choose any vectors in , whatever you like, and define . That is a legitimate definition precisely because the coordinates are unique, which is what (0.4.5) was for. And it is linear because coordinates add and scale.
So linear maps correspond exactly to arbitrary lists of vectors in . Nothing is left over on either side.
3.2 · The matrix, defined
Those vectors are still abstract objects, and what we want is numbers. So pick a basis of the target space as well. Each lives in , so it has coordinates there, and we give those coordinates a name:
The array of numbers is the matrix of in the bases . Here is the sentence to remember, in words: the -th column of the matrix is the coordinate list of the image of the -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:
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 and , with bases of , of and of . Each map gets its matrix from (0.4.9):
The composite map means "do , then ". 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 does to the basis . So let's compute exactly that:
Now compare that last line with the definition (0.4.9), and read off the matrix of the composite:
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 labels a basis of the middle space , which is where the output of lands and where the input of comes from. It has to be summed because (0.4.12) feeds every component of through . The free indices and label the two ends.
- Why the shapes must match. An times an 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 means "first ". Because and the function nearest the argument acts first. The reversed-looking order is inherited from function notation, which is in turn inherited from writing rather than .
- Why it is associative for free. requires no computation whatsoever. Composition of functions is associative, since both sides mean "do , then , then ". People verify this with triple sums. There is no need.
- Why it need not commute. Doing then is a different operation from doing then . See the warning box below, and then most of twentieth-century physics.
The repeated index 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.
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 , and let the transition matrix act on the left, so that . With that convention , 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 for progression, for death from PF and for death from P:
cycles is , the matrix of the -fold composite, by (0.4.13) applied times.
And the entries of are exactly the derivation in (0.4.12) read aloud. The chance of being progressed after two cycles is , which is a sum over the intermediate state : 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 for the row of ones. Then "every column sums to one" says , meaning that row vector is left unchanged by .
A vector the map leaves alone is what §7 will call an eigenvector, here with eigenvalue . 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 for which fails to be invertible, and §7 proves that this is the same condition. This is triangular, and §5 shows that the determinant of a triangular matrix is the product of the diagonal. So and the eigenvalues are .
The 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 , and at the cohort is PF, progressed and dead. Which sub-unit eigenvalue dominates, and how fast, is the whole content of Chapter 0.5.
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 and both be bases of . Each new basis vector is itself a vector, so it has coordinates in the old basis. Call those coordinates :
In words, the columns of are the new basis vectors, written in old coordinates.
We are going to need to be invertible, and we can see that it is without appealing to anything outside what we already have. Since is also a basis, we may equally expand the old vectors in the new ones, . Now substitute each expansion into the other:
The implication is uniqueness of coordinates (0.4.5) again. The left side has to be the expansion of in the basis , which is in slot and elsewhere, and that is what the Kronecker delta means.
So . Running the same argument with the roles exchanged gives , and hence .
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 and expand it both ways, , then substitute (0.4.14) into the second expansion:
Let's stop on that, because it is the source of a lifetime of index confusion. The basis vectors transform with . The components transform with .
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 be one, with matrix in the old basis and in the new one:
The trick is to compute in two different ways and then set the answers side by side. First, push through the definition of the new basis (0.4.14):
Second, use the new-basis matrix instead, and then express the new basis vectors back in the old basis:
Both lines are expansions of the same vector in the same basis . So by uniqueness of coordinates the coefficients have to agree, which gives , and therefore
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 then . 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 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.
(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 . In the standard basis its matrix is , which looks like a swap. Now change to the basis , , which runs along the mirror and perpendicular to it. There the matrix is , 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 that the two are related by (0.4.20). Same map. Different arrays. Note that the trace is and the determinant 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 , rotation by , and , reflection in the -axis. Then
These are genuinely different operations. is a reflection in the line , and is a reflection in the line .
Follow the single vector through each of them. Rotating first sends it to , and then reflecting sends it to . Reflecting first leaves it at , and then rotating sends it to . Same start, opposite finish.
Pick up a book and try it. Turn it 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 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.
is the uncertainty principle (Chapter 4.9). Measuring position and then momentum is a different operation from momentum and then position, by an amount .
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.
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 matrix as an ordered list of its columns , each of them a vector in . The three properties are:
(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 , and therefore . Repeated column zero.
5.1 · These are the properties of volume
Let 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 . 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 , has volume . That is what "unit" means.
(D2) is orientation. The parallelepiped spanned by and the one spanned by 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 fixed. They span a "base", meaning an -dimensional parallelepiped of some fixed content lying in a hyperplane through the origin. The volume of the whole solid is then , where is the signed perpendicular height of above that hyperplane.
Now look at what is. It is the component of along the fixed unit normal of the base, and taking a component is a linear operation, so . Multiply through by the constant and you have exactly (D1). (If the base is itself degenerate then 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 satisfying them. Since and signed volume both satisfy them, they have to be the same thing:
One more step converts that from a statement about an array into a statement about a map. (0.4.9) makes the columns of the images 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. is the factor by which the map 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 and cases
Uniqueness. Suppose satisfies (D1)–(D3). Expand every column in the standard basis, , and use multilinearity in each of the slots in turn. Every slot contributes a sum over which basis vector was chosen there, so
Any term in which two of the 's coincide has a repeated column and dies. So only the terms where is a permutation of survive. Each such can be sorted back into by a sequence of swaps, each costing a factor by (D2). Writing ,
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 exists.
Is well defined? It had better not depend on which sequence of swaps you used, so here is the check. Count the inversions of , meaning the pairs with . Swapping two adjacent entries changes that count by exactly . A swap of two entries apart can be built from 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 alone, and .
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 replaces each by composed with a transposition, which is a relabelling of the sum that flips every sign: (D2). ✓ For every factor forces , leaving the single term : (D3). ✓
Rows or columns? Substituting in the product shows that . Now has the same parity as , since you reverse the order of the same swaps, and merely reshuffles which terms are being summed. So , and every statement about columns is equally a statement about rows.
The case, straight from the axioms. No formula is needed here. Expand bilinearly and kill the repeated columns:
The case. Six permutations of : three even () and three odd (). The Leibniz formula gives
which regroups into the cofactor expansion you may have memorised, . Both are the same six products. The alternating signs of the cofactor rule are (D2) in disguise, and the reason the formula has terms is that it is a sum over permutations. That is also why nobody computes a large determinant this way.
Triangular matrices. If whenever (lower triangular), then any must somewhere send a column to a row , contributing a zero factor. Only the identity permutation survives, leaving . 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 , so think about what the composite does to a volume. The map multiplies every volume by . The map then multiplies whatever it is handed by . Doing both multiplies volumes by the product of the two. Hence
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 , which gives and therefore . 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:
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 and define , regarded as a function of the columns of . Column of is , by (0.4.10). Now check the three axioms:
(D1) is linear, and is linear in each column, so the composite is linear in each . ✓
(D2) Swapping and swaps columns and of , which flips the sign of . ✓
(D3) Not normalised: , not . Fix that by dividing. If , the function satisfies all three axioms, so by the uniqueness proved above , i.e. . ✓
If the division is illegal. But in that case the columns of are dependent, as proved just below, and the columns of are combinations of the columns of , so they are dependent too. Both sides are then . The identity holds in every case.
5.3 · Zero determinant means information destroyed
Here is the single most-used fact about determinants, and both directions of it are now cheap:
() If is invertible then , so .
() Take the contrapositive, and suppose is not invertible. Then its columns cannot be independent. To see why, suppose they were. The corollary in the §2 grind box says that independent vectors in form a basis, so every vector in is for exactly one , and the map that undoes it is linear and is an inverse. That contradicts what we assumed.
So some column is a combination of the others, say . Expanding by multilinearity in the first slot gives a sum of determinants, each with a repeated column, and each therefore zero. Hence .
The geometry says the same thing more vividly. means the image of the unit cube has no volume. The map has flattened -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.
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:
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 and agree. To get it, write out both sides using (0.4.13) and then swap the order of two finite sums:
The only thing used was that scalars commute, meaning , even though the matrices emphatically do not. That is why the identity is startling. In general , 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:
That is (0.4.27) with and . 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 and any small number , and ask for the determinant of the matrix that is almost the identity:
Here is the honest derivation for general , which needs nothing but the Leibniz formula from the §5 grind box. Write , so , and
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 . If 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 then whatever was at has been displaced as well.
Now count powers of . For each moved index the Kronecker delta vanishes, so the factor is and carries one power of . Two or more moved indices means two or more powers of . So all of these terms are , and none of them can affect the first-order answer.
The identity permutation gives the trace. With every delta is and , leaving
Let's see where that came from. Expanding the product means choosing, from each of the factors, either the or the . Taking all the s gives the leading . Taking from exactly one factor and from the rest gives , and summing over which factor was chosen gives . Any choice of two or more is .
Adding the two contributions gives (0.4.29).
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 has to . 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 . In a short time each particle moves from to . That map has derivative matrix , where , 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 , by
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 , moving with velocity , . That is a vector field on phase space, and its divergence is
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. . Define the matrix exponential by the series . It converges for every , 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 , and gives . So to first order in :
What we want next is a differential equation for the determinant. So let , 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 is a polynomial in the entries, so an change in the entries makes an change in the determinant:
By Chapter 0.1, the function equal to a constant times its own derivative, starting at , is the exponential. Hence , and setting gives the identity we wanted:
4. Why the generators of SU() are traceless. A continuous symmetry is built by exponentiating a generator, . The "S" in SU() stands for special, which means , so the transformations preserve volume. By (0.4.36) that requires for every , which forces
This is not a bookkeeping convention. In Chapter 6.1 you will count the anti-Hermitian matrices and find a -dimensional space. Tracelessness is one real linear condition, which removes exactly one dimension, leaving .
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.
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 and over . Here is where they part, and the difference is not aesthetic.
An eigenvector of an operator is a nonzero with . It is a direction the map leaves alone, stretching it by the factor . These are the directions in which a linear map is simple, and Chapter 0.5 is devoted to finding them.
Over , they need not exist. Let be rotation of the plane by . Suppose for real and nonzero real , and apply again to get . But rotating twice by is , so and . 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 , they always exist. Let be any complex matrix, . Consider
By the Leibniz formula this is a polynomial in of degree exactly . The identity permutation contributes , whose leading term is . Every other permutation misses at least two diagonal factors and so has degree at most , 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 with . By (0.4.25) the matrix is then not invertible, so some nonzero has , which says
Every operator on a complex vector space has at least one eigenvalue. Over that statement is flatly false, and the rotation is the counterexample.
Watch what the complex numbers do to that rotation. Over the rotation by angle , , acting on the complex vector , gives
The eigenvalue of a rotation is . 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 of unit modulus.
Rotation and complex phase are the same phenomenon written twice, which is why Chapter 0.3 could say that and 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 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.
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
Let be the shear and the map , both from to in the standard basis. Find the matrix of 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:
Now push the basis vectors through both maps in turn, using linearity of and nothing else:
Those two columns are the matrix of the composite: . Check against the formula :
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. , which agrees with in only one of its four entries. Composition does not commute, and here is the visible reason. means shear first and 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 and , and . Both equal , 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 and . Equal, as (0.4.27) promised, despite every single entry being different. That is the cyclic identity earning its keep.
Verify (0.4.29) explicitly for , whose trace is .
Write out the perturbed matrix and expand the determinant exactly, with no approximation anywhere, using the formula from the §5 grind box:
The coefficient of is . ✓ 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 terms come from. There are two sources, exactly as the general derivation said there would be.
First, the identity permutation. Taking from two of the three diagonal factors in (0.4.31) gives .
Second, the transpositions, meaning the permutations that swap exactly two indices and fix the rest. The swap contributes , and so on. At order these give . The total is . ✓
Combining the two sources, the coefficient is , which is the sum of the principal minors, . ✓ And the coefficient is , which it must be, since taking from every slot is the same as scaling by in all three columns.
The pattern continues for every . The coefficient of in is the sum of the principal minors, starting at , then , and ending at . 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 the exact value is , against the linear estimate . That is an error of , where the quadratic term alone predicts . Agreement to two figures, with the small residue supplied by the cubic term, which is exactly the behaviour the 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 (with fixed) is a vector space, that is a basis for it, and hence that its dimension is . Then say what the "two arbitrary constants" of your first differential-equations course actually are.
Solution
Vector space. This is (0.4.3) with , : if are solutions then . The zero function is a solution, so the set is nonempty and closed under both operations. ✓
Both candidates are solutions. and likewise for (Chapter 0.1). ✓
Independent. Suppose for all . Put : . Differentiate and put : , and , so . ✓
Spanning, which is the only part with any content. Let be any solution. Set and , and define . Then solves the same equation, since it is a combination of solutions, and it satisfies and . Now consider
So is constant, and . Both terms of are non-negative and sum to zero, so each is zero for every . In particular , and . ✓ (That 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 .
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 is not a different solution set. It is a different parametrisation of the same plane. Expanding it gives , so , 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
Let be the derivative operator on , the polynomials of degree , with basis . Write down its matrix. Compute and , and interpret both.
Solution
Apply (0.4.9): the -th column is the image of the -th basis vector, written in coordinates. With :
Determinant. The first column is entirely zero, so by multilinearity (D1) the determinant is linear in that column and . Hence . 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. kills every constant, so and and all have the same image, and no operation can tell them apart afterwards.
That is the constant of integration. The is not a bookkeeping nicety. It is the statement that , and that antidifferentiation is therefore not a function but a one-parameter family.
Here is the geometry. The image of is , of dimension , so a four-dimensional space has been flattened onto a three-dimensional one. The unit hypercube of has been crushed to zero four-volume, which is exactly the collapse the interactive shows in two dimensions.
Trace. . That is consistent with (0.4.29), because exactly, since is triangular with s on the diagonal, and the linear term 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 is nilpotent, meaning : 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 for all square of the same size. Then show follows immediately, but that is false in general. Give an explicit counterexample.
Solution
Two factors. This is (0.4.27): , 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 and :
and once more with , gives . So the three cyclic rotations , , all agree.
The other three orderings need not. Take
Then , so and . But , so and . ✓
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 licenses. Anyone who forgets this and "simplifies" to has assumed .
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 have matrix in the standard basis. Change to the basis , . Compute , verify directly from (0.4.17) that really is the matrix of the same map, and check the determinant and trace.
Solution
By (0.4.14) the columns of are the new basis vectors in old coordinates, so , with . The inverse, which you can verify by multiplying out, is . Then
Direct check. (0.4.17) says that column of should be the coordinates of in the new basis. Compute the left side, which is . Now the right side, which is . ✓ Same vector. Likewise and . ✓
Invariants.
Not one of the four entries stayed where it was. The numbers became , and only the 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 and asked "what does this map do to areas?", you would answer , the same answer as from , 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.
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 , 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 as a one-line statement that scaling factors multiply, and 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 .
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 , 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 ), and Chapter 6.1 (the generators of SU() are traceless because , 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.