Professor Turing

Study guides

What is a null space?

Last updated: 2026-11-26

The null space of a matrix A is the set of all vectors x with Ax = 0. It collects the inputs that A sends to zero. If A has m rows and n columns, those vectors have n entries, and the set is a subspace: it contains zero, and sums and scalar multiples of its members stay in it.

Start learning No account needed

1. How to find a basis

Row reduce A. The columns with a pivot belong to pivot variables, and the other variables are free. Write each pivot variable in terms of the free ones. Then set one free variable to 1 and the others to 0, once for each free variable. The vectors you get form a basis for the null space.

2. A worked example: three equations, four unknowns

Predict how many basis vectors this matrix needs before you read the reduced form. The numbers come from scripts/what-is-a-null-space-worked-example.py in the Professor Turing repository.

A, one row per line:
  (1, 2, 0, 3)
  (2, 4, 1, 8)
  (3, 6, 1, 11)
reduced row echelon form:
  (1, 2, 0, 3)
  (0, 0, 1, 2)
  (0, 0, 0, 0)
pivot columns: 1, 3
null space basis: v1 = (-2, 1, 0, 0), v2 = (-3, 0, -2, 1)
A v1 = (0, 0, 0)
A v2 = (0, 0, 0)
2 v1 - v2 = (-1, 2, 2, -1), A (2 v1 - v2) = (0, 0, 0)
column space basis (columns of A): (1, 2, 3), (0, 1, 1)
rank 2 + nullity 2 = 4 columns
x = (1, 1, 1, 1), A x = (6, 15, 21)
x + v1 = (-1, 2, 1, 1), A (x + v1) = (6, 15, 21)

The reduced rows say x1 + 2 x2 + 3 x4 = 0 and x3 + 2 x4 = 0. Columns 2 and 4 have no pivot, so x2 and x4 are free. Choosing x2 = 1 and x4 = 0 gives (−2, 1, 0, 0). Choosing x2 = 0 and x4 = 1 gives (−3, 0, −2, 1). The null space is the span of those two vectors, a plane through the origin inside four dimensional space.

3. What it means

Look at the last two lines of the output. The inputs (1, 1, 1, 1) and (−1, 2, 1, 1) differ by v1, and both give (6, 15, 21). Adding a null space vector to a solution of Ax = b gives another solution, because A sends the added part to zero. So the null space describes what you cannot learn about x from knowing Ax. When the null space holds the zero vector alone, a solution of Ax = b, if there is one, is the only one.

There is also a picture in terms of rows. Ax = 0 says that x has dot product zero with each row of A. The null space is therefore made of the vectors perpendicular to the row space. See what is a dot product if that step is unfamiliar.

4. Null space, column space and kernel

The column space is the span of the columns of A, which is the set of outputs Ax. It lives among vectors with m entries, here 3, while the null space lives among vectors with n entries, here 4. What ties them together is a count: the dimension of the column space (the rank) plus the dimension of the null space (the nullity) equals the number of columns. In this example that is 2 + 2 = 4. Each of these dimensions is the number of vectors in a basis; see span and basis.

Kernel is another name: the vectors a linear transformation sends to zero are called its null space or its kernel. For T(x) = Ax, they are the null space of A. See what is a linear transformation. For a square matrix, the eigenvectors for an eigenvalue λ, together with zero, form the null space of A − λI; see what are eigenvalues and eigenvectors.

5. A common misconception: read both bases off the reduced matrix

Row operations keep the solutions of Ax = 0, so the null space can be read from the reduced form. They can change the column space. The reduced matrix has pivot columns (1, 0, 0) and (0, 1, 0), whose combinations have third entry 0, while the first column of A is (1, 2, 3). For a column space basis, use the reduced form to find which columns have pivots, then take those columns from the original A: here (1, 2, 3) and (0, 1, 1).

6. Test yourself

Case 1. Find a basis for the null space of the matrix with rows (1, 2) and (2, 4).

Answer to case 1

The equations reduce to x1 + 2 x2 = 0, so a basis is (−2, 1).

Case 2. What is the null space of the 2 by 2 identity matrix?

Answer to case 2

The zero vector alone, since Ix = x. Its dimension is 0 and its basis is empty.

Case 3. A 3 by 5 matrix has rank 3. What is the dimension of its null space, and how many entries does each of its vectors have?

Answer to case 3

5 − 3 = 2, and each vector has 5 entries.

To practice from memory, see how to test yourself. For exam preparation, see how to study for a math exam.

What the sources found, and their limits

Dan Margalit and Joseph Rabinoff, Interactive Linear Algebra, sections 2.6 and 2.7. They define the column space and null space of an m by n matrix, and show that the vectors attached to the free variables form a basis for the null space. A column space basis comes from the pivot columns of the original matrix. Sources: Subspaces and Basis and dimension, read on 2026-11-25.

The same book, section 6.2. It shows that the null space is the orthogonal complement of the row space. Source: Orthogonal complements, read on 2026-11-25.

MathWorld, Null Space. It states that the null space of a linear transformation is also called the kernel. Source: Null Space, read on 2026-11-25.

The same book, section 2.4. It shows that when Ax = b has a solution, its solution set is one particular solution plus the solutions of Ax = 0. Source: Solution sets, read on 2026-11-25.

The same book, section 2.9. It states the rank theorem: rank plus nullity equals the number of columns. Source: The rank theorem, read on 2026-11-25.

Limits: one textbook and one reference entry, with selected passages read. The matrix and the self-test cases are ours.

How Professor Turing helps

Professor Turing is a tutor for adults learning any subject, in college or on their own. It asks you questions instead of giving the final answer, does not grade a bare guess, and remembers what you got wrong. No account is needed to start. It's an AI tutor, free to try.

Bring a matrix and your row reduction. Its first reply asks about your attempt, such as which variables you think are free, before it teaches anything. You must be 18 or older, and guest conversations are deleted 7 days after the last activity.

FAQ

Is the null space the same as the kernel? For a linear transformation, the two words name the same set: the vectors sent to zero. For T(x) = Ax, that set is the null space of A.

How is the null space related to the column space? They can live in spaces of different sizes. For a matrix with n columns, the dimension of the column space plus the dimension of the null space equals n.

Start with what you're working on

Tell the tutor which matrix you are working on and let it ask you the questions.

Start learning No account needed

See also: what is a vector space · all study guides