# Nakafa Framework: LLM URL: /en/subject/university/bachelor/ai-ds/linear-methods/eigenvalue-diagonal-matrix Source: https://raw.githubusercontent.com/nakafaai/nakafa.com/refs/heads/main/packages/contents/subject/university/bachelor/ai-ds/linear-methods/eigenvalue-diagonal-matrix/en.mdx Output docs content for large language models. --- export const metadata = { title: "Eigenvalues of Diagonal and Triangular Matrices", description: "Discover how to read eigenvalues directly from diagonal entries of diagonal and triangular matrices, plus determinant-trace relationships.", authors: [{ name: "Nabil Akbarazzima Fatih" }], date: "07/12/2025", subject: "Linear Methods of AI", }; ## Diagonal Matrices and Their Special Properties For diagonal matrices, eigenvalues can be read directly from their main diagonal entries. This is one of the most fascinating features in linear algebra. The eigenvalues of a square diagonal matrix or triangular matrix are its main diagonal entries: Why is this true? Since with roots . This property greatly simplifies our work because we don't need to calculate determinants or solve complex characteristic equations. ## Upper and Lower Triangular Matrices Triangular matrices have the same property as diagonal matrices. For both upper and lower triangular matrices, the eigenvalues are still the main diagonal entries. This happens because when we calculate , the entries above or below the main diagonal don't affect the determinant calculation. The triangular structure allows the determinant to be computed as the product of diagonal entries. ## Direct Calculation Examples Let's look at some concrete examples to better understand this concept. ### Complex Eigenvalues Suppose . Its characteristic polynomial is: which has roots and . ### Zero Eigenvalues For , the characteristic polynomial is: with roots and . ## Characteristic Polynomial Factorization When matrix has eigenvalues that don't have to be distinct , the characteristic polynomial can be factored as: The sum of algebraic multiplicities of all eigenvalues is : In a more compact form: This property holds naturally for complex eigenvalues of matrices with real entries. Eigenvalues can be real numbers or complex conjugate pairs. ## Relationship Between Determinant and Trace There's a fundamental relationship between eigenvalues and the determinant and trace of a matrix. If the characteristic polynomial can be factored linearly in , which means matrix has eigenvalues , then: **The determinant is the product** of all eigenvalues, and **the trace is the sum** of all eigenvalues. Let's verify with our previous examples: For with , : For with , : This relationship is very useful for verifying calculations and provides geometric insights into the linear transformation represented by the matrix.