Contents / Linear Algebra / Linear Transformations
Chapter 6
Linear Transformations
Kernel and image, matrices relative to bases, change of basis, similarity, and isomorphism.
Introduction
Vectors and matrices are the raw materials of linear algebra; linear transformations are what the subject is actually about. A linear transformation is a function between vector spaces that respects the two operations a vector space has — addition and scalar multiplication — and nothing else. That single requirement is astonishingly restrictive. It forces the function to be completely determined by what it does to a basis, which is a finite amount of data, which is a matrix.
That is the central bargain of this chapter. On one side sits a map that may be described in words ("rotate the plane by thirty degrees"), by a formula ("differentiate the polynomial"), or by a geometric picture. On the other side sits a rectangular array of numbers. Once bases are fixed, the two sides carry exactly the same information, and every question about the map becomes an arithmetic question about the array. Composing maps becomes multiplying matrices. Inverting a map becomes inverting a matrix. Solving becomes solving a linear system.
The bargain has a catch, and the catch is the other half of the chapter: the matrix depends on the bases you chose, and the map does not. Change the basis and the array changes, sometimes beyond recognition, while the underlying geometry is untouched. Understanding which features of the array survive a change of basis — the rank, the determinant, the trace, the eigenvalues — is understanding which features belong to the map itself. That is what similarity means, and it is why the diagonalisation of the next chapter is worth wanting: among all the matrices representing one map, some are much easier to look at than others.
Two subspaces measure what a map does. The kernel is everything the map destroys; the image is everything the map can produce. The rank-nullity theorem says their dimensions add up to the dimension of the domain — nothing is lost and nothing appears from nowhere. It is proved here, in full, from a basis of the kernel extended to a basis of the domain, and almost every dimension count in the rest of the subject is a corollary of it.
6.1What a linear transformation is
A transformation, map, or function assigns to each vector in the domain exactly one vector in the codomain . The vector is the image of under . Nothing so far is special; what follows is.
Definition 6.1 (Linear transformation). Let and be vector spaces over the same field of scalars. A function is a linear transformation (or linear map) if for all and every scalar ,
and
When we call a linear operator on .
Read the two axioms carefully, because the two sides of each equation live in different places. On the left of the first equation, is an addition performed in ; on the right, is an addition performed in . Linearity says that it does not matter whether you combine first and map afterwards, or map first and combine afterwards. The same reading applies to homogeneity, with scaling in on the left and scaling in on the right.
The definition says nothing about , nothing about matrices, and nothing about coordinates. may be the space of polynomials of degree at most , the space of matrices, or a space of functions. This generality is not decoration: differentiation, integration, transposition and evaluation are all linear maps, and every theorem we prove about linear maps applies to all of them at once.
The two axioms can be merged into one, which is often the quickest test in practice.
Proposition 6.2 (One-line linearity test). A function is linear if and only if
for all and all scalars .
Proof. If is linear then , using additivity and then homogeneity.
Conversely, suppose the displayed identity holds always. Taking gives , which is additivity. Taking gives ; to finish we need , which follows from additivity already established: , and subtracting from both sides leaves . Hence .∎
That last computation deserves to be recorded separately, because it is the fastest way to disqualify a candidate map.
Corollary 6.3 (A linear map fixes the origin). Every linear transformation satisfies
and more generally .
Proof. Homogeneity with gives . Homogeneity with gives .∎
The converse fails, and badly: fixes the origin and is not linear. So is a test that can only ever refute linearity, never confirm it.
Induction extends additivity from two vectors to any finite number, and this is the property that does all the work later.
Proposition 6.4 (Linear maps preserve linear combinations). If is linear, then for all and all scalars ,
Proof. Induct on . For the claim is homogeneity. Assume it holds for vectors. Then, writing , additivity gives
and the inductive hypothesis expands as .∎
Here is the consequence to hold on to. If spans , then every is some combination , and the proposition says . A linear map is completely determined by its values on a spanning set. Know the vectors and you know everywhere. An arbitrary function on an infinite space needs infinitely much data to specify; a linear map needs vectors.
Intuition. Think of as a paint mixer that is scrupulously fair. You know it turns one litre of blue into two litres of grey and one litre of yellow into half a litre of white. Now pour in three litres of blue and four of yellow. You do not need to run the machine to know the answer: six litres of grey and two of white. The machine never notices that the inputs arrived together — it treats each ingredient separately and adds up. That is exactly what says.
Example 6.5 (A linearity check that passes). Is given by linear?
Solution. Use the one-line test. Let , and let be a scalar. Then , so
On the other side,
The two agree componentwise, so is linear.
Sanity check with numbers: and , so linearity predicts . Directly, . ✓□
Example 6.6 (Three linearity checks that fail). Decide whether each map is linear: (a) ; (b) ; (c) .
Solution. (a) , so by the corollary is not linear. Translation is never linear (unless the shift is zero) — it is affine, a linear map followed by a fixed displacement.
(b) Here , so the origin test says nothing. Test homogeneity with and : , but . These differ, so is not linear. Squaring scales like , not like .
(c) Again , and additivity even holds for many pairs. But homogeneity fails at : while . Not linear. Note that passes the positive-scalar test and fails only for negative scalars — checking alone would have missed it.□
Pitfall. "Linear" in linear algebra is not the "linear" of school algebra. The function is called linear in a precalculus course because its graph is a line, but as a map it is not a linear transformation: . The linear maps are exactly , the lines through the origin.
Now the examples that justify the abstract definition. Each of the following is linear, and the verification is a one-line appeal to a rule you already know.
Example 6.7 (Linear maps that are not matrix multiplication). Verify that each map is linear: (a) differentiation , ; (b) the definite integral , ; (c) transposition , ; (d) evaluation at , , .
Solution. (a) The sum rule and constant-multiple rule of calculus say precisely and . Those are the two axioms. Differentiation is the motivating example of a linear operator, and lowering the degree by one is why the codomain is .
(b) Linearity of the integral: and . The codomain is the scalars , which is a perfectly good one-dimensional vector space; a linear map into the scalars is called a linear functional.
(c) Entrywise, and , since transposing only relabels positions.
(d) and by the definition of adding and scaling functions. Note the contrast with , which is not linear.
Sanity check on (a) with coordinates: , and , , , so linearity predicts . ✓□
Example 6.8 (Two extreme cases). Describe the zero map and the identity map, and confirm both are linear.
Solution. The zero map sends every vector to . Then , and . Linear.
The identity map sends every vector to itself, so both axioms read as trivial identities. Linear.
These are the two ends of the spectrum: the zero map destroys everything (, image ), the identity destroys nothing (, image ). Every other linear map falls between them, and the rank-nullity theorem will say exactly how the ledger balances.□
Remark. A linear map between spaces of different dimensions can still be described by a formula with no matrices in sight. The map defined by raises degree, is linear by the same integral rules as above, and is the closest thing to an inverse of differentiation. We will meet it again when we compute kernels: is one-dimensional (the constants) while , so these two maps are very far from being inverse to each other.
6.2Geometry in the plane
Before coordinates take over, it is worth seeing what linear maps do. In the whole story can be read off the unit square with corners , , and . A linear map sends this square to the parallelogram spanned by and — a parallelogram, never anything else, because linearity forces to be the fourth corner.
Definition 6.9 (The standard basic plane maps). For an angle and a scalar, define the following linear operators on by their effect on :
- Rotation by counterclockwise: , .
- Reflection across the -axis: , .
- Orthogonal projection onto the -axis: , .
- Horizontal shear by : , .
- Scaling by : , .
Each of these is specified by only two vectors, and by the determination principle of the previous section that is enough to pin the map down everywhere. Written as matrices — columns being the images of and , a recipe justified in the next section — they are
The determinant of each says what happened to area (with a sign for orientation): , so a rotation preserves both area and orientation; , so a reflection preserves area and reverses orientation; , so a projection flattens the square to a segment of zero area; , so a shear slides the top edge sideways without changing area, exactly like pushing over a stack of paper.
Intuition. Take a sheet of graph paper and drive a pin through the origin. Every linear map of the plane is something you can do to that sheet while the pin stays put and the grid lines stay parallel and evenly spaced: spin it (rotation), flip it (reflection), stretch or squash it along the axes (scaling), slide the rows sideways by an amount proportional to height (shear), or collapse it onto a line (projection). What you may not do is bend it, tear it, or move the pin. "Grid lines stay parallel and evenly spaced, origin fixed" is the whole content of linearity in a picture.
Example 6.10 (The shear and the unit square). Apply the horizontal shear to the unit square. Where does each corner go, and what is the area of the image?
Solution. The corners are .
So the square becomes the parallelogram with those four corners: the bottom edge has not moved, the top edge has slid two units to the right. The base is still and the vertical height is still , so the area is still , matching .
Sanity check on the linearity of the picture: . ✓ The fourth corner was never free to choose.□
Example 6.11 (Rotation by an awkward angle). Find the image of under rotation by counterclockwise, and check that the length is unchanged.
Solution. With and ,
Check the length. The input has . The output has squared length
✓ The cross terms in cancelled, as they must for any rotation.□
Example 6.12 (Reflection across an arbitrary line through the origin). Find the images of and under reflection across the line , and across the line through the origin at angle to the -axis.
Solution. Reflecting across swaps the roles of the two coordinates, so and , giving the swap matrix .
For the general line at angle : a vector at angle reflects to one at angle with the same length. So (at angle ) goes to , and (at angle ) goes to angle , which is . Hence
Check at : , , giving the swap matrix again. ✓ And for every , confirming that a reflection always reverses orientation.□
Pitfall. A rotation by and a reflection across the line at angle both "move things by an angle", but they are structurally different: composing two rotations gives a rotation, while composing two reflections gives a rotation, not a reflection. Watch the determinant: can never be the determinant of a reflection, and a product of two 's is .
6.3The matrix of a map from to
The determination principle said a linear map is fixed by its values on a basis. In there is a preferred basis, the standard one, and writing those values as columns produces the matrix of the map.
Notation. denotes the -th standard basis vector of : a in position and zeros elsewhere. The standard basis is .
Theorem 6.13 (Existence and uniqueness of the standard matrix). Let be linear. Then there is exactly one matrix with
namely the matrix whose -th column is :
is called the standard matrix of .
Proof. Existence. Write , so that . By preservation of linear combinations,
The right-hand side is, by the column definition of matrix–vector multiplication, exactly for the displayed above.
Uniqueness. Suppose is any matrix with for all . Take : the product is the -th column of , so the -th column of equals , which is the -th column of . All columns agree, so .∎
The proof contains the whole method in one line: to find the matrix of , feed it the standard basis vectors one at a time and stack the answers as columns. No system to solve, no guessing.
Method 6.14 (Finding a standard matrix).
- Determine (the size of the input) and (the size of the output); the matrix will be .
- Compute , each a vector in .
- Write those vectors as the columns of , in order.
- Check by applying to a general and comparing with the formula for , or by testing one non-basis vector.
Intuition. A linear map is a machine, and the standard basis vectors are the pure test signals you can send through it. Send in a unit of pure , record the output; send in a unit of pure , record the output. Those recordings are the columns of the matrix, and because the machine is linear, any other input is just a recipe mixing the test signals — so the recordings tell you everything. Engineers call this an impulse response; linear algebra calls it a matrix.
Example 6.15 (From formula to matrix). Find the standard matrix of given by .
Solution. The matrix is . Feed in the basis vectors:
Stack as columns:
Check: . ✓ Notice the shortcut this reveals: when is given by linear formulas, the matrix is just the table of coefficients, one row per output component.□
Example 6.16 (From geometry to matrix). Let first reflect across the -axis and then rotate by counterclockwise. Find its standard matrix directly from images of basis vectors.
Solution. Track . Reflection across the -axis fixes it: still . Rotating by gives . So .
Track . Reflection sends it to . Rotating by counterclockwise gives . So .
Hence — the reflection across .
Sanity check by determinant: reflection has , rotation has , so the composite must have . Indeed , and a determinant of with is the signature of a reflection. ✓□
Example 6.17 (A map determined by non-standard data). A linear map satisfies and . Find and the standard matrix of .
Solution. and form a basis, so is determined. Write : then and , so , . Linearity gives
For the standard matrix we need and . Since ,
and since ,
So . Check against the first computation: . ✓□
The matrix form makes the two basic questions about a map — can I always solve , and is the solution unique? — into questions about columns.
Theorem 6.18 (Existence and uniqueness via columns). Let have standard matrix . Then:
- is onto if and only if the columns of span .
- is one-to-one if and only if the columns of are linearly independent.
Proof. (1) The image of is , and runs over exactly the span of the columns as varies. So the image equals precisely when that span is .
(2) Suppose the columns are independent. If then , i.e. , so independence forces every and . Conversely if the columns are dependent there are scalars , not all zero, with ; then and , so is not one-to-one.∎
Corollary 6.19 (Dimension obstructions). If then cannot be one-to-one. If it cannot be onto.
Proof. vectors in with are always dependent, so part (2) applies. And vectors span at most an -dimensional subspace, which cannot be all of when , so part (1) applies.∎
Pitfall. The matrix of a map is not the map. The formula is a statement about the standard basis; in another basis the same has a different matrix, as the later sections show. Sentences like "the determinant of " are legitimate only because the determinant happens to be the same for every such matrix — a fact that has to be proved, and is, under similarity invariants below.
6.4Kernel and image
Two subspaces measure a linear map. One lives in the domain and records what the map destroys; the other lives in the codomain and records what the map can reach.
Definition 6.20 (Kernel and image). For a linear map ,
The kernel is also called the null space, the image the range. When they are finite-dimensional we write and .
Theorem 6.21 (Kernel and image are subspaces). For any linear , is a subspace of and is a subspace of .
Proof. Kernel. It contains because , so it is nonempty. If and is a scalar, then
so . Closed under the one-line combination, hence a subspace.
Image. It contains . If and lie in the image and is a scalar, then
which is again an output of . Hence the image is closed and is a subspace.∎
Notice how little the proof used: only the two axioms. The same argument works for differentiation on and for a matrix, which is the payoff of stating the definition abstractly.
When , the kernel is the solution set of the homogeneous system and the image is the column space of . So the computational machinery is the one already built: row reduce, read the free variables for a kernel basis, and read the pivot columns of the original matrix for an image basis.
Proposition 6.22 (One-to-one means trivial kernel). A linear map is one-to-one if and only if .
Proof. () Suppose is one-to-one and . Then , and injectivity forces .
() Suppose and . Then , so , giving .∎
This is one of the genuine gifts of linearity. For a general function, checking injectivity means comparing every pair of inputs. For a linear map it is enough to examine one solution set — whether has any nonzero solution. The reason is that a linear map has a translation symmetry: the set of inputs sent to is either empty or a translate of the kernel, so all fibres are the same size.
Proposition 6.23 (The solution set of ). Let be linear and suppose . Then
Proof. If then , so the right side is contained in the left. Conversely, if then , so lies in the kernel and .∎
That is the "particular solution plus homogeneous solution" rule of differential equations and of linear systems, in its natural home.
Intuition. Picture as a camera photographing a room. The kernel is the direction of the lens: everything along that line lands on the same pixel, so depth information is destroyed. The image is the flat photograph — only what fits on the film can ever be an output. Asking "is one-to-one?" is asking whether the lens direction is trivial, i.e. whether anything is hidden behind anything else. Asking "is onto?" is asking whether every possible picture can actually be taken.
Example 6.24 (Kernel and image of a projection). Let be . Find , , and their dimensions.
Solution. forces and , with free. So , the -axis, of dimension .
Every output has last coordinate , and every such vector is achieved (take as input). So is the -plane, , of dimension .
Check: . ✓ is neither one-to-one (nontrivial kernel) nor onto (image is a plane, not all of ).□
Example 6.25 (Kernel and image from row reduction). Let and , a map . Find the rank and nullity, and a basis for each subspace.
Solution. Row reduce. and give
then gives
Pivots sit in columns and , so and a basis for the image is the corresponding columns of the original : and .
Free variables are and , so . From the reduced rows, and . Setting and gives the kernel basis and .
Check: ✓, and ✓.□
Example 6.26 (Kernel of differentiation). Let be . Find and and their dimensions.
Solution. exactly when is constant, so , dimension .
Differentiating gives , and by choosing freely every polynomial of degree at most arises. So , dimension .
Check: and ✓. is not one-to-one (constants collapse) and, as a map into , not onto ( is not a derivative of anything in ).□
Pitfall. For an image basis, take the pivot columns of the original matrix, not of its row-reduced form. Row operations preserve the dependence relations among columns, so they identify which columns to keep — but they change the columns themselves, and the row-reduced columns generally span a different subspace of .
6.5The rank-nullity theorem
Everything so far points at a conservation law: the domain has a fixed budget of dimensions, and each one is either destroyed by or shows up in the image. Here is the theorem and its proof.
Theorem 6.27 (Rank-nullity theorem). Let be finite-dimensional and let be linear. Then is finite-dimensional and
Proof. Let and let , which is at most because the kernel is a subspace of . Choose a basis of and extend it to a basis
of — the extension is possible because any independent set in a finite-dimensional space extends to a basis. We claim that
is a basis of ; since has elements, that proves , which is the theorem.
spans the image. Take any , say . Expand in the basis:
Apply . Each because the lie in the kernel, so
a combination of .
is independent. Suppose . By linearity,
so the vector lies in . But the form a basis of the kernel, so for some scalars . Rearranging,
This is a dependence relation among the vectors of a basis of , so every coefficient vanishes. In particular every , which is independence.∎
The proof is worth rereading because its mechanism is the theorem's meaning. The basis of splits into two halves: the part inside the kernel, which annihilates, and the complementary part, which carries faithfully onto a basis of the image. Nothing in the second half is lost, and nothing in the first half survives. So is not an accident of arithmetic — it is the statement that restricted to a complement of the kernel is a bijection onto the image.
Corollary 6.28 (Rank bounds). For linear with and , both finite,
Proof. since nullity is non-negative; and is a subspace of , so its dimension is at most .∎
Corollary 6.29 (Square maps: injective surjective). Let be finite-dimensional and linear. Then is one-to-one if and only if is onto.
Proof. Let . If is one-to-one then , so ; an -dimensional subspace of an -dimensional space is the whole space, so and is onto. Conversely if is onto then , so , the kernel is trivial and is one-to-one.∎
This dichotomy is special to equal (finite) dimensions. The shift map on infinite sequences, , is one-to-one and not onto, so finite-dimensionality is doing real work.
Intuition. A budget of dimensions goes into the map, and the map spends every one of them. Some are spent on collapse — the kernel directions, which arrive at zero. The rest are spent on output — directions that survive to span the image. Rank-nullity is the receipt: collapse plus output equals what you started with. You can trade the two against each other, but you cannot make the total go up, which is why a map from can never have a -dimensional image.
Example 6.30 (Nullity from rank alone). A linear map has rank . Find its nullity, and decide whether can be one-to-one or onto.
Solution. Rank-nullity: , so .
The nullity is nonzero, so is not one-to-one. (This was forced anyway: , so by the dimension obstruction no map is one-to-one.) The image has dimension , so is not onto either — though a different map could be onto, since rank is permitted by the rank bound.□
Example 6.31 (The rank of a product bounded). Let be with rank and let be with rank . What can you say about ?
Solution. Think of as the composite map .
Every output of is an output of , so and .
Also , and has dimension , so applying rank-nullity to restricted there gives . Combining, .
Here we can do better and pin it exactly: has rank and columns, so and is one-to-one; hence is a -dimensional subspace of . Whether kills part of it depends on , so in general can be anything from to here: 's kernel has dimension , and a -dimensional and a -dimensional subspace of must meet in dimension at least . So . The general fact worth remembering is .□
Example 6.32 (Rank-nullity on a polynomial space). Let be . Find the rank and nullity of .
Solution. , with basis .
Kernel: means for all , i.e. is constant. So and .
By rank-nullity, .
Check directly: fixes and kills , so the image is , the polynomials with zero constant term — dimension . ✓□
Pitfall. Rank-nullity is a statement about the domain, not the codomain: appears on the left, nowhere. A map still satisfies , so its rank is at most no matter how tall the matrix is.
6.6The matrix relative to two bases
The standard matrix handled with the standard bases. Abstract spaces have no standard basis, and even in a cleverly chosen basis often makes a map far easier to read. Both needs are met by the same construction, once coordinates are in place.
Definition 6.33 (Coordinate vector). Let be an ordered basis of . Every has a unique expansion , and the coordinate vector of relative to is
Uniqueness of the expansion is exactly what makes this well defined, and it is where the independence half of "basis" is used; the spanning half is what makes it defined at all.
Proposition 6.34 (Coordinates are linear). The map is a linear map , and it is one-to-one and onto.
Proof. If and , then , and by uniqueness those are its coordinates: . It is onto because any is the coordinate vector of , and one-to-one because means .∎
Definition 6.35 (Matrix of relative to bases and ). Let be linear, an ordered basis of and an ordered basis of with elements. The matrix of relative to and is the matrix
When and we write and call it the matrix of relative to .
Theorem 6.36 (The representation theorem). With the notation above, for every ,
and is the only matrix with this property.
Proof. Write , so . Then , and since taking -coordinates is linear,
which is the matrix with those columns applied to .
Uniqueness: if for all , take , whose coordinate vector is ; then column of is .∎
The recipe hidden in the definition has one extra step compared with the standard matrix, and it is the step everybody forgets.
Method 6.37 (Computing ).
- Apply to each vector of , in order. You now have vectors in .
- Express each result in the basis , i.e. solve for its -coordinates.
- Those coordinate vectors, in order, are the columns.
- Check on one vector: pick , compute directly, and compare its -coordinates with the matrix product.
Intuition. A matrix is a translation of a map into two languages at once: the input language and the output language . Column answers a single question — "if I hand you the -th input word, what does the answer sound like in the output language?" Change the output language and every column gets retranslated, even though the map has not moved an inch.
Example 6.38 (Differentiation as a matrix). Let be , with and . Find , and use it to differentiate .
Solution. Apply to each basis vector and read coordinates in :
Stacking as columns,
Now has , and
which decodes as . Check by calculus: . ✓
Note the shape: , because maps a -dimensional space to a -dimensional one. The column of zeros in position is the kernel showing itself — constants die.□
Example 6.39 (Two different bases on the same space). Let be . Take for the domain and for the codomain. Find .
Solution. Step 1: images of the vectors.
Step 2: -coordinates. Solve : the second coordinate gives , then so . Thus .
Solve : second coordinate gives , then so . Thus .
Step 3: assemble.
Step 4: check on . Its -coordinates solve , giving , , so . The matrix gives , which decodes as . Directly, . ✓□
Example 6.40 (A basis that diagonalises). With the same , compute where is used for both domain and codomain.
Solution. From the previous example, and . Their -coordinates are therefore and , so
Compare with the standard matrix . The same map, two matrices — and the second one tells you at a glance that stretches by along and by along . This is diagonalisation, seen from the transformation side; the basis vectors that make it work are eigenvectors.
Consistency: both matrices have trace and determinant . ✓ The next section explains why they must.□
Pitfall. Step 2 of the recipe is not optional. Writing itself as a column — instead of its -coordinates — gives the right answer only when is the standard basis. If and , the column is , not .
6.7Change of basis and similarity
One space, two bases: the same vector has two coordinate vectors and the same operator has two matrices. A single invertible matrix converts between them.
Definition 6.41 (Change-of-coordinates matrix). Let and be ordered bases of the same space . The change-of-coordinates matrix from to is
the matrix whose columns are the -coordinates of the vectors.
Note that : it is the matrix of the identity operator read in on the way in and on the way out. Every property below is therefore a special case of the representation theorem, which is a good reason not to treat change of basis as a separate topic.
Theorem 6.42 (Change of coordinates). For every ,
Moreover is invertible, with
Proof. The first identity is the representation theorem applied to , since .
For invertibility, apply the identity twice: for every ,
As ranges over , ranges over all of , so . Swapping the roles of and gives the product in the other order, so the two matrices are mutually inverse.∎
In there is a shortcut worth memorising. If is the standard basis, then , so
simply the basis vectors written as columns — no work at all. Getting into -coordinates is the harder direction and costs an inverse:
For two non-standard bases, route through the standard one: , the arrows chaining like function composition.
Intuition. A vector is a physical arrow; a coordinate vector is a measurement of that arrow against a chosen set of rulers. Change the rulers and the numbers change, though the arrow never moved. is the conversion table between two sets of rulers — like converting a distance from feet to metres. It must be invertible for the obvious reason: no information is lost in a change of units, so the conversion can always be undone.
Example 6.43 (Change of coordinates between two bases of ). Let and be bases of . Find , , and the -coordinates of .
Solution. is the standard basis, so , the vectors as columns.
Its determinant is , so
Then .
Check: . ✓□
Now the main event. If an operator has matrix in one basis, what is its matrix in another?
Theorem 6.44 (Change of basis for an operator). Let be linear, let and be bases of , and write . Then
Proof. Take any and chase coordinates. Starting from :
Composing the three steps, for every . By the uniqueness half of the representation theorem, must be .∎
Read the right-hand side from right to left, the direction a vector travels: converts -coordinates to -coordinates, does the work in the language it understands, and translates the answer back. That is the whole formula, and remembering the story stops you from putting the inverse on the wrong side.
Definition 6.45 (Similar matrices). Square matrices and of the same size are similar, written , if there exists an invertible with
Proposition 6.46 (Similarity is an equivalence relation). ; if then ; and if and then .
Proof. Reflexive: . Symmetric: if then , so via . Transitive: if and then , and is invertible.∎
Combining the change-of-basis theorem with this proposition gives the slogan: two matrices are similar exactly when they represent the same operator in two bases. Similarity classes are operators; individual matrices are operators plus an arbitrary choice.
That makes the following theorem the fundamental one of the chapter. Any quantity computed from a matrix that is the same for all similar matrices is really a property of the map.
Theorem 6.47 (Similarity invariants). Suppose . Then
- ;
- ;
- ;
- and have the same characteristic polynomial, hence the same eigenvalues with the same multiplicities;
- for every , and is invertible iff is.
Proof. (1) Determinants are multiplicative, and , so
(2) Use the cyclic property of the trace, , which holds because both sides equal . With and ,
(3) Multiplying by an invertible matrix does not change rank: is a bijection of , so , and being a bijection maps isomorphically onto , preserving dimension.
(4) Compute, using :
so by part (1) applied to the matrix ,
for every . The characteristic polynomials are identical, so the roots and their multiplicities agree.
(5) ; each interior cancels, leaving . Invertibility follows from (1): , so one is nonzero iff the other is.∎
Corollary 6.48 (Speaking of the determinant of an operator). For a linear operator on a finite-dimensional space, the quantities , , and the eigenvalues of are well defined: compute them from in any basis and the answer is the same.
Proof. Any two such matrices are similar by the change-of-basis theorem, and the four quantities are similarity invariants.∎
The invariants give a cheap and often decisive test for non-similarity: if two matrices disagree in trace, determinant, rank or characteristic polynomial, they are not similar and no search for can succeed. The converse fails — agreeing on all four is not enough.
Example 6.49 (Testing similarity with invariants). Are and similar? What about and ?
Solution. Compute invariants. , . , .
Determinants differ ( versus ), so .
For : matches, but . So either.
Remark on the limits of the test: and share trace , determinant , rank and characteristic polynomial , yet they are not similar — for every , so the only matrix similar to is itself.□
Example 6.50 (Building a similarity from a change of basis). Let with standard matrix , and let . Verify the change-of-basis formula gives .
Solution. Here is the standard basis, so , with and
First . Then
✓ This matches the direct computation done earlier, and it is exactly the diagonalisation read backwards.
Invariant check: and . ✓□
Example 6.51 (Powers via a friendly basis). Using the previous example, compute the entry of where .
Solution. From and we get , hence by part (5) of the invariants theorem. Now .
The middle product is , and multiplying on the right gives entry .
Sanity check: the entries of should be dominated by , and exceeds it by exactly . ✓□
Pitfall. and both define similarity (replace by ), so books differ. What matters is internal consistency with your definition of . Fix it by the story: turns new coordinates into old, so it acts first, on the right.
6.8Composition, inverses and isomorphism
Maps can be applied one after another, and the matrix side of that operation is already familiar.
Proposition 6.52 (A composite of linear maps is linear). If and are linear, so is .
Proof. For and a scalar ,
using linearity of inside and of outside.∎
Theorem 6.53 (Composition is matrix multiplication). Let and be linear, with ordered bases of , of and of . Then
Proof. For every , two applications of the representation theorem give
So the matrix represents relative to and ; by the uniqueness clause of the representation theorem it is .∎
This is the real reason matrix multiplication is defined by the strange row-times-column rule rather than entrywise: it is the rule that makes matrices compose the way functions do. Two consequences come free. Matrix multiplication is associative because composition of functions is associative. And matrix multiplication is not commutative because composition is not: rotating then reflecting is generally not the same as reflecting then rotating.
The inner basis appears twice in the formula, once as the output basis of and once as the input basis of . If they disagree, the product means nothing — which is the conceptual version of the rule that the inner dimensions must match.
Definition 6.54 (Invertible linear map, isomorphism). A linear map is invertible if there is a map with and . An invertible linear map is called an isomorphism, and and are isomorphic, written , if one exists.
Proposition 6.55 (The inverse of a linear map is linear). If is a linear bijection, then the set-theoretic inverse is linear, so is an isomorphism.
Proof. Let and let be a scalar. Put , so . By linearity of ,
Applying to both sides gives , which is exactly the one-line linearity condition for .∎
Theorem 6.56 (Criteria for invertibility of an operator). Let be finite-dimensional and linear, with matrix in some basis. The following are equivalent:
- is invertible;
- is one-to-one;
- is onto;
- ;
- ;
- ;
- is not an eigenvalue of .
Proof. (2) (4) is the trivial-kernel proposition, and (2) (3) is the square dichotomy from rank-nullity. (3) (5) since a subspace of has dimension iff it is all of . A map that is one-to-one and onto is a bijection, and its inverse is linear by the previous proposition, giving (2)+(3) (1); conversely an invertible map is a bijection, so (1) (2). For (6): is invertible as a matrix iff , and invertible corresponds to invertible because by the composition theorem applied to . Finally (7) (4), since is an eigenvalue exactly when has a nonzero solution.∎
Corollary 6.57 (Inverses and composites reverse order). If and are invertible linear maps and is defined, then is invertible and
Proof. Compute , and symmetrically in the other order.∎
Intuition. Socks then shoes. To undo the sequence you take the shoes off first: the last thing done is the first thing undone. In matrix form the same fact reads , and the reason is not an algebraic coincidence — it is what "undoing a sequence" means.
The isomorphism idea pays off immediately, because it says that in finite dimensions there is essentially only one vector space of each dimension.
Theorem 6.58 (Coordinates give an isomorphism). If with ordered basis , then is an isomorphism . Hence every -dimensional real vector space satisfies .
Proof. The coordinate map is linear, one-to-one and onto, as proved when coordinates were defined; by the previous proposition its inverse is linear.∎
Theorem 6.59 (Classification by dimension). Let and be finite-dimensional vector spaces over the same field. Then
Proof. () If , compose the isomorphisms and coming from bases of each; a composite of isomorphisms is an isomorphism, with inverse the composite of the inverses.
() Let be an isomorphism. Since is one-to-one, ; since it is onto, . Rank-nullity gives .∎
So , and are all the same space wearing different clothes: each is four-dimensional. Anything provable about using only the vector space operations transfers verbatim. This is precisely why it is legitimate to do all concrete computation in coordinates and still claim results about polynomials or matrices.
Example 6.60 (Composition two ways). Let be rotation by counterclockwise and reflection across the -axis. Compute the standard matrices of and and compare.
Solution. and .
They differ, so composition does not commute. Both have determinant and trace , as two reflections should: is reflection across and is reflection across .
Check the first on : rotate to , then reflect across the -axis to . And . ✓□
Example 6.61 (Inverting a map). Let . Show is invertible and find .
Solution. has , so is invertible.
Then .
Check: . ✓□
Example 6.62 (An isomorphism between unfamiliar spaces). Show that the space of symmetric real matrices is isomorphic to , and give the dimension of the space of symmetric matrices.
Solution. A symmetric matrix is , determined by the free entries . The map is linear (adding matrices adds the triples, scaling scales them), one-to-one (a zero triple gives the zero matrix) and onto (any triple is realised). So and .
For : a symmetric matrix is determined by the diagonal entries and the entries above the diagonal, so the dimension is , and the space is isomorphic to . In general an symmetric matrix has free entries; at this gives ✓ and at it gives ✓.□
Pitfall. A map can be one-to-one without being onto, or onto without being one-to-one, as soon as the domain and codomain have different dimensions. The equivalences in the invertibility theorem hold for operators with finite, and nowhere else. Differentiation is onto and not one-to-one; integration is one-to-one and not onto.
6.9The space of linear maps
Linear maps between two fixed spaces can themselves be added and scaled, and doing so produces another vector space — one whose dimension we can compute exactly.
Definition 6.63 (The space ). For vector spaces over the same field, let denote the set of all linear maps , with operations defined pointwise:
Write for .
Theorem 6.64 ( is a vector space). With those operations, is a vector space; its zero vector is the zero map.
Proof. First, the operations land inside the set: if are linear then
which is , so is linear; the same computation with a scalar shows is linear.
The eight vector space axioms then hold because they hold in pointwise. For instance associativity: , using associativity in . The additive identity is the zero map, which is linear, and the additive inverse of is .∎
Theorem 6.65 (Dimension of ). If and are finite, then
Proof. Fix ordered bases of and of , and consider
is linear: the -th column of is , since taking coordinates is linear — so , and likewise .
is one-to-one: if then for every , and a linear map vanishing on a basis is the zero map.
is onto: given any matrix , define on the basis by letting be the vector of whose -coordinates are column of , and extend by linearity — that is, set , which is well defined by uniqueness of coordinates and linear by construction. Then .
So , and because the matrices with a single and zeros elsewhere form a basis. By classification by dimension, .∎
Intuition. How much freedom is there in choosing a linear map? Exactly as much as choosing where the basis vectors go — and each destination is a free vector in an -dimensional space. So independent choices of numbers each: degrees of freedom. The theorem simply counts the knobs on the machine.
Example 6.66 (Counting the dimension of a space of maps). Find and .
Solution. (basis ) and , so .
, and means maps from that space to itself, so the dimension is .
Sanity check on the second: such an operator is represented by a matrix once a basis of is chosen, and matrices form a -dimensional space. ✓□
Example 6.67 (A subspace of a space of maps). Inside , let be the set of linear functionals with . Find .
Solution. : a linear functional is , determined by the triple .
The condition reads , one nontrivial linear equation on that triple. Consider the map , ; it is linear, and it is onto (the functional maps to ), so its rank is . By rank-nullity, .
Check: is spanned by the functionals and , which are independent — two elements, dimension . ✓□
Remark. When the space carries more than addition and scaling: composition makes it an algebra, matching matrix multiplication on . The invertible elements of form the general linear group , and the change-of-basis theorem says similarity is the action of that group on by conjugation. Classifying operators up to similarity — finding the simplest matrix in each class — is the goal that diagonalisation and the Jordan form answer.
Summary.
- A linear map is determined by its values on a basis; those values, written in coordinates, are the columns of its matrix , and .
- is a subspace of the domain, of the codomain, and .
- is one-to-one iff iff the columns are independent; onto iff the columns span the codomain. For an operator on a finite-dimensional space the two coincide.
- Composition corresponds to matrix multiplication; inversion reverses order.
- Changing basis conjugates: . Determinant, trace, rank, characteristic polynomial and eigenvalues survive, so they belong to the map.
- iff ; and .
- Testing only additivity, or only homogeneity with a positive scalar. The map survives every positive-scalar test and fails at .
- Concluding a map is linear because . That test can refute linearity, never confirm it: fixes the origin and is not linear.
- Calling with a linear transformation. It is affine; linear maps through the origin are .
- Forgetting step 2 when computing : the columns are the -coordinates of , not itself. The two agree only when is standard.
- Reading a basis for the image off the row-reduced matrix. Row reduction identifies which columns to take; take those columns from the original matrix.
- Applying rank-nullity with the dimension of the codomain on the left. The formula is about the domain: a map still has .
- Assuming injective and surjective are equivalent for any linear map. They are equivalent only for an operator on a finite-dimensional space.
- Putting the inverse on the wrong side in , or multiplying composite matrices in reading order. The map applied first sits nearest the vector, on the right.
- Treating the matrix as the transformation. Without a stated pair of bases, "the matrix of " is not defined.
- Concluding two matrices are similar because their traces and determinants agree. The invariants can only prove matrices different; and agree on every invariant listed and are not similar.
- Believing every linear operator is invertible. Projections, differentiation and any map with a nonzero kernel are not.