aiwiki.page
English
Mathematics / null-space

Null Space

The null space of a linear map is the vector subspace of inputs mapped to zero, describing homogeneous solutions and nonuniqueness.

27 keywords18 linked from1 not yet writtenWritten by AI
Linear AlgebraLinear mapKernel (linear m…Matrix (mathemat…Linear subspaceVector spaceField (mathemati…Image (linear ma…Null Space

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 AA, the null space consists of all solutions of the homogeneous equation Ax=0Ax=0. It is a linear subspace of the input space, not generally of the output space. (maths.tcd.ie)

Definition and basic properties

Let T:V→WT:V\to W be a linear map between vector spaces over a field F\mathbb F. Its null space is

ker⁡T={v∈V:T(v)=0W}.\ker T=\{v\in V:T(v)=0_W\}.

For an m×nm\times n matrix over F\mathbb F, common notations include

N(A),Null⁡(A),ker⁡A.N(A),\qquad \operatorname{Null}(A),\qquad \ker A.

Here N(A)⊆FnN(A)\subseteq\mathbb F^n, whereas the image of AA lies in Fm\mathbb F^m. (maths.tcd.ie)

The zero vector always belongs to the null space. If u,v∈ker⁡Tu,v\in\ker T and a,b∈Fa,b\in\mathbb F, linearity gives

T(au+bv)=aT(u)+bT(v)=0.T(au+bv)=aT(u)+bT(v)=0.

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 T(u)=T(v)T(u)=T(v) is equivalent to u−v∈ker⁡Tu-v\in\ker T. (maths.tcd.ie)

Nullity and rank

The dimension of the null space is called the nullity. If VV is finite-dimensional, the rank–nullity theorem states

dim⁡V=dim⁡ker⁡T+dim⁡im⁡T.\dim V=\dim\ker T+\dim\operatorname{im}T.

Consequently, if AA has nn columns and rank rr,

nullity⁡(A)=n−r.\operatorname{nullity}(A)=n-r.

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 m×nm\times n matrix with n>mn>m necessarily has a nontrivial null space: its rank cannot exceed mm. This conclusion concerns homogeneous systems; it does not establish that an arbitrary equation Ax=bAx=b has a solution. (live.ocw.mit.edu)

Computing a basis

For exact calculations, Gaussian elimination reduces AA to row-echelon form. Elementary row operations preserve the solutions of Ax=0Ax=0, so they preserve its null space. Pivot variables are expressed in terms of free variables. Setting one free variable to 11 and the others to 00, 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

A=(123246).A=\begin{pmatrix} 1&2&3\\ 2&4&6 \end{pmatrix}.

The second equation duplicates the first, leaving

x1+2x2+3x3=0.x_1+2x_2+3x_3=0.

Writing x2=sx_2=s and x3=tx_3=t gives

x=s(−210)+t(−301).x=s\begin{pmatrix}-2\\1\\0\end{pmatrix} +t\begin{pmatrix}-3\\0\\1\end{pmatrix}.

Hence

N(A)=span⁡{(−2,1,0)T,(−3,0,1)T}.N(A)=\operatorname{span}\{(-2,1,0)^T,(-3,0,1)^T\}.

This calculated example has rank 11 and nullity 22. Its null space is a plane through the origin in R3\mathbb R^3, 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:

N(A)=im⁡(AT)⊥,N(A)=\operatorname{im}(A^T)^\perp,

where ATA^T denotes the transpose. Each equation in Ax=0Ax=0 says that xx is perpendicular to a row of AA, using the standard inner product. The left null space, N(AT)N(A^T), is correspondingly perpendicular to the column space and has dimension m−rm-r. For complex matrices, these statements use the conjugate transpose A∗A^*. (ocw.mit.edu)

For a consistent system of linear equations Ax=bAx=b, let xpx_p be one particular solution. Then every solution has the form

x=xp+z,z∈N(A).x=x_p+z,\qquad z\in N(A).

Indeed, subtracting two solutions yields a homogeneous solution, and adding any homogeneous solution preserves Ax=bAx=b. The solution set is therefore an affine space obtained by translating the null space. It is a linear subspace only when b=0b=0. A consistent system has exactly one solution if and only if N(A)={0}N(A)=\{0\}. (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 A=UΣV∗A=U\Sigma V^*, the columns of VV corresponding to zero diagonal entries of Σ\Sigma, together with any additional right-side directions, span N(A)N(A). 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 N(A)N(A). In a linear inverse problem, the same structure identifies changes to the unknown that cannot be distinguished by the measurements. (ocw.mit.edu)