ALGEBRALinear AlgebraMathematics Calculator
r

Matrix Rank

Rank is the number of linearly independent rows (or columns). It equals the number of pivot positions in RREF. rank(A) + nullity(A) = n (columns). Full rank โŸบ invertible for square matrices.

Concept Fundamentals
# pivot columns
Definition
n โˆ’ rank
Nullity
rank = min(m,n)
Full rank
Gaussian elimination
RREF
Compute RankGaussian elimination; count pivot positions

Why This Mathematical Concept Matters

Why: Rank determines solvability of Ax = b, dimension of column/row space, and invertibility. Central to linear algebra.

How: Reduce to RREF via Gaussian elimination. Count pivot columns (or rows). rank = number of pivots.

  • โ—rank(A) = rank(Aแต€).
  • โ—rank(AB) โ‰ค min(rank(A), rank(B)).
  • โ—Full rank โŸบ columns linearly independent.

Examples

Rank: 0
Nullity: 3
Matrix: 3ร—3
Screenshot card โ€” share your result

Rank vs Nullity

Rank / Nullity

Steps

[SETUP]Matrix size: 3ร—3
[SETUP]Input matrix: [0, 0, 0] [0, 0, 0] [0, 0, 0]
[RREF]RREF (row echelon form): 0, 0, 0 | 0, 0, 0 | 0, 0, 0
[PIVOTS]Pivot positions: none
[RESULT]Rank: 0
[RESULT]Nullity: 3

โš ๏ธFor educational and informational purposes only. Verify with a qualified professional.

๐Ÿงฎ Fascinating Math Facts

๐Ÿ“

rank = dim(column space)

โšก

rank = dim(row space)

Key Takeaways

  • โ€ข Rank = number of linearly independent rows (or columns). For mร—n matrix, rank โ‰ค min(m,n).
  • โ€ข Gaussian elimination reduces to row echelon form; count non-zero pivot rows.
  • โ€ข Nullity = n โˆ’ rank (columns โˆ’ rank). Rank-nullity: rank + nullity = n.
  • โ€ข Full rank: rank = min(m,n). Square matrix is invertible iff rank = n.
  • โ€ข Zero matrix has rank 0; identity has rank n.

Did You Know?

๐Ÿ“Rank equals dimension of column space and row space.Source: Geometry
๐Ÿ”ขFor square A, rank(A) = n iff det(A) โ‰  0.Source: Determinant
๐Ÿ“ŠSVD: rank = number of non-zero singular values.Source: SVD
โš›๏ธrank(AB) โ‰ค min(rank(A), rank(B)).Source: Product
๐Ÿ“œGaussian elimination: O(nยณ) for nร—n matrix.Source: Complexity
๐Ÿ”ฌrank(A) = rank(Aแต€) always.Source: Transpose

How It Works

1. Gaussian elimination

Apply row operations to reduce matrix to row echelon form (REF).

2. Pivot positions

Leading non-zero entry in each row. Count them to get rank.

3. RREF

Further reduce to reduced row echelon form (1s on pivots, zeros above/below).

4. Nullity

nullity = cols โˆ’ rank. Dimension of null space (solutions to Ax = 0).

Expert Tips

Choose pivots wisely

Partial pivoting improves numerical stability.

Check linear dependence

If rank < min(m,n), rows/cols are linearly dependent.

System Ax=b

Consistent iff rank(A) = rank([A|b]). Unique solution iff full rank.

SVD alternative

For large matrices, SVD gives rank via singular values.

Comparison Table

FeatureThis CalculatorNumPy
RREF stepsโœ…โŒ
Pivot positionsโœ…โŒ
Nullityโœ…โœ…
Rectangular matricesโœ…โœ…

FAQ

What is rank?

The maximum number of linearly independent rows (or columns). Equals dimension of column/row space.

What is nullity?

Dimension of null space: nullity = n โˆ’ rank. Solutions to Ax = 0.

When is a matrix full rank?

When rank = min(rows, cols). Square matrix full rank iff invertible.

How does Gaussian elimination work?

Row operations: swap, scale, add multiple. Pivots become 1, entries below become 0.

What is RREF?

Reduced row echelon form: leading 1s, zeros above and below each pivot.

Can rectangular matrices have full rank?

Yes. 2ร—4 matrix can have rank 2 (max for 2 rows).

What is rank of zero matrix?

Zero. No linearly independent rows.

Relation to eigenvalues?

For square A, rank = number of non-zero eigenvalues (counting multiplicity).

Stats

rank(I_n)
n
rank(0)
0
rank โ‰ค
min(m,n)
rank + nullity
n

Sources

  • โ€ข Gilbert Strang, Linear Algebra and Its Applications
  • โ€ข Khan Academy โ€” Linear Algebra
  • โ€ข MIT OpenCourseWare 18.06
  • โ€ข Wolfram MathWorld โ€” Matrix Rank
  • โ€ข 3Blue1Brown โ€” Essence of Linear Algebra
  • โ€ข Golub & Van Loan, Matrix Computations
Disclaimer: This calculator uses Gaussian elimination in JavaScript. For large matrices, use NumPy/MATLAB for numerical stability.
๐Ÿ‘ˆ START HERE
โฌ…๏ธJump in and explore the concept!
AI