Linear Algebra — 03 · Linear Maps, Change of Basis and Determinants
Up to now a matrix has been a table of numbers that you multiply and row-reduce. This post changes the point of view: a matrix is only a description of a linear map, written in one particular pair of bases. Change the bases and the same map gets a different matrix. That idea explains why rank, trace and determinant are "real" properties of a map while individual entries are not, and it is the doorway to eigenvalues in the next post. The second half of the post builds the determinant from three simple rules, proves the key facts (product rule, invertibility test, Cramer's rule), and shows what the number means geometrically: the factor by which a map scales area or volume, with a sign for orientation.
Series map: 00 Vectors & Linear Systems → 01 Matrix Algebra, Inverses & LU → 02 Vector Spaces, Basis & Dimension → 03 Linear Maps, Change of Basis & Determinants (this post) → 04 Eigenvalues & Diagonalization → 05 Inner Products, Spectral Theorem & SVD.
Learning Outcome
- Decide whether a given function between vector spaces is linear, and find its kernel and image.
- State and prove the rank–nullity theorem for linear maps, and use it to relate injective, surjective and invertible.
- Write the matrix of a linear map relative to any bases, and explain why composition of maps is the matrix product.
- Convert coordinates between bases, and compute the matrix of a map in a new basis with .
- Recognise rotations, reflections, shears, projections and scalings in from their matrices.
- Define the determinant by its three axioms, compute it by cofactor expansion and by elimination, and prove .
- Interpret as a volume scaling factor and the sign of as orientation.
- Solve small systems with Cramer's rule, and explain why it is not used for large ones.
Chapter 1 — Linear maps
Terminology
- Vector space over — as in Linear Algebra 02: a set with addition and scalar multiplication obeying the eight axioms. Everything in this post also works over or any field.
- Linear map (linear transformation) — a function that respects addition and scalar multiplication (definition below). When it is also called a linear operator on .
- Domain and codomain — where inputs live and where outputs are allowed to land.
- Kernel (null space) .
- Image (range) .
- Rank of — . Nullity of — .
- Injective (one-to-one) — implies . Surjective (onto) — . Bijective — both.
- Isomorphism — a bijective linear map. and are isomorphic, written , if an isomorphism exists.
- — polynomials of degree at most with real coefficients; .
Definition
A function is linear if for all and all scalars :
The two conditions combine into one: . By induction, a linear map sends every linear combination to the same combination of the images. Taking gives : a linear map always sends zero to zero.
Examples:
- Matrix maps. For an matrix , the map , , is linear because and (Linear Algebra 01).
- Differentiation. , . The sum rule and the constant-multiple rule of calculus are exactly the two linearity conditions.
- Integration. , , where is the space of continuous functions on .
- Evaluation. , .
- Transpose. from matrices to matrices.
Non-examples:
- Translation with : , so it is not linear. (It is called affine.)
- : but .
- on : .
Trick: To show a map is not linear, one counterexample is enough — and checking first catches many cases in one line. To show a map is linear, you must check both conditions for arbitrary inputs.
A linear map is fixed by what it does to a basis
Theorem 1. Let be a basis of and let be any vectors in . There is exactly one linear map with for every .
Proof. Every has unique coordinates: (Linear Algebra 02). Define . This is well defined because the coordinates are unique. It is linear: if has coordinates and has coordinates , then has coordinates and has coordinates , and the formula is linear in the coordinates. It sends to . For uniqueness, any linear with satisfies . ∎
This theorem is the reason matrices work at all: to store a linear map you only need to store vectors, the images of the basis vectors.
Chapter 2 — Kernel, image and rank–nullity
Kernel and image are subspaces
Proposition 2. For linear , is a subspace of and is a subspace of .
Proof. , so is in both. If then , so the kernel is closed under addition and scaling. If and then is also in the image. ∎
For a matrix map , the kernel is the null space and the image is the column space from Linear Algebra 02.
Proposition 3. is injective if and only if .
Proof. If is injective and , then . Conversely, if and , then , so . ∎
Watch out: "The only solution of is " is a statement about one equation, but it controls every equation : each one then has at most one solution. This is the map version of "no free variables" from Linear Algebra 00.
Rank–nullity for linear maps
Linear Algebra 02 proved for an matrix by counting pivot and free columns. Here is the version for maps, with a proof that uses no matrices at all.
Theorem 4 (rank–nullity). Let be finite-dimensional and linear. Then is finite-dimensional and
Proof. is a subspace of the finite-dimensional space , so it has a basis (possibly ). By the basis-extension theorem of Linear Algebra 02, extend it to a basis of , so . We show that is a basis of ; then and we are done.
Spanning. Any vector in the image is for some . Since , we get .
Independence. Suppose . Then , so and can be written as . Then is a linear relation among the basis vectors of , so every (and every ) is zero. ∎
Worked example. , . Its matrix is
Solving : adding the two equations gives , so , and then . The kernel is the line spanned by , so the nullity is 1. Rank–nullity forces , so the image is all of : is surjective but not injective.
Worked example (no matrix in sight). , . The kernel is the constant polynomials (dimension 1). Every is the derivative of some cubic, so the image is (dimension 3). Check: .
Consequences
Corollary 5. Let be linear with finite-dimensional.
- If , then is not injective (the kernel has dimension at least ).
- If , then is not surjective (the image has dimension at most ).
- If , then injective surjective is an isomorphism.
Proof of 3. Injective means , which by rank–nullity means , which means (a subspace of full dimension is the whole space). ∎
Part 3 is the abstract form of the invertible matrix theorem from Linear Algebra 01: for a square matrix, "only the trivial solution" and "a solution for every right-hand side" are the same condition.
Theorem 6 (classification by dimension). Two finite-dimensional spaces are isomorphic if and only if they have the same dimension. In particular every -dimensional real space is isomorphic to .
Proof. An isomorphism sends a basis to a basis (it is injective, so independence is kept, and surjective, so the images span), so dimensions agree. Conversely, if with basis , the coordinate map is linear, injective and surjective. Composing two such maps gives . ∎
The inverse of an isomorphism is automatically linear: if and , then , so .
Common pitfall: Isomorphic does not mean equal. and are isomorphic, but the isomorphism depends on a choice of basis. There is no single "correct" identification — which is exactly why the next chapter keeps track of bases.
Chapter 3 — The matrix of a linear map
Coordinates
Fix an ordered basis of . The coordinate vector of is the column with . The map is the isomorphism of Theorem 6. Order matters: swapping and swaps the first two coordinates.
The matrix relative to two bases
Let be linear, with basis of and of . The matrix of relative to and is the matrix
Column = the -coordinates of the image of the -th basis vector. With it, applying becomes matrix multiplication on coordinates:
Why: if then , and taking -coordinates (a linear operation) gives , which is the matrix times the column .
The arrow notation reads right to left: coordinates in go in, coordinates in come out. When and the same basis is used on both sides, write .
Worked example. with bases and . The images of the basis vectors are , whose coordinates are the columns:
Check with : , and indeed . The matrix has rank 3 and a one-dimensional null space spanned by — the constant polynomial 1 — matching the rank–nullity count above.
Composition is the matrix product
Theorem 7. Let and be linear, with bases of . Then
Proof. For every : . Taking (so is the -th standard column) shows that column of equals column of . ∎
This is why matrix multiplication is defined the strange row-times-column way: it is the only definition that makes "do , then do " correspond to a product. It also explains why the product is associative (composition of functions is) and generally not commutative (doing things in a different order usually gives a different result). The order is right to left: in , acts first.
Two consequences follow at once. is an isomorphism if and only if its matrix (in any bases) is invertible, and then . And the rank of equals the rank of any matrix that represents it.
Chapter 4 — Change of basis and similarity
The change-of-basis matrix
Let be the standard basis of and another basis. Put the new basis vectors, written in standard coordinates, into the columns of
Then , that is
is invertible because its columns are a basis. is simply the matrix of the identity map, : it takes -coordinates in and gives -coordinates out.
Common pitfall: The matrix whose columns are the new basis vectors converts new coordinates to old, not old to new. To get new coordinates you must solve (or apply ). Writing the arrow on every change-of-basis matrix prevents this mistake.
The same map in a new basis
Let have standard matrix . Its matrix in the basis is found by composing: convert -coordinates to standard (), apply (), convert back ():
This is Theorem 7 applied to . For a map between different spaces, with change-of-basis matrices on the domain and on the codomain, the rule is .
Worked example. Let and take the basis , . Then
You can see the diagonal answer directly: and . In the new basis the map just stretches the direction by 3 and leaves the direction alone. Now track one vector. has , because . In new coordinates the map gives , and . The two routes agree.
Choosing a basis that makes the matrix diagonal is the whole subject of Linear Algebra 04: and here are eigenvectors.
Similarity
Square matrices and are similar if for some invertible . Similar matrices are the same linear operator written in two bases. Similarity is an equivalence relation (reflexive with , symmetric with , transitive with ).
Anything defined for the operator rather than the table of numbers must be the same for similar matrices. Such quantities are called similarity invariants:
| Invariant | Why it survives |
|---|---|
| Rank | rank of the map, which does not depend on coordinates |
| Trace | , so |
| Determinant | product rule (Chapter 6): |
| Characteristic polynomial, eigenvalues | Linear Algebra 04 |
The trace identity is a one-line calculation: . Check the example: .
Watch out: Equal invariants do not prove similarity. and have the same rank, trace and determinant, but only is similar to (because for every ).
Chapter 5 — Geometry of maps in the plane
The quickest way to read a matrix: its columns are where and land. Draw those two arrows and you have drawn the map, because the unit square goes to the parallelogram they span and every grid line goes to a parallel grid line.
| Map | Matrix | What it does | det |
|---|---|---|---|
| Rotation by | turns every vector by angle counter-clockwise | ||
| Reflection in the line at angle | mirror image; vectors on the line stay put | ||
| Shear | slides each point sideways by times its height | ||
| Projection onto the line at angle | drops each point perpendicularly onto the line | ||
| Scaling | stretches by and by |
Where these come from:
- Rotation. goes to and (at angle ) goes to . For this gives .
- Projection. With the unit vector along the line, the projection of is , and is the matrix in the table. It satisfies : projecting twice is the same as projecting once.
- Reflection. Reflection = projection identity (go to the line, then the same distance again). Using and gives the table entry. It satisfies .
Composition does not commute. Let be rotation by and reflection in the -axis:
"Rotate, then reflect" () is the reflection in the line ; "reflect, then rotate" () is the reflection in . Two different maps.
A projection is diagonal in the right basis. The projection onto the line has standard matrix . In the basis — one vector along the line, one perpendicular to it — its matrix is : keep the first coordinate, kill the second. Same map, much clearer matrix.
Chapter 6 — The determinant
Terminology
- Multilinear (in the rows) — linear in each row separately when the other rows are held fixed.
- Alternating — the value is whenever two rows are equal.
- Permutation of — a bijection of the set to itself; is the set of all of them.
- Sign — if is a product of an even number of swaps, if odd. Equivalently , where an inversion is a pair with .
- Minor — the determinant of the matrix left after deleting row and column . Cofactor .
The three axioms
For matrices you know . The clean way to generalise is not to guess a formula but to list the properties we want and prove that exactly one function has them.
A function from matrices to is a determinant function if:
- (Multilinear) is linear in each row: , other rows fixed.
- (Alternating) if two rows of are equal.
- (Normalised) .
Theorem 8 (existence and uniqueness). There is exactly one determinant function, written . Moreover, any function satisfying axioms 1 and 2 (but not necessarily 3) equals .
Existence is shown by checking that the Leibniz formula below satisfies the three axioms; uniqueness follows because the axioms alone determine the value on every matrix, as the row-operation rules show. A full proof is in Axler (Chapter 9) or Hoffman and Kunze (Chapter 5); here we state it and use it.
What the axioms force: row operations
From the axioms alone:
- Swapping two rows changes the sign. Put in both rows and . By axiom 2 the value is 0; expanding with axiom 1 gives (other rows omitted), and the first and last terms are 0, so .
- Scaling one row by multiplies the determinant by (axiom 1).
- Adding a multiple of one row to another leaves the determinant unchanged: , and the last term is 0.
- A zero row gives determinant 0 (scale that row by 0).
- A triangular matrix has determinant = product of its diagonal entries. If all diagonal entries are nonzero, row replacements clear the off-diagonal entries without changing , leaving a diagonal matrix, and axiom 1 plus axiom 3 give the product. If a diagonal entry is zero, elimination produces a zero row, so both sides are 0.
These rules are also the fastest way to compute: row-reduce to triangular form, keeping track of swaps and scalings.
Leibniz formula and cofactor expansion
Leibniz formula.
Each term picks one entry from every row and every column. For there are two terms, . For there are six:
Cofactor (Laplace) expansion along row or column :
The signs follow a checkerboard starting with in the top-left corner. Expand along the row or column with the most zeros.
Worked example — three ways. Let
Cofactor expansion along row 1:
Leibniz, six terms: .
Elimination: and give rows and ; then gives . Only row replacements were used, so the determinant is unchanged: .
Watch out: The "diagonals" trick (rule of Sarrus) works for matrices only. For it gives 8 terms, but the determinant has .
The product rule and other properties
Theorem 9. for all matrices .
Proof. Fix and define . Row of is (row of ) , which is linear in row of , so is multilinear in the rows of . If has two equal rows, so does , so . By the second part of Theorem 8, . ∎
Theorem 10. .
Reason. In the Leibniz formula, the term for in is the term for in , and . As runs over so does . ∎
So every statement about rows also holds for columns: column swaps flip the sign, and so on.
Theorem 11 (the invertibility test). A square matrix is invertible if and only if . In that case .
Proof. Row-reduce: with in reduced row echelon form. Each elementary operation multiplies the determinant by a nonzero number (, , or ), so . A square RREF is either (determinant 1) or has a zero row (determinant 0), and exactly when is invertible (Linear Algebra 01). For the formula, . ∎
Further consequences:
- for an matrix (each of the rows is scaled). For the matrix above, .
- Similar matrices have equal determinants, so is well defined for a linear operator : use its matrix in any basis.
- For block upper triangular matrices, (with , square).
Common pitfall: in general. Try : the left side is , the right side is 2. The determinant is multiplicative, not additive.
Determinant as signed volume
For with columns , the number is the volume (area when ) of the parallelepiped .
Why this is plausible: signed volume, as a function of the edge vectors, satisfies the axioms. Scaling one edge by scales the volume by . Sliding one edge along another (a shear) does not change the volume — Cavalieri's principle, the same reason a slanted stack of coins has the same volume as a straight one. Two equal edges give a flat box of volume 0. The unit cube has volume 1. By uniqueness, signed volume is the determinant.
Since sends the unit cube (volume 1) to this parallelepiped, and the map is linear, multiplies the volume of every region by . This is the factor in the change-of-variables formula for multiple integrals. The sign records orientation: keeps the order of the edges (counter-clockwise stays counter-clockwise in the plane), reverses it, as a mirror does. means the space is flattened into a lower dimension — and that information cannot be undone, which is Theorem 11 seen geometrically.
Example in : the columns , , form an upper triangular matrix with determinant , so the box they span has volume 6.
The figure uses (), the same matrix with its columns swapped, (), and (). and produce the same parallelogram, but in the image of has moved to the other side of the image of : the turn from the first column to the second is clockwise, so the orientation is reversed. That is the column-swap rule, drawn.
Chapter 7 — Cramer's rule and the adjugate
Theorem 12 (Cramer's rule). If , the unique solution of is
where is with column replaced by .
Proof. Let be the identity matrix with column replaced by . Then : its columns are , which are the columns of with in position . Expanding along row gives . The product rule then gives . ∎
Worked example. , . Here , and
Check: and .
The adjugate. Applying Cramer's rule to each column of gives an explicit inverse:
Note the transpose: entry of the adjugate is the cofactor at . For this is the familiar . For above,
Why not Cramer for large systems
Cramer's rule is valuable for theory: it shows that each is a rational function of the entries of and , so the solution depends continuously (indeed smoothly) on the data wherever . As an algorithm it is a bad choice:
- The Leibniz formula has terms. For that is products for a single determinant.
- Even computing each determinant by elimination, Cramer needs determinants, each costing about as much as one full LU factorisation ( flops). Gaussian elimination solves the system with one factorisation.
- Determinants are poor measures of numerical trouble. , yet is perfectly well-behaved. Closeness to singularity is measured by the condition number (Linear Algebra 05 and the planned numerical post), not by the size of .
Trick: In practice, a determinant is computed from an LU factorisation with partial pivoting, : , the sign coming from the number of row swaps. This is exactly the elimination method above.
Practice Exercises
1. Which of these are linear? (a) , . (b) , . For the linear one, write its matrix in the basis and decide whether it is invertible.
Solution
(a) Linear: . The images of the basis are , , , so the columns are , , :
It is upper triangular with determinant 1, so it is invertible (the inverse is ). (b) Not linear: .
2. Let , . Find the kernel and image and check rank–nullity.
Solution
means , so and are roots: . The kernel is spanned by , dimension 1. The image contains and , which are independent, so the image is (dimension 2). Check: .
3. Prove: if is linear and , then some nonzero has . Deduce that a homogeneous system with more unknowns than equations has a nonzero solution.
Solution
By rank–nullity, , since . A nonzero kernel contains a nonzero vector. For a system with of size , , apply this to .
4. Let be the projection of onto the line . Find its standard matrix , its matrix in the basis , , and check that trace and determinant agree.
Solution
With , . Since and , . Traces: and . Determinants: and .
5. For from Chapter 6 () find , , and where .
Solution
; ; . Expanding along row 1: , so .
6. Use Cramer's rule to solve .
Solution
, , . Dividing by : . Check the first row: .
7. (Vandermonde) Show that , and conclude that a quadratic through three points with distinct -values is unique.
Solution
Subtract row 1 from rows 2 and 3 (determinant unchanged): rows become and . Expand along column 1 and factor and out of the two rows: . Fitting through is a linear system with exactly this matrix; if are distinct the determinant is nonzero, so the solution exists and is unique.
Cheat-sheet
| Idea | Formula or fact |
|---|---|
| Linear map | ; always |
| Injective test | |
| Rank–nullity | |
| Equal dimensions | injective surjective isomorphism |
| Matrix of | column = |
| Composition | , acts first |
| Change of basis | columns of = new basis; |
| New matrix | (similar matrices) |
| Similarity invariants | rank, trace, determinant, eigenvalues |
| Row swap / scale / replace | times / / |
| Triangular | = product of diagonal |
| Product, transpose | , |
| Invertible | ; |
| Geometry | = volume factor; sign = orientation |
| Cramer | (small only) |
| Adjugate | , |
What's next
Chapter 4 found a basis in which became . Linear Algebra 04 turns that lucky find into a method. A vector that a map only stretches, , is an eigenvector; the stretch factors are the roots of the characteristic polynomial , which is where this post's determinant does its most important job. With enough eigenvectors, with diagonal, and powers, Fibonacci numbers, Markov chains and systems of differential equations all become easy.
References
- Sheldon Axler, Linear Algebra Done Right, 4th ed., Springer (2024) — Chapter 3 (linear maps, rank–nullity as the "fundamental theorem of linear maps", matrices, isomorphisms) and Chapter 9 (determinants via alternating multilinear forms). Open access at linear.axler.net.
- Gilbert Strang, Introduction to Linear Algebra, 6th ed., Wellesley-Cambridge Press (2023) — chapters on linear transformations, change of basis and determinants (including the cofactor, Cramer and volume sections).
- Stephen H. Friedberg, Arnold J. Insel, Lawrence E. Spence, Linear Algebra, 5th ed., Pearson — Chapter 2 (linear transformations and matrices, change of coordinate matrix) and Chapter 4 (determinants).
- Kenneth Hoffman, Ray Kunze, Linear Algebra, 2nd ed., Prentice-Hall (1971) — Chapter 5, the classical axiomatic existence and uniqueness proof for determinants.
- MIT OpenCourseWare, 18.06 Linear Algebra (Spring 2010), Gilbert Strang — lectures 18–20 (determinants, cofactors, Cramer's rule, volume) and 30–31 (linear transformations, change of basis).
- Sergei Treil, Linear Algebra Done Wrong (free textbook, Brown University) — Chapter 1 (linear transformations) and Chapter 3 (determinants), author's page.
- 3Blue1Brown, Essence of Linear Algebra — the video series on linear maps as grid transformations and the determinant as area scaling; the clearest visual companion to Chapters 5 and 6.
Note: this post is in progress. Planned additions: a full proof of existence and uniqueness of the determinant (Leibniz formula checked against the axioms), dual spaces and the transpose of a linear map, quotient spaces and the first isomorphism theorem, and a short section on the determinant of a block matrix via the Schur complement.










