Null Space (Kernel) Calculator

Find the basis for the null space (kernel) of a matrix. Reduces the matrix to RREF and solves the homogeneous system Ax = 0.

×

Matrix A

Step-by-Step Row Working

What is the Null Space of a Matrix?

In linear algebra, the null space (or kernel) of an m x n matrix A is a vector subspace of ℝn containing all vectors x that map to the zero vector under the linear transformation defined by A. In other words, it is the complete set of solutions to the homogeneous system of equations:

A × x = 0

To define the null space completely, we find its basis—a set of linearly independent vectors that span the entire subspace. Any vector in the null space can be written as a linear combination of these basis vectors.

How to Find the Null Space Basis Using RREF

The standard method to find the basis of the null space is to solve the homogeneous system using row reduction:

  1. Reduce the matrix A to its Reduced Row Echelon Form (RREF) using Gauss-Jordan elimination.
  2. Identify the pivot columns (columns that contain a leading 1) and the free columns (columns that do not contain a pivot).
  3. Write the system of equations corresponding to the RREF. Each row represents a pivot variable expressed in terms of the free variables.
  4. For each free variable, create a basis vector by setting that free variable to 1 and all other free variables to 0, and then solving for the pivot variables.
  5. The resulting vectors form the basis for the null space.

Rank-Nullity and Linear Independence

The null space is directly related to the concept of linear independence. If the null space contains *only* the zero vector (meaning there are no free variables in RREF), it indicates that the columns of A are **linearly independent**. In this case, the nullity of the matrix is 0.

According to the Rank-Nullity Theorem, the number of columns in A is equal to the rank of A (number of pivots) plus the nullity (number of free variables):

rank(A) + nullity(A) = n

Finding the null space is a critical step in solving non-homogeneous systems Ax = B, as the general solution is the sum of a particular solution and the null space solutions.

Frequently Asked Questions

What is the null space of a matrix?

The null space (or kernel) of a matrix A is the set of all vectors x that satisfy the equation Ax = 0. The dimension of the null space is called the nullity, which equals the number of free variables.

What are free variables in linear systems?

Free variables are variables that correspond to columns without pivots in the RREF of a coefficient matrix. Free variables can take on any arbitrary value, which leads to infinitely many solutions in a consistent system.

What is the rank of a matrix?

The rank of a matrix is the number of linearly independent rows or columns. In RREF or REF, the rank is simply the count of non-zero rows (rows containing at least one pivot).

What is the Rank-Nullity Theorem?

The Rank-Nullity Theorem states that for any matrix A with n columns, the rank of A plus the nullity (dimension of the null space) of A equals n: rank(A) + nullity(A) = n.