Free Diagonalize Matrix Calculator
Eigenvalues
Select a matrix size, enter all entries, then click Calculate.
Matrix Diagonalization: Concept and Importance
A square matrix is a rectangular array of numbers arranged in rows and columns, with an equal number of rows and columns. Matrix diagonalization is a transformation that rewrites such a square matrix into the form , where is a diagonal matrix carrying the eigenvalues of and is a matrix whose columns are the corresponding eigenvectors. This so‑called SDS⁻¹ decomposition (sometimes referred to as the SDS‑1 decomposition) lies at the heart of eigenvalue decomposition and is one of the most powerful tools in linear algebra.
The advantage of diagonalization is that once you have the representation , many computations become far simpler. For instance, matrix powers: , where is obtained by raising each diagonal entry to the -th power. This is enormously faster than multiplying the original matrix times. Similarly, matrix exponentials, inverses (when no eigenvalue is zero), and functions of matrices all benefit from this decomposition.
The process applies to any square matrix that is diagonalizable, and with an online matrix diagonalization calculator you can obtain the decomposition for sizes like 2×2, 3×3, and even larger matrices.
Diagonal Matrices and Their Advantages
A diagonal matrix is a square matrix in which every entry off the main diagonal is zero. In form it looks like
Working with diagonal matrices is convenient because:
- The sum and product of two diagonal matrices are again diagonal.
- The transpose of a diagonal matrix equals itself.
- Raising a diagonal matrix to a power simply raises each diagonal element to that power: .
These properties are the reason we pursue diagonalization: once a matrix is diagonalized, burdensome tasks become straightforward.
Eigenvalues and Eigenvectors: The Cornerstones
For a square matrix of size , an eigenvalue and an eigenvector (non‑zero) satisfy
Rearranging gives , where is the identity. For a non‑trivial solution, the determinant of must vanish:
This equation is the characteristic polynomial of . Its degree equals the size of the matrix: quadratic for a matrix, cubic for a matrix, etc.
Solving the characteristic polynomial yields the eigenvalues. Over the field of complex numbers, an matrix always possesses eigenvalues (counted with multiplicity). However, if we restrict to real numbers, some matrices may have no real eigenvalues—such matrices are not diagonalizable over but may become diagonalizable over if they have enough eigenvectors.
A matrix is diagonalizable if and only if for each eigenvalue the geometric multiplicity (the number of linearly independent eigenvectors) equals the algebraic multiplicity (the exponent in the characteristic polynomial). When an eigenvalue has multiplicity greater than 1 but does not have enough independent eigenvectors, the matrix is defective and cannot be diagonalized.
Step‑by‑Step Diagonalization Procedure
To diagonalize a square matrix of size , follow these steps:
- Compute the characteristic polynomial: Find as a polynomial in .
- Find the eigenvalues: Solve . Denote the eigenvalues , counting multiplicities.
- For each eigenvalue, find eigenvectors: Substitute into and solve the homogeneous linear system. The number of free parameters equals the geometric multiplicity.
- Check diagonalizability: If the total number of linearly independent eigenvectors is , the matrix is diagonalizable. Otherwise it is not.
- Build the matrices:
- Place the eigenvectors as columns in (order can be chosen arbitrarily).
- Place the corresponding eigenvalues on the diagonal of in the same order.
- Verify: Confirm that .
A diagonalizable matrix solver or eigenvalue decomposition calculator can automate steps 1–5, particularly for larger systems where manual computation is tedious.
Diagonalizing a 3×3 Matrix — A Complete Example
Let’s apply the procedure to the concrete matrix
Characteristic Polynomial
Expanding along the first row:
Simplifying:
Thus the characteristic polynomial is , giving eigenvalues , , and . All are distinct, so the matrix is diagonalizable.
Eigenvectors
For each eigenvalue we solve .
- : The system reduces to , , . Choosing gives .
- : The system gives and . Letting yields . (An equivalent integer‑scaled version like is also valid.)
- : The system yields and . With we obtain .
All three eigenvectors are linearly independent, confirming diagonalizability.
Constructing and
Place the eigenvectors in (respecting the order of the eigenvalues):
It can be verified that .
Using the Decomposition
Now computing high powers of becomes trivial. For example, where
Multiplying by this result and then by yields with far less effort than brute‑force multiplication.
Using a Matrix Diagonalization Calculator
An online matrix diagonalization calculator (also called an eigenvalue decomposition calculator or find matrix diagonalization tool) lets you perform the entire process instantly. You simply enter the entries of your matrix; the tool returns the eigenvalues, eigenvectors, and the matrices and . It works for 2×2, 3×3, and larger square matrices, and it can even indicate if the matrix is not diagonalizable.
Such calculators are especially helpful when the characteristic polynomial is difficult to factor or when dealing with large systems. They remove the heavy arithmetic while still giving you the full decomposition.
Summary
Matrix diagonalization expresses a square matrix as using its eigenvalues and eigenvectors. The resulting diagonal form simplifies powers, exponentials, and many other matrix functions. The key steps are finding the eigenvalues via the characteristic polynomial, obtaining enough independent eigenvectors, and assembling and . Whether you work by hand or use an online matrix diagonalization solver, understanding this process is essential for advanced linear algebra and its applications in differential equations, physics, and data science.
FAQ
1. How do I know if a matrix is diagonalizable?
A square matrix is diagonalizable if it has n linearly independent eigenvectors, where n is its size. This always holds when all eigenvalues are distinct. For repeated eigenvalues, you must check that the geometric multiplicity (number of independent eigenvectors) equals the algebraic multiplicity (exponent in the characteristic polynomial). If any eigenvalue falls short, the matrix is not diagonalizable.
2. What are the steps for diagonalizing a matrix?
The main steps are: 1. Compute the characteristic polynomial det(A−λI). 2. Solve for eigenvalues (roots of the polynomial). 3. For each eigenvalue, solve (A−λI)v = 0 to get eigenvectors. 4. If enough linearly independent eigenvectors exist, the matrix is diagonalizable. 5. Build S from the eigenvectors and D from the eigenvalues. 6. Verify that A = S D S⁻¹.
3. How does diagonalization help in computing high powers of a matrix?
Once you have A = S D S⁻¹, then Aᵏ = S Dᵏ S⁻¹. Since D is diagonal, Dᵏ is simply each diagonal entry raised to the k‑th power. This is much faster than multiplying the original matrix k times, especially for large k.
4. Can a matrix with complex eigenvalues be diagonalized?
Yes, over the complex numbers. Every n×n matrix has n eigenvalues counted with multiplicity (by the fundamental theorem of algebra). If each eigenvalue has enough eigenvectors (geometric multiplicity equals algebraic multiplicity), the matrix is diagonalizable over ℂ. Real matrices without real eigenvalues are not diagonalizable over ℝ but may be diagonalizable over ℂ.
How to Use
- Select the matrix size: 2x2 or 3x3.
- Enter all the matrix entries in the grid of input fields.
- Click Calculate to see the eigenvalues, eigenvectors, and the diagonal decomposition A = S·D·S⁻¹.