Examples from Rank-nullity
All examples from Rank-nullity.
Kernel and image bases of a matrix
Consider
The third row is the sum of the first two. Replacing by therefore gives a zero row, leaving pivots in columns and . To find the kernel, let and . The first two equations give
Therefore a basis for the kernel is
The pivot positions are in columns and , so the corresponding columns of the original matrix give a basis for the image. (Their leading coordinates also make their linear independence immediate.)
Hence , and
the number of columns.
[routine]
Kernel basis of a row-echelon matrix
Consider the row-echelon matrix
The leading columns are , so the free variables are . Set
Solving from the bottom non-zero row upwards gives
The fourth row gives and substituting this into the third row gives . The second row then gives in the same way.
Finally, the first row gives
Setting each free parameter in turn to and the others to gives one kernel basis vector per free variable. Thus a basis for the kernel is
Because the displayed matrix is already row-echelon, no row operation has changed its columns. Its pivot columns therefore give a basis for the image:
There are four pivot and four free columns, so
[exam]
General solution of an inhomogeneous system
For
take and . Solving the first two equations gives
Therefore
The two direction vectors are the kernel basis found in the first example and the constant vector is a particular solution: .
[routine]
Differentiation on polynomial spaces
Over and for , consider
For and ,
so is a linear map. If
then
Its kernel consists of the constant polynomials:
Thus . Since , rank-nullity gives
The image is : every polynomial of degree at most has a polynomial antiderivative in . Hence its dimension is also , agreeing with the rank calculation.
[routine]