Matrices: Determinants, Trace, Rank, Nullity
Core Titles
Key headlines and terms for quick recall- Matrix
- Determinant
- Trace
- Rank — # linearly independent rows (= columns)
- Nullity — dimension of null space
- Rank–Nullity theorem:
- Singular vs Non-singular: vs
Basic Idea
What it is, why it matters, how it worksMatrix at a glance
A matrix is a rectangular array of numbers, . It represents a linear map from to .
Determinant
A scalar that summarises a square matrix:
- ⇔ is invertible (non-singular).
- .
- Geometrically, is the volume scaling factor of the linear map.
For : .
For : Sarrus' rule or cofactor expansion.
Trace
— sum of diagonal entries. Properties:
- = sum of eigenvalues
- = product of eigenvalues
Rank
The rank of is the dimension of its column space (= dimension of its row space). It tells you how much "information" the matrix carries.
For an matrix: . Full rank means equality.
Null space and nullity
. Its dimension is the nullity.
Rank–Nullity Theorem
For :
(The number of columns equals dimensions used + dimensions collapsed to zero.)
Why this matters in Data Science
- Rank tells you the effective dimensionality of your dataset (used in PCA).
- Determinant appears in change-of-variables, covariance computations.
- Trace = sum of variances in covariance matrices.
- Nullity tells you the redundancy / multicollinearity in features.
Mind Map
Visual structure of the conceptMATRIX BASICS
├── Determinant det(A)
│ ├── 2×2: ad − bc
│ ├── 0 ⇔ singular
│ ├── det(AB) = det(A)·det(B)
│ └── = product of eigenvalues
├── Trace tr(A)
│ ├── = Σ aᵢᵢ
│ ├── tr(AB) = tr(BA)
│ └── = sum of eigenvalues
├── Rank
│ ├── # lin-indep rows (= cols)
│ ├── ≤ min(m, n)
│ └── Full rank ⇔ invertible (square)
├── Nullity
│ └── dim N(A) = dim{x : Ax = 0}
└── Rank-Nullity Theorem
└── rank(A) + nullity(A) = n
Exam Q&A
Part A (2 marks) and Part B (20 marks) style questionsPart A (2 marks each)
Q1. Define rank and nullity of a matrix. Rank is the dimension of the column space (equivalently row space). Nullity is the dimension of the null space .
Q2. State the rank-nullity theorem. For an matrix : .
Q3. What is the trace of a matrix? The sum of its diagonal entries.
Q4. When is a matrix singular? When its determinant is 0 (equivalently, when its columns are linearly dependent).
Part B (20 marks)
Q. Define rank, nullity and determinant. State and prove the rank-nullity theorem. Find the rank and nullity of
Definitions.
- Rank — dimension of the column space (= row space). The number of linearly independent rows/columns.
- Nullity — dimension of the null space .
- Determinant — a scalar associated with a square matrix; iff is invertible.
Rank–Nullity theorem. For ,
Proof. Let be a basis of (so nullity = ). Extend it to a basis of .
Claim: is a basis of the column space.
Spanning: Any with becomes since the first terms are 0.
Independence: If then , so . But that sum lies in the complement basis — and is independent of — so it must be 0, forcing all .
Hence , i.e., . ∎
Apply to the given . Row-reduce: Swap : Two non-zero rows ⇒ rank = 2, and by rank–nullity, nullity = 3 − 2 = 1.
(One can find the null vector: from and , take giving — i.e., .)