Identities for 2 × 2 matrices #
This file collects polynomial identities satisfied by 2 × 2 matrices over a commutative ring,
all consequences of the Cayley–Hamilton theorem in dimension two.
Main results #
Matrix.mul_self_eq_trace_smul_sub_det_smul_fin_two: Cayley–Hamilton,A * A = trace A • A - det A • 1.Matrix.adjugate_fin_two_eq_trace_smul_one_sub:adjugate A = trace A • 1 - A.Matrix.adjugate_add_fin_two: the adjugate is additive.Matrix.mul_add_mul_eq_trace_smul_add_trace_smul_fin_two: the polarized Cayley–Hamilton identityA * B + B * A = trace A • B + trace B • A + (trace (A * B) - trace A * trace B) • 1.Matrix.mul_mul_eq_trace_smul_sub_det_smul_adjugate_fin_two:M * A * M = trace (A * M) • M - det M • adjugate A.Matrix.det_add_fin_two:det (A + B) = det A + trace (adjugate A * B) + det B.Matrix.det_add_smul_fin_two: the determinant of a pencilA + c • B.Matrix.lie_lie_lie_eq_discr_smul_lie_fin_two:⁅X, ⁅X, ⁅X, T⁆⁆⁆ = discr X • ⁅X, T⁆.Matrix.det_lie_lie_eq_neg_discr_mul_det_lie_fin_two:det ⁅X, ⁅X, T⁆⁆ = -discr X * det ⁅X, T⁆.
Related #
In Mathlib, Cayley–Hamilton is Matrix.aeval_self_charpoly and the 2 × 2 characteristic
polynomial is Matrix.charpoly_fin_two (which assumes Nontrivial R); the entries of the 2 × 2
adjugate are Matrix.adjugate_fin_two and the discriminant is Matrix.discr_fin_two. The
statements above are their coordinate-free consequences, with no Nontrivial hypothesis.