
The rank–nullity theorem is a theorem in
linear algebra
Linear algebra is the branch of mathematics concerning linear equations such as
:a_1x_1+\cdots +a_nx_n=b,
linear maps such as
:(x_1, \ldots, x_n) \mapsto a_1x_1+\cdots +a_nx_n,
and their representations in vector spaces and through matrix (mathemat ...
, which asserts:
* the number of columns of a matrix is the sum of the
rank of and the
nullity of ; and
* the
dimension
In physics and mathematics, the dimension of a mathematical space (or object) is informally defined as the minimum number of coordinates needed to specify any point within it. Thus, a line has a dimension of one (1D) because only one coo ...
of the
domain of a
linear transformation
In mathematics, and more specifically in linear algebra, a linear map (also called a linear mapping, linear transformation, vector space homomorphism, or in some contexts linear function) is a mapping V \to W between two vector spaces that pr ...
is the sum of the
rank of (the dimension of the
image
An image or picture is a visual representation. An image can be Two-dimensional space, two-dimensional, such as a drawing, painting, or photograph, or Three-dimensional space, three-dimensional, such as a carving or sculpture. Images may be di ...
of ) and the nullity of (the dimension of the
kernel of ).
[ p. 70, §2.1, Theorem 2.3]
It follows that for linear transformations of
vector space
In mathematics and physics, a vector space (also called a linear space) is a set (mathematics), set whose elements, often called vector (mathematics and physics), ''vectors'', can be added together and multiplied ("scaled") by numbers called sc ...
s of equal finite dimension, either
injectivity
In mathematics, an injective function (also known as injection, or one-to-one function ) is a function that maps distinct elements of its domain to distinct elements of its codomain; that is, implies (equivalently by contraposition, impl ...
or
surjectivity implies
bijectivity.
Stating the theorem
Linear transformations
Let
be a linear transformation between two vector spaces where
's domain
is finite dimensional. Then
where
is the
rank of
(the
dimension
In physics and mathematics, the dimension of a mathematical space (or object) is informally defined as the minimum number of coordinates needed to specify any point within it. Thus, a line has a dimension of one (1D) because only one coo ...
of its
image
An image or picture is a visual representation. An image can be Two-dimensional space, two-dimensional, such as a drawing, painting, or photograph, or Three-dimensional space, three-dimensional, such as a carving or sculpture. Images may be di ...
) and
is the
nullity of
(the dimension of its
kernel). In other words,
This theorem can be refined via the
splitting lemma to be a statement about an
isomorphism
In mathematics, an isomorphism is a structure-preserving mapping or morphism between two structures of the same type that can be reversed by an inverse mapping. Two mathematical structures are isomorphic if an isomorphism exists between the ...
of spaces, not just dimensions. Explicitly, since
induces an isomorphism from
to
the existence of a basis for
that extends any given basis of
implies, via the splitting lemma, that
Taking dimensions, the rank–nullity theorem follows.
Matrices
Linear maps can be represented with
matrices
Matrix (: matrices or matrixes) or MATRIX may refer to:
Science and mathematics
* Matrix (mathematics), a rectangular array of numbers, symbols or expressions
* Matrix (logic), part of a formula in prenex normal form
* Matrix (biology), the ...
. More precisely, an
matrix represents a linear map
where
is the underlying
field. So, the dimension of the domain of
is , the number of columns of , and the rank–nullity theorem for an
matrix is
Proofs
Here we provide two proofs. The first
operates in the general case, using linear maps. The second proof looks at the homogeneous system
where
is a
with
rank and shows explicitly that there exists a set of
linearly independent
In the theory of vector spaces, a set of vectors is said to be if there exists no nontrivial linear combination of the vectors that equals the zero vector. If such a linear combination exists, then the vectors are said to be . These concep ...
solutions that span the null space of
.
While the theorem requires that the domain of the linear map be finite-dimensional, there is no such assumption on the codomain. This means that there are linear maps not given by matrices for which the theorem applies. Despite this, the first proof is not actually more general than the second: since the image of the linear map is finite-dimensional, we can represent the map from its domain to its image by a matrix, prove the theorem for that matrix, then compose with the inclusion of the image into the full codomain.
First proof
Let
be vector spaces over some field
and
defined as in the statement of the theorem with
.
As
is a
subspace, there exists a basis for it. Suppose
and let
be such a basis.
We may now, by the
Steinitz exchange lemma, extend
with
linearly independent vectors
to form a full basis of
.
Let
such that
is a basis for
.
From this, we know that
::
We now claim that
is a basis for
.
The above equality already states that
is a generating set for
; it remains to be shown that it is also linearly independent to conclude that it is a basis.
Suppose
is not linearly independent, and let
for some
.
Thus, owing to the linearity of
, it follows that
This is a contradiction to
being a basis, unless all
are equal to zero. This shows that
is linearly independent, and more specifically that it is a basis for
.
To summarize, we have
, a basis for
, and
, a basis for
.
Finally we may state that
::
This concludes our proof.
Second proof
Let
be an
matrix with
linearly independent
In the theory of vector spaces, a set of vectors is said to be if there exists no nontrivial linear combination of the vectors that equals the zero vector. If such a linear combination exists, then the vectors are said to be . These concep ...
columns (i.e.
). We will show that:
To do this, we will produce an
matrix
whose columns form a
basis of the null space of
.
Without loss of generality, assume that the first
columns of
are linearly independent. So, we can write
where
*
is an
matrix with
linearly independent column vectors, and
*
is an
matrix such that each of its
columns is linear combinations of the columns of
.
This means that
for some
matrix
(see
rank factorization
A rank is a position in a hierarchy. It can be formally recognized—for example, cardinal, chief executive officer, general, professor—or unofficial.
People Formal ranks
* Academic rank
* Corporate title
* Diplomatic rank
* Hierarch ...
) and, hence,
Let
where
is the
identity matrix
In linear algebra, the identity matrix of size n is the n\times n square matrix with ones on the main diagonal and zeros elsewhere. It has unique properties, for example when the identity matrix represents a geometric transformation, the obje ...
. So,
is an
matrix such that
Therefore, each of the
columns of
are particular solutions of
.
Furthermore, the
columns of
are
linearly independent
In the theory of vector spaces, a set of vectors is said to be if there exists no nontrivial linear combination of the vectors that equals the zero vector. If such a linear combination exists, then the vectors are said to be . These concep ...
because
will imply
for
:
Therefore, the column vectors of
constitute a set of
linearly independent solutions for
.
We next prove that ''any'' solution of
must be a
linear combination
In mathematics, a linear combination or superposition is an Expression (mathematics), expression constructed from a Set (mathematics), set of terms by multiplying each term by a constant and adding the results (e.g. a linear combination of ''x'' a ...
of the columns of
.
For this, let
be any vector such that
. Since the columns of
are linearly independent,
implies
.
Therefore,
This proves that any vector
that is a solution of
must be a linear combination of the
special solutions given by the columns of
. And we have already seen that the columns of
are linearly independent. Hence, the columns of
constitute a basis for the
null space of
. Therefore, the
nullity of
is
. Since
equals rank of
, it follows that
. This concludes our proof.
A third fundamental subspace
When
is a linear transformation between two finite-dimensional subspaces, with
and
(so can be represented by an
matrix
), the rank–nullity theorem asserts that if
has rank
, then
is the dimension of the
null space of
, which represents the
kernel of
. In some texts, a third fundamental subspace associated to
is considered alongside its image and kernel: the
cokernel
The cokernel of a linear mapping of vector spaces is the quotient space of the codomain of by the image of . The dimension of the cokernel is called the ''corank'' of .
Cokernels are dual to the kernels of category theory, hence the nam ...
of
is the
quotient space , and its dimension is
. This dimension formula (which might also be rendered
) together with the rank–nullity theorem is sometimes called the ''fundamental theorem of linear algebra''.
Reformulations and generalizations
This theorem is a statement of the
first isomorphism theorem
In mathematics, specifically abstract algebra, the isomorphism theorems (also known as Noether's isomorphism theorems) are theorems that describe the relationship among quotients, homomorphisms, and subobjects. Versions of the theorems exist for ...
of algebra for the case of vector spaces; it generalizes to the
splitting lemma.
In more modern language, the theorem can also be phrased as saying that each short exact sequence of vector spaces splits. Explicitly, given that
is a
short exact sequence
In mathematics, an exact sequence is a sequence of morphisms between objects (for example, Group (mathematics), groups, Ring (mathematics), rings, Module (mathematics), modules, and, more generally, objects of an abelian category) such that the Im ...
of vector spaces, then
, hence
Here
plays the role of
and
is
, i.e.
In the finite-dimensional case, this formulation is susceptible to a generalization: if
is an
exact sequence
In mathematics, an exact sequence is a sequence of morphisms between objects (for example, groups, rings, modules, and, more generally, objects of an abelian category) such that the image of one morphism equals the kernel of the next.
Definit ...
of finite-dimensional vector spaces, then
The rank–nullity theorem for finite-dimensional vector spaces may also be formulated in terms of the ''index'' of a linear map. The index of a linear map
, where
and
are finite-dimensional, is defined by
Intuitively,
is the number of independent solutions
of the equation
, and
is the number of independent restrictions that have to be put on
to make
solvable. The rank–nullity theorem for finite-dimensional vector spaces is equivalent to the statement
We see that we can easily read off the index of the linear map
from the involved spaces, without any need to analyze
in detail. This effect also occurs in a much deeper result: the
Atiyah–Singer index theorem states that the index of certain differential operators can be read off the geometry of the involved spaces.
Citations
References
*
*
*
*.
*
*
External links
*
MIT Linear Algebra Lecture on the Four Fundamental Subspaces from
MIT OpenCourseWare
{{DEFAULTSORT:Rank-nullity theorem
Theorems in linear algebra
Isomorphism theorems
Articles containing proofs