Null Space Calculator
The Null Space Calculator is a free online tool for finding the null space (kernel) of a matrix. It quickly computes all solutions to the homogeneous equation
\( A\mathbf{x} = \mathbf{0} \)
for a given matrix \(A\). In other words, this calculator finds the set of all vectors \(\mathbf{x}\) that are sent to the zero vector by \(A\) – known as the null space or kernel of \(A\).
Our matrix null space calculator is designed for students, educators, and anyone dealing with linear algebra problems, making it easy to obtain the null space of a matrix step by step. You can input matrices from \(2 \times 2\) up to \(6 \times 7\) in size, and with a single click the tool will determine the null space basis, the matrix’s rank and nullity, and even provide a detailed reduced row echelon form (RREF) solution.
The interface is clean and beginner-friendly, with interactive features like example matrices and optional step-by-step explanations. This null space (kernel) calculator uses reliable numerical methods to ensure accurate results (with fractions for exact values), and it works on any device so you can learn and explore linear algebra anywhere.
Mad Plexus is a growing network of focused calculators and visual tools. Explore → Mad Plexus
Related Linear Algebra Tools
- Find reduced row-echelon form using the RREF Calculator
- Explore matrix structure with the Augmented Matrix Calculator
- Solve systems with the Gaussian Elimination Calculator
- Test with the Matrix Multiplication

MatrixCalculator.com
Table of Contents
How to Use the Calculator
Using the null space calculator is straightforward. Just follow these steps:
1.Select the matrix size: Use the Rows and Columns dropdown menus at the top of the calculator to set the dimensions of matrix A. You can choose any size from a 2×2 matrix up to a 6×7 matrix (6 rows and 7 columns maximum). The input grid will adjust to the selected size.
2. Enter the matrix entries: Fill in the values of matrix \(A\) in the input grid. Each cell corresponds to an entry \(a_{ij}\) of the matrix. You can type integers, decimals, or fractional values for each entry. If any cell is left blank, the calculator assumes it to be \(0\) (zero) by default.
Tip!: You do not need to type \(0\) for empty cells – they’ll be treated as \(0\) automatically.
3. (Optional) Choose step-by-step solution: If you want to see the row reduction process, tick the “Show Step-by-Step Solution” checkbox. This option tells the calculator to display each step of the Gaussian elimination process used to find the null space. It’s a great way to learn how the solution is obtained.
4. (Optional) Load an example matrix: Not sure what matrix to try? Use the Quick Examples provided. Click on “Simple 2×3”, “Standard 3×4”, or “Square 3×3” to instantly load a sample matrix into the calculator. These examples demonstrate common scenarios (a 2×3 matrix with a non-trivial null space, a 3×4 matrix example, and a 3×3 square matrix). You can modify the example entries or use them as they are.
5. Calculate the null space: Once your matrix is ready, click the Calculate Null Space button. The calculator will immediately compute the null space of the matrix \(A\) (solving \(A\mathbf{x} = \mathbf{0}\)). In the background, it performs a Gauss–Jordan elimination to reduce the matrix to RREF. The results section will appear below the input, displaying the outcome.
Review and interpret the results: The output will show important information about the matrix and its null space. You’ll see whether a trivial or non-trivial null space was found, the rank of the matrix and nullity (dimension of the null space), and the basis vectors that span the null space (if any exist beyond the zero vector). If you enabled step-by-step mode, you’ll also see a detailed breakdown of each elimination step and the final RREF of the matrix. Use the Clear Matrix button to reset the calculator for a new problem, or use Copy Solution to copy the results text and Print to PDF to save the solution for your records.
Inputs
Supported Matrix Sizes: The null space calculator supports matrices as small as \(2 \times 2\) and as large as \(6 \times 7\). This means you can work with up to 6 rows and 7 columns. Both square and rectangular matrices are allowed. For example, you could input a wide matrix like \(2 \times 5\) (more columns than rows) or a tall matrix like \(6 \times 3\) (more rows than columns).
The calculator will find the null space of \(A\mathbf{x} = \mathbf{0}\) for any such matrix. Keep in mind that very large matrices are not supported here (the interface is capped at 6 rows by 7 columns), focusing on matrices common in textbook problems and exam questions.
Entering Matrix Values: Input your matrix \(A\) by typing numbers into the grid cells. You can use positive or negative integers (e.g. \(5, -2\)), decimals (e.g. \(3.5, 0.5\)), or fractions if needed. For instance, you could input \(1/2\) or \(0.5\) and the calculator will interpret it as \(0.5\).
Each cell has a placeholder when empty, and any empty cell will count as \(0\). This is convenient for sparse matrices – you only need to fill in the non-zero entries. The label above the matrix input reads “Enter Matrix A (Find Null Space of \(A\mathbf{x} = \mathbf{0}\))”, reminding you that we are solving \(A\mathbf{x} = \mathbf{0}\).
If your matrix has a special form (like all zeros in a row or column), the calculator handles that seamlessly – zeros are just treated normally in the computation.
Using the Example Buttons: To quickly see how the calculator works, you can click one of the example buttons: Simple 2×3, Standard 3×4, or Square 3×3. Each example will populate the matrix with preset values:
– Simple \(2 \times 3\): Fills a 2-row, 3-column matrix (e.g.) that has a non-trivial null space.
\[
\begin{pmatrix}
1 & 2 & 3 \\
2 & 4 & 6
\end{pmatrix}
\]
– Standard \(3 \times 4\): Fills a 3-row, 4-column matrix example.
– Square \(3 \times 3\): Fills a \(3 \times 3\) example matrix (a square matrix).
These examples are great for experimentation. After loading an example, you can click Calculate Null Space to see the results, then modify some entries and calculate again to observe how the null space changes.
Precision and Formatting: The calculator is designed to provide exact, easy-to-read results. It will automatically simplify fractions and use appropriate formatting for neat output. For example, if your matrix leads to a solution like \(x = 13x = \tfrac{1}{3}x = 31\), the result may be displayed as a fraction \( \tfrac{13}{31} \) instead of a decimal, to preserve exactness. This is helpful for avoiding rounding errors.
All calculations are done with robust algorithms to maintain numerical stability – the calculator even chooses pivot elements carefully during elimination to reduce round-off error. You can generally mix integers and decimals in your input; the output will present the null space basis in simplified form. If a result is a very large or repeating decimal, it may be converted to a fraction for clarity.
In summary, enter your matrix coefficients as accurately as possible, and the tool will handle the precision to give you an exact null space description.
Results Explained
Once you hit Calculate Null Space, the calculator displays the results in a structured format. Here’s how to understand the output and what each part means:
Trivial vs. Non-Trivial Null Space
Right away, the calculator will indicate whether the null space is trivial or non-trivial. A trivial null space means the only solution to \(A\mathbf{x} = \mathbf{0}\) is the zero vector \(\mathbf{x} = \mathbf{0}\). In this case, the calculator might display a message like “Trivial Null Space (only the zero vector)”.
A trivial null space occurs when the matrix \(A\) has full rank, so there are no free variables in the system – the only way to satisfy \(A\mathbf{x} = \mathbf{0}\) is \(x_{1} = x_{2} = \cdots = 0\).
By contrast, a non-trivial null space means there are infinitely many solutions besides the zero vector. The calculator will show “Non-Trivial Null Space Found” when this happens, indicating that \(A\mathbf{x} = \mathbf{0}\) has non-zero solutions. Non-trivial solutions arise when the matrix is not full rank (some rows or columns are linearly dependent), leaving one or more free variables in the system.
In general, if the nullity (number of free parameters) is greater than \(0\), you have infinitely many solutions in the null space (a whole subspace of solutions). If nullity \(= 0\), then the null space is trivial (only the zero solution).
Rank and Nullity
The rank of matrix \(A\) and the nullity of \(A\) are two key numbers shown in the results. The rank is the number of independent rows or columns in \(A\), equivalently the number of pivots in its RREF. The nullity is the dimension of the null space – essentially the number of independent solution vectors in
\(A\mathbf{x} = \mathbf{0}\).
These two are connected by the Rank–Nullity Theorem: for any matrix \(A\) with \(n\) columns,
\[
\text{rank}(A) + \text{nullity}(A) = n
\]
The calculator verifies this relationship in its output. For example, if \(A\) is a \(3 \times 4\) matrix (4 columns) and it finds rank \(=2\), you should see nullity \(=2\), since \(2 + 2 = 4\). A full-rank matrix will have nullity \(0\) (trivial null space), whereas a matrix with deficient rank will have a positive nullity indicating the presence of free variables. The results panel clearly lists:
– Rank: The rank of \(A\) (how many pivots or independent rows it has).
– Nullity (Dimension): The dimension of the null space, i.e. number of basis vectors. (This is shown in parentheses as “Dimension” for clarity.)
As an example, consider a matrix \(A\) that is \(2 \times 3\) (2 rows, 3 columns). The maximum rank it could have is 2 (if rows are independent). If the calculator finds rank \(=2\), then nullity \(=1\) (since \(3 – 2 = 1\)). If rank \(=1\), then nullity \(=2\). These values tell you immediately how “large” the solution space is: a nullity of 2 means there are two free parameters in the solution, hence two basis vectors spanning an entire plane of solutions in \(\mathbb{R}^3\).
Basis for the Null Space and General Solution
Basis for the Null Space and General Solution
Perhaps the most important part of the output is the Basis for the Null Space. If the null space is non-trivial, the calculator will provide one or more basis vectors. A basis is a set of vectors that are linearly independent and span the null space. In practical terms, each basis vector is a specific solution to \(A\mathbf{x} = \mathbf{0}\), and any solution can be expressed as a combination of these basis vectors. The calculator displays basis vectors as columns, labeled \(\mathbf{v}_{1}, \mathbf{v}_{2}, \dots\). For example, you might see something like:
Basis for Null Space:
v1 = [ -2, 1, 0 ]
v2 = [ -3, 0, 1 ]
This means the null space is two-dimensional and is spanned by the vectors
\(\mathbf{v}_{1} = (-2, 1, 0)^{T}\) and \(\mathbf{v}_{2} = (-3, 0, 1)^{T}\).
Along with the basis, the calculator often presents the general solution form. Using the above example basis, it would state that any vector \(\mathbf{x}\) in the null space can be written as a linear combination of \(\mathbf{v}_{1}\) and \(\mathbf{v}_{2}\):
\[
\mathbf{x} = c_{1}\mathbf{v}_{1} + c_{2}\mathbf{v}_{2},
\]
where \(c_{1}, c_{2}\) are arbitrary real numbers. This general solution highlights that there are infinitely many solutions (since you can choose any values for the parameters \(c_{1}, c_{2}\)), and the basis vectors provide a convenient way to describe all of them.
– If the nullity were 1, you’d get a single basis vector \(\mathbf{v}_{1}\), and every solution is just \(c_{1}\mathbf{v}_{1}\).
– If nullity \(= 0\), no basis vectors are listed (because only the zero vector is in the null space in that case).
Step-by-Step Example: Let’s walk through an example to illustrate these concepts. Suppose we input the *Simple \(2 \times 3\)* example matrix:
\[
A = \begin{pmatrix}
1 & 2 & 3 \\
2 & 4 & 6
\end{pmatrix}.
\]
This matrix’s second row is actually twice the first row, which means the rows are linearly dependent. Intuitively, we expect a non-trivial null space because the two equations represented by the rows are not independent. Here’s how the calculator finds the null space step by step (if you enabled Show Step-by-Step Solution):
– Step 1: Initial Matrix – It starts with matrix \(A\). The goal is to solve \(A\mathbf{x} = \mathbf{0}\). In augmented matrix form, we would be augmenting with a zero column, but since it’s all zeros, the process focuses on reducing \(A\) itself to find the relations between variables.
– Step 2: R1 ↔ R2 (Swap Rows) – The algorithm performs a row swap. In this case, it swaps Row 1 and Row 2. (The reasoning here is to get a better pivot in the first row; Row 2 had a leading 2 which is larger in absolute value. This is a stability step – swapping ensures a non-zero pivot in the top-left position.) After the swap, the matrix becomes:
\[
\begin{pmatrix}
2 & 4 & 6 \\
1 & 2 & 3
\end{pmatrix}.
\]
– Step 3: R1 = (1/2) * R1 – Next, it scales the new Row 1 by \(\tfrac{1}{2}\) to turn the leading entry into 1. Now the matrix looks like:
\[
\begin{pmatrix}
1 & 2 & 3 \\
1 & 2 & 3
\end{pmatrix}.
\]
Row 1 is now \([1, \; 2, \; 3]\), which is our first pivot row (the pivot is the 1 in the first column).
Step 4: R2 = R2 – (1)R1 – Now, the algorithm eliminates the entry beneath the pivot. It subtracts Row 1 from Row 2 to zero out the first column of Row 2. After this operation, Row 2 becomes \([0, \; 0, \; 0]\). The matrix is now in reduced row echelon form:
\[
\begin{pmatrix}
1 & 2 & 3 \\
0 & 0 & 0
\end{pmatrix}.
\]
At this point, the RREF is achieved. The calculator will display the Reduced Row Echelon Form (RREF) matrix for reference:
RREF of A:
[ 1 2 3 ]
[ 0 0 0 ]
From the RREF, we interpret the solution:
– The first row corresponds to the equation \(1 \cdot x_{1} + 2 \cdot x_{2} + 3 \cdot x_{3} = 0\), or simply \(x_{1} + 2x_{2} + 3x_{3} = 0\).
– \(x_{1}\) is a pivot variable (leading 1 in column 1), while \(x_{2}\) and \(x_{3}\) are free variables (their columns have no pivot leading 1). This means we can parameterize \(x_{2}\) and \(x_{3}\) freely.
– Solving \(x_{1} + 2x_{2} + 3x_{3} = 0\) for the pivot variable gives: \(x_{1} = -2x_{2} – 3x_{3}\).
Let \(x_{2} = s\) and \(x_{3} = t\) be parameters (free variables can be any value). Then
\[
x_{1} = -2s – 3t.
\]
We can express the solution vector \(\mathbf{x} = (x_{1}, x_{2}, x_{3})^{T}\) in terms of \(s\) and \(t\):
\[
\mathbf{x} = (-2s – 3t, \; s, \; t)^{T}
= s \begin{pmatrix} -2 \\ 1 \\ 0 \end{pmatrix}
+ t \begin{pmatrix} -3 \\ 0 \\ 1 \end{pmatrix}.
\]
Notice the two vectors \((-2, 1, 0)^{T}\) and \((-3, 0, 1)^{T}\) appear naturally – those are exactly the basis vectors \(\mathbf{v}_{1}\) and \(\mathbf{v}_{2}\) the calculator provided earlier. We can choose \(s = 1, t = 0\) to get \(\mathbf{v}_{1} = (-2, 1, 0)^{T}\), and \(s = 0, t = 1\) to get \(\mathbf{v}_{2} = (-3, 0, 1)^{T}\). Any solution is a combination \(c_{1}\mathbf{v}_{1} + c_{2}\mathbf{v}_{2}\), which matches the general solution output.
The calculator’s result for this example would be labeled as “Non-Trivial Null Space Found” because we got non-zero solution vectors. It will list:
– Rank: 1 (since one pivot row is non-zero in RREF),
– Nullity (Dimension): 2 (two free variables, two basis vectors),
– Basis for Null Space: \(\mathbf{v}_{1} = [-2, \; 1, \; 0], \; \mathbf{v}_{2} = [-3, \; 0, \; 1]\),
– General Solution: \(\mathbf{x} = c_{1}\mathbf{v}_{1} + c_{2}\mathbf{v}_{2}, \; c_{1},c_{2} \in \mathbb{R}\).
If we had a different matrix where the null space was trivial, the result might show Rank = n (full rank) and Nullity = 0, with a note that only the zero vector satisfies the equation. In that case, no basis vectors will be listed (since there is no non-zero vector in the null space).
Step-by-Step Solution and RREF Output
When Show Step-by-Step Solution is enabled, the calculator provides a breakdown as we saw above. Each row operation is described in plain language (e.g. “Swap rows to get a non-zero pivot,” “Scale row to make pivot 1,” “Eliminate entry in column 1,” etc.), and the intermediate matrix after each step is displayed. This feature is extremely useful for learning, as it demonstrates the Gaussian elimination process in action. By studying the steps, you can follow how the algorithm reaches the RREF and thus the null space basis.
At the end of the step-by-step section, the Reduced Row Echelon Form (RREF) of the matrix is given explicitly. RREF is a form where the pivots (leading 1’s) identify the basic variables and all other entries in pivot columns are 0. From the RREF, you can directly read off the solution relationships between variables. The calculator uses RREF as the main tool to derive the null space.
Finally, the interface provides convenient buttons to Copy Solution and Print to PDF. If you click Copy Solution, all the results (rank, nullity, basis, solution steps, etc.) will be copied to your clipboard as plain text – you can then paste this into notes or homework solutions. The Print to PDF option formats the output nicely (as shown on screen) and lets you save or print it, which is great for sharing results or including in a report. These features make it easy to keep a record of the work or turn in the solution for assignments.
Null Space Formulas
In linear algebra, the null space of a matrix has a formal definition and relates to other key concepts. Here are some important formulas and facts about null space, with an example:
– Definition of Null Space: For an \(m \times n\) matrix \(A\), the *null space* (or *kernel*) of \(A\) is defined as
\[
\text{Null}(A) = \{ \mathbf{x} \in \mathbb{R}^{n} \;|\; A\mathbf{x} = \mathbf{0} \}.
\]
In words, \(\text{Null}(A)\) is the set of all \(n\)-dimensional column vectors \(\mathbf{x}\) that satisfy \(A\mathbf{x} = \mathbf{0}\). The null space is a subspace of \(\mathbb{R}^{n}\). Its dimension is called the **nullity** of \(A\).
– Trivial and Non-Trivial Null Space: The equation \(A\mathbf{x} = \mathbf{0}\) always has at least the trivial solution \(\mathbf{x} = \mathbf{0}\). If the only solution is the zero vector, then \(\text{Null}(A) = \{\mathbf{0}\}\), and we say the null space is *trivial*. If there are other solutions, then the null space is *non-trivial*, containing an infinite number of vectors (forming a subspace of dimension \(\geq 1\)). This happens precisely when \(A\) is not full rank.
– Rank–Nullity Theorem: For any matrix \(A\) with \(n\) columns, the rank–nullity theorem states that
\[
\text{rank}(A) + \text{nullity}(A) = n,
\]
where \(\text{rank}(A)\) is the number of pivots (independent columns) and \(\text{nullity}(A)\) is the dimension of the null space. This theorem provides a consistency check: once you determine the rank of a matrix, the nullity is immediately determined by the number of columns. It highlights that the “degrees of freedom” in the solution (nullity) plus the “constraints” imposed by independent equations (rank) equal the total number of variables.
– General Solution Form: Solving \(A\mathbf{x} = \mathbf{0}\) via Gauss–Jordan elimination yields a general solution with parameters for each free variable. If there are \(p\) free variables, you will have \(p\) parameters (say \(c_{1}, c_{2}, \dots, c_{p}\)) and correspondingly \(p\) basis vectors for the null space. The general solution can be written as
\[
\mathbf{x} = c_{1}\mathbf{v}_{1} + c_{2}\mathbf{v}_{2} + \cdots + c_{p}\mathbf{v}_{p},
\]
where \(\{\mathbf{v}_{1}, \dots, \mathbf{v}_{p}\}\) is the basis of \(\text{Null}(A)\). Each \(\mathbf{v}_{i}\) is a special solution you get by setting one parameter to 1 and the others to 0.
—
Worked Example: Consider the matrix
\[
A = \begin{pmatrix}
1 & 2 \\
3 & 6
\end{pmatrix},
\]
which is a \(2 \times 2\) matrix. The two rows are not independent (the second row is 3 times the first), so we expect a non-trivial null space. Let’s verify the formulas:
– The number of columns \(n = 2\). By the rank–nullity theorem,
\[
\text{nullity}(A) = n – \text{rank}(A).
\]
The rank of \(A\) is 1 (one independent row), so
\[
\text{nullity}(A) = 2 – 1 = 1.
\]
Thus, the null space should be one-dimensional.
– Solve \(A\mathbf{x} = \mathbf{0}\), i.e.:
\[
\begin{pmatrix}
1 & 2 \\
3 & 6
\end{pmatrix}
\begin{pmatrix}
x_{1} \\
x_{2}
\end{pmatrix}
=
\begin{pmatrix}
0 \\
0
\end{pmatrix}.
\]
This gives the equations:
\[
\begin{cases}
x_{1} + 2x_{2} = 0, \\
3x_{1} + 6x_{2} = 0,
\end{cases}
\]
but the second equation is just 3 times the first, so essentially we have one unique equation \(x_{1} + 2x_{2} = 0\).
– Solving \(x_{1} + 2x_{2} = 0\) yields \(x_{1} = -2x_{2}\). We have one free parameter (let \(x_{2} = t\)). So we can express the solution as:
\[
(x_{1}, x_{2}) = (-2t, \; t) = t(-2, \; 1).
\]
Choosing \(t = 1\), we get a basis vector for the null space: \(\mathbf{v}_{1} = (-2, \; 1)^{T}\). Every solution is a scalar multiple of \(\mathbf{v}_{1}\). Thus,
\[
\text{Null}(A) = \{ t(-2, 1)^{T} : t \in \mathbb{R} \}.
\]
The nullity is 1, which matches our expectation. And indeed, rank \(1\) + nullity \(1 = 2\), which equals the number of columns, confirming the rank–nullity theorem for this example.
—
In summary: The null space formulas and theorems provide a theoretical backbone for what the Null Space Calculator is doing. The calculator automates the process of finding the null space basis by applying these principles: it finds the rank via row reduction, computes nullity = \(n – \text{rank}\), and finds basis vectors corresponding to free variables. The result is an explicit description of \(\text{Null}(A)\) in terms of its basis.
FAQ - Null Space Calculator
What is the null space of a matrix?
The null space of a matrix (also called the kernel) is the set of all vectors that get mapped to the zero vector by the matrix. For a matrix \(A\), the null space is defined as
\[
\{ \mathbf{x} \;|\; A\mathbf{x} = \mathbf{0} \}.
\]
In simpler terms, if you treat \(A\) as a transformation, the null space consists of every input vector \(\mathbf{x}\) that produces an output of zero. The null space is a linear subspace – it always contains the zero vector, and any linear combination of solutions is also a solution.
The dimension of the null space (how many independent vectors span it) is called the nullity of the matrix. If the only vector in the null space is \(\mathbf{0}\), we call it a trivial null space; otherwise, it’s non-trivial.
Every matrix has a null space, but full-rank matrices have a null space that is only \(\{\mathbf{0}\}\).
What does it mean if the null space is trivial?
A trivial null space means the only solution to \(A\mathbf{x} = \mathbf{0}\) is the zero vector \(\mathbf{x} = \mathbf{0}\). In this case, the null space contains no non-zero vectors.
Trivial null space happens when the matrix’s equations are all independent – there are no free variables. Equivalently, the matrix \(A\) has rank equal to the number of columns (full column rank), so by the rank–nullity theorem the nullity is zero. This implies no degrees of freedom in the homogeneous system, hence no non-trivial solutions.
In practical terms, if you use the Null Space Calculator and it says the null space is trivial, it will likely also report Nullity = 0 and show that each variable must be zero to satisfy the equations.
For example, an invertible square matrix \(A\) always has a trivial null space, since \(A\mathbf{x} = \mathbf{0}\) implies \(\mathbf{x} = \mathbf{0}\) only.
A trivial null space isn’t “bad” – it just means \(A\mathbf{x} = \mathbf{0}\) has a unique solution (the trivial one). If you were hoping to find interesting vectors in the null space, a trivial result means the matrix doesn’t allow any non-zero solutions.
How does the Null Space Calculator find the null space?
A non-trivial null space means there are non-zero solutions to \(A\mathbf{x} = \mathbf{0}\). In this case, the null space contains infinitely many vectors besides the zero vector.
A non-trivial null space arises when the matrix is not full rank – meaning some rows or columns are linearly dependent. This creates one or more free variables, allowing non-zero solutions to exist.
Equivalently, if \(\text{rank}(A) < n\) (where \(n\) is the number of columns), then the nullity is greater than zero. By the rank–nullity theorem:
\[
\text{rank}(A) + \text{nullity}(A) = n
\]
so if rank is less than \(n\), nullity must be positive. This ensures there are free parameters in the system and hence infinitely many solutions.
In practical terms, the Null Space Calculator will report Nullity > 0 and display one or more basis vectors for the null space. Each basis vector is a non-trivial solution, and any linear combination of them also lies in the null space.
For example, the matrix
\[
A = \begin{pmatrix}
1 & 2 & 3 \\
2 & 4 & 6
\end{pmatrix}
\]
has dependent rows (the second is a multiple of the first), so its null space is non-trivial. Solving \(A\mathbf{x} = \mathbf{0}\) gives a two-dimensional solution space with basis vectors like
\[
\mathbf{v}_{1} = \begin{pmatrix} -2 \\ 1 \\ 0 \end{pmatrix},
\quad
\mathbf{v}_{2} = \begin{pmatrix} -3 \\ 0 \\ 1 \end{pmatrix}.
\]
Thus, the null space is spanned by these non-trivial vectors.
What are “rank” and “nullity”?
Rank and nullity are fundamental concepts in linear algebra that describe a matrix’s properties.
– The rank of a matrix \(A\) is the number of linearly independent rows (or columns) of \(A\). This is the same as the number of pivot positions in the matrix’s RREF. Rank tells you how much “information” or constraint the matrix’s equations have.
– The nullity of \(A\) is the dimension of the null space of \(A\) – in other words, the number of independent solutions to \(A\mathbf{x} = \mathbf{0}\). Nullity is equal to the number of free variables in the system.
Rank and nullity are directly related: their sum equals the number of columns of \(A\). This is the rank–nullity theorem:
\[
\text{rank}(A) + \text{nullity}(A) = n
\]
where \(n\) is the number of columns.
Example: If \(A\) is a \(3 \times 5\) matrix and has rank 3, then its nullity is 2 (since \(3 + 2 = 5\)). That means there are 2 free variables and the null space has dimension 2.
– If the nullity is 0, that means the rank equals the number of columns, and the null space is trivial.
– If the nullity is positive, the null space is non-trivial and contains infinitely many solutions.
The calculator displays both rank and nullity for your matrix so you can immediately see these values. Rank tells you how many independent equations you have, while nullity tells you how many degrees of freedom are in the solution.
What is a basis for the null space?
A basis for the null space is a set of vectors that completely describe all solutions of \(A\mathbf{x} = \mathbf{0}\). These basis vectors are linearly independent (none of them can be written as a combination of the others), and any solution vector in the null space can be expressed as a linear combination of the basis vectors.
The number of basis vectors is exactly the nullity (dimension of the null space).
– If nullity = 2, you will have two basis vectors \(\mathbf{v}_{1}\) and \(\mathbf{v}_{2}\).
– If nullity = 0, there are no basis vectors (because the only solution is the zero vector, which by convention is not included in a basis).
The Null Space Calculator outputs the basis in a clear format, listing each vector’s components. To interpret the basis, you can think: *“Any solution of \(A\mathbf{x} = \mathbf{0}\) is \(c_{1}\mathbf{v}_{1} + c_{2}\mathbf{v}_{2} + \cdots\), depending on how many basis vectors there are.”*
Example: If the calculator gives \(\mathbf{v}_{1} = [-2, 1, 0]\) and \(\mathbf{v}_{2} = [-3, 0, 1]\) for a matrix with 3 columns, then every solution \(\mathbf{x} = (x_{1}, x_{2}, x_{3})^{T}\) can be written as
\[
\mathbf{x} = c_{1} \begin{pmatrix} -2 \\ 1 \\ 0 \end{pmatrix} +
c_{2} \begin{pmatrix} -3 \\ 0 \\ 1 \end{pmatrix}.
\]
In this way, the basis succinctly represents the infinite solution set. The basis vectors themselves are typically chosen by setting one free variable to 1 at a time (and the others to 0), as part of the solution process.
Remember: a basis is not unique – there are infinitely many possible bases for the same null space (you could choose different linear combinations and still span the same space). But the calculator’s choice of basis is the standard one derived from the elimination process, which is easy to interpret.
Geometric meaning of the null space
A basis for the null space is a set of vectors that completely describe all solutions of \(A\mathbf{x} = \mathbf{0}\). These basis vectors are linearly independent (none of them can be written as a combination of the others), and any solution vector in the null space can be expressed as a linear combination of the basis vectors.
The number of basis vectors is exactly the nullity (dimension of the null space).
– If nullity = 2, you will have two basis vectors \(\mathbf{v}_{1}\) and \(\mathbf{v}_{2}\).
– If nullity = 0, there are no basis vectors (because the only solution is the zero vector, which by convention is not included in a basis).
The Null Space Calculator outputs the basis in a clear format, listing each vector’s components. To interpret the basis, you can think: “Any solution of \(A\mathbf{x} = \mathbf{0}\) is \(c_{1}\mathbf{v}_{1} + c_{2}\mathbf{v}_{2} + \cdots\), depending on how many basis vectors there are.”
Example: If the calculator gives \(\mathbf{v}_{1} = [-2, 1, 0]\) and \(\mathbf{v}_{2} = [-3, 0, 1]\) for a matrix with 3 columns, then every solution \(\mathbf{x} = (x_{1}, x_{2}, x_{3})^{T}\) can be written as
\[
\mathbf{x} = c_{1} \begin{pmatrix} -2 \\ 1 \\ 0 \end{pmatrix} +
c_{2} \begin{pmatrix} -3 \\ 0 \\ 1 \end{pmatrix}.
\]
In this way, the basis succinctly represents the infinite solution set. The basis vectors themselves are typically chosen by setting one free variable to 1 at a time (and the others to 0), as part of the solution process.
Remember: a basis is not unique – there are infinitely many possible bases for the same null space (you could choose different linear combinations and still span the same space). But the calculator’s choice of basis is the standard one derived from the elimination process, which is easy to interpret.
Geometrically, the null space of a matrix \(A\) is the set of all vectors \(\mathbf{x}\) that get mapped to the zero vector when multiplied by \(A\). This set is always a subspace of \(\mathbb{R}^{n}\) (where \(n\) is the number of columns of \(A\)).
– If the nullity = 0, the null space is just \(\{\mathbf{0}\}\) (a single point at the origin).
– If the nullity = 1, the null space is a line through the origin in \(\mathbb{R}^{n}\).
– If the nullity = 2, the null space is a plane through the origin in \(\mathbb{R}^{n}\).
– More generally, if the nullity = \(k\), the null space is a \(k\)-dimensional subspace of \(\mathbb{R}^{n}\).
Example 1: For a \(2 \times 2\) matrix with rank 1, the nullity is \(2 – 1 = 1\). The null space is a line through the origin in \(\mathbb{R}^{2}\).
Example 2: For a \(3 \times 3\) matrix with rank 1, the nullity is \(3 – 1 = 2\). The null space is a plane through the origin in \(\mathbb{R}^{3}\).
In general, the null space describes the directions in which the matrix “collapses” vectors to zero. If you think of \(A\) as a transformation, the null space is the set of all inputs that are annihilated by that transformation.
We Value Your Feedback
Share your thoughts or review our site
Let us know what you liked, what could be improved, or if you encountered any issues. Your feedback helps us grow.
There are no reviews yet. Be the first one to write one.
