2×2 Matrix Diagonalisation Calculator
Enter a real 2×2 matrix A. The calculator finds eigenvalues, eigenvectors, and (when possible) matrices P, D, and P-1 such that A = PDP-1.
Note: This tool works over real numbers. If eigenvalues are complex, diagonalisation over ℝ is not available.
What Is Matrix Diagonalisation?
Matrix diagonalisation is the process of rewriting a matrix in a simpler form. If a square matrix A is diagonalizable, we can write it as:
where D is diagonal (only diagonal entries are non-zero), and the columns of P are eigenvectors of A. This is powerful because diagonal matrices are easy to work with, especially for matrix powers, differential equations, and dynamical systems.
How to Use This Calculator
- Enter the four entries of your 2×2 matrix.
- Click Calculate.
- Read the trace, determinant, and discriminant.
- If the matrix is diagonalizable over real numbers, inspect P, D, and P-1.
The calculator also identifies edge cases, such as repeated eigenvalues and non-diagonalizable matrices.
When Is a 2×2 Matrix Diagonalizable?
Case 1: Two Distinct Real Eigenvalues
If the characteristic equation gives two distinct real eigenvalues, the matrix is diagonalizable over ℝ. This is the most common success case.
Case 2: Repeated Eigenvalue
A repeated eigenvalue does not always guarantee diagonalisation. You need two independent eigenvectors. If you only get one, the matrix is defective and cannot be diagonalized (it has Jordan form instead).
Case 3: Complex Eigenvalues
If the discriminant is negative, eigenvalues are complex conjugates. Over real numbers, diagonalisation is not possible. Over complex numbers, it can still be diagonalizable when eigenvalues are distinct.
Why Diagonalisation Matters
- Fast powers: computing An becomes much easier using A = PDP-1.
- Systems of equations: simplifies linear differential and difference systems.
- Data science and ML: spectral methods rely on eigen-structure.
- Physics and engineering: normal modes and stability analysis depend on diagonalization ideas.
Common Mistakes to Avoid
- Assuming repeated eigenvalues always imply diagonalization.
- Mixing up matrix multiplication order; PDP-1 is not the same as P-1DP.
- Ignoring number system (real vs complex).
- Using rounded values too early and losing independence of eigenvectors.
Quick Example
Try the sample matrix:
This matrix has two distinct real eigenvalues, so it diagonalizes cleanly. Click Load Example and then Calculate to see the decomposition.