Linear Systems Solvers
Choose a solver below
Solving Systems
Decompositions
Vector Spaces
Need Help?
Check the educational content below each solver for detailed explanations.
View all tutorials โNull Space Calculator: Find Kernel of a Matrix
Find the null space (kernel) of a matrix A: all vectors x such that Ax = 0. The null space is a subspace whose dimension is the nullity = n - rank(A).
Calculator
Enter your matrix below and click "Calculate" to see the step-by-step solution.
Enter a matrix A to find its null space (all x such that Ax = 0).
The null space is a subspace whose dimension is the nullity = n - rank(A).
Learn About Null_Space
Understanding the concepts behind the calculations.
๐ Quick Navigation
What is Null Space?
Null Space (Kernel) of a matrix A is the set of all vectors x that satisfy Ax = 0.
In simple terms: The null space contains every input vector that gets mapped to zero by the matrix transformation.
๐ Key Insight: The null space tells you which vectors "disappear" (map to zero) when multiplied by A. The dimension of the null space is called the nullity.
Properties of Null Space
- โ
Always contains zero:
Aยท0 = 0(trivial solution) - โ
Closed under addition: If
u, v โ Null(A), thenu + v โ Null(A) - โ
Closed under scalar multiplication: If
u โ Null(A), thencยทu โ Null(A) - โ Subspace of โโฟ: Null(A) is a legitimate subspace of the domain
๐ก Important: The null space is always a subspace of the domain (โโฟ), not the codomain (โแต).
How to Find Null Space
Step-by-Step Algorithm
- Set up the homogeneous system
Ax = 0 - Convert to augmented matrix
[A | 0] - Compute RREF (Reduced Row Echelon Form)
- Identify pivot columns (basic variables) and free variables
- Write solution in parametric form
- Extract basis vectors - each free variable gives one basis vector
๐ก Pro Tip: The number of free variables = nullity = dimension of null space.
The Rank-Nullity Theorem
Where:
- rank(A) = dimension of column space (number of pivots)
- nullity(A) = dimension of null space (number of free variables)
- n = number of columns
๐ This is one of the most important theorems in linear algebra! It tells us that the dimension of the column space plus the dimension of the null space always equals the number of columns.
What Rank Means
- Number of linearly independent columns
- Dimension of the output space
- Number of pivots in RREF
What Nullity Means
- Number of free variables
- Dimension of the "invisible" inputs
- Solutions to
Ax = 0(beyond zero)
Step-by-Step Examples
Example 1: 2ร3 Matrix (Non-trivial Null Space)
Problem: Find null space of
Step 1: Augmented matrix
Step 2: Eliminate (Rโ โ Rโ - 2Rโ)
Step 3: Identify variables
- Pivot column:
xโ(basic variable) - Free variables:
xโ, xโ
Step 4: Write equation
Step 5: Parametric solution
Step 6: Basis for null space
Solution: Nullity = 2, Rank = 1, and 1 + 2 = 3 = n โ
Example 2: 2ร2 Invertible Matrix (Trivial Null Space)
Problem: Find null space of
Step 1: RREF of [A|0]
Step 2: Equations
Solution: Only the zero vector satisfies Ax = 0. Null space = {0}. Nullity = 0, Rank = 2.
Example 3: 3ร3 Rank-1 Matrix
Problem: Find null space of
RREF form:
Equation: xโ + xโ + xโ = 0
Basis for null space:
Solution: Nullity = 2 (a plane through the origin), Rank = 1. 1 + 2 = 3 โ
Special Cases
โจ Trivial Null Space (Nullity = 0)
Only the zero vector satisfies Ax = 0.
Occurs when:
- A has full column rank
- Columns are linearly independent
- A is injective (one-to-one)
- Square invertible matrices
๐ฅ Full Null Space (Nullity = n)
Every vector satisfies Ax = 0.
Occurs only when:
- A is the zero matrix
- All entries of A are zero
- Rank(A) = 0
๐ Most common case: Non-trivial null space with 0 < nullity < n. This happens when A has linearly dependent columns but is not the zero matrix.
Geometric Interpretation
The null space tells you the dimension of inputs that get "crushed" to zero:
| Nullity | Geometry | Example |
|---|---|---|
| 0 | Point (origin only) | Full rank square matrix (invertible) |
| 1 | Line through origin | 3ร3 rank-2 matrix |
| 2 | Plane through origin | 3ร3 rank-1 matrix |
| k | k-dimensional subspace | Rank-deficient matrix |
๐จ Visual Intuition: Think of the matrix as a function that maps input vectors to outputs. The null space is the set of all inputs that land at the origin. More dimensions in null space = more information lost!
Real-World Applications
๐ง Engineering
- Structural analysis: Forces that produce zero net effect
- Control theory: Unobservable states (kernel of observability matrix)
- Vibration analysis: Rigid body modes (zero frequency)
๐ฎ Computer Graphics
- Finding transformations that preserve certain properties
- Detecting degenerate projections
- Computer vision (essential matrices)
๐ค Machine Learning
- Dimensionality reduction: Features with no variance
- PCA: Null space contains directions with zero variance
- Autoencoders: Understanding information loss
โ๏ธ Mathematics
- Differential equations: Homogeneous solutions
- Quantum mechanics: Zero-energy states
- Algebraic topology: Boundary operators
๐ก Key Application: The null space helps identify linear dependencies in data. In machine learning, features in the null space of the covariance matrix are redundant!
Practice Problems
Beginner
-
Find null space of
A = [3, -1; 6, -2] -
What's the nullity of a 2ร2 invertible matrix?
Intermediate
-
Find basis for null space of
$$ A = \begin{bmatrix} 1 & 2 & -1 \\ 2 & 4 & -2 \\ -1 & -2 & 1 \end{bmatrix} $$ -
If A is 4ร6 with rank 3, what is the nullity?
Advanced
-
Prove that null space is a subspace of โโฟ.
Click to reveal solutions
1. span{[1, 3]แต} (nullity = 1)
2. Nullity = 0 (only zero vector)
3. Basis: {[-2, 1, 0]แต, [1, 0, 1]แต} (nullity = 2)
4. Nullity = 6 - 3 = 3
5. Check three subspace properties: zero vector, closure under addition, closure under scalar multiplication.
Summary
Key Takeaways
- Null space: Set of all vectors
xwhereAx = 0 - Nullity: Dimension of null space = number of free variables
- Rank-Nullity Theorem:
rank(A) + nullity(A) = n(columns) - Finding null space: Solve
Ax = 0โ RREF โ parametric form โ basis - Trivial null space: Only zero vector โ nullity = 0 โ full column rank
- Non-trivial null space: Infinitely many solutions โ linear dependence
๐ Ready to explore? Use the calculator above to find null spaces instantly. Try a rank-deficient matrix and watch the basis vectors appear!