Column Space Calculator
Calculate the column space, basis vectors, rank, and nullity of any matrix up to 10×10 using Gaussian elimination with step-by-step RREF.
- 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
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.
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.
The Rank-Nullity Theorem relates the fundamental dimensions:
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
| Property | Symbol / Notation | Definition | Dimension Formula |
|---|---|---|---|
| Column Space | Col(A) or Im(A) | Span of column vectors of A | rank(A) |
| Row Space | Row(A) | Span of row vectors of A | rank(A) |
| Null Space | Null(A) or Ker(A) | Solutions to Ax = 0 | n − rank(A) |
| Left Null Space | Null(AT) | Solutions to ATy = 0 | m − rank(A) |
| Rank | rank(A) | Number of pivot positions in RREF | ≤ min(m, n) |
| Nullity | nullity(A) | Dimension of null space | n − rank(A) |
| Full Column Rank | rank = n | All columns are linearly independent | Nullity = 0 |
| Full Row Rank | rank = m | All rows are linearly independent | Left nullity = 0 |
| Rank-Nullity Theorem | - | Fundamental dimension relationship | rank + nullity = n |
| Invertible Matrix | A−1 exists | Square matrix with full rank | rank = m = n |
| Pivot Column | - | Column containing a leading 1 in RREF | Count = rank |
| Free Variable | - | Non-pivot column variable | Count = nullity |
| Spanning Set | - | Set whose span equals the subspace | Size ≥ dimension |
| Linear Independence | - | No vector is a combination of others | Max independent set = rank |
| Orthogonal Complement | Col(A)⊥ | Null(AT) | m − rank(A) |