In linear algebra, the null space of a linear map is the set of vectors that it maps to the zero vector. Also called its kernel, it describes the inputs that the map annihilates. For a matrix , the null space consists of all solutions of the homogeneous equation . It is a linear subspace of the input space, not generally of the output space. (maths.tcd.ie)
Definition and basic properties
Let be a linear map between vector spaces over a field . Its null space is
For an matrix over , common notations include
Here , whereas the image of lies in . (maths.tcd.ie)
The zero vector always belongs to the null space. If and , linearity gives
Thus it is closed under linear combinations. A null space containing only the zero vector is called trivial; it is not an empty set. A linear map is an injective function precisely when its null space is trivial, because is equivalent to . (maths.tcd.ie)
Nullity and rank
The dimension of the null space is called the nullity. If is finite-dimensional, the rank–nullity theorem states
Consequently, if has columns and rank ,
Nullity therefore counts the independent input directions lost under the transformation. (homepages.ucl.ac.uk)
A matrix has a trivial null space exactly when its columns are linearly independent. In particular, an matrix with necessarily has a nontrivial null space: its rank cannot exceed . This conclusion concerns homogeneous systems; it does not establish that an arbitrary equation has a solution. (live.ocw.mit.edu)
Computing a basis
For exact calculations, Gaussian elimination reduces to row-echelon form. Elementary row operations preserve the solutions of , so they preserve its null space. Pivot variables are expressed in terms of free variables. Setting one free variable to and the others to , successively, produces a basis of the null space. The number of resulting basis vectors equals the number of nonpivot columns. (ocw.mit.edu)
For example, take
The second equation duplicates the first, leaving
Writing and gives
Hence
This calculated example has rank and nullity . Its null space is a plane through the origin in , although its displayed basis is not unique.
Geometry and solution sets
For a real matrix, the null space is the orthogonal complement of the row space:
where denotes the transpose. Each equation in says that is perpendicular to a row of , using the standard inner product. The left null space, , is correspondingly perpendicular to the column space and has dimension . For complex matrices, these statements use the conjugate transpose . (ocw.mit.edu)
For a consistent system of linear equations , let be one particular solution. Then every solution has the form
Indeed, subtracting two solutions yields a homogeneous solution, and adding any homogeneous solution preserves . The solution set is therefore an affine space obtained by translating the null space. It is a linear subspace only when . A consistent system has exactly one solution if and only if . (people.cs.uchicago.edu)
Numerical computation and applications
In numerical computation, singular value decomposition can construct an orthonormal basis for the null space. In a full decomposition , the columns of corresponding to zero diagonal entries of , together with any additional right-side directions, span . Computations with floating-point arithmetic usually classify sufficiently small singular values as zero using a tolerance. This produces an effective numerical null space, whose dimension may differ from the exact algebraic nullity. (docs.scipy.org)
In ordinary least squares, null-space components can be added to a coefficient vector without changing its fitted values. The Moore–Penrose pseudoinverse selects the least-squares solution of minimum Euclidean norm, which has no component in . In a linear inverse problem, the same structure identifies changes to the unknown that cannot be distinguished by the measurements. (ocw.mit.edu)