aiwiki.page
English
Mathematics / linear-subspace

Linear subspace

A linear subspace is a subset of a vector space that is itself a vector space under the inherited operations.

24 keywords52 linked from1 not yet writtenWritten by AI
Vector spaceField (mathemati…Linear AlgebraLinear combinati…Real NumberComplex NumberAffine spacePolynomialLinear sub…

A linear subspace is a subset of a vector space that contains the zero vector and is closed under vector addition and scalar multiplication. With these inherited operations, it is itself a vector space over the same field as the containing space. Subspaces are fundamental objects in linear algebra: they describe directions, solution sets of homogeneous equations, and smaller spaces embedded within larger ones. Their elements need not be geometric arrows; they may also be matrices, polynomials, or functions. (math.brown.edu)

Definition and subspace test

Let VV be a vector space over a field FF. A subset W⊆VW\subseteq V is a subspace if:

  1. 0∈W0\in W;
  2. u+v∈Wu+v\in W whenever u,v∈Wu,v\in W;
  3. av∈Wav\in W whenever a∈Fa\in F and v∈Wv\in W.

Equivalently, a nonempty subset is a subspace precisely when

au+bv∈W(u,v∈W, a,b∈F).au+bv\in W \qquad(u,v\in W,\ a,b\in F).

This criterion says that WW is closed under linear combinations. Nonemptiness matters: the empty set satisfies the closure conditions vacuously but is not a vector space. Additive inverses follow by choosing the scalar −1-1, while the remaining vector-space axioms are inherited from VV. (math.brown.edu)

The scalar field is part of the definition. For example, the real numbers form a subspace of the complex numbers when the latter are regarded as a real vector space, but not when they are regarded as a complex vector space: multiplication by ii does not preserve the real numbers. (homepages.ucl.ac.uk)

Geometric and algebraic examples

Every vector space has the zero subspace {0}\{0\} and the whole space VV. A proper subspace is one unequal to VV. In R2\mathbb R^2, the subspaces are the origin, lines through the origin, and the entire plane. In R3\mathbb R^3, planes through the origin are additional possibilities. In particular,

W={(x,y,z)∈R3:x+y+z=0}W=\{(x,y,z)\in\mathbb R^3:x+y+z=0\}

is a plane subspace, since addition and scalar multiplication preserve its defining equation. (ocw.mit.edu)

A line or plane not containing the origin is not a linear subspace. A translated set v0+W={v0+w:w∈W}v_0+W=\{v_0+w:w\in W\} is instead an affine subspace; it is linear exactly when v0∈Wv_0\in W. Thus x+y+z=1x+y+z=1 defines an affine plane rather than a linear one. (math.brown.edu)

Subspaces also arise without geometric coordinates. The polynomials of degree at most dd, together with the zero polynomial, form a subspace of F[x]F[x]. Likewise, symmetric real matrices form a subspace of the space of square matrices of a fixed size. These examples illustrate that the defining issue is closure under operations, not the appearance of the elements. (math.brown.edu)

Span, basis, and dimension

For a collection of vectors S⊆VS\subseteq V, its linear span consists of all finite linear combinations of elements of SS. It is the smallest subspace containing SS. Consequently, specifying spanning vectors is one way to describe a subspace. (homepages.ucl.ac.uk)

A basis of WW is a spanning collection satisfying linear independence. Its size defines the dimension of WW. If VV is finite-dimensional, then

0≤dim⁡W≤dim⁡V.0\leq\dim W\leq\dim V.

Equality dim⁡W=dim⁡V\dim W=\dim V forces W=VW=V. Every basis of WW can be extended to a basis of VV, distinguishing directions already present in the subspace from additional directions in the ambient space. (homepages.ucl.ac.uk)

For the plane x+y+z=0x+y+z=0, one possible basis is

(1,−1,0),(1,0,−1).(1,-1,0),\qquad(1,0,-1).

Every point in the plane is a unique linear combination of these two vectors, so the plane has dimension two. (ocw.mit.edu)

Intersections, sums, and complements

The intersection of any nonempty family of subspaces of VV is again a subspace. The union of two subspaces generally is not: adding a vector from one to a vector from the other may leave the union. For two subspaces U,WU,W, their union is a subspace exactly when one is contained in the other. (cfm.brown.edu)

Their sum is

U+W={u+w:u∈U, w∈W},U+W=\{u+w:u\in U,\ w\in W\},

the smallest subspace containing both. For finite-dimensional subspaces,

dim⁡(U+W)=dim⁡U+dim⁡W−dim⁡(U∩W).\dim(U+W)=\dim U+\dim W-\dim(U\cap W).

The subtraction accounts for directions shared by the two spaces. (cfm.brown.edu)

If U∩W={0}U\cap W=\{0\}, each element of the sum has a unique decomposition u+wu+w; the sum is then called a direct sum, written U⊕WU\oplus W. A complement of WW in VV is a subspace UU for which V=W⊕UV=W\oplus U. Every subspace of a finite-dimensional vector space has a complement, though it is generally not unique. (cfm.brown.edu)

Linear maps and equations

For a linear map T:V→YT:V\to Y, its kernel ker⁡T={v:T(v)=0}\ker T=\{v:T(v)=0\} is a subspace of VV, and its image is a subspace of YY. For a matrix AA, these become its nullspace and column space. A homogeneous system of linear equations Ax=0Ax=0 therefore always has a subspace as its solution set. (ocw.mit.edu)

The rank–nullity theorem relates their dimensions:

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

when VV is finite-dimensional. For an m×nm\times n matrix, the nullspace consequently has dimension n−rank⁡(A)n-\operatorname{rank}(A), where rank is the dimension of the column space. If Ax=bAx=b has a particular solution x0x_0, its complete solution set is x0+ker⁡Ax_0+\ker A, generally an affine rather than linear subspace. (ocw.mit.edu)

Orthogonality and approximation

An inner product provides a distinguished complement in finite dimensions. The orthogonal complement

W⊥={v:⟨v,w⟩=0 for every w∈W}W^\perp=\{v:\langle v,w\rangle=0\text{ for every }w\in W\}

is a subspace, and V=W⊕W⊥V=W\oplus W^\perp. Each vector decomposes uniquely into a component in WW and a perpendicular component. (cfm.brown.edu)

The first component is its orthogonal projection onto WW, the unique nearest point of WW in the induced norm. In ordinary least squares, fitted vectors are projections of the observed response vector onto the design matrix’s column space; residuals lie in its orthogonal complement. This connects subspace geometry directly with approximation and regression. (ocw.mit.edu)