Study Vault Search notes, aliases and full text
Graph
TopicLinear Algebra used inMSIAI-written · not yet proofread

Rank and Invertibility

How the rank of a matrix decides whether it is invertible and how many solutions a linear system Ax = b has.

Concepts#

  1. Linear Mapwhat a matrix does: x↦Axx \mapsto Ax, with kernel (lost inputs) and image (reached outputs) start here
  2. System of Linear Equationsthe problem Ax=bAx = b whose solvability is at stake
  3. Matrix Rankthe number that classifies the matrix
  4. Invertible Matrixthe square, full-rank case
  5. Positive Semidefinite MatrixGram matrices A⊤AA^\top A are PSD, and positive definite exactly in the full column rank case

How it fits together#

For A∈Rm×nA \in \mathbb{R}^{m \times n} and r=rank⁡(A)r = \operatorname{rank}(A):

CaseShapeAx=bAx = bInverse
r=m=nr = m = nsquare, full rankexactly one solution for every bbA−1A^{-1} exists
r=n<mr = n < mtall, full column rankat most one solutionleft inverse (A⊤A)−1A⊤(A^\top A)^{-1} A^\top
r=m<nr = m < nwide, full row ranksolutions for every bb, infinitely manyright inverse A⊤(AA⊤)−1A^\top (A A^\top)^{-1}
r<min⁡(m,n)r < \min(m, n)rank-deficientnone or infinitely manyonly the Moore–Penrose pseudo inverse
  • Rank → invertibility: a matrix is invertible iff it is square and has full rank. The rank is the cause. det⁡(A)≠0\det(A) \neq 0 (Determinant), ker⁡(A)={0}\ker(A) = \{0\} and “no zero eigenvalue” are equivalent tests for a square AA (see the theorem in Invertible Matrix > Properties).
  • Uniqueness vs. existence: full column rank (ker⁡(A)={0}\ker(A) = \{0\}, the map is injective) gives uniqueness. Full row rank (im⁡(A)=Rm\operatorname{im}(A) = \mathbb{R}^m, the map is surjective) gives existence. A square matrix needs both, but for a square matrix one implies the other.
  • Why only square matrices: an inverse must undo the map in both directions, so the map must be bijective. A tall matrix (m>nm > n) has dim⁡im⁡(A)≤n<m\dim\operatorname{im}(A) \le n < m, so it is not surjective. A wide matrix (m<nm < n) has dim⁡ker⁡(A)≥n−m>0\dim\ker(A) \ge n - m > 0, so it is not injective. Algebraically: AB=ImAB = I_m and BA=InBA = I_n give m=rank⁡(AB)≤rank⁡(A)≤nm = \operatorname{rank}(AB) \le \operatorname{rank}(A) \le n and n=rank⁡(BA)≤rank⁡(A)≤mn = \operatorname{rank}(BA) \le \operatorname{rank}(A) \le m, so m=nm = n.
  • Least squares (MSI): for min⁡θ∥y−Φθ∥2\min_\theta \|y - \Phi\theta\|^2 with Φ∈RN×d\Phi \in \mathbb{R}^{N \times d}, the normal equations Φ⊤Φ θ=Φ⊤y\Phi^\top\Phi\,\theta = \Phi^\top y have the square d×dd \times d matrix Φ⊤Φ\Phi^\top\Phi. Since rank⁡(Φ⊤Φ)=rank⁡(Φ)\operatorname{rank}(\Phi^\top\Phi) = \operatorname{rank}(\Phi):
    • rank⁡(Φ)=d\operatorname{rank}(\Phi) = d ⇒ Φ⊤Φ≻0\Phi^\top\Phi \succ 0 is invertible, and θ∗=(Φ⊤Φ)−1Φ⊤y\theta^* = (\Phi^\top\Phi)^{-1}\Phi^\top y is unique (MSI script p. 30).
    • rank⁡(Φ)<d\operatorname{rank}(\Phi) < d ⇒ Φ⊤Φ\Phi^\top\Phi is singular, the problem is ill-posed and the minimizers form an affine set (MSI script p. 32).
  • Definiteness as a rank test for Gram matrices: the chain behind the least squares case is A⊤A≽0A^\top A \succcurlyeq 0 always (since x⊤A⊤Ax=∥Ax∥22x^\top A^\top A x = \|Ax\|_2^2), with x⊤A⊤Ax=0  ⟺  x∈ker⁡(A)x^\top A^\top A x = 0 \iff x \in \ker(A). So full column rank ⇔ ker⁡(A)={0}\ker(A) = \{0\} ⇔ A⊤A≻0A^\top A \succ 0 ⇔ A⊤AA^\top A invertible (Positive Semidefinite Matrix). Positive definiteness is the stronger, “quadratic” way of stating full rank for symmetric matrices.
  • From system to matrix: a linear system becomes Ax=bAx = b by writing one row per equation and one column per unknown. Its solvability then only depends on rank⁡(A)\operatorname{rank}(A) vs. rank⁡([A∣b])\operatorname{rank}([A \mid b]) and nn, which is the table above read for a fixed bb.

Exercises & Exam Questions#

WhereTaskConcepts
MSI Sheet 00, task 1 (not published)write a 3×33 \times 3 system as Φθ=y\Phi\theta = y, compute rank⁡(Φ)\operatorname{rank}(\Phi), decide invertibilitySystem of Linear Equations, Matrix Rank, Invertible Matrix
MSI Sheet 00, task 3 (not published)show A⊤AA^\top A is symmetric and PSDPositive Semidefinite Matrix

Key Formulas#

  • rank⁡(A)+dim⁡ker⁡(A)=n\operatorname{rank}(A) + \dim\ker(A) = n (Matrix Rank)
  • A∈Rn×nA \in \mathbb{R}^{n \times n} invertible   ⟺  rank⁡(A)=n  ⟺  det⁡(A)≠0\iff \operatorname{rank}(A) = n \iff \det(A) \neq 0 (Invertible Matrix)
  • rank⁡(A⊤A)=rank⁡(A)\operatorname{rank}(A^\top A) = \operatorname{rank}(A) (Matrix Rank)

Lectures#

  • No lecture yet. MSI uses this material in script chapter 4 (linear least squares).

Search

Type In
↑ ↓ move ↵ open ⇥ next section Ctrl↵ results page Prefix # to search text only