Diagonalize Matrix Calculator

Find eigenvalues, eigenvectors, and the diagonalization A = PDP-1 with step-by-step solutions.

Select Matrix Size & Enter Values

Result

Eigenvalues
--
Diagonalizable? --
Eigenvalue 1 --
Eigenvalue 2 --
Matrix D (diagonal) --
Matrix P (eigenvectors) --

Step-by-Step Solution

A = PDP^(-1)

Understanding Matrix Diagonalization

Matrix diagonalization is the process of finding a diagonal matrix D and an invertible matrix P such that A = PDP-1. This decomposition is one of the most important concepts in linear algebra, as it simplifies matrix computations dramatically. Once a matrix is diagonalized, operations like computing powers of the matrix become trivial.

Not all matrices can be diagonalized. A matrix is diagonalizable if and only if it has n linearly independent eigenvectors, where n is the size of the matrix. Symmetric matrices are always diagonalizable with orthogonal eigenvectors.

Key Concepts

Eigenvalues

Scalars that satisfy det(A - lambda*I) = 0. They form the diagonal entries of D.

det(A - lambda*I) = 0

Eigenvectors

Non-zero vectors v satisfying Av = lambda*v. They form the columns of P.

(A - lambda*I)v = 0

Diagonal Matrix D

Contains eigenvalues on the main diagonal, zeros elsewhere.

D = diag(lambda_1, lambda_2, ...)

Matrix Power

Once diagonalized, A^n = P * D^n * P^(-1), where D^n is trivial to compute.

A^n = P * D^n * P^(-1)

The Diagonalization Process

To diagonalize a matrix A, follow these steps: (1) Find the characteristic polynomial det(A - lambda*I). (2) Solve for the eigenvalues by finding the roots of the characteristic polynomial. (3) For each eigenvalue, find the corresponding eigenvector by solving (A - lambda*I)v = 0. (4) Form matrix P from the eigenvectors as columns. (5) Form matrix D with eigenvalues on the diagonal. Verify that A = PDP-1.

When Is a Matrix NOT Diagonalizable?

  • When the algebraic multiplicity of an eigenvalue exceeds its geometric multiplicity.
  • When there are not enough linearly independent eigenvectors to form a basis.
  • Defective matrices (with repeated eigenvalues and insufficient eigenvectors) cannot be diagonalized.
  • In such cases, Jordan normal form provides the closest alternative decomposition.

Applications of Diagonalization

Diagonalization is used in differential equations to decouple systems, in Markov chains to find steady-state distributions, in quantum mechanics to find observable values, in principal component analysis (PCA) for data science, and in computing matrix exponentials. It is fundamental to understanding linear transformations and their behavior over iterations.

Special Cases

Symmetric matrices (A = AT) are always diagonalizable and can be orthogonally diagonalized: A = QDQT where Q is an orthogonal matrix. Hermitian matrices in complex linear algebra have the analogous property with unitary matrices. Real symmetric matrices always have real eigenvalues.