Wikipedia / Kernel (linear algebra)
Wikipedia / Kernel (linear algebra)
In mathematics, the kernel of a linear map, also known as the null space or nullspace, is the part of the domain which is mapped to the zero vector of the co-domain; the kernel is always a linear subspace of the domain. That is, given a linear map between two vector spaces and , the kernel of is the vector space of all elements of such that , where denotes the zero vector in ,
Properties
The kernel of is a linear subspace of the domain .
two elements of have the same image in if and only if their difference lies in the kernel of , that is,
From this, it follows by the first isomorphism theorem that the image of is isomorphic to the quotient of In the case where is finite-dimensional, this implies the rank–nullity theorem where the term refers to the dimension of the image of while refers to the dimension of the kernel of
When is an inner product space can be identified with the orthogonal complement in . This is the generalization to linear operators of the row space, or coimage, of a matrix.
Generalization to modules
The notion of kernel also makes sense for homomorphisms of modules, which are generalizations of vector spaces where the scalars are elements of a ring, rather than a field. The domain of the mapping is a module, with the kernel constituting a submodule. Here, the concepts of rank and nullity do not necessarily apply.
In functional analysis
If and are topological vector spaces such that is finite-dimensional, then a linear operator is continuous if and only if the kernel of is a closed subspace of .
Representation as matrix multiplication
Consider a linear map represented as a matrix with coefficients in a field ), that is operating on column vectors with components over . The kernel of this linear map is the set of solutions to the equation , where is understood as the zero vector. The dimension of the kernel of A is called the nullity of A. In set-builder notation The matrix equation is equivalent to a homogeneous system of linear equations Thus the kernel of A is the same as the solution set to the above homogeneous equations.
Subspace properties
The kernel of a matrix over a field is a linear subspace of . That is, the kernel of , the set , has the following three properties:
always contains the zero vector, since .
If and , then . This follows from the distributivity of matrix multiplication over addition.
If and is a scalar , then , since .
The row space of a matrix
The product Ax can be written in terms of the dot product
Here, denote the rows of the matrix . It follows that is in the kernel of , if and only if is orthogonal (or perpendicular) to each of the row vectors of (since orthogonality is defined as having a dot product of 0).
The row space, or coimage, of a matrix is the span of the row vectors of . By the above reasoning, the kernel of is the orthogonal complement to the row space. That is, a vector lies in the kernel of , if and only if it is perpendicular to every vector in the row space of .
The dimension of the row space of is called the rank of A, and the dimension of the kernel of is called the nullity of . These quantities are related by the rank–nullity theorem
Left null space
The left null space, or cokernel, of a matrix consists of all column vectors such that , where T denotes the transpose of a matrix. The left null space of is the same as the kernel of . The left null space of is the orthogonal complement to the column space of , and is dual to the cokernel of the associated linear transformation. The kernel, the row space, the column space, and the left null space of are the four fundamental subspaces associated with the matrix .
Nonhomogeneous systems of linear equations
If and Thus, the difference of any two solutions to the equation lies in the kernel of .
It follows that any solution to the equation can be expressed as the sum of a fixed solution and an arbitrary element of the kernel. That is, the solution set to the equation Geometrically, this says that the solution set to is the translation of the kernel of by the vector . See also Fredholm alternative and flat (geometry).
Illustration
The following is a simple illustration of the computation of the kernel of a matrix (see , below for methods better suited to more complex calculations). The illustration also touches on the row space and its relation to the kernel.
The kernel of this matrix consists of all vectors which can be expressed as a homogeneous system of linear equations involving , , and
Through Gauss–Jordan elimination
The elements of the kernel can be further expressed in parametric vector form
Since is a free variable The kernel of is precisely the solution set to these equations (in this case, a line through the origin in ). Here, the vector constitutes a basis of the kernel of . The nullity of is therefore 1, as it is spanned by a single vector.
which illustrates that vectors in the kernel of are orthogonal to each of the row vectors of .
These two (linearly independent) row vectors span the row space of —a plane orthogonal to the vector .
With the rank 2 of , the nullity 1 of , and the dimension 3 of , we have an illustration of the rank-nullity theorem.
Examples
If , then the kernel of is the solution set to a homogeneous system of linear equations. As in the above illustration, if then the kernel of
Let denote the vector space of all continuous real-valued functions on the interval [0,1], and define Then the kernel of consists of all functions for which .
Let be the vector space of all infinitely differentiable functions , and let be the differentiation operator Then the kernel of consists of all functions in whose derivatives are zero, i.e. the set of all constant functions.
Let be the direct product of infinitely many copies of , and let be the shift operator Then the kernel of is the one-dimensional subspace consisting of all vectors .
If is an inner product space and is a subspace, the kernel of the orthogonal projection is the orthogonal complement to in .
Computation by Gaussian elimination
A basis of the kernel of a matrix may be computed by Gaussian elimination.
For this purpose, given an matrix , we construct first the row augmented matrix where is the identity matrix.
Computing its column echelon form A basis of the kernel of consists in the non-zero columns of such that the corresponding column of is a zero column.
In fact, the computation may be stopped as soon as the upper matrix is in column echelon form: the remainder of the computation consists in changing the basis of the vector space generated by the columns whose upper part is zero.
The last three columns of are zero columns. Therefore, the three last vectors of are a basis of the kernel of .
in column echelon form. Thus and where is in column echelon form, correspond to the zero columns of By multiplying by is a linear combination of the corresponding columns of
Numerical computation
The problem of computing the kernel on a computer depends on the nature of the coefficients.
Exact coefficients
If the coefficients of the matrix are exactly given numbers, the column echelon form of the matrix may be computed with Bareiss algorithm more efficiently than with Gaussian elimination. It is even more efficient to use modular arithmetic and Chinese remainder theorem, which reduces the problem to several similar ones over finite fields (this avoids the overhead induced by the non-linearity of the computational complexity of integer multiplication).
For coefficients in a finite field, Gaussian elimination works well, but for the large matrices that occur in cryptography and Gröbner basis computation, better algorithms are known, which have roughly the same computational complexity, but are faster and behave better with modern computer hardware.
Floating point computation
For matrices whose entries are floating-point numbers, the problem of computing the kernel makes sense only for matrices such that the number of rows is equal to their rank: because of the rounding errors, a floating-point matrix has almost always a full rank, even when it is an approximation of a matrix of a much smaller rank. Even for a full-rank matrix, it is possible to compute its kernel only if it is well conditioned, i.e. it has a low condition number.
Even for a well conditioned full rank matrix, Gaussian elimination does not behave correctly: it introduces rounding errors that are too large for getting a significant result. As the computation of the kernel of a matrix is a special instance of solving a homogeneous system of linear equations, the kernel may be computed with any of the various algorithms designed to solve homogeneous systems. A state of the art software for this purpose is the Lapack library.
See also
Notes and references
Bibliography
External links