Calculators.Life Calculator
Math

Null Space Calculator

Input Parameters

Scenarios
Number of rows in the matrix
Number of columns in the matrix

Computed Results

Nullity (Dimension of Null Space)
1
Basis for the Null Space{ [ 1 1 0 ] }
Rank of Matrix2

The Null Space Calculator determines the null space, nullity, and rank of a given matrix. By inputting the matrix dimensions and elements, you can quickly identify the basis vectors that form the null space, simplifying linear algebra computations.

How to Use the Null Space Calculator

Follow these steps to calculate the null space of a matrix:

  1. Set Matrix Dimensions: Enter the number of rows (n) and columns (m) for your matrix. The calculator supports dimensions up to 10x10.
  2. Input Matrix Elements: Enter the numerical values for each position in the matrix.
  3. Review the Results: The calculator will automatically display the nullity, the basis for the null space, and the rank of the matrix.

Formula and Calculation Method

The null space (or kernel) of a matrix A consists of all vectors x such that Ax = 0. The calculator determines this by converting the matrix into Reduced Row Echelon Form (RREF).

The key relationships are defined by the Rank-Nullity Theorem:

Rank + Nullity = Number of Columns (m)

The rank is the number of pivot columns in the RREF matrix, while the nullity is the number of free columns. The basis vectors are derived by setting each free variable to 1 (and others to 0) and solving for the pivot variables. The calculator scales these vectors to integers for a cleaner representation.

Inputs and Outputs

Input/OutputDescription
Rows (n)The number of rows in the matrix (1 to 10).
Columns (m)The number of columns in the matrix (1 to 10).
Matrix ElementsThe individual numerical values of the matrix.
NullityThe dimension of the null space (number of free variables).
Basis for the Null SpaceThe set of linearly independent vectors that span the null space.
Rank of MatrixThe dimension of the column space (number of pivot variables).

Verified Scenario Walkthroughs

Here are examples of how the calculator processes different matrices:

Default Scenario

For a 2x3 matrix with elements [1, -1, -1] in the first row and [2, -2, 1] in the second row, the calculator determines a rank of 2 and a nullity of 1. The resulting basis for the null space is { [ 1 1 0 ] }.

Simple 2x2 Identity Matrix

For a 2x2 identity matrix (rows [1, 0] and [0, 1]), the rank is 2. Because the rank equals the number of columns, the nullity is 0, and the basis is the zero vector { [ 0 0 ] }.

Wide Matrix with More Columns Than Rows

Consider a 2x4 matrix with rows [1, 0, 2, 0] and [0, 1, 3, 0] (using the provided scenario logic). The rank is 2, and the nullity is 2. The calculated basis vectors are { [ 2 3 -1 0 ], [ 0 0 0 1 ] }.

Practical Use Cases

Calculating the null space is a fundamental operation in linear algebra with several practical applications:

Frequently Asked Questions

What is the null space of a matrix?

The null space of a matrix A is the set of all vectors x that satisfy the equation Ax = 0. It represents the solutions to the corresponding homogeneous system of linear equations.

What is the difference between rank and nullity?

Rank is the dimension of the column space (the number of linearly independent columns), while nullity is the dimension of the null space. According to the Rank-Nullity Theorem, the sum of the rank and nullity equals the total number of columns in the matrix.

Why are the basis vectors scaled to integers?

The calculator scales the basis vectors to integers to provide a cleaner, easier-to-read representation, avoiding complex fractions or decimals while still accurately representing the same mathematical space.

Author portrait
About the Author
Arnab Biswas

Calculator developer and SEO strategist who builds practical online calculators and tests calculation logic, input handling, and expected results using real-world scenarios.