Vector Spaces and Linear Maps: From the Eight Axioms to the Rank-Nullity Theorem
Prerequisite:The Grammar of Mathematics: Reading and Writing Sets and Logic
0. Key points
Section titled “0. Key points”- A vector is not “an arrow with a direction and a length”. A vector is an element of a set on which an addition and a scalar multiplication are defined and satisfy eight axioms. Thanks to this abstraction, tuples of numbers, matrices, polynomials, functions and sequences are all covered by one and the same theorem.
- A subspace is a subset that “contains the origin and never escapes under addition and scalar multiplication”. There is no need to recheck the eight axioms: three conditions suffice.
- A basis is a family that spans the space “with nothing missing and nothing redundant”, and choosing a basis is the same as installing coordinates. The number of vectors in a basis does not depend on which basis we choose, and that number is the dimension. The heart of this uniqueness is the exchange lemma.
- A linear map is a map that preserves addition and scalar multiplication. Rotations, projections, dilations and differentiation are all linear maps, and a matrix is nothing but a coordinate representation of one.
- The rank-nullity theorem is a conservation law: the image thins out by exactly as much as was collapsed. The number of degrees of freedom in the solutions of a system of linear equations, and the amount of information discarded by principal component analysis, are both explained by this single identity.
1. Motivation: what comes into view once we drop the arrows
Section titled “1. Motivation: what comes into view once we drop the arrows”Up to high school, a vector was “an arrow with a direction and a length”. That definition works perfectly well in the plane and in space, but a little further on it runs into three questions.
First, what is the in “-dimensional”? Nobody has ever seen a four-dimensional arrow. Yet we speak of four-dimensional and hundred-dimensional spaces. Unless “dimension” can be defined without reference to pictures of arrows, such talk is empty.
Second, the collection of polynomials , or the collection of continuous functions on the interval , are plainly not arrows. Nevertheless they can be added, they can be multiplied by constants, and they obey exactly the same computational rules as vectors in the plane. Why? Is it a coincidence?
Third, the number of degrees of freedom of the solutions of a system of linear equations is often explained as “the number of unknowns minus the number of independent equations”. Where does that subtraction come from?
These questions have a common answer: what matters is not what the objects are made of, but only the structure of how they are added to one another and how they are multiplied by constants. So we forget entirely about arrows and take as our starting point “a set equipped with an addition and a scalar multiplication satisfying a few rules”. The first person to write this down clearly was Giuseppe Peano, who in his 1888 book reorganised Grassmann’s theory of extension and gave axioms almost identical to the modern ones. Peano even listed function spaces among his examples, but this formulation came into wide use only after Weyl and Banach began to employ linear spaces as a tool in the twentieth century.
The abstraction pays off in a very concrete way. Once a theorem is proved from the axioms alone, it may be used free of charge for every object satisfying those axioms. The labour of proving something in , then reproving it for polynomials, then reproving it for functions, disappears. Indeed, the rank-nullity theorem proved in this article applies verbatim to projections in the plane, to differentiation of polynomials, and to dimension reduction in machine learning.
If you are unsure about how proofs are written (contradiction, contraposition, induction) or about the handling of “for all” and “there exists”, read The grammar of mathematics: sets and logic (in particular universal and existential quantifiers(Definition 5.2)[The Grammar of Mathematics]) and Techniques of proof: induction and contradiction (in particular the principle of mathematical induction(Theorem 3.2)[Techniques of Proof]) first. This article is a consumer of those tools.
flowchart TD A["The 8 vector space axioms"] --> B["Subspaces"] A --> C["Linear combinations and spans"] C --> D["Linear independence"] C --> E["Spanning sets"] D --> F["Bases"] E --> F F --> G["Exchange lemma"] G --> H["Dimension is independent of the basis"] A --> I["Linear maps"] I --> J["Kernel Ker f and image Im f"] H --> K["Rank-nullity: dim V = dim Ker f + dim Im f"] J --> K K --> L["Degrees of freedom of linear systems / compression rate of PCA"]
2. Preliminaries: the set of scalars and the language of maps
Section titled “2. Preliminaries: the set of scalars and the language of maps”When we multiply a vector by a “constant”, where does that constant come from? It need not be a real number. With complex coefficients we get a complex vector space; with the field of just and we get the vector spaces of coding theory. So we fix the set of coefficients first.
A set equipped with an addition and a multiplication is called a field when the following hold. Addition is associative and commutative, there is a zero element , and every element has an additive inverse. Multiplication is associative and commutative, there is an identity , and every element has a multiplicative inverse . Finally the distributive law holds. In short, a field is a set in which the four arithmetic operations may be performed freely. The sets , and are fields, whereas is not, since it lacks the reciprocal of .
In this article may be any field; if in doubt, read . Elements of the field are called scalars.
Let us also fix the vocabulary for maps. A map is injective if implies , and surjective if for every there is an with . A map that is both is called bijective. Reading “injective” as “loses no information” and “surjective” as “leaves no part of the target uncovered” makes the correspondence with the later discussion clear.
Notation is as follows. Vectors are , scalars are , and does not contain . A sum of terms is written .
3. The axioms of a vector space
Section titled “3. The axioms of a vector space”3.1. The definition
Section titled “3.1. The definition”Definition 3.1(Vector space)
Let be a field. Suppose a set is equipped with two maps
satisfying the following eight conditions. Then is called a vector space over (a linear space), and the elements of are called vectors. Below, denote arbitrary elements of , arbitrary elements of , and is abbreviated to .
- (V1) Associativity of addition:
- (V2) Commutativity of addition:
- (V3) Existence of a zero vector: there is a such that for every
- (V4) Existence of additive inverses: for each there is a with
- (V5) Distributivity over vector sums:
- (V6) Distributivity over scalar sums:
- (V7) Associativity of scalar multiplication:
- (V8) Action of the identity: (here is the multiplicative identity of )
Two points are easy to overlook.
The first is that closure is built into the definition. By writing addition as “a map from to ” we have already demanded that be an element of ; the same goes for scalar multiplication. When checking whether a set satisfies the axioms, closure is the first thing to verify.
The second is that (V1)–(V4) merely say that is an abelian group under addition; what makes the subject linear algebra is the scalar multiplication in (V5)–(V8). In particular (V8) is often felt to be too obvious to be worth stating, but as we shall see it does not follow from the other seven.
The additive inverse of is unique, as we verify next, so we write it and set .
3.2. Elementary consequences of the axioms
Section titled “3.2. Elementary consequences of the axioms”The axioms say nothing about “obvious facts” such as . Since they are not stated, they must be proved. The proofs below are also good practice in tracking which axiom is used where.
Proposition 3.2(Elementary properties of a vector space)
Let be a vector space over a field , let and . Then the following hold.
- The vector of (V3) is unique.
- The additive inverse of each is unique.
- (the on the left is the zero of , the right-hand side is the zero vector of ).
- .
- .
- If then or .
Proof(Proposition 3.2)
(1) Suppose and both satisfy (V3). Applying the property of to gives , and applying the property of to gives . By (V2) the two left-hand sides agree, so .
(2) Suppose and . Then
where we used, in order, (V3), the hypothesis, (V1), (V2), the hypothesis, (V2) and (V3).
(3) Since in , axiom (V6) gives
Add the additive inverse of (which exists by (V4)) to both sides. By (V1), (V4) and (V3) the left-hand side becomes , while by (V4) the right-hand side becomes . Hence .
(4) By (V3) we have , so (V5) gives . Cancelling as in (3) yields .
(5) By (V8), (V6) and (3),
Hence is an additive inverse of , and by the uniqueness in (2) we get . Note that (V8) was used here.
(6) Suppose . Since is a field, exists and
using in order (V8), arithmetic in , (V7), the hypothesis and (4). So forces , which is the assertion.
3.3. Examples and counterexamples
Section titled “3.3. Examples and counterexamples”Example 3.3(The coordinate space )
Equip with the componentwise operations
All eight conditions follow componentwise from the arithmetic of . For instance, comparing -th components, (V6) is exactly the distributive law in . The zero vector is and the inverse of is .
The cases with correspond to the arrows of high school. The “sum” of arrows was the diagonal of a parallelogram, and written in components this agrees with the definition above.
Example 3.4(Function spaces and their special cases)
Let be a non-empty set and let be the set of all maps from to . For and set
The zero vector is the function identically equal to , and the inverse of is . All eight conditions reduce, at each point , to the arithmetic laws of . For example (V1) holds because for every , so the two maps agree at every point and hence are equal.
This single example contains many spaces at once.
| Choice of | Resulting space |
|---|---|
| the coordinate space (read as ) | |
| the space of all sequences | |
| the space of all matrices | |
| , | all real-valued functions on the interval |
The reason matrix addition and scalar multiplication are componentwise is that a matrix is a function of a pair of indices.
Example 3.5(Two ways the axioms can fail)
(a) The first quadrant is not a space. The set is closed under addition. However, while , so scalar multiplication is not a map into . Additive inverses are missing as well, so (V4) fails too. “Directions can be freely reversed” is a demand of the axioms.
(b) (V8) does not follow from the other seven. On keep the usual addition but redefine scalar multiplication by
Since the addition is the ordinary one, (V1)–(V4) hold. Let us check the rest.
So (V5), (V6) and (V7) hold. But , so (V8) alone fails. In this , part (5) of Proposition 3.2 fails as well: indeed , whereas the additive inverse of is . Dropping (V8) destroys the compatibility between scalar multiplication and additive inverses.
4. Subspaces and spans
Section titled “4. Subspaces and spans”Verifying all eight conditions every time we build a new space would be tedious. Fortunately, when we investigate the inside of a space already known to be a vector space, far less needs to be checked.
Definition 4.1(Subspace)
Let be a vector space over . A subset is called a subspace of if it becomes a vector space over under the addition and scalar multiplication of restricted to .
Proposition 4.2(Criterion for a subspace)
Let be a vector space over and let . Then is a subspace of if and only if all three of the following hold.
- (in particular ).
- for all .
- for all and .
Proof(Proposition 4.2)
Necessity. If is a subspace, then addition and scalar multiplication are defined inside , so conditions 2 and 3 hold. Also is non-empty (it has a zero vector), and picking any , condition 3 gives , which by part (3) of Proposition 3.2 equals the zero vector of ; hence condition 1 holds. Along the way we have also seen that the zero vector of itself coincides with the zero vector of .
Sufficiency. Conditions 2 and 3 say precisely that addition and scalar multiplication define maps and . Axioms (V1), (V2), (V5), (V6), (V7) and (V8) are identities valid for all elements of , hence in particular for elements of . Axiom (V3) follows from condition 1. As for (V4), given , condition 3 with gives , and by part (5) of Proposition 3.2 this is . So inverses lie in as well, and satisfies all eight conditions.
For instance, inside both the line through the origin and the plane through the origin are subspaces. Checking the latter: satisfies ; if and then the components of the sum satisfy ; and multiplying by gives . Likewise the polynomial space is a subspace of a function space, and the set of all continuous functions is a subspace of (because continuity is preserved by sums and constant multiples).
Next we define the operation that builds a space out of a few vectors.
Definition 4.3(Linear combinations and the span)
Let be a vector space over , let and . An element of the form
is called a linear combination of . For a subset , the set of all linear combinations of finitely many elements of is written and called the span of . For we agree that .
The span is the smallest subspace containing . Indeed, that is a subspace follows from Proposition 4.2: the vector is included as the empty sum (or as the linear combination with all coefficients ), a sum of linear combinations is again a linear combination, and times a linear combination is the linear combination with all coefficients multiplied by . Moreover, if is a subspace containing , then is closed under addition and scalar multiplication and therefore contains every linear combination of elements of , so . It matters that we allow only finitely many terms, even when is infinite: infinite sums require a notion of limit, which algebra alone cannot supply.
5. Linear independence, bases and dimension
Section titled “5. Linear independence, bases and dimension”5.1. Linear independence
Section titled “5.1. Linear independence”With we can build as many spaces as we like, but redundancy creeps in. The plane is spanned by the three vectors , yet the third is superfluous because it is built from the first two. Linear independence is the notion that measures this redundancy.
Definition 5.1(Linear independence, spanning sets and bases)
Let be a vector space over .
- A tuple is linearly independent if, for ,
Otherwise it is linearly dependent; that is, there exist coefficients , not all , with . An infinite subset is called linearly independent when every tuple of finitely many distinct elements of is linearly independent.
-
If , we say generates and call a spanning set of .
-
A linearly independent spanning set is called a basis of . In the finite case we write it as an ordered tuple .
A word on how to read the definition. The relation always holds when all coefficients are (by part (3) of Proposition 3.2). This is called the trivial relation. Linear independence says that there is no relation other than the trivial one.
Geometrically, linear dependence is the same as “one of the vectors lies in the span of the others”. Indeed, if with , multiplying by and rearranging gives
so is a linear combination of the others; the converse is checked in the same way. The vectors in satisfy the non-trivial relation and are therefore linearly dependent.
5.2. Bases and coordinates
Section titled “5.2. Bases and coordinates”Proposition 5.2(Uniqueness of the expansion in a basis)
Let be a vector space over and . Then is a basis of if and only if for every there is exactly one tuple of scalars with
Proof(Proposition 5.2)
Necessity. Let be a basis. Since it spans, every has at least one expansion . If there were another expansion , subtracting term by term gives
By linear independence, for every , that is . So the expansion is unique.
Sufficiency. Every has an expansion, so the tuple spans. For linear independence, suppose . One expansion of is the one with all coefficients , and by hypothesis it is the only one. Hence for every .
This unique tuple is called the coordinate vector of with respect to the basis , written . Choosing a basis is the same as installing a coordinate system, and it is what makes an abstract vector computable as a tuple of numbers in . As we shall see, a matrix is simply a linear map written out in such coordinates.
Example 5.3(The polynomial space and its standard basis)
Let be the set of functions defined by real polynomials of degree at most (the zero polynomial included).
First, it is a subspace. is a subset of the function space (Example 3.4). The zero function belongs to , being the polynomial with all ; the sum of two polynomials of degree at most is computed coefficientwise and so again has degree at most ; and the same holds for constant multiples. Hence is a vector space by Proposition 4.2.
Next, is a basis. That it spans is the definition of . For linear independence, suppose for every real . Substituting gives . Differentiating the remaining identity gives for every , and substituting gives . Repeating the procedure, each time we differentiate times and substitute we obtain , that is , one after another. So all coefficients vanish and the family is linearly independent.
Therefore a basis of has elements. The coordinate vector of the polynomial with respect to the basis is .
5.3. The exchange lemma and the invariance of dimension
Section titled “5.3. The exchange lemma and the invariance of dimension”Besides , the plane has the basis , and infinitely many others. Yet every basis has two elements. This is no accident; it follows from the next lemma, the single most important lemma at this stage of linear algebra.
Lemma 5.4(Exchange lemma)
Let be a vector space over . If are linearly independent and
then . That is, the size of a linearly independent family never exceeds the size of a spanning family.
Proof(Lemma 5.4)
Put . We prove the following claim by induction on .
Claim. For each with , after renumbering we have and
For the right-hand side is itself, so the claim clearly holds.
Assume the claim for some and prove it for . By hypothesis , so there are scalars with
Suppose all the were (this includes the case , where no is left). Then
and since the coefficient of is this is a non-trivial relation. As , it contradicts the linear independence of . Hence for some ; in particular at least one remains, that is . Renumbering, we may assume , and solving the displayed equation for gives
The right-hand side is a linear combination of , so . Consequently
(because every generator on the left lies in the right-hand side, which is a subspace; we used Remark 4.4), and together with the induction hypothesis the claim holds for .
Carrying the induction through to produces, along the way, the inequality .
The name “exchange” comes from the procedure in the proof: we discard and insert , one vector at a time. Since the spanning side has only vectors, the exchanges run out after steps.
Theorem 5.5(Invariance of dimension)
Let be a vector space over and suppose has both a basis with elements and a basis with elements ( finite). Then .
Proof(Theorem 5.5)
Definition 5.6(Dimension)
If a vector space has a basis with finitely many elements, is called finite-dimensional, and the number of elements of such a basis is the dimension of , written (or when the field must be made explicit). By Theorem 5.5, this value does not depend on the choice of basis. If has no finite basis, it is called infinite-dimensional. For we regard the empty set as a basis and set .
Let us compute a few values.
We have . Indeed, let be the vector whose -th component is and whose other components are . Every can be written , so these vectors span; and immediately forces for every , so they are linearly independent. The family is called the standard basis.
By Example 5.3 we have . Also has as a basis the matrices whose only non-zero entry is a in position , so .
By contrast, the space of all polynomials is infinite-dimensional. If it were generated by polynomials, then the linearly independent elements would lie in the span of those polynomials, and Lemma 5.4 would give , a contradiction. More directly, for every there are linearly independent elements , so no finite basis can exist.
5.4. Basic properties of finite-dimensional spaces
Section titled “5.4. Basic properties of finite-dimensional spaces”Here we assemble the tools needed for the proof of the rank-nullity theorem. Each is a corollary of the exchange lemma.
Proposition 5.7(Basic properties of finite-dimensional spaces)
Let be a finite-dimensional vector space with .
- Any family of or more vectors of is linearly dependent.
- Any linearly independent family in can be extended to a basis of by adjoining suitable vectors.
- Every subspace of is finite-dimensional with , and holds only when .
Proof(Proposition 5.7)
Fix a basis of .
(1) If is linearly independent, then, since the basis spans, each is a linear combination of , and Lemma 5.4 gives . Taking the contrapositive, any family with is linearly dependent.
(2) First an auxiliary fact: if is linearly independent and , then is linearly independent as well. Indeed, suppose . If then , contrary to hypothesis; hence , and the remaining relation forces all by the independence of the .
Now take a linearly independent family containing with as many elements as possible. By (1) the number of elements is bounded by , so a maximal one exists. Write it as . If this family did not span , we could pick outside its span, and the auxiliary fact would produce a longer linearly independent family, contradicting maximality. So the family spans and is linearly independent, hence is a basis.
(3) A linearly independent family inside is also linearly independent inside , so by (1) it has at most elements. Take a linearly independent family in with the largest possible number of elements, say with . For any , the family is linearly dependent by maximality, so the contrapositive of the auxiliary fact in (2) gives . Hence this family is a basis of and .
Now suppose . A basis of is a linearly independent family of vectors in , so by (2) it extends to a basis of . By Theorem 5.5 the extended family must have elements, so in fact nothing was adjoined. That is, a basis of is already a basis of , and . Conversely, if then trivially.
6. Linear maps
Section titled “6. Linear maps”6.1. Definition and geometric examples
Section titled “6.1. Definition and geometric examples”Having defined the spaces themselves, we turn to the maps between them. Since the structure of a vector space consists of addition and scalar multiplication only, the notion of a “structure-preserving map” is determined automatically.
Definition 6.1(Linear map)
Let be vector spaces over the same field . A map is called a linear map if it satisfies the following two conditions.
- Additivity: for all
- Homogeneity: for all and
When we call a linear transformation of .
The two conditions can be combined into one: for all and ,
That this follows from additivity and homogeneity is the computation . Conversely, putting in the combined identity gives additivity, and putting gives , which is homogeneity (we used part (3) of Proposition 3.2). By induction, holds for any finite linear combination.
Every linear map satisfies : simply compute , again using part (3) of Proposition 3.2. This one remark is immediately useful for recognising counterexamples.
Example 6.2(Linear transformations of the plane, and maps that are not linear)
Let us examine several maps on .
(a) Rotation about the origin . We check linearity:
The only thing that matters is that each component is homogeneous of degree one in and .
(b) Projection onto the -axis . Since , this map is linear. It throws away the information in the direction.
(c) Axis-aligned scaling and (d) shear . In both cases the components are homogeneous of degree one, so the same computation as in (a) proves linearity.
Here are their matrix representations with respect to the standard basis. The matrix is the one for which , viewed as a column vector, equals .
| Transformation | Formula | Matrix | Kernel | Image |
|---|---|---|---|---|
| rotation | ||||
| projection onto the -axis | the -axis | the -axis | ||
| scaling | if | if | ||
| shear |
Maps that are not linear. The translation is not linear because . A linear map plus a constant vector is called an affine map, and is to be distinguished from a linear map. Likewise is not linear: while , so homogeneity fails.
6.2. A linear map is determined by the images of a basis
Section titled “6.2. A linear map is determined by the images of a basis”Let be a basis of . Then a linear map is completely determined by . Indeed, every can be written uniquely as by Proposition 5.2, so linearity forces .
Conversely, choose arbitrarily and define , where is the coordinate vector of . Then is a linear map with . The definition is unambiguous because coordinates are unique, and linearity follows because the coordinates of and are the componentwise sum and the componentwise multiple. This fact, restated as the isomorphism given by the coordinate map, is the coordinate isomorphism and the determination of a linear map by a basis(Proposition 2.1)[Matrices and Linear Systems].
In other words, constructing a linear map is the same as prescribing destinations for the basis vectors. Choosing a basis of as well, expressing each in coordinates and arranging these as columns gives a matrix. A matrix is not the linear map itself but its representation once bases are fixed; change the bases and the same map acquires a different matrix. This correspondence and the associated computations are treated in Matrices and systems of linear equations, in the correspondence between linear maps and matrices(Theorem 3.2)[Matrices and Linear Systems], while the problem of choosing bases so as to make the matrix as simple as possible is treated in Eigenvalues and eigenvectors and Diagonalisation and the Jordan normal form.
7. Kernel, image and the rank-nullity theorem
Section titled “7. Kernel, image and the rank-nullity theorem”7.1. Kernel and image
Section titled “7.1. Kernel and image”When studying a linear map there are two subspaces to look at first: “what gets crushed” and “how far it reaches”.
Definition 7.1(Kernel and image)
Let be a linear map between vector spaces over . The sets
are called the kernel and the image of respectively. When is finite-dimensional, is called the rank of .
Proposition 7.2(Basic properties of the kernel and the image)
Let be a linear map.
- is a subspace of , and is a subspace of .
- is injective if and only if .
Proof(Proposition 7.2)
(1) We check the three conditions of Proposition 4.2. For the kernel: , so . If then , and for we get (the last step is part (4) of Proposition 3.2).
For the image: . If and then and .
(2) Suppose is injective. If then , so injectivity gives . Hence .
Conversely suppose . If then linearity gives , so , that is .
Part (2) is a useful reformulation. For a general map, injectivity must be tested “for every pair of points”, whereas for a linear map it suffices to examine only the points sent to the origin. In the language of linear systems: to decide uniqueness of solutions, one need only look at the case where the right-hand side is , that is, the homogeneous equation.
7.2. The rank-nullity theorem
Section titled “7.2. The rank-nullity theorem”Theorem 7.3(Rank-nullity theorem)
Let be vector spaces over a field and let be a linear map. If is finite-dimensional, then and are both finite-dimensional and
Proof(Theorem 7.3)
Put . By Proposition 7.2 the kernel is a subspace of , hence finite-dimensional by part (3) of Proposition 5.7. Put and choose a basis of (the empty family when ).
This is also a linearly independent family in , so by part (2) of Proposition 5.7 it extends to a basis of . Write the extended basis as
By Theorem 5.5 we have .
Claim: is a basis of .
It spans. Take any and write . Expanding in the above basis as , linearity of gives
the first sum vanishing because gives . Hence ; in particular is finite-dimensional.
It is linearly independent. Suppose . By linearity , so . Since the form a basis of the kernel, there are scalars with
The equation on the right is a relation among the basis of , so by its linear independence all coefficients vanish; in particular .
Therefore , and rearranging gives the asserted identity. When (so ), we have and , so the identity reads and still holds.
The content of the proof can be drawn as follows. Split a basis of into “a basis of the kernel” and “the rest”; the rest is carried bijectively onto a basis of the image.
Example 7.4(Checking the rank-nullity theorem on the differentiation operator)
Let be differentiation, . By Example 5.3 we have .
Linearity. For and , the coefficients of are , and
so is linear. The values stay inside because the degree drops by one.
Kernel. Suppose . The linear independence of established in Example 5.3 gives , that is . Hence consists of the constant polynomials, with basis , so .
Image. The values of always have degree at most , so . Conversely, given any ,
and the polynomial in brackets belongs to . Hence and .
Check. We get , exactly as Theorem 7.3 predicts. Differentiation is the map that discards “only the information carried by the constant term”, and the image thins out by precisely that one dimension.
Corollary 7.5(Injective, surjective and bijective coincide in finite dimensions)
Let be finite-dimensional vector spaces over a field with , and let be a linear map. Then the following three conditions are equivalent.
- is injective.
- is surjective.
- is bijective.
Proof(Corollary 7.5)
It suffices to prove ; the equivalence with then follows from the definitions.
By Proposition 7.2, is injective if and only if , that is . By Theorem 7.3 this is equivalent to .
On the other hand, is a subspace of , so applying part (3) of Proposition 5.7 to shows that is equivalent to . And is precisely the surjectivity of .
Chaining these gives .
This corollary may be read as: “in finite dimensions, a map that loses no information necessarily fills up its target”. It is the real reason why, for a system of linear equations in unknowns, “there is always at most one solution” and “there is always at least one solution” are equivalent. As Exercise 8.4 shows, the statement fails in infinite dimensions. Finite-dimensionality is used essentially, through Proposition 5.7.
A system of linear equations (with an matrix) can be rewritten as using the linear map , . Then a solution exists exactly when , the number of degrees of freedom of the solutions is , and Theorem 7.3 gives
The rule of thumb quoted in the motivating section, “the number of unknowns minus the number of independent equations”, is a restatement of this identity. The true meaning of “the number of independent equations” is , and how to compute it by Gaussian elimination(Theorem 7.4)[Matrices and Linear Systems] is treated in Matrices and systems of linear equations.
7.3. How to read the theorem in data science
Section titled “7.3. How to read the theorem in data science”A data point with features is a vector in . Principal component analysis (PCA) first centres the data by subtracting the mean, then chooses directions of length that are mutually orthogonal, and compresses dimensions into by
The inner product is linear in its second argument, so is a linear map. If the are orthonormal then (the standard basis of ), so and . Hence Theorem 7.3 gives
These dimensions are exactly “the information thrown away by the compression”. However cleverly the directions are chosen, dimensions are inevitably lost. What PCA answers is the optimisation problem “which dimensions should be kept so that the loss of variance is smallest”, and the answer is the eigenvectors of the covariance matrix, as guaranteed by the maximum and minimum of the Rayleigh quotient(Theorem 7.1)[スペクトル定理]. This thread continues in Eigenvalues and eigenvectors, Inner product spaces and Gram-Schmidt orthogonalisation and The spectral theorem.
Here is one more practical example. In linear regression, when one explanatory variable is a linear combination of the others (multicollinearity), the kernel of the linear map defined by the data matrix is no longer . By part (2) of Proposition 7.2 the map is no longer injective, so infinitely many coefficient vectors give the same predictions. The phenomenon known as “unstable coefficients” is a consequence of the kernel failing to vanish.
8. Exercises
Section titled “8. Exercises”Exercise 8.1Easy
Decide whether each of the following subsets of is a subspace, and justify your answer.
Solution
1. It is a subspace. We check the three conditions of Proposition 4.2. Since , we have . If then
so the sum lies in . For we have , so scalar multiples lie in too. Note that , a line through the origin.
2. It is not a subspace. The equation means ” or ”, so is the union of the two coordinate axes. We have (since ) and (since ), but their sum is and , so the sum is not in . Thus is not closed under addition and condition 2 fails. Since it does contain the zero vector and is closed under scalar multiplication, this is an example where exactly one of the three conditions fails.
Exercise 8.2Standard
In the vector space of all real-valued functions on the reals (Example 3.4), consider , and .
- Show that is linearly dependent.
- Show that is linearly independent.
- Determine the dimension of .
Solution
1. By the double angle formula , for every we have
As functions, , and the coefficients are not all , so this is a non-trivial relation. Hence the family is linearly dependent.
2. Suppose , that is for every . Substituting and using gives . Substituting and using gives , and with this yields . Hence the family is linearly independent.
3. By part 1 we have , so (every linear combination involving can be rewritten as a linear combination of and ). By part 2 these two are linearly independent, so is a basis and the dimension is .
Exercise 8.3Standard
Let be the vector space of all real matrices and consider the trace
Show that is a linear map, determine a basis and the dimension of and the dimension of , and verify Theorem 7.3.
Solution
Linearity. For , and , the entry of is and the entry is , so
Hence the trace is linear.
Image. By Proposition 7.2, is a subspace of , and it is not because . Since , part (3) of Proposition 5.7 gives and . More directly, any is obtained as , so the map is surjective.
Kernel. The condition means , so
These three matrices are linearly independent: a linear combination has the form , which is the zero matrix only when . Hence they form a basis and .
Check. We have (with basis ), and indeed .
Exercise 8.4Hard
Let be the vector space of all real sequences and let
be the right shift and the left shift.
- Verify that and are linear maps.
- Show that is injective but not surjective, and that is surjective but not injective.
- Show that is infinite-dimensional, and explain why the finite-dimensionality hypothesis in Corollary 7.5 cannot be dropped.
Solution
1. Sums and scalar multiples of sequences are defined componentwise. Let , and . The first component of is and its -st component is , which agree with the corresponding components of . For , the -th component of is , which agrees with the -th component of .
2. If then, reading off the -st component, for every , so . Hence is injective by Proposition 7.2. On the other hand, every element of has first component , so and is not surjective.
As for , given any we have , so is surjective. But , so and is not injective. Note also that , whereas , so for any sequence with . A one-sided inverse of this kind cannot occur in finite dimensions.
3. For each let be the sequence whose -th term is and whose other terms are . If then reading off the -th component gives , so is linearly independent for every . If were finite-dimensional with , then by part (1) of Proposition 5.7 no linearly independent family of vectors could exist, yet is one. Hence is infinite-dimensional.
Now is a linear map from to that is injective but not surjective, so the conclusion of Corollary 7.5 fails and its finite-dimensionality hypothesis cannot be dropped. Looking back at where finite-dimensionality was used: in deducing from (part (3) of Proposition 5.7), and in the fact that Theorem 7.3 itself assumes finite dimension. For we have and : the situation, peculiar to infinite dimensions, in which a proper subspace is “just as large” as the whole space.
References
Section titled “References”- Masahiko Saito, Senkei Daisu Nyumon, University of Tokyo Press, 1966 (in Japanese) — the chapters on linear spaces, bases, dimension and linear maps. A standard Japanese textbook.
- Ichiro Satake, Senkei Daisugaku, Shokabo, new edition 2015 (original 1958) (in Japanese) — the chapters on vector spaces and linear maps. The level of abstraction is high and the axiomatic development is careful.
- Sheldon Axler, Linear Algebra Done Right, 4th ed., Springer, 2024 — Chapter 1 (Vector Spaces), Chapter 2 (Finite-Dimensional Vector Spaces), Chapter 3 (Linear Maps). Builds the structure without determinants, and is close in spirit to the organisation of this article. An open access edition is available at linear.axler.net.
- Gilbert Strang, Introduction to Linear Algebra, 6th ed., Wellesley-Cambridge Press, 2023 — the chapters on vector spaces and subspaces, and on the four fundamental subspaces. The emphasis is on numerical computation and data analysis.
- Giuseppe Peano, Calcolo geometrico secondo l’Ausdehnungslehre di H. Grassmann, Fratelli Bocca, Torino, 1888 — Chapter IX gives the axioms for a “linear system”, known as the prototype of the modern definition of a vector space.
- I. T. Jolliffe, Principal Component Analysis, 2nd ed., Springer, 2002 — the standard reference on principal component analysis, and the background to the discussion of compression in §7.3.
Appendix: What changes in infinite dimensions
Section titled “Appendix: What changes in infinite dimensions”Existence of bases. For finite-dimensional spaces we proved the existence of a basis in Proposition 5.7. The statement “every vector space has a basis” is true for general vector spaces as well, but its proof requires Zorn’s lemma (equivalent to the axiom of choice). Conversely, it is known that the axiom of choice can be derived from that statement. So the existence of a basis is a proposition depending on the axiom system of set theory, out of reach of the kind of constructive argument available in the finite-dimensional case.
Bases that cannot be written down. A basis whose existence is guaranteed by the axiom of choice need not be explicitly describable. The famous example is a basis of regarded as a vector space over (a Hamel basis). It exists, yet not a single one of its elements can be exhibited. This is why “take a basis” is a far less casual operation in infinite dimensions than in finite ones.
The limits of algebraic bases. As we saw in Definition 4.3, a linear combination is always a finite sum. Consequently an infinite sum such as a Fourier series is not a linear combination in the algebraic sense. Functional analysis introduces a notion of convergence and uses a complete orthonormal system to give meaning to an infinite sum as a limit. This is a different object from an algebraic basis. For complete orthonormal systems in Hilbert spaces, Inner product spaces and Gram-Schmidt orthogonalisation is the entry point, and its finite-dimensional counterpart is the expansion in an orthonormal basis(Theorem 5.3)[内積空間とグラム・シュミット直交化].
What replaces dimension. In infinite dimensions an identity such as Theorem 7.3 is unavailable. As the right shift of Exercise 8.4 shows, injectivity and surjectivity also come apart. Instead, more delicate quantities take the leading role: whether the image of an operator is closed, and whether the difference between the dimensions of the kernel and the cokernel (the index) is finite. On the care needed even in comparing the “sizes” of infinite sets, see Cardinality and infinity: infinities come in different sizes and equipotence(Definition 3.1)[濃度と無限].
Where finiteness was used in this article. Looking back, finite-dimensionality mattered only in the step of Lemma 5.4 where “the spanning family is finite, so the exchanges run out”, and in the three assertions of Proposition 5.7 derived from it. Everything else — Proposition 3.2, Proposition 4.2, Proposition 5.2, Proposition 7.2 — holds without any assumption on dimension.
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.