-2
2
0
0
1
4
-2
2
0
0
1
4
The Matrix Rank Calculator determines the rank of a 2×2 matrix, which represents the dimension of the column space (or equivalently, the row space) of the matrix. The rank is one of the most important numerical invariants of a matrix, revealing the number of linearly independent rows or columns and directly determining the solvability of linear systems. For a 2×2 matrix, the rank can be 0 (zero matrix), 1 (singular non-zero matrix), or 2 (full rank, invertible matrix).
The rank of a matrix has a simple relationship to the determinant for square matrices. A 2×2 matrix has rank 2 if and only if its determinant is non-zero, meaning the two rows (or columns) are linearly independent. If the determinant is zero but the matrix is not the zero matrix, the rank is 1 — one row is a scalar multiple of the other. The zero matrix is the only 2×2 matrix with rank 0.
The Rank-Nullity Theorem states that for an $$m \times n$$ matrix, $$\text{rank}(A) + \text{nullity}(A) = n$$, where the nullity is the dimension of the null space (kernel). For a 2×2 matrix, this gives $$\text{rank} + \text{nullity} = 2$$. If the rank is 2, the nullity is 0 (only the zero vector is mapped to zero). If the rank is 1, the nullity is 1 (there is a one-dimensional line of vectors mapped to zero).
Understanding matrix rank is essential for analyzing linear systems. The system $$Ax = b$$ has a solution if and only if the rank of $$A$$ equals the rank of the augmented matrix $$[A|b]$$. If the rank equals the number of unknowns, the solution is unique; otherwise, there are infinitely many solutions parameterized by free variables. The rank thus determines whether a system is consistent and whether the solution is unique.
In data science and machine learning, the rank of a data matrix reveals the effective dimensionality of the dataset. If a data matrix has rank lower than expected, it indicates redundancy or multicollinearity among the variables. Principal Component Analysis (PCA) exploits the rank structure by projecting data onto the subspace spanned by the dominant singular vectors, which correspond to directions of maximum variance.
This calculator computes the rank by evaluating the determinant. For a 2×2 matrix, this approach is exact and efficient. The calculator also reports the nullity (via the Rank-Nullity Theorem) and whether the matrix has full rank. Full rank (rank = 2) indicates an invertible matrix, while rank deficiency signals singularity and the presence of a non-trivial null space.
For a 2×2 matrix $$A = \begin{pmatrix} a_{11} & a_{12} \\ a_{21} & a_{22} \end{pmatrix}$$:
$$\det(A) = a_{11}a_{22} - a_{12}a_{21}$$
The rank is determined as follows:
The Rank-Nullity Theorem:
$$\text{rank}(A) + \text{nullity}(A) = n = 2$$
So $$\text{nullity} = 2 - \text{rank}$$.
Rank 2 (full rank): The matrix is invertible, the columns are linearly independent, and the system $$Ax = b$$ has a unique solution for every $$b$$. Rank 1: The matrix is singular, one row is a multiple of the other, and the transformation maps all of $$\mathbb{R}^2$$ onto a line. The system has either no solution or infinitely many. Rank 0: The zero matrix maps everything to the origin. The nullity equals the dimension deficit: nullity 0 means only trivial kernel, nullity 1 means a line of solutions, nullity 2 means the entire space is the kernel.
Inputs
Results
det = 1×4 − 2×3 = −2 ≠ 0. The rows [1,2] and [3,4] are linearly independent. The matrix is invertible with nullity 0.
Inputs
Results
det = 2×2 − 4×1 = 0. Row 1 = 2 × Row 2, so the rows are linearly dependent. Rank = 1, nullity = 1. The null space is spanned by [−2, 1]ᵀ.
The rank tells you the number of linearly independent rows (or columns) in the matrix. It represents the dimension of the image (column space) of the linear transformation. For a 2×2 matrix: rank 2 means the transformation maps $$\mathbb{R}^2$$ onto all of $$\mathbb{R}^2$$, rank 1 means it maps onto a line, and rank 0 means everything maps to the origin.
The Rank-Nullity Theorem states that $$\text{rank}(A) + \text{nullity}(A) = n$$ where $$n$$ is the number of columns. For a 2×2 matrix, rank + nullity = 2. This means if the rank is 1, there is a 1-dimensional null space (a line of vectors mapped to zero). This theorem is also called the dimension theorem for linear maps.
For a square matrix, the determinant is non-zero if and only if the matrix has full rank. A zero determinant means the rank is less than the matrix size. For 2×2 matrices, this gives a clean classification: non-zero determinant → rank 2, zero determinant (non-zero matrix) → rank 1. For non-square matrices, rank must be determined by other methods like row reduction.
The null space is the set of all vectors $$x$$ such that $$Ax = 0$$. Its dimension is the nullity. For a rank-1 matrix of size 2×2, the null space is a line through the origin. The null space always contains the zero vector, and for full-rank matrices, it contains only the zero vector. Finding the null space reveals which directions of information are lost by the transformation.
No, the rank is bounded by the smaller dimension: $$\text{rank}(A) \leq \min(m, n)$$ for an $$m \times n$$ matrix. For a 2×2 matrix, the maximum rank is 2 (full rank). This bound comes from the fact that you cannot have more linearly independent vectors than the ambient dimension of the space.
In data science, a rank-deficient data matrix indicates multicollinearity — some features are linear combinations of others. This causes instability in regression and other models. Dimensionality reduction techniques like PCA work by finding the effective rank and projecting onto the corresponding subspace. Low-rank matrix approximation is also the basis for recommendation systems and data compression.
Roboculator Team
The Roboculator Team explains calculations, planning tools, and practical formulas in clear language for real-life situations.
How helpful was this calculator?
Be the first to rate!
Matrix Addition Calculator
Linear Algebra Calculators
Matrix Multiplication Calculator
Linear Algebra Calculators
Matrix Determinant Calculator
Linear Algebra Calculators
Matrix Inverse Calculator
Linear Algebra Calculators
Matrix Transpose Calculator
Linear Algebra Calculators
Eigenvalue Calculator
Linear Algebra Calculators