Determinants, Cramer's rule, and Cayley–Hamilton (2×2 and 3×3)
import /Freeks/2.book(section 2 まで)
Write 2×2 and 3×3 matrices over a commutative ring \(X\) by their entries, and express products, determinants, and adjugate matrices as formulas in the entries (no new words are added). A **partial version (\(n=2, 3\))** of #97 (determinants and Cramer's rule) and #49 (Cayley–Hamilton). Determinants for general \(n\) (sums over permutations) need a large foundation, so we do not treat them. We use neither order nor division; the results are identities in a general commutative ring.
For a matrix \(\begin{pmatrix} a & b \\ c & d \end{pmatrix}\) (for 3×3, \(a, \ldots, i\) arranged row by row), the product, \(\det\), and \(\operatorname{tr}\) are introduced inside theorems as expressions in derived variables, such as \(p = ae + bg\). Since Prover9 times out when the polynomials are large, the ring identities are proved in small steps using only hidden lemmas and the ring axioms.
1 Hidden lemmas (ring identities)
2 #97 Determinant and Cramer's rule for 2×2
\(\det(AB) = \det A \cdot \det B\). Let the entries of the product \(AB\) be \(p, q, r, s\).
Mdet2 …
\(( X , \textit{0} , \textit{1} , [-] , [+] , [\cdot] ) :\mathsf{CRing} \Longrightarrow \forall a , b , c , d , e , f , g , h \in X . \forall p , q , r , s , u , v \in X . ( p = a \cdot e + b \cdot g , q = a \cdot f + b \cdot h , r = c \cdot e + d \cdot g , s = c \cdot f + d \cdot h , u = a \cdot d - b \cdot c , v = e \cdot h - f \cdot g \Longrightarrow p \cdot s - q \cdot r = u \cdot v )\) \(\blacktriangleleft\) \(\mathbb{W}.\) ,\(0 \in \mathbb{M}\) ,𝕄0 ,INDC ,ℤ+Cramer: the solution of \(A\binom{x}{y} = \binom{u}{v}\) satisfies \(\det A \cdot x = \det A_1\) and \(\det A \cdot y = \det A_2\) (\(A_i\) is the matrix with column \(i\) replaced by the right-hand side). If \(\det A\) is a unit (\(z \det A = 1\)), we can divide: \(x = z \det A_1\).
Mcr2 …
\(( X , \textit{0} , \textit{1} , [-] , [+] , [\cdot] ) :\mathsf{CRing} \Longrightarrow \forall a , b , c , d , x , y \in X . \forall u , v , w \in X . ( u = a \cdot x + b \cdot y , v = c \cdot x + d \cdot y , w = a \cdot d - b \cdot c \Longrightarrow w \cdot x = u \cdot d - b \cdot v , w \cdot y = a \cdot v - u \cdot c )\) \(\blacktriangleleft\) \(\mathbb{W}.\) ,\(0 \in \mathbb{M}\) ,𝕄0 ,INDC ,ℤ+Mcr2u …
\(( X , \textit{0} , \textit{1} , [-] , [+] , [\cdot] ) :\mathsf{CRing} \Longrightarrow \forall a , b , c , d , x , y , z \in X . \forall u , v , w \in X . ( u = a \cdot x + b \cdot y , v = c \cdot x + d \cdot y , w = a \cdot d - b \cdot c , z \cdot w = \textit{1} \Longrightarrow x = z \cdot ( u \cdot d - b \cdot v ) , y = z \cdot ( a \cdot v - u \cdot c ) )\) \(\blacktriangleleft\) \(\mathbb{W}.\) ,\(0 \in \mathbb{M}\) ,𝕄0 ,INDC ,ℤ+3 #49 Cayley–Hamilton (2×2)
\(A^2 - (\operatorname{tr}A)\,A + (\det A)\,I = 0\). Entry by entry, with the entries of \(A^2\) written \(p, q, r, s\), \(t = \operatorname{tr}A\), and \(w = \det A\).
Mch2 …
\(( X , \textit{0} , \textit{1} , [-] , [+] , [\cdot] ) :\mathsf{CRing} \Longrightarrow \forall a , b , c , d \in X . \forall p , q , r , s , t , w \in X . ( p = a \cdot a + b \cdot c , q = a \cdot b + b \cdot d , r = c \cdot a + d \cdot c , s = c \cdot b + d \cdot d , t = a + d , w = a \cdot d - b \cdot c \Longrightarrow p + w = t \cdot a , q = t \cdot b , r = t \cdot c , s + w = t \cdot d )\) \(\blacktriangleleft\) \(\mathbb{W}.\) ,\(0 \in \mathbb{M}\) ,𝕄0 ,INDC ,ℤ+4 #97 Determinant, adjugate matrix, and Cramer's rule for 3×3
\(\det(AB) = \det A \cdot \det B\) (3×3). Write the entries of \(AB\) as \(A, \ldots, I\) (row by row), with \(s = \det A\), \(t = \det B\), and \(u = \det(AB)\) (expanding along the first row). The proof uses the fact that the cofactor of the first row is a sum of a 2×2 minor of \(A\) and a cofactor of \(B\) (Binet–Cauchy).
Mdet3 …
\(( X , \textit{0} , \textit{1} , [-] , [+] , [\cdot] ) :\mathsf{CRing} \Longrightarrow \forall a , b , c , d , e , f , g , h , i , j , k , l , m , n , o , p , q , r \in X . \forall A , B , C , D , E , F , G , H , I , s , t , u \in X . ( A = a \cdot j + b \cdot m + c \cdot p , B = a \cdot k + b \cdot n + c \cdot q , C = a \cdot l + b \cdot o + c \cdot r , D = d \cdot j + e \cdot m + f \cdot p , E = d \cdot k + e \cdot n + f \cdot q , F = d \cdot l + e \cdot o + f \cdot r , G = g \cdot j + h \cdot m + i \cdot p , H = g \cdot k + h \cdot n + i \cdot q , I = g \cdot l + h \cdot o + i \cdot r , s = a \cdot ( e \cdot i - f \cdot h ) + b \cdot ( f \cdot g - d \cdot i ) + c \cdot ( d \cdot h - e \cdot g ) , t = j \cdot ( n \cdot r - o \cdot q ) + k \cdot ( o \cdot p - m \cdot r ) + l \cdot ( m \cdot q - n \cdot p ) , u = A \cdot ( E \cdot I - F \cdot H ) + B \cdot ( F \cdot G - D \cdot I ) + C \cdot ( D \cdot H - E \cdot G ) \Longrightarrow u = s \cdot t )\) \(\blacktriangleleft\) \(\mathbb{W}.\) ,\(0 \in \mathbb{M}\) ,𝕄0 ,INDC ,ℤ+Write the entries of the adjugate matrix \(\operatorname{adj}A\) as \(j, \ldots, r\) (row by row) and \(w = \det A\) (expanding along the first row). Then \(A \cdot \operatorname{adj}A = w I\).
Madj3 …
\(( X , \textit{0} , \textit{1} , [-] , [+] , [\cdot] ) :\mathsf{CRing} \Longrightarrow \forall a , b , c , d , e , f , g , h , i \in X . \forall j , k , l , m , n , o , p , q , r , w \in X . ( j = e \cdot i - f \cdot h , k = c \cdot h - b \cdot i , l = b \cdot f - c \cdot e , m = f \cdot g - d \cdot i , n = a \cdot i - c \cdot g , o = c \cdot d - a \cdot f , p = d \cdot h - e \cdot g , q = b \cdot g - a \cdot h , r = a \cdot e - b \cdot d , w = a \cdot ( e \cdot i - f \cdot h ) + b \cdot ( f \cdot g - d \cdot i ) + c \cdot ( d \cdot h - e \cdot g ) \Longrightarrow a \cdot j + b \cdot m + c \cdot p = w , a \cdot k + b \cdot n + c \cdot q = \textit{0} , a \cdot l + b \cdot o + c \cdot r = \textit{0} , d \cdot j + e \cdot m + f \cdot p = \textit{0} , d \cdot k + e \cdot n + f \cdot q = w , d \cdot l + e \cdot o + f \cdot r = \textit{0} , g \cdot j + h \cdot m + i \cdot p = \textit{0} , g \cdot k + h \cdot n + i \cdot q = \textit{0} , g \cdot l + h \cdot o + i \cdot r = w )\) \(\blacktriangleleft\) \(\mathbb{W}.\) ,\(0 \in \mathbb{M}\) ,𝕄0 ,INDC ,ℤ+Cramer: the solution of \(A\,(x, y, z)^T = (s, t, u)^T\) satisfies \(\det A \cdot x = j\), \(\det A \cdot y = k\), and \(\det A \cdot z = l\). Here \(j, k, l\) are the inner products of rows 1, 2, 3 of \(\operatorname{adj}A\) with the right-hand side (= the determinant of the matrix with column \(i\) replaced by the right-hand side).
Mcr3 …
\(( X , \textit{0} , \textit{1} , [-] , [+] , [\cdot] ) :\mathsf{CRing} \Longrightarrow \forall a , b , c , d , e , f , g , h , i , x , y , z \in X . \forall s , t , u , j , k , l , w \in X . ( s = a \cdot x + b \cdot y + c \cdot z , t = d \cdot x + e \cdot y + f \cdot z , u = g \cdot x + h \cdot y + i \cdot z , j = s \cdot ( e \cdot i - f \cdot h ) + t \cdot ( c \cdot h - b \cdot i ) + u \cdot ( b \cdot f - c \cdot e ) , k = s \cdot ( f \cdot g - d \cdot i ) + t \cdot ( a \cdot i - c \cdot g ) + u \cdot ( c \cdot d - a \cdot f ) , l = s \cdot ( d \cdot h - e \cdot g ) + t \cdot ( b \cdot g - a \cdot h ) + u \cdot ( a \cdot e - b \cdot d ) , w = a \cdot ( e \cdot i - f \cdot h ) + b \cdot ( f \cdot g - d \cdot i ) + c \cdot ( d \cdot h - e \cdot g ) \Longrightarrow w \cdot x = j , w \cdot y = k , w \cdot z = l )\) \(\blacktriangleleft\) \(\mathbb{W}.\) ,\(0 \in \mathbb{M}\) ,𝕄0 ,INDC ,ℤ+5 #49 Cayley–Hamilton (3×3)
\(A^3 - (\operatorname{tr}A)\,A^2 + c_2\,A - (\det A)\,I = 0\) (\(c_2\) is the sum of the principal minors), in the form \(A^3 + c_2 A = (\operatorname{tr}A) A^2 + (\det A) I\). With the entries of \(A^2\) written \(j, \ldots, r\), \(t = \operatorname{tr}A\), \(s = c_2\), and \(w = \det A\).
Mch3 …
\(( X , \textit{0} , \textit{1} , [-] , [+] , [\cdot] ) :\mathsf{CRing} \Longrightarrow \forall a , b , c , d , e , f , g , h , i \in X . \forall t , s , w , j , k , l , m , n , o , p , q , r \in X . ( t = a + e + i , s = ( a \cdot e - b \cdot d ) + ( a \cdot i - c \cdot g ) + ( e \cdot i - f \cdot h ) , w = a \cdot ( e \cdot i - f \cdot h ) + b \cdot ( f \cdot g - d \cdot i ) + c \cdot ( d \cdot h - e \cdot g ) , j = a \cdot a + b \cdot d + c \cdot g , k = a \cdot b + b \cdot e + c \cdot h , l = a \cdot c + b \cdot f + c \cdot i , m = d \cdot a + e \cdot d + f \cdot g , n = d \cdot b + e \cdot e + f \cdot h , o = d \cdot c + e \cdot f + f \cdot i , p = g \cdot a + h \cdot d + i \cdot g , q = g \cdot b + h \cdot e + i \cdot h , r = g \cdot c + h \cdot f + i \cdot i \Longrightarrow a \cdot j + b \cdot m + c \cdot p + s \cdot a = t \cdot j + w , a \cdot k + b \cdot n + c \cdot q + s \cdot b = t \cdot k , a \cdot l + b \cdot o + c \cdot r + s \cdot c = t \cdot l , d \cdot j + e \cdot m + f \cdot p + s \cdot d = t \cdot m , d \cdot k + e \cdot n + f \cdot q + s \cdot e = t \cdot n + w , d \cdot l + e \cdot o + f \cdot r + s \cdot f = t \cdot o , g \cdot j + h \cdot m + i \cdot p + s \cdot g = t \cdot p , g \cdot k + h \cdot n + i \cdot q + s \cdot h = t \cdot q , g \cdot l + h \cdot o + i \cdot r + s \cdot i = t \cdot r + w )\) \(\blacktriangleleft\) \(\mathbb{W}.\) ,\(0 \in \mathbb{M}\) ,𝕄0 ,INDC ,ℤ+