User Rating 0.0
Total Usage 0 times
×
[
]
  • 3×3 Full Rank
  • 3×3 Rank 2
  • 3×3 Rank 1
  • 2×4 Wide
  • 4×2 Tall
  • 3×3 Zero Matrix
  • 3×3 Identity
  • 4×4 Rank 3
Is this tool helpful?

Your feedback helps us improve.

About

The column space of a matrix A is the set of all possible linear combinations of its column vectors. It forms a subspace of Rm where m is the number of rows. Computing it incorrectly leads to wrong conclusions about system solvability: a vector b lies in the column space of A if and only if Ax = b has a solution. Misidentifying the basis means misidentifying which systems are consistent. This tool applies Gaussian elimination with partial pivoting to compute the Reduced Row Echelon Form, identifies pivot columns, and extracts the corresponding columns from the original matrix as the basis for Col(A).

The calculator also computes the rank (dimension of the column space) and nullity via the Rank-Nullity Theorem: rank(A) + nullity(A) = n. Results assume exact rational-like arithmetic with floating-point tolerance 1e-10. For matrices with entries near that threshold, results may be unreliable. Supports real-valued matrices up to 10 × 10.

column space matrix calculator linear algebra basis vectors rank RREF Gaussian elimination nullity

Formulas

The column space basis is found by reducing A to its Reduced Row Echelon Form and identifying pivot columns. The corresponding columns of the original matrix form the basis.

RREF(A) pivot columns at positions j1, j2, …, jr
Col(A) = Span{aj1, aj2, …, ajr}

The Rank-Nullity Theorem relates the fundamental dimensions:

rank(A) + nullity(A) = n

Where A is an m × n matrix, rank(A) = r is the number of pivot columns, and n is the number of columns. Gaussian elimination proceeds by: (1) find the leftmost non-zero column, (2) swap rows to place the largest absolute value at the pivot position (partial pivoting), (3) scale the pivot row so the leading entry is 1, (4) eliminate all other entries in that column via row replacement.

Reference Data

PropertySymbol / NotationDefinitionDimension Formula
Column SpaceCol(A) or Im(A)Span of column vectors of Arank(A)
Row SpaceRow(A)Span of row vectors of Arank(A)
Null SpaceNull(A) or Ker(A)Solutions to Ax = 0n rank(A)
Left Null SpaceNull(AT)Solutions to ATy = 0m rank(A)
Rankrank(A)Number of pivot positions in RREF min(m, n)
Nullitynullity(A)Dimension of null spacen rank(A)
Full Column Rankrank = nAll columns are linearly independentNullity = 0
Full Row Rankrank = mAll rows are linearly independentLeft nullity = 0
Rank-Nullity Theorem - Fundamental dimension relationshiprank + nullity = n
Invertible MatrixA1 existsSquare matrix with full rankrank = m = n
Pivot Column - Column containing a leading 1 in RREFCount = rank
Free Variable - Non-pivot column variableCount = nullity
Spanning Set - Set whose span equals the subspaceSize dimension
Linear Independence - No vector is a combination of othersMax independent set = rank
Orthogonal ComplementCol(A)Null(AT)m rank(A)

Frequently Asked Questions

The column space of the original matrix A and its RREF are generally different subspaces. Row operations preserve the row space and null space, but not the column space. However, the RREF reveals which columns are pivot columns. Those same column positions in the original matrix A form a basis for Col(A). This is why the calculator extracts columns from the original matrix, not from the reduced form.
This calculator uses an epsilon tolerance of 1e-10 when determining if a value is zero during Gaussian elimination. If your matrix has entries that are very close to zero (within that threshold), the algorithm may incorrectly classify a pivot as zero or vice versa, producing a wrong rank. For matrices derived from measurement data with inherent noise, consider rounding entries before input. Singular Value Decomposition (SVD) provides more numerically stable rank determination but is beyond this tool's scope.
Yes. If rank(A) = m (full row rank), then the column space spans all of Rm. This requires at least m columns (n m) and that those columns contain m linearly independent vectors. In practical terms, the system Ax = b is consistent for every b.
This is a fundamental theorem in linear algebra. The number of pivot positions in the RREF equals both the number of linearly independent rows and the number of linearly independent columns. Intuitively, each pivot simultaneously determines an independent row direction and an independent column direction. Therefore dim(Col(A)) = dim(Row(A)) = rank(A).
If every column is a scalar multiple of one column (or the zero vector), the rank is at most 1. The column space is then either the zero subspace {0} (rank 0, all-zero matrix) or a line through the origin in Rm (rank 1). The nullity would be n 1, meaning almost all variables are free.
Two checks: (1) The number of basis vectors must equal the rank. (2) The basis vectors must be linearly independent, which you can verify by forming a matrix from them and checking that its RREF has no zero rows. Additionally, every column of the original matrix must be expressible as a linear combination of the basis vectors. This calculator shows the RREF so you can cross-check pivot positions yourself.