Before you start
Prerequisites: vector spaces; basis and dimension. You should be able to check closure, solve a linear dependence and identify a basis. Here the new task is to use bases to prove statements about maps and decompositions, with finite-dimensionality stated before any counting argument.
The linked MATH1030 notes provide real-coordinate preparation. For the arbitrary field used in the statements here, use the finite exchange and basis-extension argument over a field. Its coefficient replacements only divide by a declared nonzero field element; no real order, inner product or compactness is required. This is the basis-extension input to the dimension proofs below.
Unless otherwise stated, is a field and every space in a dimension formula is finite-dimensional.
We take to be a field and vector spaces to be finite-dimensional unless otherwise stated. The familiar space of column vectors is one model of a vector space, but not the only one: polynomials, matrices and functions can also be vectors. The task is to use their operations, not their appearance.
Definition 1.1.1
(Subspaces and direct sums)
A nonempty subset of a vector space is a subspace if for all and . For subspaces , their sum is . It is a direct sum, written , if every element has a unique such decomposition; equivalently .
The equivalence follows by subtracting two decompositions; conversely, a nonzero vector in the intersection has two decompositions. If bases of and are concatenated, they span the sum. The concatenated list is linearly independent exactly when the sum is direct.
The subspace test is a finite list of checks, and two lines in show both outcomes: the line passes every check, while the line already fails because it misses the zero vector. Over a general field the checks are the same; only the scalars change.
Run one subspace test
Pick a set and read the three conditions. The first failing condition already rules out a subspace.
The line passes through the origin (filled dot).
- Contains 0(0, 0) satisfies y = 2x.
- Closed under additionAdding two points on the line keeps you on the same line.
- Closed under scalar multiplicationScaling a point on the line still gives y = 2x.
Is a subspace
This set passes the full subspace test.
NoticeCheck the zero vector first: it is the quickest condition to fail, and one failed condition is enough.
For finite-dimensional subspaces , the sum need not be direct, and its dimension is controlled by the intersection. Extend a basis of separately to bases of and ; the combined extended list gives
Here are the basis details behind that count. Write for a basis of , and extend it to in and in . The list spans the sum: expand each of and and add their intersection coefficients.
For independence suppose . Then belongs to both and , hence is some combination . Independence of the chosen basis of gives all . The original relation is now within the chosen basis of , so all vanish. The displayed list is therefore a basis of size , while the two separate bases have sizes , proving the formula. Empty lists cover zero subspaces without exception. Every subspace of a finite-dimensional space has a complement by basis extension, but the complement is usually not unique or canonical.
Proof X-ray
Why the intersection basis is extended twice
The proof starts from because that is the only part counted twice in . Extending one basis of the intersection separately inside and inside makes the shared vectors appear only once in the combined list, and spanning is then immediate. The real step is independence: the relation is rearranged so that its -only part equals a vector of , which puts that part in and lets independence of the basis of force its coefficients to vanish.
Worked example 1.1.2
(Symmetric and upper triangular matrices)
In let be the symmetric matrices and the upper triangular matrices. Write for the matrix unit with in position . Then has basis and has basis , so .
A matrix lies in exactly when , and in exactly when . Both conditions together give , so is the space of diagonal matrices, with basis and dimension . The dimension formula predicts
so . This can be confirmed directly: every matrix splits as
with the first summand symmetric and the second upper triangular. The sum is not direct: gives two decompositions of the same matrix, exactly because . The proof above also runs on this example: the intersection basis extends by inside and by inside , and the combined list is a basis of because .
Definition 1.1.3
(Kernel and image)
A map is linear if . Its kernel is and its image is . Both are subspaces. The map is injective exactly when , and surjective exactly when .
To prove rank–nullity, choose a kernel basis and extend it to a basis of . For every , linearity and give . Thus span the image.
For independence, if , then , so . Moving terms to one side produces a relation in the extended basis; its independence makes every zero. The images therefore form a basis, not just a spanning set. Counting that image basis and the kernel basis yields
This is rank–nullity. In equal finite dimensions, injectivity and surjectivity are equivalent, but the equivalence can fail in infinite-dimensional spaces.
Counterexample mode
Injective and surjective part ways in infinite dimension
A tempting claim is that every injective linear map from a space to itself is surjective. On the space of all real polynomials, let . If then , so is injective; but every has zero constant term, so is not in the image. Differentiation on fails the other way: it is onto, because is the derivative of , yet its kernel contains the constants. The repair is the hypothesis that the space is finite-dimensional.
Worked example 1.1.4
(Differentiation on polynomials)
Let be the real polynomials of degree at most two and be differentiation. For , . Thus and . Their dimensions agree with rank–nullity. is neither injective nor surjective as a map into .
Worked example 1.1.5
(Rank–nullity for the map X ↦ X − Xᵀ)
Define by . Transposition is linear, so is linear. For ,
Kernel. exactly when , so is the space of symmetric matrices, with basis and dimension .
Image. Every value is a multiple of , and every multiple is reached, for instance by . Hence , of dimension .
Check. , as rank–nullity requires. The map is neither injective nor surjective. Here the kernel and the image meet only in , because , so ; the next quick check shows that rank–nullity alone does not force such a splitting.
From an abstract map to every preimage
A basis is useful because it turns a statement about all vectors into a finite calculation without changing the objects. If basis extension is unfamiliar, first read MATH1030: basis extension and change of basis. In rank–nullity, extending a kernel basis is the decisive step: the extra vectors must supply exactly the output directions that survive the map. Here is the whole construction in a function space.
Let be the real polynomials of degree at most three and define by . For , evaluation gives . Evaluation and differentiation preserve linear combinations, so is linear. In the ordered basis ,
The kernel statement is an equality of sets: forces , while every polynomial maps to zero. Every target is reached by , which proves surjectivity directly, not just by a dimension count. Put . Each polynomial has the unique decomposition , and by equality of coefficients. Thus , and is an isomorphism. The map forgets the two kernel coefficients; it does not forget which two coordinates were prescribed.
This is an affine set, usually not a subspace: it contains zero only when the target is zero. Complements are not unique. For example is another complement, since and equality of coefficients again makes its intersection with zero. Both choices give the same kernel and image, but different chosen representatives of a preimage. This is why a direct-sum choice alone does not define an orthogonal projection; an inner product is additional structure.
Choosing a method and avoiding mistakes
Use the subspace test to prove closure, a basis to prove dimension, and rank–nullity when a kernel or image is easier than the other. For uniqueness of decompositions use the intersection; a sum is not automatically direct. Do not equate with the zero vector or image with the codomain without proof. Injectivity and surjectivity are equivalent for an endomorphism of a finite-dimensional space, not for arbitrary domain and codomain dimensions.
Exercises
-
In , let and . Find and .
-
Let send to . Find a basis of its kernel and decide whether it is onto.
-
Prove that if is linear and is finite-dimensional, injectivity implies surjectivity.
-
Synthesis supplement. For , , find a kernel basis, a complementary subspace and every preimage of . Prove both inclusions in your preimage formula.
Quick checks
Quick check
(In let and . Is ? If so, decompose a general vector .)
Solution · Answer
Yes. The coordinates of add up to , which is zero only for , so . Since (one nonzero linear condition in ) and , the dimension formula gives , so . Explicitly, with , ; the first summand has coordinate sum , so it lies in .
Quick check
(For differentiation in the worked example above, . Is ?)
Solution · Answer
No. Here and , so the constant polynomial lies in both and the sum is not direct. In fact has dimension , and is in neither piece nor in their sum. Rank–nullity counts dimensions; it says nothing about how the kernel and the image sit inside the space.
Quick check
(Can a linear map be injective? Can a linear map be surjective? Justify both answers with rank–nullity.)
Solution · Answer
Neither is possible. For , the image is a subspace of , so and rank–nullity gives ; a nonzero kernel means is not injective. For , rank–nullity gives , so the image cannot be all of .
Full solutions
-
A polynomial in both spans has no constant or quadratic term, so . The sum is , of dimension .
-
For , the two conditions are and . Hence and the kernel basis is . Rank–nullity gives image dimension , so the image is all of .
-
Injectivity gives zero kernel. Rank–nullity yields . A subspace of a finite-dimensional space with the same dimension equals the space, so is onto.
-
The zero equations give , , so . Choose ; a vector in has second coordinate zero, forcing its kernel parameter to be zero. Every equals , proving . The target equations force for . Conversely substituting this vector gives for every real . Hence the whole preimage is , and every target is reached.
Connection
Choosing bases turns these structural statements into matrix statements. The kernel and image dimensions do not depend on those choices.