Diagonalization Calculator
Use this free diagonalization calculator to decompose a 2x2 matrix into A = PDP inverse. Enter four matrix entries and get the diagonal matrix D, eigenvector matrix P, and verification that the decomposition is valid.
Enter Values
Top-left entry of the matrix
Top-right entry of the matrix
Bottom-left entry of the matrix
Bottom-right entry of the matrix
Result
Enter values above and click Calculate to see your result.
AI Assistant
Ask about this calculator
I can help you understand the diagonalization calculator formula, interpret your results, and answer follow-up questions.
Try asking
Formula
How it works: Find the eigenvalues (diagonal entries of D) and eigenvectors (columns of P). If the matrix has two linearly independent eigenvectors, the diagonalization exists and A = PDP inverse holds exactly.
Review and Methodology
This calculator runs locally in your browser. Inputs are converted into the units required by the formula, and the result is paired with supporting references so you can verify the method before using it for planning or estimates.
Worked Example
What Is Matrix Diagonalization?
Diagonalization is the process of expressing a matrix A as the product PDP inverse, where D is a diagonal matrix containing the eigenvalues and P is a matrix whose columns are the corresponding eigenvectors. This decomposition is one of the most powerful tools in linear algebra because diagonal matrices are trivially easy to work with.
- Computing A to the power of n becomes trivial: A^n = P D^n P inverse, and raising a diagonal matrix to a power just raises each diagonal entry
- Matrix exponentials (e^A) used in differential equations reduce to exponentiating each eigenvalue
- Not every matrix can be diagonalized. The matrix must have enough linearly independent eigenvectors
- Symmetric matrices are always diagonalizable with orthogonal eigenvectors (spectral theorem)
- Diagonalization is the foundation for spectral decomposition, PCA, and many numerical algorithms
For 2x2 matrices, diagonalization is always possible when the two eigenvalues are distinct real numbers. This calculator handles the complete process: finding eigenvalues, computing eigenvectors, constructing P and D, and verifying the decomposition.
You can also calculate changes using our Eigenvalue Calculator, Eigenvector Calculator, Eigenbasis Calculator or Characteristic Polynomial Calculator.
Frequently Asked Questions
What is A = PDP inverse in simple terms?
P converts coordinates from the standard basis to the eigenvector basis. D applies simple scaling along each eigenvector direction. P inverse converts back. Together they reproduce the same transformation as A but through a much simpler path.
Why is diagonalization useful?
Because diagonal matrices are trivial to compute with. Need A to the 100th power? Instead of 100 matrix multiplications, compute P diag(lambda1^100, lambda2^100) P inverse, which is just one multiplication. This extends to matrix exponentials, differential equations, and Markov chains.
Can every 2x2 matrix be diagonalized?
No. A 2x2 matrix cannot be diagonalized if it has a repeated eigenvalue with only a 1-dimensional eigenspace (like [[2, 1], [0, 2]]), or if it has complex eigenvalues and you need real diagonalization.
What does the D matrix contain?
D is a diagonal matrix with the eigenvalues on the diagonal. The order of eigenvalues in D must match the order of the corresponding eigenvectors as columns of P.
How do I verify the diagonalization is correct?
Compute the product PDP inverse and check that it equals the original matrix A. You can also verify by checking that each column of P is an eigenvector: A times column i of P should equal lambda i times column i of P.
What is the connection between diagonalization and systems of differential equations?
A system dx/dt = Ax can be decoupled by diagonalization. In the eigenvector basis, the system becomes dy/dt = Dy, which is just independent exponential equations. The solution is y(t) = e^(Dt) y(0), then convert back with x = Py.
Can I embed this Diagonalization Calculator on my website?
Yes. Click the "Embed" button at the top of this page to customize the size, colors, and theme, then copy the iframe code. Paste it into any HTML page, WordPress site, or CMS. It is completely free, requires no signup, and works on all devices. You can also visit our embed guide at calculory.com/services/embed-calculators for more details.
AI Assistant
Ask about this calculator
I can help you understand the diagonalization calculator formula, interpret your results, and answer follow-up questions.
Try asking
More Algebra Calculators
View allAlgebra Graphing Calculator
Plot 2D functions and algebraic equations.
Inequality Graphing Calculator
Graph and shade mathematical inequalities.
Function Transformation Calculator
Visualize and calculate function transformations.
Completing the Square Calculator
Convert quadratics to vertex form step by step.
Related Articles
All articles
Types of Calculators in 2026: A Complete Guide to Choosing the Right One
Every type of calculator explained: basic, desk, scientific, graphing, printing, financial, construction (Sonic Cal style), online, app, and voice. Pick the right one in under a minute.
Read article
Best Voice Calculators in 2026: Online Tools and Mobile Apps Compared
The best voice calculators of 2026 compared: web tools, iPhone and Android apps, talking calculators, and PC options. Find the right voice activated calculator.
Read article
Seattle Sales Tax vs NYC, Chicago, LA, and SF: 2026 Guide
Seattle's sales tax is 10.25% in 2026, tied with Chicago and LA for the highest of any major US city. See how it stacks up against NYC, SF, Houston, and Portland.
Read article
Agentic ROI Blueprint: Replacing Roles in 2026
In 2026, teams are measuring total capability, not just headcount. Learn how to model the cost of replacing or augmenting full-time roles with an AI agent stack.
Read articleModern Tools for Every Need
Accurate and Reliable
All calculations run locally. Solve equations with confidence using AI-verified methods.
Verified Precision
Precise Algebraic Calculations Powered by Calculory AI