In Linear Algebra, linear subspace is also known as vector subspace, which is a subset of a larger vector space. A linear subspace is normally called as subspace when the context serves to distinguish it from other types of subspaces.
For all subspace U, they have to satisfy the following 3 rules:
(1) Additive identity
0,u∈U, and 0+u=u+0, 0 and u here are vectors.
(2) Close under addition
For all u,w∈U, then u+w∈U, u and w here are vectors.
(3) Close under scalar multiplication
For all u∈U, k∈R, then k∗u∈U, u is a vector and k is a constant.
Suppose that A is a m∗n matrix that maps vectors in Rn to vectors in Rm. The four fundamental subspaces associated with A, two in Rn and two in Rn.
A=⎝⎛a11…am1………a1n…amn⎠⎞=⎝⎛121347363⎠⎞∈Mm,n(R)=M3,3(R)
Column Space
The column space of A is the linear combination of all linearly independent non-zero columns in A (it works with or without Gaussian elimination), i.e. Ax, subspace in Rm.
So C(A) span ⎩⎪⎨⎪⎧⎝⎜⎛a11⋮am1⎠⎟⎞⋯⎝⎜⎛a1n⋮amn⎠⎟⎞⎭⎪⎬⎪⎫ , and the rank of A is equal to the dimension of column space.
We apply Gaussian elimination on matrix A, then get A=⎝⎛121347363⎠⎞⟶⎝⎛100010300⎠⎞.
Because column 1 and column 3 are not linearly independent, C(A) is the linear combination of column 2 and column 1 or column 2 and column 3, either of these two is correct.
If we choose column 1 and column 2, then C(A)=⎩⎨⎧⎝⎛100⎠⎞,⎝⎛010⎠⎞⎭⎬⎫, and Rank(A)=dim(C(A))=2.
Row Space
The row space of A is the linear combination of all non-zero rows in A after Gaussian elimination, i.e. ATy, subspace in Rn.
So R(A)=C(AT) span {(a11…a1n)⋯(am1⋯amn)}.
According to Gaussian elimination, we get A→⎝⎛100010300⎠⎞, then row space of A is the non-zero rows (row 1 and row 2), R(A)={(1,0,3),(0,1,0)}.
Nullspace
The nullspace of A is the linear combination of all solution of Ax=0, subspace in Rn.
According to Gaussian elimination, we get A→⎝⎛100010300⎠⎞, then we get \
⎝⎛100010300⎠⎞⋅⎝⎛x1x2x3⎠⎞=⎩⎨⎧x1+3x3=0x2=0→⎩⎨⎧x1=−3x3x2=0x3∈R→x=N(A)=⎝⎛−301⎠⎞⋅x3 \
So a basis of N(A) is (−3,0,1), and nullity of A: null(A)=dim(N(A))=1.
Left Nullspace
The left nullspace of A is the linear combination of all solution of ATy=0, subspace in Rm.
We apply Gaussian elimination on matrix AT, then get AT=⎝⎛133246173⎠⎞⟶⎝⎛1000105−20⎠⎞ \
⎝⎛1000105−20⎠⎞⋅⎝⎛y1y2y3⎠⎞=⎩⎨⎧y1+5y3=0y2−2y3=0→⎩⎨⎧y1=−5y3y2=2y3y3∈R→y=N(AT)=⎝⎛−521⎠⎞⋅y3 \ \
So a basis of N(AT) is (−5,2,1), and null(AT)=dim(N(AT))=1.
Characteristic of these four subspaces
(1) Orthogonal: Column space and left nullspace are orthogonal, row space and null space are orthogonal. \
C(A)⊥N(A⊤)→(1,2,1)⋅⎝⎛−521⎠⎞=(3,4,7)⋅⎝⎛−521⎠⎞=0 \
R(A)⊥N(A)→(1,0,3)⋅⎝⎛−301⎠⎞=(0,1,0)⋅⎝⎛−301⎠⎞=0
(2) Rank-nullity:
Rank + Nullity = Column Number \
dim(Row Space) + dim(Left Nullsapce) = Row Number