# Nakafa Framework: LLM
URL: /en/subject/university/bachelor/ai-ds/linear-methods/characteristic-polynomial
Source: https://raw.githubusercontent.com/nakafaai/nakafa.com/refs/heads/main/packages/contents/subject/university/bachelor/ai-ds/linear-methods/characteristic-polynomial/en.mdx
Output docs content for large language models.
---
export const metadata = {
    title: "Characteristic Polynomial",
    description: "Explore characteristic polynomials to find eigenvalues, understand algebraic multiplicity, and analyze matrix trace relationships in linear algebra.",
    authors: [{ name: "Nabil Akbarazzima Fatih" }],
    date: "07/12/2025",
    subject: "Linear Methods of AI",
};
## Definition and Basic Concepts
To find the eigenvalues of a matrix, we need a very important mathematical tool in linear algebra. Imagine we want to find all values  that make the matrix  become singular (not invertible).
Let . We can form a special function:
This function is a polynomial of degree  in , which we call the **characteristic polynomial** of .
with coefficients .
In fact,  is indeed a polynomial of degree  for every matrix .
## Matrix Trace and Polynomial Coefficients
Let  be a square matrix. The **trace** of  is the sum of the diagonal elements:
The matrix trace has a close relationship with the coefficients of the characteristic polynomial.
### Relationship of Coefficients with Trace and Determinant
In the characteristic polynomial  of , its coefficients have special meaning:
This means:
- The highest coefficient is always 
- The second highest coefficient is related to the matrix trace
- The constant term is the determinant of the matrix
## Eigenvalues as Polynomial Roots
The most important concept of the characteristic polynomial is its relationship with eigenvalues.
Now, let's look at a very important relationship:  is an eigenvalue of  if and only if .
In other words, **eigenvalues are the roots of the characteristic polynomial**.
The equation for :
is what we call the **characteristic equation** of .
## Algebraic Multiplicity
Now, what happens if an eigenvalue appears multiple times as a root of the characteristic polynomial? Let  and . The multiplicity of the root  of the characteristic polynomial  is called the **algebraic multiplicity**  of the eigenvalue  of . We say  is an eigenvalue with multiplicity  of .
### Multiplicity Bounds
For every eigenvalue , it holds:
## Relationship between Geometric and Algebraic Multiplicity
One important result in eigenvalue theory is the relationship between geometric and algebraic multiplicity.
For any matrix  and , we have an interesting relationship:
> The geometric multiplicity of every eigenvalue is always less than or equal to its algebraic multiplicity.
Why does this happen? This can be explained using basis transformation and Jordan block form.
## Examples of Characteristic Polynomial Calculation
After understanding the basic concepts, let's see how to apply them in concrete examples of characteristic polynomial calculation:
### 3x3 Matrix Example
Let . The characteristic polynomial of  is:
For ,  only has the root  with algebraic multiplicity .
For ,  has roots , , and  with algebraic multiplicities  respectively.
### Simple Example
The characteristic polynomial of matrix  is:
This matrix has the root  with algebraic multiplicity .  is the only eigenvalue of . We have calculated that .
## Geometric Transformation Examples
Now, let's explore something fascinating: how the characteristic polynomial works on common geometric transformations we often encounter in :
### Rotation
Rotation with  has the characteristic polynomial:
This has real roots if and only if , that is , so  or .
### Reflection
Reflection along axes with  has the characteristic polynomial:
The eigenvalues are  and  with .
### Scaling
Scaling with  has the characteristic polynomial:
The eigenvalue is  with .
### Shearing
Shearing with  with  has the characteristic polynomial:
The eigenvalue is  with .
## Properties of Similar Matrices
Similar matrices have a fascinating property: they have the same characteristic polynomial, and therefore have the same eigenvalues, the same trace, and the same determinant.
Let's see why this is true. Let  be invertible and . Then:
### Eigenvector Properties of Similar Matrices
Now, what about the eigenvectors of similar matrices? Let  be similar matrices with  and invertible matrix . If  is an eigenvalue of both  and , and  is an eigenvector of  for eigenvalue , then  is an eigenvector of  for eigenvalue .
Let's see why this is true. Let  and . Then:
This shows that similarity transformation not only preserves eigenvalues, but also provides a systematic way to transform eigenvectors.