Rank-Nullity Theorem
볡μμ 곡νκ³ μλ μνκ³Όμ νλΆ μ‘Έμ μνμ μν΄ 2024λ 10μλΆν° μ νλμλ₯Ό λ€μ 곡λΆνκ³ μμ΅λλ€. (νμ¬μ§ννβ¦ πββοΈββ‘οΈ) μ νλμμ λν μ 체 ν¬μ€νΈ λͺ©λ‘μ βLinear Algebraβμμ νμΈνμ€ μ μμ΅λλ€!
λ€μ΄κ°λ©°
<Rank-Nullity Theorem>μ μ ν λμνμ μ€μν μ λ¦¬μΈ <Fundamental Theorem of Linear Algebra>μ μ 리 μ€ νλλ€. μ 리μ μ ν λμμ ν΅μ¬κ³Ό μ μλ₯Ό λ΄κ³ μλ€.
Rank-Nullity Theoremμ λ°λ‘ 보λ 건 μλκ³ , λͺκ°μ§ μ€κ° μ 리λ€μ λ¨Όμ μ΄ν΄λ³΄μ. μλμ μ μλλ μ 리λ€λ μ΄λ€ μλ―Έλ₯Ό κ°λμ§ μ΄ν΄ν νμκ° μλ€.
Row space and Column Space have same dimension
The row space $\mathcal{R}(A)$ and column space $\mathcal{C}(A)$ of a matrix $A$ have the same dimension.
\[\dim (\mathcal{C}(A)) = \dim (\mathcal{R}(A))\]νλ ¬ $A$μμ rowμ columnμ μ λ§ λ³κ°μ μ‘΄μ¬λ€. κ·Έλ₯ νλ ¬μ΄λΌμ λͺ¨μ¬ μμ λΏμΈ λ 곡κ°μ΄ μ κΈ°νκ²λ μ°¨μμ΄ κ°λ€κ³ νλ€!!
μ¦λͺ μ 2κ°μ§ λ²μ μΌλ‘ μ§νν΄λ³΄κ² λ€. νλλ Elementary Row OperationμΌλ‘ μ»μ Row-Echelon Formμμ κ΄μ°°ν νΉμ±μ λ°νμΌλ‘ νκ³ , νλλ Orthogonalityλ₯Ό μ΄μ©νλ€.
Row-Echelon Form
νλ ¬ $A \in \mathbb{R}^{m\times n}$κ° μλ€κ³ νμ. μ΄ νλ ¬μ $m$κ° νκ³Ό $n$κ° μ΄μ κ°λλ€.
μ΄ νλ ¬μ Elementary Row Operationμ μ μ ν μνν΄ Row Echelon Form(μ΄ν REF)λ‘ λ§λ€ μ μμ κ²μ΄λ€.
\[\left[ \begin{array}{ccccc} {\color{red} 1} & a_{12} & a_{13} & a_{14} & a_{15} \\ 0 & 0 & {\color{red} 2} & a_{24} & a_{25} \\ 0 & 0 & 0 & {\color{red} 1} & a_{35} \\ 0 & 0 & 0 & 0 & 0 \end{array} \right]\]μλ° $4 \times 5$ νλ ¬μ΄λΌκ³ νλ©΄, pivot 1, 2, 1μ΄ μλ νμ΄ basisλ₯Ό μ΄λ£¬λ€.
μ¬κΈ°μμ μ‘°κΈλ§ λ Elementary Row Operationμ μννλ©΄, λ μ¬νν΄μ§ reduced ννμ REFλ₯Ό μ»μ μ μλ€.
\[\left[ \begin{array}{ccccc} {\color{red} 1} & a'_{12} & 0 & 0 & a'_{15} \\ 0 & 0 & {\color{red} 2} & 0 & a'_{25} \\ 0 & 0 & 0 & {\color{red} 1} & a_{35} \\ 0 & 0 & 0 & 0 & 0 \end{array} \right]\]μ¬μ€ pivot μμ κ°λ€μ΄ μμ΄μ‘μ λΏμ΄λ€ γ γ μ΄ μνμμ νλ ¬μ μ΄κ³΅κ°μ κ΄μ μΌλ‘ 보면, pivotμ΄ μλ κ·Έ μ΄μ΄ κ·Έλλ‘ μ΄κ³΅κ°μ basisλ₯Ό μ΄λ£¬λ€.
λ°λΌμ, ν곡κ°κ³Ό μ΄κ³΅κ°μ basis κ°―μκ° κ°μΌλ―λ‘, λ 곡κ°μ μ°¨μ(dimension)μ΄ κ°λ€. $\blacksquare$
Orthogonality
Wikipediaμ Rank(linear algebra)μ μ¦λͺ μ μ°Έκ³ νκ³ λ€λ¬μμμ λ°νλ€.
νλ ¬ $A \in \mathbb{R}^{m\times n}$κ° μλ€κ³ νμ. μ΄ νλ ¬μ $m$κ° νκ³Ό $n$κ° μ΄μ κ°λλ€.
κ·Έλ¦¬κ³ $r$μ νκ³΅κ° $\mathcal{R}(A)$μ dimensionμ΄λΌκ³ νμ. κ·Έλ¬λ©΄, $r$κ°μ basisλ₯Ό μ μν μ μλ€. μ΄λ₯Ό $\mathbf{x}_1, \mathbf{x}_2, \dots, \mathbf{x}_r \in \mathcal{R}(A) \subseteq \mathbb{R}^{n}$λΌκ³ νμ.
νλ ¬ $A$μ ν basisλ₯Ό κ³±ν κ²λ€μ $A \mathbf{x}_1, A \mathbf{x}_2, \dots, A \mathbf{x}_r \in \mathcal{C}(A) \subseteq \mathbb{R}^{m}$, κ²°κ³Ό 벑ν°κ° μ΄κ³΅κ°μ μν©λλ€.
(μ²μμ μ μ΄κ³΅κ°μ μνλμ§κ° ν·κ°λ Έλλ°, $A \mathbf{x}_i$λ $n$κ° μ΄λ²‘ν°μ μ ν κ²°ν©μ νλ κ²μ΄κΈ° λλ¬Έμ, κ·Έ κ²°κ³Όκ° μ΄κ³΅κ° $\mathcal{C}(A)$μ μν©λλ€.)
λ§μ½ $A\mathbf{x}_i$ μ΄λ²‘ν°λ€μ΄ μλ‘ μ ν λ 립μμ λ³΄μΌ μ μλ€λ©΄, μ΄κ³΅κ°μ μ°¨μμ΄ μ΅μν ν곡κ°μ μ°¨μ $r$보λ€λ ν¬κ±°λ κ°λ€λ κ²μ μλ―Έν©λλ€. μ¦, $\dim (\mathcal{C}(A)) \ge r = \dim (\mathcal{R}(A))$.
κ·Έλ¦¬κ³ κ°μ κ³Όμ μ λ°λλ‘ $A^T$μ λν΄μλ μ μ©νλ©΄, λ°λμ λΆλ±μ $\dim (\mathcal{C}(A)) \le \dim (\mathcal{R}(A))$λ₯Ό μ»κ³ , μ΅μ’ μ μΌλ‘ $\dim (\mathcal{C}(A)) \ge r = \dim (\mathcal{R}(A))$μΈ κ²°κ³Όλ₯Ό μ»μ΅λλ€.
μ΄κ³΅κ°μ 벑ν°κ° λ $A \mathbf{x}_i$λ€μ΄ μ ν λ
립μΈμ§ νμΈν΄λ΄
μλ€. λ§μ½, μ ν λ
립μ΄λΌλ©΄ $r$κ°μ μ ν λ
λ¦½μΈ λ²‘ν°λ₯Ό μ°ΎμμΌλ―λ‘ μ΄κ³΅κ°μ μ°¨μμ μ μ΄λ $r$보λ€λ ν½λλ€.
(λ±νΈ $=$κ° μλλΌ $\ge$κ° λλ μ΄μ λ μ΄κ³΅κ°μ $A \mathbf{x}_i$λ‘ μ λλμ§ μλ κΈ°μ κ° μ‘΄μ¬ν μ μκΈ° λλ¬Έμ
λλ€.)
μ ν λ 립μ νμΈνκΈ° μν΄, μ ν κ²°ν©μ΄ μ벑ν°κ° λ λμ κ³μ $c_i$κ° μ΄λ»κ² λλμ§ μ΄ν΄λ΄ μλ€.
\[c_1 A \mathbf{x}_1 + c_2 A \mathbf{x}_2 + \cdots + c_r A \mathbf{x}_r = \mathbf{0}\]μμ μ ν λ 립μ μμ μ μ 리νλ©΄, $A \mathbf{v} = \mathbf{0}$κ° λλ, $\mathbf{v}$λ₯Ό μ μν μ μμ΅λλ€. $\mathbf{v}$λ $\mathbf{x}_i$μ μ νκ²°ν©μΌλ‘ λ§λ€μ΄μ§ λ²‘ν° μ λλ€.
\[\mathbf{v} = c_1 \mathbf{x}_1 + \cdots c_r \mathbf{x}_r\]- $A \mathbf{v} = \mathbf{0}$λΌλ κ²μ λ²‘ν° $\mathbf{v}$κ° $A$μ λͺ¨λ νκ³Ό μ§κ΅(orthogonal) ν©λλ€.
- $A \mathbf{v} = \mathbf{0}$μ΄ λλ €λ©΄, κ° νκ³Ό λ΄μ ν κ°μ΄ 0μ΄ λμ΄μΌ νκΈ° λλ¬Έμ λλ€.
- λͺ¨λ νκ³Ό μ§κ΅νλ€λ κ²μ, νκ³΅κ° $\mathcal{R}(A)$ μ 체μ μ§κ΅νλ€λ κ²μ λ§ν©λλ€.
- λ²‘ν° $\mathbf{v}$λ ν basisμ μ ν κ²°ν©μ΄κΈ° λλ¬Έμ, λ€μ $A$μ ν곡κ°μ μνλ λ²‘ν° μ λλ€.
- λ°λΌμ, $\mathbf{v}$λ μκΈ° μμ κ³Όλ μ§κ΅ ν΄μΌ ν©λλ€!
- μκΈ° μμ λ ν곡κ°μ μνλ 벑ν°μ΄κΈ° λλ¬Έμ λλ€.
κ²°λ‘ μΈ 4λ²μμ βμκΈ° μμ κ³Ό μ§κ΅βνλ€λ 건 μ벑ν°μμ μλ―Έν©λλ€. λ°λΌμ, $\mathbf{v} = \mathbf{0}$μ λλ€.
\[\mathbf{v} = c_1 \mathbf{x}_1 + c_2 \mathbf{x}_2 + \cdots + c_r \mathbf{x}_r = \mathbf{0}\]κ·Έλ°λ°, $\mathbf{x}_i$λ ν곡κ°μ basisμ΄λ―λ‘, κΈ°μ μ λν μ μμ μν΄ λͺ¨λ κ³μ $c_i$κ° $0$μ΄ λμ΄μΌ ν©λλ€.
μ΄κ²μ $A \mathbf{x}_i$ μ¬μ΄μ μ ν λ 립μ νμΈνκΈ° μν΄ μ²μμ μΈμ λ μμ λν΄μ,
\[c_1 A \mathbf{x}_1 + c_2 A \mathbf{x}_2 + \cdots + c_r A \mathbf{x}_r = \mathbf{0}\]$r$κ° μ΄λ²‘ν° $A \mathbf{x}_i$κ° μλ‘ μ ν λ 립μμ λ§ν©λλ€!
$r$κ° μ΄λ²‘ν° $A \mathbf{x}_i$κ° μ ν λ λ¦½μΈ κ²μ νμΈνκ³ , μ€μ μ΄κ³΅κ°μ κΈ°μ κ°―μλ $r$λ³΄λ€ ν¬κ±°λ κ°μ κ² μ λλ€. (μ°λ¦¬κ° λ°κ²¬νμ§ λͺ»ν κΈ°μ κ° λ¨μμ μ μκΈ° λλ¬Έμ λλ€.) λ°λΌμ μλ μμ΄ μ±λ¦½ν©λλ€.
\[\dim (\mathcal{R}(A)) = r \le \dim (\mathcal{C}(A))\]μ΄ κ³Όμ μ $A^{T}$μλ λμΌνκ² μννλ©΄, μλμ μμ μ»μ΅λλ€.
\[\dim (\mathcal{R}(A)) \ge \dim (\mathcal{C}(A))\]λ°λΌμ, λ λΆλ±μμ μν΄
\[\dim (\mathcal{R}(A)) = \dim (\mathcal{C}(A))\]$\blacksquare$
μ μ¦λͺ μ κΈ°λ³Ένμ°μ°μΌλ‘ μ λνλ μ¦λͺ λ³΄λ€ μ’λ κΈΈκ³ , μ νλμμ λν λ¨λ¨ν μ΄ν΄κ° νμν©λλ€. μ λ μ²μμ μ΄ μ¦λͺ μ μ κ³ , μ μ΄ν΄κ° μ λμ΄μ λͺ λ²μ© κ³ μ³ μ μκ² μ§κΈμ νν μ λλ€.
μμΌλ‘ μ§μ μ¦λͺ μ μ¨λ΄λ €κ°λ©΄μ μ΅νκ³ , κ° κ³Όμ μ μλ―Έλ₯Ό κ³±μΉμΌλ©΄μ μ΄ν΄νλ©΄, μ 리λ μ΄ν΄ν μ μκ³ μ νλμμ λν μ΄ν΄λ λ κΉμ΄μ§λ κ·Έλ° μ’μ μ 리 μ λλ€ γ γ
Rank-Nullity Theorem: Rank + Nullity = $n$
For any $A \in \mathbb{R}^{m \times n}$,
\[\dim (\mathcal{R}(A)) + \dim (\mathcal{N}(A)) = n\](1) Supp. $\text{rank}(A) = n$, then the only solution for $A \mathbf{x} = 0$ is $\mathbf{x} = 0$ ($\because$ All rows are linearly independent.)
Therefore, nullity $\dim (\mathcal{N}(A)) = 0$, and given equation holds.
(2) Supp. $\text{rank}(A) = r < n$.
Then $\exists$ $n-r$ free variables in the solution of $A \mathbf{x} = 0$.
Then, we can easily get $n-r$ number of vectors in $\mathcal{N}(A)$, by one-hot at position of only one free variable. These $n-r$ number of vectors are linearly independent. Also, these forms null space of $A$!! Therefore, $\dim (\mathcal{N}(A)) = n-r$.
Thus,
\[\text{rank}(A) + \dim (\mathcal{N}(A)) = r + (n-r) = n\]$\blacksquare$