Null Space Calculator
Free Null space Calculator for fractions. Enter values to get step-by-step solutions with formulas and graphs. Free to use with no signup required.
Reviewed for accuracy by Manoj Kumar, Mathematics Educator
Null Space Calculator
Calculator
Adjust values & calculateEnter your values below. Every result is computed in your browser โ no data is sent to any server.
Formula: Null(A) = {x | Ax = 0}
Worked example โ Null space = span{[1, -2, 1]}, dimension = 1
Formula
Null(A) = {x | Ax = 0}The null space of matrix A is the set of all vectors x that satisfy the homogeneous equation Ax = 0. It is found by row reducing A to RREF and identifying free variables.
Worked Examples
Example 1: Singular 3x3 Matrix Null Space
Problem:Find the null space of the matrix [[1,2,3],[4,5,6],[7,8,9]].
Solution:RREF: [[1,0,-1],[0,1,2],[0,0,0]] Rank = 2, Nullity = 1 Free variable: x3 = t From row 2: x2 = -2t From row 1: x1 = t Null space basis: [1, -2, 1] Verify: [1,2,3] dot [1,-2,1] = 1-4+3 = 0
Result:Null space = span{[1, -2, 1]}, dimension = 1
Example 2: Full Rank Matrix (Trivial Null Space)
Problem:Find the null space of the identity matrix [[1,0,0],[0,1,0],[0,0,1]].
Solution:RREF: [[1,0,0],[0,1,0],[0,0,1]] Rank = 3, Nullity = 0 No free variables The only solution to Ix = 0 is x = [0,0,0] Determinant = 1 (nonzero, confirming invertibility)
Result:Null space = {[0,0,0]} (trivial), dimension = 0
Frequently Asked Questions
What is the null space of a matrix and why is it important?
The null space (also called the kernel) of a matrix A is the set of all vectors x such that Ax equals the zero vector. In other words, it contains every vector that the matrix maps to zero when used as a linear transformation. The null space is a subspace of the domain, meaning it is closed under addition and scalar multiplication. It is important because it tells us about the redundancy in a system of linear equations. If the null space contains only the zero vector, the system has a unique solution. If the null space is nontrivial, the system has infinitely many solutions, and the null space vectors describe the directions of freedom in the solution set.
How do you calculate the null space of a matrix step by step?
To find the null space, first set up the homogeneous equation Ax = 0 and form the augmented matrix with a zero column. Then perform Gaussian elimination (row reduction) to bring the matrix to reduced row echelon form (RREF). Identify the pivot columns (which correspond to basic variables) and the non-pivot columns (which correspond to free variables). Set each free variable equal to a parameter (like t or s) and solve for the basic variables in terms of these parameters. Each parameter generates one basis vector for the null space. The collection of these basis vectors spans the entire null space, and the number of basis vectors equals the nullity of the matrix.
What is the rank-nullity theorem and how does it relate to null space?
The rank-nullity theorem states that for any m-by-n matrix A, the rank of A plus the nullity of A equals n (the number of columns). The rank is the number of pivot columns in the RREF, representing the dimension of the column space. The nullity is the dimension of the null space, representing the number of free variables. This theorem is fundamental because it creates a direct relationship between the column space and the null space. For example, a 3-by-3 matrix with rank 2 must have nullity 1, meaning its null space is a line through the origin. A 3-by-3 matrix with rank 1 has nullity 2, meaning its null space is a plane through the origin.
What does it mean when the null space is trivial versus nontrivial?
A trivial null space contains only the zero vector, which means the matrix has full column rank and the equation Ax = 0 has only the solution x = 0. This indicates that the columns of the matrix are linearly independent and the associated linear transformation is one-to-one (injective). A nontrivial null space contains nonzero vectors, meaning there exist nonzero solutions to Ax = 0. This tells us the columns are linearly dependent and the transformation is not injective. For square matrices, a trivial null space also means the matrix is invertible and its determinant is nonzero. The distinction between trivial and nontrivial null spaces has critical implications in solving systems of equations.
How is the null space related to the determinant of a square matrix?
For square matrices, there is a direct connection between the null space and the determinant. If the determinant is nonzero, the matrix is invertible, and the null space contains only the zero vector (trivial null space). If the determinant is zero, the matrix is singular, meaning it is not invertible, and the null space must contain at least one nonzero vector. The magnitude of the determinant can be thought of as a measure of how far the matrix is from being singular. When the determinant is very close to zero, the matrix is nearly singular and numerically unstable. This relationship makes the determinant a quick test for whether a null space will be trivial or nontrivial without performing full row reduction.
What are practical applications of null space in engineering and science?
In structural engineering, the null space of a stiffness matrix reveals the rigid body modes of a structure, which are the ways it can move without deforming. In control theory, the null space of the controllability matrix indicates uncontrollable states of a system. In data science and machine learning, the null space is used in dimensionality reduction techniques and for understanding underdetermined systems. In computer graphics, null space calculations help with mesh deformation and animation. In robotics, the null space of the Jacobian matrix describes redundant motions that a robot arm can perform without changing its end-effector position. These applications demonstrate that null space is far more than an abstract mathematical concept.
How does the null space relate to solving systems of linear equations?
When solving a system Ax = b, the null space plays a critical role in describing the complete solution set. If x_p is any particular solution to Ax = b, then the general solution is x = x_p + x_n, where x_n is any vector in the null space of A. This means the null space describes all the directions you can move from a particular solution and still satisfy the system. If the null space is trivial, there is exactly one solution. If the null space has dimension 1, the solutions form a line. If it has dimension 2, they form a plane. Understanding the null space therefore gives you complete knowledge of how many solutions exist and what they look like geometrically.
What is the difference between null space and left null space?
The null space of a matrix A consists of vectors x such that Ax = 0, meaning they are in the domain of the transformation (column vectors multiplied on the right). The left null space consists of vectors y such that y-transpose times A equals the zero row vector, which is equivalent to finding the null space of A-transpose. The left null space lives in a different vector space than the null space. For an m-by-n matrix, the null space is a subspace of R-n while the left null space is a subspace of R-m. Together with the column space and row space, these four fundamental subspaces form the foundation of linear algebra as described by Gilbert Strang in his celebrated textbook.
How do you verify that a vector is in the null space of a matrix?
To verify that a vector v is in the null space of matrix A, simply compute the matrix-vector product Av and check if the result is the zero vector. For a 3x3 matrix, this means computing each row of A dot-product with v and checking that all three results are zero (or very close to zero for numerical computations). For example, if A has rows [1,2,3], [4,5,6], [7,8,9] and v = [1,-2,1], compute 1(1)+2(-2)+3(1) = 0, 4(1)+5(-2)+6(1) = 0, and 7(1)+8(-2)+9(1) = 0. Since all products are zero, v is in the null space. This verification process is also useful for checking computed null space basis vectors.
Can the null space change if you perform row operations on a matrix?
No, the null space remains exactly the same when you perform elementary row operations on a matrix. This is a crucial property that makes Gaussian elimination a valid method for finding the null space. Row operations correspond to multiplying the matrix on the left by invertible elementary matrices, and since (EA)x = 0 has the same solutions as Ax = 0 when E is invertible, the null space is preserved. However, note that while the null space is preserved, the column space generally does change under row operations. This is why we use the original matrix to find column space vectors but can use the RREF to find null space vectors. Understanding which properties are preserved under row operations is essential for correctly applying linear algebra techniques.
References
Reviewed for accuracy by Manoj Kumar, Mathematics Educator ยท Editorial policy
Related Calculators
๐งฎColumn Space Calculator
Calculate column space with inputs, formulas, and instant results.
๐งฎDistance Between Points Calculator
Calculate the distance between two points in 2D, 3D, or N-dimensional space.
๐งฎAnnulus Area Calculator
Calculate annulus area with inputs, formulas, and instant results.
๐งฎArea Calculator
Calculate area with inputs, formulas, and instant results.
๐งฎArea of a Rectangle Calculator
Calculate the area, perimeter, and diagonal of a rectangle. Find missing sides from known area. Convert between metric and imperial area units.
๐งฎArea of Crescent Calculator
Calculate area of crescent with inputs, formulas, and instant results.
๐งฎCenter of Mass Calculator
Calculate center of mass with inputs, formulas, and instant results.
๐งฎCentroid Calculator
Calculate centroid with inputs, formulas, and instant results.