Linear transformations
A vector space has two native operations, addition and scaling. A linear transformation is exactly the kind of map between vector spaces that respects both — and that single requirement turns out to be extraordinarily rigid. Fix bases in the domain and codomain, and every linear transformation between finite-dimensional spaces collapses to multiplication by a matrix: an abstract map becomes a concrete grid of numbers you can compute with. Attached to every transformation are two subspaces worth knowing by heart, the kernel (what collapses to zero) and the range (everything reachable) — and the rank-nullity theorem ties their sizes together in one clean equation. This article builds the matrix representation from scratch, proves rank-nullity, and works two representative examples: one on ordinary column vectors, one on polynomials.
A linear transformation is completely captured by its matrix in fixed bases, and the dimensions of its kernel and range always add up to the dimension of the domain.
The core idea
Definition. A map between vector spaces over the same field is a linear transformation if it respects both vector-space operations at once, for every and scalars :
where: and are the images of under , and range over the field ( throughout this article). Two facts drop straight out: (set ), and is completely determined once you know what it does to a basis of — every other vector is a linear combination of basis vectors, and must respect that combination.
From map to matrix. Fix a basis of and a basis of . Write each image as a combination of the 's; the coefficients of become the -th column of an matrix . Then for any with coordinate vector in the -basis, the coordinate vector of in the -basis is exactly — matrix-vector multiplication is applying the transformation. This is why matrices and linear transformations are two views of the same object.
Kernel and range. Two subspaces are attached to every :
- Kernel (null space): , a subspace of . Under the matrix representation this is exactly the null space of , found by solving .
- Range (image): , a subspace of , spanned by the columns of ; its dimension equals .
The figure below shows the picture that ties these together: the domain splits, the kernel collapses to the zero vector, and the rest of the domain maps bijectively onto the range sitting inside the codomain.
The rank-nullity theorem
The goal is to prove, from the basis-extension idea a student already has for finding a basis of any subspace, that the dimension of the kernel and the dimension of the range of a linear transformation always add up to the dimension of the domain , so that once you know two of the three dimensions the third is fixed automatically — this is the single most useful bookkeeping identity for checking any kernel or range computation.
Step 1. Choose a basis for the kernel. Let and , and pick a basis of . By definition for each of these.
Step 2. Extend it to a basis of all of . Any basis of a subspace extends to a basis of the whole space, so add vectors so that is a basis of . There are exactly new vectors, since the full basis must have elements.
Step 3. Show spans . Any is a combination , so because each . So every vector in is a combination of the 's — they span the range.
Step 4. Show the 's are independent, hence a basis of . Suppose . By linearity , so , meaning it is some combination of the 's. But the full set is a basis of , hence independent, so the only way a combination of the 's alone can equal a combination of the 's is if all coefficients are zero. So the 's are independent — a basis of with exactly elements.
Step 5. Read off the theorem. , which rearranges to
Nullity plus rank equals the dimension of the domain — never the codomain, a common slip. For with this immediately gives the invertibility chain: injective surjective, all four conditions equivalent because nullity zero forces rank .
Worked example
Problem. Let be defined by . Find its matrix (standard bases), determine and , and verify rank-nullity.
Step 1. Build the matrix. , , , giving each image as a column:
Step 2. Solve for the kernel. The two equations are and ; the second is exactly twice the first, so there is really one independent equation, . With free, the general solution is , so
(the two spanning vectors are independent, since neither is a scalar multiple of the other).
Step 3. Find the range as the column space of . The three columns are all scalar multiples of , so and .
Step 4. Check rank-nullity: . Confirmed — is the plane through the origin spanned by and , and is the line spanned by .
Competitive stretch
The same tools handle transformations on function spaces, not just . Let be (differentiate, then add back the constant term), with basis . Compute , , , giving columns and matrix . Its determinant is , so is not invertible: columns 1 and 2 are identical, , and rank-nullity forces . Indeed , so lies in .
Common traps
- Checking linearity only on addition or only on scalar multiplication — both must hold together; a shifted map like is affine, not linear, and fails because .
- Building the matrix with each as a row instead of a column — the column-per-basis-vector rule is fixed, not a convention to guess.
- Assuming for any "reasonable-looking" map without solving explicitly; nontrivial kernels are common whenever the codomain is smaller than the domain, or when the map genuinely loses information (like differentiation killing constants).
- Writing rank-nullity with on the right — the identity always uses , the domain.
Ask the tutor: want to work through more transformations — rotations, projections, or maps on polynomial spaces — and see how each one's matrix representation connects back to rank-nullity? Ask the AI tutor for guided practice.
Why does the matrix use columns for T of e sub j and not rows?
Because matrix-vector multiplication is defined to match it: if 's -th column is , then for works out to by linearity. Put the images in rows instead and the multiplication no longer reproduces ; the column convention is what makes "matrix times coordinate vector" mean "apply the transformation."
Does rank-nullity work for transformations between spaces of different dimension, like R cubed to R squared?
Yes — the theorem only ever refers to , the domain, regardless of what the codomain looks like. In the worked example, still satisfies , even though the codomain has dimension 2. The only real constraint the codomain imposes is that can never exceed , since the range is a subspace of .
If a transformation's matrix has determinant zero, does that always mean the kernel is nontrivial?
Only when the transformation is between spaces of the same dimension, , where the matrix is square and is even defined. There, exactly means is singular, so rank , and rank-nullity forces . For a non-square matrix, like the case in the worked example, determinant is not defined at all — you must fall back on solving or comparing rank to directly.