Null Space and Column Space Calculator
Enter a matrix to get exact bases for all four fundamental subspaces, their dimensions, the rank-nullity check, orthogonality checks and a column-space membership test.
Läuft in Ihrem Browser. Ihre Dateien verlassen nie Ihr Gerät. So prüfen Sie es
…
So geht's
- 1Enter A
Type the matrix in the grid or paste it as text.
- 2Choose scaling
Keep whole-number basis vectors or switch to raw fractions.
- 3Read the dimensions
Check the rank, the four dimensions and the rank-nullity sums.
- 4Copy the bases
Read the four bases and the orthogonality checks.
- 5Test a vector
Enter b to see whether it lies in the column space.
- 6Review the steps
Open the RREF lists for A and Aᵀ, then copy or print.
Über dieses Tool
Every m×n matrix A carries four subspaces that together describe everything it does. The column space C(A) holds every vector Ax can reach, and the null space N(A) holds every x that A sends to zero. Their partners for the transpose are the row space C(Aᵀ) and the left null space N(Aᵀ). Gilbert Strang called the relations between them the fundamental theorem of linear algebra: the row space and null space are orthogonal and together fill ℝⁿ, the column space and left null space are orthogonal and fill ℝᵐ, and both pairs are governed by the single number r, the rank. Homework usually asks for a basis of one of these spaces and its dimension, and the usual mistakes are picking columns from the reduced matrix instead of the original, or getting a sign wrong when reading the null space from the RREF. This tool does the bookkeeping exactly. It reduces A and Aᵀ with every row operation recorded, takes pivot columns from the original matrix for the column space, reads null-space vectors from the free columns, and optionally scales each basis vector to whole numbers. It then confirms rank-nullity, checks the orthogonality relations, tests whether a vector b lies in the column space, and shows the projection matrix onto C(A).
Where each basis comes from
Column space: the pivot columns of A itself, because row operations change the columns but keep the dependencies between them. Row space: the non-zero rows of the RREF, since row operations never leave the row space. Null space: one vector per free column, found by setting that free variable to 1, the other free variables to 0, and reading each pivot variable as minus the entry in the free column. Left null space: the null space of Aᵀ, reduced separately and shown in its own step list.
The dimension count
If A has rank r, then dim C(A) = dim C(Aᵀ) = r, dim N(A) = n − r and dim N(Aᵀ) = m − r. The tool prints both sums, r + (n − r) = n and r + (m − r) = m, so you can see rank-nullity hold for your own matrix rather than just quoting it.
Membership and projection
Type a vector b with one entry per row of A. If Ax = b can be solved, b is in the column space and the tool writes it as a combination of the columns. If not, it reports the projection of b onto C(A), computed with P = C(CᵀC)⁻¹Cᵀ where C holds the basis columns. P is also shown on its own; it is symmetric and squares to itself.
Worked example
Enter rows 1 2 0 1, 2 4 1 4 and 3 6 1 5. Three row operations give the RREF with rows 1 2 0 1, 0 0 1 2 and a zero row, so the rank is 2 and the pivot columns are 1 and 3. The column space has basis (1, 2, 3) and (0, 1, 1), taken from the original matrix. The null space, of dimension 4 − 2 = 2, has basis (−2, 1, 0, 0) and (−1, 0, −2, 1). The row space is spanned by (1, 2, 0, 1) and (0, 0, 1, 2), and the left null space, of dimension 3 − 2 = 1, by (−1, −1, 1). The vector b = (1, 3, 4) is in the column space because it equals a1 + a3. The projection matrix has rows 2/3 −1/3 1/3, −1/3 2/3 1/3 and 1/3 1/3 2/3.
Limits
A basis is not unique, so a correct answer in your book may use different but equivalent vectors; check that each of yours is a combination of the tool's. Matrices up to 10×10 with numeric entries are supported. The tool does not work with symbolic parameters.
Rechenbeispiel
Rows 1 2 0 1 / 2 4 1 4 / 3 6 1 5: rank 2, N(A) basis (−2, 1, 0, 0), (−1, 0, −2, 1); N(Aᵀ) basis (−1, −1, 1).
Kurzinfos
- Kategorie: Mathe & Wissenschaft
- Läuft in Ihrem Browser, ohne Anmeldung, ohne Upload.
- Ihre Eingaben bleiben auf Ihrem Gerät.
- Auf Englisch verfügbar.
- Inhalt zuletzt geprüft:
- Offizielle Quelle: The four fundamental subspaces (Strang, The Fundamental Theorem of Linear Algebra, 1993)
Häufig gestellte Fragen
Why take column-space vectors from the original matrix?
Row operations change the column space itself, but they keep linear relations between columns. The pivot positions in the RREF tell you which original columns are independent, and those original columns form the basis.
What is the left null space used for?
It holds the vectors y with yᵀA = 0. Each one gives a condition that b must satisfy for Ax = b to be solvable, and it is orthogonal to the column space.
What does the rank-nullity theorem say?
For an m×n matrix, the rank plus the dimension of the null space equals n, the number of columns. The tool shows the numbers for your matrix and the matching statement for the transpose.
Why scale the basis to whole numbers?
A basis vector can be multiplied by any non-zero number and still be a basis vector. Whole numbers are easier to compare with answer keys; untick the box to see the raw fractions from the RREF.
How do I test whether a vector is in the column space?
Type its entries in the b box. The tool solves Ax = b exactly; if a solution exists, b is in C(A) and the tool shows the combination of columns, otherwise it gives the closest vector in C(A).
Does it show the working?
Yes. Two collapsible lists show every row operation for A and for Aᵀ, with the matrix after each one.
