In linear algebra, the column space (also called the range or image) of a matrix A is the span (set of all possible linear combinations) of its column vectors. The column space of a matrix is the image or range of the corresponding matrix transformation. Let F be a field. The column space of an m×n matrix with components from F is a linear subspace of the m-space Fm. The dimension of the column space is called the rank of the matrix and is at most min{m,n}. A definition for matrices over a ring R (i.e., with components from R) is also possible. The row space is defined similarly. The row space and the column space of a matrix A are sometimes denoted as C(A𝖳) and C(A), respectively. This article considers matrices of real numbers. The row and column spaces are subspaces of the real coordinate spaces ℝn and ℝm, respectively.
Overview Let A be an m-by-n matrix. Then
rank(A) = dim(rowsp(A)) = dim(colsp(A)), rank(A) = number of pivots in any echelon form of A, rank(A) = the maximum number of linearly independent rows or columns of A. If the matrix represents a linear transformation, the column space of the matrix equals the image of this linear transformation. The column space of a matrix A is the set of all linear combinations of the columns in A. If A = [a1 ⋯ an], then colsp(A) = span({a1, ..., an}). Given a matrix A, the action of the matrix A on a vector x returns a linear combination of the columns of A with the coordinates of x as coefficients; that is, the columns of the matrix generate the column space.
Example Given a matrix J:
J=[24132−1−21051622236251] the rows are 𝐫1=[24132], 𝐫2=[−1−2105], 𝐫3=[16222], 𝐫4=[36251]. Consequently, the row space of J is the subspace of ℝ5 spanned by { r1, r2, r3, r4 }. Since these four row vectors are linearly independent, the row space is 4-dimensional. Moreover, in this case it can be seen that they are all orthogonal to the vector n = [6, −1, 4, −4, 0] (n is an element of the kernel of J ), so it can be deduced that the row space consists of all vectors in ℝ5 that are orthogonal to n.
Column space
Definition Let K be a field of scalars. Let A be an m × n matrix, with column vectors v1, v2, ..., vn. A linear combination of these vectors is any vector of the form
c1𝐯1+c2𝐯2+⋯+cn𝐯n, where c1, c2, ..., cn are scalars. The set of all possible linear combinations of v1, ..., vn is called the column space of A. That is, the column space of A is the span of the vectors v1, ..., vn. Any linear combination of the column vectors of a matrix A can be written as the product of A with a column vector:
A[c1⋮cn]=[a11⋯a1n⋮⋱⋮am1⋯amn][c1⋮cn]=[c1a11+⋯+cna1n⋮c1am1+⋯+cnamn]=c1[a11⋮am1]+⋯+cn[a1n⋮amn]=c1𝐯1+⋯+cn𝐯n Therefore, the column space of A consists of all possible products Ax, for x ∈ Kn. This is the same as the image (or range) of the corresponding matrix transformation.
Example If A=[100120], then the column vectors are v1 = [1, 0, 2]T and v2 = [0, 1, 0]T. A linear combination of v1 and v2 is any vector of the form c1[102]+c2[010]=[c1c22c1] The set of all such vectors is the column space of A. In this case, the column space is precisely the set of vectors (x, y, z) ∈ R3 satisfying the equation z = 2x (using Cartesian coordinates, this set is a plane through the origin in three-dimensional space).
Basis The columns of A span the column space, but they may not form a basis if the column vectors are not linearly independent. Fortunately, elementary row operations do not affect the dependence relations between the column vectors. This makes it possible to use row reduction to find a basis for the column space. For example, consider the matrix
A=[1314273915311208]. The columns of this matrix span the column space, but they may not be linearly independent, in which case some subset of them will form a basis. To find this basis, we reduce A to reduced row echelon form:
[1314273915311208]∼[13140111022−30−1−14]∼[10−210111000−50005]∼[10−20011000010000]. At this point, it is clear that the first, second, and fourth columns are linearly independent, while the third column is a linear combination of the first two. (Specifically, v3 = −2v1 + v2.) Therefore, the first, second, and fourth columns of the original matrix are a basis for the column space:
[1211],[3752],[4918]. Note that the independent columns of the reduced row echelon form are precisely the columns with pivots. This makes it possible to determine which columns are linearly independent by reducing only to echelon form. The above algorithm can be used in general to find the dependence relations between any set of vectors, and to pick out a basis from any spanning set. Also finding a basis for the column space of A is equivalent to finding a basis for the row space of the transpose matrix AT. To find the basis in a practical setting (e.g., for large matrices), the singular-value decomposition is typically used.
Dimension
The dimension of the column space is called the rank of the matrix. The rank is equal to the number of pivots in the reduced row echelon form, and is the maximum number of linearly independent columns that can be chosen from the matrix. For example, the 4 × 4 matrix in the example above has rank three. Because the column space is the image of the corresponding matrix transformation, the rank of a matrix is the same as the dimension of the image. For example, the transformation ℝ4→ℝ4 described by the matrix above maps all of ℝ4 to some three-dimensional subspace. The nullity of a matrix is the dimension of the null space, and is equal to the number of columns in the reduced row echelon form that do not have pivots. The rank and nullity of a matrix A with n columns are related by the equation:
rank(A)+nullity(A)=n. This is known as the rank–nullity theorem.
Relation to the left null space The left null space of A is the set of all vectors x such that xTA = 0T. It is the same as the null space of the transpose of A. The product of the matrix AT and the vector x can be written in terms of the dot product of vectors:
A𝖳𝐱=[𝐯1⋅𝐱𝐯2⋅𝐱⋮𝐯n⋅𝐱], because row vectors of AT are transposes of column vectors vk of A. Thus ATx = 0 if and only if x is orthogonal (perpendicular) to each of the column vectors of A. It follows that the left null space (the null space of AT) is the orthogonal complement to the column space of A. For a matrix A, the column space, row space, null space, and left null space are sometimes referred to as the four fundamental subspaces.
… excerpt ends here. Continue reading the full article.



