Matrices and Linear Systems: Coordinate Representations of Linear Maps and the Structure of Solutions
Prerequisite:Vector Spaces and Linear Maps: From the Eight Axioms to the Rank-Nullity Theorem
0. Key points
Section titled “0. Key points”- Once we fix one ordered basis in the domain and one in the codomain, linear maps between finite-dimensional vector spaces correspond bijectively to matrices. A matrix is the coordinate representation of a linear map; the array of numbers by itself carries no meaning.
- The matrix product is defined by the strange-looking rule “multiply a row by a column and add”. This rule is forced on us: it is exactly what appears when we compute the representation matrix of a composition. The product is associative because composition is.
- When the bases are changed, the representation matrix of the same linear map becomes . How complicated a matrix looks reflects the choice of basis, not a property of the map.
- A linear system translates into the question: “does lie in the image of the linear map , and if so, what is its preimage?”
- Gaussian elimination brings the coefficient matrix to reduced row echelon form using only operations that leave the solution set unchanged. The number of pivots that appear is the rank , and it equals the dimension of the image.
- The solution set is either empty or a translated subspace, “one particular solution + the kernel”, of dimension . Solvability is decided by .
1. Motivation: how does a table of numbers become an algebra?
Section titled “1. Motivation: how does a table of numbers become an algebra?”Linear systems are an old subject. Chapter 8, “Fangcheng”, of the Chinese Nine Chapters on the Mathematical Art (around the first century) describes laying out counting rods for the coefficients and subtracting one column from another to eliminate unknowns. This is essentially elimination. In the nineteenth century Gauss used the method systematically in the least-squares computations that arose from determining the orbits of asteroids. The idea of writing down only the coefficients and processing them mechanically is nearly two thousand years older than the word “matrix”.
What, then, did the notion of a matrix add? The word matrix was introduced by J. J. Sylvester in 1850, and in 1858 Cayley, in his “A Memoir on the Theory of Matrices”, treated matrices themselves as objects one adds and multiplies. The decisive step was the definition of the product. Cayley defined the product of matrices so that it corresponds to performing one linear substitution after another. At that moment a table of numbers was promoted from a mere storage place for coefficients to a mathematical object equipped with operations.
When one first meets matrices, it is usually the product that causes trouble. Addition is entrywise, so why is multiplication given by the convoluted expression
rather than entrywise as well? There is only one answer. Matrices exist in order to represent linear maps, and the product was defined in order to represent composition. The entrywise product (the Hadamard product) can certainly be defined, but it does not correspond to composition. The demand that the correspondence be compatible with composition forces that sum upon us.
In this article we first build that correspondence, the representation matrix. A matrix is the face a linear map shows once a basis is fixed, and changing the basis changes the face. From this point of view, becomes a geometric problem: find the preimage of under the linear map . The classification into zero, one, or infinitely many solutions is then settled all at once in the language of two subspaces, the image and the kernel.
2. Preliminaries: bases, coordinates, and linear maps
Section titled “2. Preliminaries: bases, coordinates, and linear maps”Throughout, denotes a field, and the reader may safely take or . Vector spaces, linear independence, bases, dimension, linear maps, kernels and images were treated in Vector Spaces and Linear Transformations (linear independence, spanning sets, and bases(Definition 5.1)[Vector Spaces and Linear Maps], kernel and image(Definition 7.1)[Vector Spaces and Linear Maps]). Here we record, with proofs, two facts that will be used repeatedly.
Let be a vector space over and a basis of ; since the order matters for us, we call it an ordered basis. We write for the set of all matrices, for the square matrices of size , and for the identity matrix of size . Elements of are treated as column vectors, and the transpose is written .
Proposition 2.1(The coordinate isomorphism, and determination of a linear map by a basis)
Let be an -dimensional vector space over and an ordered basis of .
- For each the coefficients in an expression are uniquely determined, and the map
is a linear isomorphism. We call it the coordinate isomorphism with respect to . 2. Let be an arbitrary vector space over and let be arbitrary elements. Then there is exactly one linear map with .
Proof(Proposition 2.1)
- Since spans , at least one expression exists. If , then , and since is linearly independent we get for every ; the expression is therefore unique. Hence is well defined.
We check linearity. Let , and . The vector space axioms give , and by uniqueness these are the coordinates of . Hence .
Surjectivity follows because is a preimage of . Injectivity follows because forces , and a linear map with kernel is injective.
- Existence: using the uniqueness in part 1, define . Since coordinates are unique, there is no ambiguity in this definition. Linearity is the same computation as in part 1. The coordinates of have in the -th slot and elsewhere, so .
Uniqueness: if is also linear with , then for any linearity of gives , so .
Part 2 of Proposition 2.1 should be read as: “a linear map is determined by where it sends the basis vectors, and those destinations may be prescribed freely”. A map that ought to require specifying values at infinitely many points is pinned down by pieces of data. This is precisely why a map can be described by the finite data of a matrix.
3. The representation matrix: translating a linear map into a table of numbers
Section titled “3. The representation matrix: translating a linear map into a table of numbers”Definition 3.1(Representation matrix)
Let be an -dimensional and an -dimensional vector space over , let be an ordered basis of and an ordered basis of . For a linear map and each , let be the coefficients obtained by expanding in , that is,
Then is called the representation matrix of with respect to the bases , and is denoted .
Note the indices. The second index of records which basis vector was mapped, and the first index records which component of the destination is meant. In other words,
so the columns of a representation matrix list the destinations of the basis vectors. Whenever you see a matrix, read its columns one at a time as “the vector this one goes to”.
Theorem 3.2(The correspondence between linear maps and matrices)
Let be as in Definition 3.1, with and . For and , define by
Then the following hold.
- If , then for all .
- The map , , is a linear isomorphism. Here denotes the vector space of all linear maps from to .
In particular .
Proof(Theorem 3.2)
- Take and write , that is, . Linearity of together with Definition 3.1 gives
The last equality is an interchange of the order of summation in a finite sum. By part 1 of Proposition 2.1 the coordinates with respect to are unique, so the -th coordinate of is , which is the assertion.
Observe that the definition of is nothing but a transcription of this computation. The product of a matrix and a vector is not an arbitrary rule handed down from above: it is the linear map written in coordinates.
- Linearity: for and we have , and the coefficients obtained by expanding the right-hand side in are the sum of the respective coefficients and times them (by the linearity in part 1 of Proposition 2.1). Hence .
Injectivity: if (the zero matrix), then for every . The zero map satisfies the same condition, so the uniqueness in part 2 of Proposition 2.1 forces . A linear map with kernel is injective.
Surjectivity: take any and put . By part 2 of Proposition 2.1 there is a linear map with , and its representation matrix is exactly .
Finally (the matrices having exactly one entry equal to form a basis), so the isomorphism gives .
Part 1 of Theorem 3.2 asserts that the following diagram commutes, that is, “going along the top and going along the bottom give the same result”. Replacing by via the coordinate isomorphisms turns the abstract map into multiplication by a matrix.
flowchart LR V["V (basis B)"] -->|"f"| W["W (basis C)"] V -->|"coordinate iso φ_B"| Kn["K^n"] W -->|"coordinate iso φ_C"| Km["K^m"] Kn -->|"x ↦ Ax"| Km
Example 3.3(Rotation of the plane)
Let , let be the standard basis, and let be the rotation about the origin through the angle . To find the representation matrix it suffices to see where the basis vectors go. The vector is the point of the unit circle at angle , so after the rotation it becomes the point at angle , namely . The vector is the point at angle , so it becomes the point at angle , namely . Placing these in the columns,
What deserves to be memorised is not the matrix but the reading: “the first column is the image of ”.
Example 3.4(Differentiation of polynomials is a matrix)
Let be the space of real polynomials of degree at most . Take as a basis of and as a basis of , and consider the differentiation map , . That is linear is exactly the linearity of differentiation. The basis vectors go to
so converting these to coordinates with respect to and placing them in the columns gives
Let us check this. The coordinates of are , and
which represents . On the other hand , so the two agree. Differentiation, an infinitesimal operation, becomes a table of numbers as soon as we choose bases. Matrices are not merely a tool for numerical computation; they are the common language of all linear operations.
4. The matrix product: representing composition
Section titled “4. The matrix product: representing composition”Let us compute, in the language of representation matrices, what happens when two linear maps are applied one after the other. This is where the definition of the product comes from.
Let be vector spaces over of dimensions respectively, with ordered bases , and . Let and be linear maps with representation matrices and . The composite is again linear and so has a representation matrix. Let us find it: following Definition 3.1, we compute the destinations of the basis vectors.
The third equality used the linearity of . The upshot is that the entry of the representation matrix of is . If we call this expression the “product”, the correspondence with representation matrices becomes compatible with composition.
Definition 4.1(Matrix product)
Let and . When the number of columns of and the number of rows of agree, both being , the product is defined by
The case is the matrix-vector product of Theorem 3.2. The definition also shows that the -th column of equals , since the -th entry of either side is . This “column by column” property will be used later.
Theorem 4.2(The product represents the composition)
With the notation above,
holds.
Proof(Theorem 4.2)
The computation carried out above is already the proof. We found , and by part 1 of Proposition 2.1 the coefficients with respect to are uniquely determined, so the entry of is . By Definition 4.1 this equals .
Whatever is awkward about the matrix product is inherited from what is awkward about composing maps. In exchange, properties of maps translate directly into properties of matrices. The following corollary is the typical example: it can be proved without any computation with entries.
Corollary 4.3(Associativity of the product)
For , and we have .
Proof(Corollary 4.3)
To a matrix associate the linear map , . The representation matrix of with respect to the standard bases of and is itself: indeed, for a standard basis vector the -th entry of is , that is, is the -th column of .
Applying Theorem 4.2 twice, is the representation matrix of and is that of . But composition of maps is associative, and both are the same map . Since the representation matrix is uniquely determined by the map (injectivity in part 2 of Theorem 3.2), we conclude .
Example 4.4(Composing rotations and the addition formulas)
For the rotation matrices of Example 3.3, the identity is geometrically obvious: rotating by and then by is the same as rotating by . By Theorem 4.2 the same identity must hold on the side of representation matrices. Computing the left-hand side according to Definition 4.1,
The right-hand side is , the matrix whose entry is and whose entry is . Comparing entries,
The addition formulas are nothing other than “composition of rotations” written in coordinates.
Remark 4.5(Why the product is not commutative)
Unlike multiplication of real numbers, the matrix product generally satisfies . This too can be seen geometrically. Let be the rotation by and the reflection in the -axis. Then
(for instance and ). Here is the reflection in the line and the reflection in the line , which are different transformations. Just as turning a book cover-up and then rotating it to the right gives a different result from doing the two in the opposite order, non-commutativity reflects the fact that transformations depend on the order in which they are applied.
5. Changing the basis
Section titled “5. Changing the basis”The same linear map has different representation matrices for different bases. Leaving this point vague makes the meaning of diagonalisation incomprehensible later on. We first express the change of basis itself by a matrix.
Definition 5.1(Change-of-basis matrix)
Let be an -dimensional vector space over and let and be two ordered bases of . Expanding each in ,
the matrix is called the change-of-basis matrix from to . By definition .
Since is the representation matrix of the identity map, applying part 1 of Theorem 3.2 to gives, for every ,
Thus is the transformation that “takes new coordinates in and gives old coordinates out”. The change of bases and the change of coordinates run in opposite directions, which is a common source of confusion.
Theorem 5.2(Transformation rule for representation matrices)
Let be a linear map. Take two ordered bases of and two ordered bases of , and let and be the change-of-basis matrices. Then and are invertible and
holds.
Proof(Theorem 5.2)
First, . Indeed , so the coefficients in Definition 3.1 are (equal to when and otherwise).
Put . Applying Theorem 4.2 to ,
and similarly . Hence is invertible with . The same argument applies to .
Next write and use Theorem 4.2 twice:
In the last equality we used the identity just established.
Remark 5.3(Similarity: another face of the same map)
When and the same basis is used in the domain and the codomain (, ), we have and the transformation rule takes the form
Two square matrices related in this way are called similar (definition of similarity(Definition 2.1)[対角化とジョルダン標準形]). Similar matrices are “the same linear transformation viewed from different bases”. Consequently, any quantity invariant under similarity (the determinant, the trace, the eigenvalues, the rank, and so on in later chapters) is a property of the map itself, while any quantity that is not is an apparent property depending on the choice of basis. When working with a matrix, keep asking: is this a property of the map, or a property of the coordinates?
Example 5.4(A projection: diagonal in a good basis)
In , consider the projection onto the line (with ) along the line (with ). Since and are orthogonal, hence linearly independent, is a basis. By definition satisfies and , and by part 2 of Proposition 2.1 these two conditions determine uniquely. The representation matrix with respect to is obtained just by listing the destinations of the basis vectors:
The essence of a projection (keep one direction, crush the other) is visible at a glance.
What, then, is the representation matrix with respect to the standard basis ? The change-of-basis matrix has the standard coordinates of the new basis vectors as its columns:
(the identity is verified by direct computation). Solving the formula of Remark 5.3 for gives , so
Let us verify. We get and , so this is indeed the representation matrix of .
The same map became in a good basis and a matrix full of fractions in the standard basis. The matrix is not complicated; the basis simply does not fit the map. Searching for a basis that fits the map is the subject of Eigenvalues and Eigenvectors and Diagonalization and Jordan Normal Form.
6. Reading a linear system as Ax = b
Section titled “6. Reading a linear system as Ax = b”A system of linear equations in unknowns,
can be written on one line as , using the matrix-vector product introduced in Theorem 3.2, where , and . We call the coefficient matrix, and the matrix obtained by appending the column to the right of the augmented matrix.
There are three ways to read this single line, and we switch between them according to the situation.
| Reading | How the equation is seen | Geometric meaning |
|---|---|---|
| By rows | each row is one equation | find the intersection of hyperplanes in |
| By columns | (where is the -th column of ) | can be written as a linear combination of the columns? |
| By maps | with | find the preimage under the linear map |
The “intersection of two lines” familiar from school is the reading by rows, but the last two are the powerful ones in theory. That the reading by columns is correct follows from the definition of the product: the -th entry of is the same as the -th entry of . In other words
holds for every . The product of a matrix and a vector is a linear combination of the columns. This single sentence is worth remembering.
In Vector Spaces and Linear Transformations we defined the kernel and image of a linear map. For a matrix we simply call the kernel and image of the linear map the kernel and image of , and write
Both are subspaces (this is the special case of the basic properties of kernel and image(Proposition 7.2)[Vector Spaces and Linear Maps]). From the expression as a linear combination shown above,
that is, the image coincides with the subspace spanned by the columns of (the column space). In this language the question of solvability reduces to the single question “is ?”.
Proposition 6.1(Structure of the solution set)
Let and , and put .
- If , then .
- If some exists, then .
Proof(Proposition 6.1)
-
This is the definition of itself: if , then for an element of we get .
-
We first show . For , linearity of gives
so .
Next we show . Let and put . By linearity , so and .
Proposition 6.1 anticipates most of the theory. Unless it is empty, the solution set of an inhomogeneous system is the solution set of the homogeneous system (the kernel) translated by one particular solution. The kernel is a subspace through the origin, and the solution set is its translate (an affine subspace).
In the situation drawn, , so the solutions have one dimension of freedom. If the kernel is just there is at most one solution; if the kernel has positive dimension and there is at least one solution, then there are infinitely many (when is an infinite field). The school fact that “there are either zero, one, or infinitely many solutions” has been reduced to a question about the dimension of the kernel. What remains is a means of computing that dimension, namely Gaussian elimination.
7. Gaussian elimination
Section titled “7. Gaussian elimination”When solving a system of equations we multiply one equation by a constant and add it to another, or swap two equations. These operations are permitted because they do not change the solution set. Formulating the same operations as operations on the rows of the augmented matrix, and pushing them as far as they will go, gives the elimination method.
Definition 7.1(Elementary row operations and row equivalence)
The following three kinds of operations on a matrix are called elementary row operations.
- (Type I) Interchange the -th and -th rows ().
- (Type II) Multiply the -th row by .
- (Type III) Add times the -th row to the -th row (, ).
If is obtained from by finitely many elementary row operations, then and are said to be row equivalent.
Lemma 7.2(Three properties of elementary row operations)
Let and write for the matrix obtained by applying one elementary row operation to .
- Put , the matrix obtained by applying the same operation to the identity matrix; it is called an elementary matrix. Then for every .
- is invertible and its inverse is again an elementary matrix. Consequently, row equivalent matrices are carried into one another by left multiplication by an invertible matrix.
- If is row equivalent to , then and have the same solution set.
Proof(Lemma 7.2)
- The key is the following observation. For any and , Definition 4.1 gives , hence
That is, multiplying on the left replaces each row by a linear combination of the original rows, with the coefficients written in the rows of the left factor. It only remains to read off the rows of for each of the three types.
For Type I, the -th row of is the -th row of (only the -th entry is ), so the -th row of is the -th row of , the -th row is the -th row of , and the others are unchanged. For Type II, the -th row has in the -th slot, so the -th row of is times the -th row of . For Type III, the -th row has in the -th slot and in the -th slot, so the -th row of is (the -th row of ) (the -th row of ). In each case the assertion holds.
- Every elementary row operation has an inverse of the same type: the inverse of Type I is the same interchange, the inverse of Type II (multiplication by ) is multiplication by (possible since ), and the inverse of Type III (adding times the -th row) is adding times the -th row. Calling this inverse operation and putting , part 1 gives
(applying to and then returns it to its original state). Similarly , so is invertible with . If two matrices are row equivalent we may write , and a product of invertible matrices is invertible (), which gives the second statement.
- It suffices to treat a single elementary row operation (finitely many repetitions follow by induction). By the remark made just after Definition 4.1, that the -th column of a product is the left factor times the -th column of the right factor, we have , so and with . If , multiplying both sides on the left by gives . Conversely, if , then by the invertibility established in part 2 we may multiply both sides by to get . Hence the solution sets coincide.
Part 3 is exactly the justification of the elimination method. However far we transform, the solution set does not move. Then we may as well transform all the way to a form from which the answer can be read off, which is what the next definition and theorem provide.
Definition 7.3(Row echelon form and reduced row echelon form)
A matrix is said to be in (row) echelon form if it satisfies the following two conditions.
- Every nonzero row lies above every zero row.
- For each nonzero row, the column index of the leftmost nonzero entry (called the leading entry, or pivot, of that row) increases strictly as one moves down the rows.
If in addition the following two conditions hold, is said to be in reduced row echelon form.
- Every pivot is equal to .
- In a column containing a pivot, all entries other than that pivot are .
Theorem 7.4(Gauss–Jordan elimination)
Every can be brought to reduced row echelon form by finitely many elementary row operations. Moreover, the reduced row echelon form row equivalent to is unique.
Proof(Theorem 7.4)
We prove existence here by an explicit procedure, Gauss–Jordan elimination. The proof of uniqueness is deferred to the Appendix.
Introduce a variable recording the working row, starting at . For the columns in order, carry out the following.
- If , stop.
- If all entries of the -th column from the -th row down are , do nothing and move to the next column.
- Otherwise, choose some with and interchange the -th and -th rows (Type I). Next multiply the -th row by so that the entry becomes (Type II). Then, from every row , subtract times the -th row (Type III). Now the -th column has in the entry and elsewhere. Increase by and move to the next column.
Each column is processed at most once, so there are at most stages, each consisting of at most elementary row operations.
Let us check that the output is in reduced row echelon form. Every time a pivot is set, both and increase strictly, so the column indices of the pivots increase strictly as one moves down (condition 2). What matters here is that when a pivot is set in the -th column, the entries of the -th row are all : had any of them been nonzero, a pivot would already have been set when that column was processed. Consequently, adding a multiple of the -th row to another row in Type III does not destroy the part already arranged on the left. At termination the rows carrying pivots are lined up at the top and the rest are zero rows, giving condition 1; the normalisation gives condition 3; and the elimination gives condition 4.
Remark 7.5(Where the uniqueness proof is)
The uniqueness in Theorem 7.4 is proved in the Appendix of this article. However, all that is needed in the next section, where rank is treated, is that the number of pivots is independent of how the elimination is carried out, and this is proved independently in Theorem 8.2 without using uniqueness.
Example 7.6(Elimination in practice)
Let us solve the following linear system.
The augmented matrix is as follows.
The pivot in the first column is the entry in position . Subtract twice the first row from the second row, and add the first row to the third row (Type III twice).
In the second column everything from the second row down is , so we skip it without setting a pivot. Moving to the third column and taking the entry in position as pivot, subtract the second row from the third row and add the second row to the first row.
This is in reduced row echelon form. The pivots lie in the first and third columns, so their number is . The variables corresponding to the pivot columns are called dependent variables, and the remaining are called free variables. By part 3 of Lemma 7.2, the system represented by this matrix,
has the same solution set as the original one. Putting and we get and , so
is the set of all solutions. Let us verify. Substituting into the three original equations gives , , . For we get , , , and for we get , , , so both belong to the kernel.
In the language of Proposition 6.1, is a particular solution, is the kernel, and the solution set is a two-dimensional affine subspace of . The number of free variables is the dimension of the kernel, and the number of pivots is the rank defined in the next section.
8. Rank and the structure of the solution set
Section titled “8. Rank and the structure of the solution set”In the example of the previous section, the number of pivots was , the number of free variables was , and . The goal of this section is to show that this is no accident. We first define the rank in a way that does not refer to any computational procedure.
Definition 8.1(Rank)
For , the rank of is defined as the dimension of the image,
(where is the -th column of ). The subspace of spanned by the row vectors of is called the row space and is written .
Why take the dimension of the image, rather than the number of pivots, as the definition? Because it is a definition that refers to no computational procedure, and because its geometric meaning is transparent. The map sends into an -dimensional subspace of . The smaller the rank, the more strongly the map crushes space, and may be read as the dimension of the information that survives passage through . In what follows we write for the standard basis of .
Theorem 8.2(Rank equals the number of pivots and equals the row rank)
Let , let be a reduced row echelon form row equivalent to , and let be its number of pivots. Then
In particular does not depend on how the elimination is carried out, and the dimension of the span of the columns (the column rank) equals the dimension of the span of the rows (the row rank).
Proof(Theorem 8.2)
By part 2 of Lemma 7.2 there is an invertible matrix with .
Step 1 (the rank of ). Let the pivots of be in positions with . By conditions 3 and 4 of Definition 7.3, the -th column of is exactly . Moreover the rows from the -st down are zero rows, so every column of has zero entries from the -st slot down and can be written as a linear combination of . Hence , and since are linearly independent, .
Step 2 (multiplying by an invertible matrix does not change the rank). We have . The map is a linear isomorphism with inverse , and isomorphisms preserve dimensions of subspaces. Indeed, if is a basis of , then span (because ) and are linearly independent (if then , and since is injective , whence by linear independence of the basis). Therefore . That does not depend on the elimination follows because is a quantity determined by alone.
Step 3 (the row space). By part 1 of Lemma 7.2, each row of is a linear combination of the rows of , so . Since is invertible and , the same argument applied to gives , so equality holds. Repeating this we obtain .
Let be the nonzero rows of . Zero rows contribute nothing to a sum, so these span . We check linear independence. Suppose and take the -th entry of this identity (for any between and ). As we saw in Step 1, the -th column of is , so the -th entry of is when and otherwise. Hence the -th entry equals , and follows for every . Therefore .
The equality of row rank and column rank is, on reflection, a surprising assertion. The columns of are vectors in and its rows are vectors in ; they live in different spaces. Nevertheless the dimensions of the spaces they span always agree. What connects them is a common intermediary: the number of pivots of the reduced row echelon form.
Theorem 8.3(Rank–nullity theorem)
For ,
Proof(Theorem 8.3)
Let be a reduced row echelon form row equivalent to , let the pivot column indices be , and let be the set of the remaining column indices (the index set of the free variables), so that . By Theorem 8.2 we have , so it suffices to prove .
First, . This follows by applying part 3 of Lemma 7.2 with (elementary row operations leave as ).
Next consider the projection , , which extracts only the components of the free variables, restricted to . As the restriction of a linear map, is linear. We show that it is an isomorphism.
By conditions 3 and 4 of Definition 7.3, the equation determined by the -th row of (for ) has the form
(entries to the left of vanish by the echelon condition, and entries in the other pivot columns vanish by condition 4). Rows from the -st down are zero rows and impose no condition.
Injectivity: if satisfies , that is, all components of the free variables are , then the displayed equation gives for every , so .
Surjectivity: take any and define by for and . Then every row equation of is satisfied, so and .
Hence and .
The rank–nullity theorem can be read as “what is crushed plus what survives equals the original dimension” (it is the restatement in matrix language of the rank–nullity theorem(Theorem 7.3)[Vector Spaces and Linear Maps] for abstract vector spaces). The map crushes a -dimensional part of to the origin and maps the rest faithfully onto the image. In Example 7.6 we had , and two free variables, so .
Theorem 8.4(Solvability criterion and the number of solutions)
Let and .
- The system has a solution if and only if . When it has no solution, .
- When a solution exists, the solution set is the affine subspace of dimension . In particular the solution is unique if and only if .
- A solution exists for every if and only if .
Proof(Theorem 8.4)
- By definition, has a solution if and only if . On the other hand the columns of are , so by Definition 8.1 we have , the space spanned by together with .
If , adjoining does not enlarge the span, so and the two dimensions are equal.
If , then adjoining to a basis of (where ) yields a linearly independent family. Indeed, if with , then , contradicting the assumption; hence , and then by linear independence of the basis. These vectors span , so .
Thus the case of having a solution and the case of equal ranks correspond exactly.
-
The first statement follows from part 2 of Proposition 6.1 together with Theorem 8.3. Uniqueness of the solution is equivalent to , that is, , which by Theorem 8.3 is equivalent to .
-
Having a solution for every is equivalent to . Since , this is equivalent to . Indeed, a subspace of equal dimension coincides with the whole space: a basis of is a linearly independent family of vectors in , and in an -dimensional space such a family is itself a basis.
Let us summarise Theorem 8.4 in a table. In practice the test costs nothing extra: reducing the augmented matrix to reduced row echelon form once lets us read off and simultaneously.
| Comparison of ranks | Behaviour of the solutions |
|---|---|
| no solution (inconsistent) | |
| exactly one solution | |
| the solutions have degrees of freedom |
Example 8.5(An inconsistent system)
Keep the coefficient matrix of Example 7.6 and change only the right-hand side to . Eliminating by the same steps,
The last row is the equation , which no satisfies. In terms of rank, the part has two pivots, so , while the augmented matrix has three pivots, in columns 1, 3 and 5, so . As part 1 of Theorem 8.4 predicts, the ranks disagree and there is no solution.
Geometrically, lies off the column space , a two-dimensional plane in . The vector lies on this plane, while lies slightly off it. Solvability is decided by nothing more than whether the right-hand side sits on the plane.
Remark 8.6(More unknowns than equations)
If , the homogeneous system always has a nontrivial solution. Indeed gives , so Theorem 8.3 yields
and the kernel is larger than . The intuition that “more unknowns than equations leaves the solution undetermined” has been stated precisely as an inequality between dimensions.
Remark 8.7(A caution for numerical computation)
In theory any nonzero pivot may be chosen, but in floating-point arithmetic the choice affects the result. For instance, in
choosing the entry as pivot forces us to subtract times the first row from the second, and as soon as and are evaluated in double precision the low-order information is lost and the answer goes badly wrong. Interchanging rows so as to take the entry of largest absolute value as pivot (partial pivoting) avoids this. Practical implementations use LU decomposition with this safeguard built in; for a square matrix of size the operation count is roughly multiplications and divisions (Golub–Van Loan).
Remark 8.8(Connections with data science)
In the analysis of real data, overdetermined systems with more equations than unknowns () are the rule. There is no guarantee that lies in the column space, so in the sense of Theorem 8.4 such a system usually has “no solution”. One therefore looks for the minimising the residual , which is the method of least squares; it amounts to orthogonally projecting onto the column space. Since lengths and orthogonality are needed, the stage shifts to Inner Product Spaces and Gram–Schmidt Orthogonalisation (least squares: fitting a line(Example 7.5)[内積空間とグラム・シュミット直交化]).
For a data matrix whose rows are samples and from which the mean of each feature has been subtracted, is the dimension of the effective spread of the data. Principal component analysis is the procedure of choosing an orthonormal basis diagonalising the covariance matrix , so the slogan of Example 5.4, “in a basis fitted to the map the matrix becomes diagonal”, appears directly as an application. The supporting theory is in Eigenvalues and Eigenvectors and The Spectral Theorem (that a symmetric matrix can be diagonalised in an orthonormal basis is guaranteed by orthogonal diagonalisation of real symmetric matrices(Corollary 4.3)[スペクトル定理]), and the tool for deciding invertibility by a single number is in the next chapter, Determinants and Their Properties, in the criterion for invertibility(Theorem 7.1)[Determinants and Their Properties].
9. Exercises
Section titled “9. Exercises”Exercise 9.1Easy
Let be the space of real polynomials of degree at most with basis , and define a linear map by .
- Find the representation matrix of with respect to .
- Compute and verify that it is the representation matrix of .
Solution
- Following Definition 3.1, expand the destinations of the basis vectors in :
Placing the coefficients in the columns,
- Compute according to Definition 4.1. The first row is against each column, giving ; the second row is against each column, giving ; the third row is against each column, giving . Hence
On the other hand satisfies , so the basis vectors go to , , . Placing these in the columns reproduces the matrix above, exactly as Theorem 4.2 asserts.
Exercise 9.2Standard
A linear transformation of satisfies
Put , , , and let be the standard basis.
- Find .
- Find and verify that , where is the change-of-basis matrix from to .
Solution
Since are linearly independent (neither is a scalar multiple of the other), is a basis, and by part 2 of Proposition 2.1 the two given conditions determine uniquely.
- Expand the destinations in . Writing gives and , so , . Writing gives and , so , . Hence
- Since and , linearity gives
Hence .
The change-of-basis matrix has the standard coordinates of as its columns, , and gives . Computing explicitly,
which agrees with the found in part 1. This confirms Theorem 5.2.
Exercise 9.3Standard
Consider the linear system with real constants ,
Determine the ranks of the coefficient matrix and of the augmented matrix, distinguishing cases according to and , and classify the number of solutions. Where solutions exist, write them explicitly.
Solution
Apply elementary row operations to the augmented matrix: subtract the first row from the second, and the first row from the third.
In the last step twice the second row was subtracted from the third. By part 3 of Lemma 7.2, the solution set has not changed.
(i) . A pivot appears at position , so , and by part 2 of Theorem 8.4 there is exactly one solution. Solving from the bottom up, , , and , so
For instance gives , and indeed , , , so all three equations hold.
(ii) and . The third row is with , so and . By part 1 of Theorem 8.4 there is no solution.
(iii) and . The third row is a zero row, so and the solutions have degree of freedom. Taking as the free variable, and , so
Checking in the third equation, , as required. Here is a particular solution and is the kernel, exactly the shape given by Proposition 6.1.
Exercise 9.4Hard
Let and . Prove
and give an example in which equality fails.
Solution
. For any we have (by the associativity of Corollary 4.3, or from the definition of the product with regarded as a one-column matrix). Hence , and an inclusion of subspaces gives an inequality of dimensions, so .
. If then , so and therefore . Both and have columns, so applying Theorem 8.3 to each gives
An example where equality fails. Take and . Then (both column spaces are ), but , so . The image of is contained in the kernel of , so everything is crushed at the second stage.
References
Section titled “References”- M. Saito, Senkei Daisu Nyumon (Introduction to Linear Algebra), University of Tokyo Press, 1966 (in Japanese) — Chapters 1 and 2. A careful treatment of linear systems and elementary matrix operations in the standard Japanese style.
- I. Satake, Senkei Daisugaku (Linear Algebra), Shokabo, 1958 (reissued 2015) (in Japanese) — Chapters I and II. The standpoint of treating matrices as representations of linear maps is made explicit.
- S. Axler, Linear Algebra Done Right, 4th ed., Springer, 2024 — Chapter 3 (Linear Maps). Built up from linear maps without using determinants, which makes the roles of representation matrices and of the rank–nullity theorem especially clear. An open-access edition is available at linear.axler.net.
- G. Strang, Introduction to Linear Algebra, 5th ed., Wellesley-Cambridge Press, 2016 — Chapters 2 and 3. Rich in the “read it by columns” viewpoint and in the discussion of the four fundamental subspaces. The lectures are available at MIT OpenCourseWare 18.06.
- G. H. Golub and C. F. Van Loan, Matrix Computations, 4th ed., Johns Hopkins University Press, 2013 — Chapter 3 (General Linear Systems). Pivoting strategies, numerical stability and operation counts are discussed here in detail.
- A. Cayley, “A Memoir on the Theory of Matrices”, Philosophical Transactions of the Royal Society of London 148 (1858), 17–37. The original paper defining the matrix product as the composition of linear substitutions.
Appendix: Uniqueness of the reduced row echelon form
Section titled “Appendix: Uniqueness of the reduced row echelon form”We now prove the part of Theorem 7.4 left open, namely uniqueness. The claim is that the reduced row echelon form row equivalent to is unique. There is freedom in which rows are chosen during the elimination and in what order the columns are cleared, but the final form is determined by alone.
Strategy. Let and both be reduced row echelon forms row equivalent to . By part 3 of Lemma 7.2 (with ) we have . So it suffices to show that a matrix in reduced row echelon form can be reconstructed from its kernel alone, and then follows. Below we write , let be the pivot columns of , and let be the index set of the free variables.
Step 1: the positions of the pivot columns are determined by the kernel. The -th column fails to be a pivot column if and only if there exists with whose entries from the -st on are all .
Indeed, if , then the vector obtained by the surjectivity construction in the proof of Theorem 8.3, prescribing and for all other free variables, satisfies this condition. The entries to the right of vanish: those belonging to free variables are prescribed to be , and for a pivot variable with the row equation has all the free variables on its right-hand side equal to , so . Conversely, suppose such a exists and the -th column were a pivot column, with its pivot in the -th row. The -th row of reads , but and for , giving , a contradiction. This condition is stated purely in terms of , so if the positions of the pivot columns agree completely.
Step 2: the entries too are determined by the kernel. Suppose the pivot columns agree. By conditions 3 and 4 of Definition 7.3, the -th column of is , and the same holds for . What remains are the columns of the free variables.
Let and let satisfy ” and all other free-variable entries are ”. Such a is unique in : if there were two, their difference would lie in with all free-variable entries , and the injectivity part of the proof of Theorem 8.3 forces the difference to be . Thus is determined by and alone. On the other hand, the -th row of reads , since the other free-variable entries are and the entries in the other pivot columns are by condition 4; that is, . From the -st entry on everything is , the rows being zero rows. The same equations hold for and is common to both, so the -th columns agree.
Both the pivot columns and the free-variable columns therefore agree, and is proved. Because of this uniqueness, the reduced row echelon form is meaningful as a canonical form for matrices: two matrices are row equivalent if and only if their reduced row echelon forms coincide. Note that a non-reduced echelon form is not unique (multiplying the second row by keeps it in echelon form); uniqueness requires the normalisations in conditions 3 and 4.
Report an error in this article ・Operated by: Mugen Giken LLC ・Pricing ・Terms ・Legal notice
© 2026 夢現技研合同会社 ・Feeding the text to an LLM is welcome. Code samples are MIT licensed.