← LibraryDiagonalization | KEVOS® MathematicsProject Delivery · Project ManagementLesson 52/189← PrevNext →
ArticlePublished 8 Aug 202624 min readBy Kevin Jogin
Skip to content

Engineering/Mathematics/Eigenvalues

Diagonalization

A square matrix is diagonalisable when a change of basis turns it into a diagonal matrix, and the new basis is built entirely from its eigenvectors. The test is arithmetic: every eigenvalue must supply as many independent eigenvectors as its multiplicity in the characteristic polynomial demands.

  • Advanced level
  • Stream: similarity
  • Reading time 16 min
  • Ref KVS-ENG-MATH-0088
Taxonomy
Engineering / Mathematics
Prerequisite
Eigenvalues, eigenspaces, similar matrices
Test
γA(λ)=αA(λ) for every eigenvalue
Sufficient condition
n distinct eigenvalues
Payoff
Ak=SDkS1 — powers, exponentials, decoupled modes
Fails when
An eigenvalue is defective (too few independent eigenvectors)

Overview

Similarity lets a matrix be rewritten in a different basis without disturbing its eigenvalues, its determinant, its rank or its characteristic polynomial. The natural question is how simple a form can be reached. Diagonalization answers it for the best case: a matrix A is diagonalisable when some invertible S makes S1AS diagonal, at which point every off-diagonal coupling has been removed and the remaining diagonal entries are precisely the eigenvalues of A.

The characterisation is constructive rather than existential. A of size n is diagonalisable if and only if n has a basis made entirely of eigenvectors of A. Placing those eigenvectors in the columns of S, in any order, produces the diagonalising matrix directly, and the eigenvalues appear on the diagonal in that same order. There is no search and no iteration — the eigenvectors are the answer.

Whether such a basis exists is decided by a count. Each eigenvalue λ carries an algebraic multiplicity αA(λ), its multiplicity as a root of the characteristic polynomial, and a geometric multiplicity γA(λ), the dimension of its eigenspace. The geometric multiplicity never exceeds the algebraic one. Diagonalisability holds exactly when the two agree for every eigenvalue, because only then do the eigenspaces contribute enough independent directions to fill the whole space.

The engineering value is that a diagonal matrix acts independently on each coordinate. Powers, exponentials, inverses and polynomials of a diagonalisable matrix reduce to the same operation applied to n scalars. A coupled linear recurrence or a coupled system of ordinary differential equations becomes n uncoupled scalar problems, solved in closed form, then recombined. That decoupling is the whole reason modal analysis, principal component analysis and stability classification of linear systems are practical.

Definition

Diagonal Matrix

DIM

A square matrix A is diagonal when every entry off the main diagonal is zero, that is [A]ij=0 whenever ij. The diagonal entries themselves are unrestricted and may be zero. Writing D=diag(d1,d2,,dn) fixes the whole matrix with n numbers instead of n2.

A diagonal matrix is simultaneously upper triangular and lower triangular, so its eigenvalues are its diagonal entries and its determinant is their product.

Diagonalisable Matrix

DZM

A square matrix A is diagonalisable when it is similar to a diagonal matrix — that is, when there exists a non-singular matrix S of the same size and a diagonal matrix D with S1AS=D. The pair (S,D) is a diagonalisation of A; it is never unique, since reordering the columns of S permutes the diagonal of D correspondingly.

Diagonalisability is a property of the matrix, not of any particular S. Because similarity is an equivalence relation, every matrix similar to a diagonalisable matrix is itself diagonalisable.

Defective Matrix

DFM

A square matrix is defective when at least one eigenvalue λ satisfies γA(λ)<αA(λ), so that eigenvalue supplies fewer independent eigenvectors than its algebraic multiplicity. A matrix is diagonalisable precisely when it is not defective. The shortfall αA(λ)γA(λ) is the defect at λ, and it is exactly the number of generalised eigenvectors that must be recruited to complete a basis.

Concepts

The eigenvector-basis characterisation

The central theorem states that a square matrix A of size n is diagonalisable if and only if there exists a linearly independent set of n eigenvectors of A. The reverse direction is the construction: given independent eigenvectors x1,,xn for eigenvalues λ1,,λn, form S=[x1x2xn]. Then AS has columns Axi=λixi, which is precisely S with its i-th column scaled by λi, so AS=SD. Independence makes S non-singular, and multiplying on the left by S1 gives S1AS=D. The proof is therefore an algorithm: locate n independent eigenvectors and the diagonalisation writes itself.

The forward direction reads eigenvectors off the columns

The converse argument runs the same computation backwards. Suppose T1AT=E with E diagonal and T non-singular. Then AT=TE, and comparing columns gives Ayi=diyi for each column yi of T. Because T is non-singular no column is the zero vector, so each column genuinely is an eigenvector, and the columns of a non-singular matrix form a linearly independent set. A diagonalisation therefore is an eigenvector basis, written in matrix form. Nothing else can diagonalise a matrix.

The multiplicity criterion

Counting eigenvectors directly is awkward, so the practical test is stated in multiplicities: A is diagonalisable if and only if γA(λ)=αA(λ) for every eigenvalue λ of A. The forward implication uses the fact that algebraic multiplicities sum to n while the eigenvectors drawn from each eigenspace can never exceed its dimension; if one eigenvalue is deficient the total falls short of n and no basis of eigenvectors exists. The reverse implication needs the theorem that eigenvectors belonging to distinct eigenvalues are linearly independent, which lets bases of the individual eigenspaces be concatenated into one independent set of size γA(λi)=αA(λi)=n.

Distinct eigenvalues force diagonalisability

If a matrix of size n has n distinct eigenvalues then every algebraic multiplicity equals 1. Since 1γA(λ)αA(λ) always holds, every geometric multiplicity is forced to 1 as well, the multiplicity criterion is satisfied automatically, and the matrix is diagonalisable. This is a sufficient condition only. Plenty of diagonalisable matrices have repeated eigenvalues — the identity matrix is the extreme case, already diagonal with one eigenvalue of multiplicity n — so a repeated root is a prompt to compute an eigenspace dimension, not a verdict.

Powers, polynomials and functions of a matrix

Write A=SDS1. Then A2=SDS1SDS1=SD2S1, and by induction Ak=SDkS1 for every non-negative integer k. Because Dk is diagonal with entries λik, a power that would otherwise cost k1 matrix products collapses to n scalar powers plus two matrix products. The same substitution defines any function of the matrix: for a polynomial q, q(A)=Sq(D)S1 with q applied entrywise on the diagonal, and the matrix exponential eAt=Sdiag(eλ1t,,eλnt)S1 follows by the same route. This is where diagonalisation earns its keep in dynamics.

Not every matrix is diagonalisable

Consider B with characteristic polynomial pB(x)=(x1)(x2)3 whose eigenspace for λ=2 has dimension 1. Then γB(2)=1 while αB(2)=3, the multiplicity criterion fails, and B is not similar to any diagonal matrix. Failure is not exotic: the simplest instance is the 2×2 shear [1101], which has the single eigenvalue 1 with α=2 and γ=1. For defective matrices the best available canonical form under similarity is the Jordan form, which is block diagonal with nilpotent superdiagonal blocks rather than fully diagonal.

The spectral projector view

A diagonalisation can be rewritten without any inverse in sight. Let xi be the columns of S and wit the rows of S1; then A=i=1nλixiwit, a sum of rank-one terms. Grouping the terms belonging to a single eigenvalue gives a projector onto that eigenspace along the others, and A becomes a weighted sum of projectors. This form makes the modal interpretation explicit: applying A decomposes a vector into its components in each eigenspace, scales each by its eigenvalue, and reassembles.

Procedure: decide and construct a diagonalisation

Form the characteristic polynomialCompute pA(x)=det(AxIn) and factor it. Record each distinct eigenvalue λi with its algebraic multiplicity αA(λi).
Compute each eigenspaceFor each λi, row-reduce AλiIn and read a basis for its null space. The number of basis vectors is the geometric multiplicity γA(λi).
Compare the multiplicitiesIf γA(λi)<αA(λi) for any i, the matrix is defective. Stop: no diagonalisation exists, and a Jordan form is the appropriate target instead.
Assemble SConcatenate the eigenspace bases into a single list of n vectors and place them as the columns of S. Independence is guaranteed by the multiplicity test, so S is non-singular.
Write D by inspectionSet D=diag(λ1,,λn) with each eigenvalue repeated as often as its column appears in S, in exactly the same order. No further computation is needed.
VerifyConfirm AS=SD by direct multiplication. This avoids inverting S and catches transcription errors that a check of S1AS would hide behind extra arithmetic.

Equations

Definition of diagonalisability

EQ-DZ-01
S1AS=D=diag(λ1,λ2,,λn)

The matrix S is non-singular and D is diagonal. The diagonal entries of D are the eigenvalues of A, repeated according to their algebraic multiplicities.

Construction of the diagonalising matrix

EQ-DZ-02
S=[x1x2xn],Axi=λixi

Any linearly independent set of n eigenvectors, taken in any order, gives a valid S. The order chosen for the columns fixes the order of the eigenvalues on the diagonal of D.

Column form of the diagonalisation

EQ-DZ-03
AS=SD

The inverse-free restatement of S1AS=D. Reading it column by column recovers Axi=λixi, which is why the theorem is an eigenvector statement in disguise. This is also the cheapest way to verify a computed diagonalisation.

Multiplicity criterion for diagonalisability

EQ-DZ-04
AdiagonalisableγA(λ)=αA(λ)λσ(A)

Here σ(A) is the set of distinct eigenvalues, αA the algebraic multiplicity and γA the geometric multiplicity. Since 1γA(λ)αA(λ) always, only a strict shortfall can break the criterion.

Eigenspace dimensions sum to the matrix size

EQ-DZ-05
i=1kγA(λi)=n

An equivalent phrasing of the criterion for a matrix with k distinct eigenvalues. Because algebraic multiplicities always sum to n, equality here forces γA=αA term by term.

Powers of a diagonalisable matrix

EQ-DZ-06
Ak=SDkS1,Dk=diag(λ1k,λ2k,,λnk)

Reduces k1 matrix multiplications to n scalar powers and two matrix products. The same identity holds for negative k when every eigenvalue is non-zero, and extends to any function applied to the diagonal.

Spectral expansion into rank-one terms

EQ-DZ-07
A=i=1nλixiwit,wit=rowiofS1

The outer-product form of a diagonalisation. Each term projects onto one eigendirection and scales it, which is the algebraic statement of modal decomposition.

Distinct eigenvalues are sufficient

EQ-DZ-08
|σ(A)|=nAdiagonalisable

A matrix of size n with n distinct eigenvalues is always diagonalisable. The implication does not reverse: the identity matrix is diagonalisable with a single eigenvalue.

Variable Definitions

Symbols used on this page
SymbolNameMeaningDomain / type
ASubject matrixThe square matrix being tested for diagonalisabilityn x n complex matrix
SDiagonalising matrixNon-singular matrix whose columns are n independent eigenvectors of An x n non-singular matrix
DDiagonal formThe diagonal matrix similar to A, carrying the eigenvalues on its diagonaln x n diagonal matrix
λiEigenvalueA root of the characteristic polynomial of Acomplex scalar
xiEigenvectorA non-zero vector with Axi=λixi, used as a column of Snon-zero vector in C^n
αA(λ)Algebraic multiplicityMultiplicity of λ as a root of pA(x)integer 1 to n
γA(λ)Geometric multiplicityDimension of the eigenspace EA(λ)=N(AλIn)integer 1 to alpha
pA(x)Characteristic polynomialdet(AxIn), whose roots are the eigenvaluesdegree-n polynomial
kPower indexExponent applied to A when using the diagonalisation to compute Aknon-negative integer

Worked Numerical Example

Problem statement

A three-buffer production line is modelled by the one-period update sk+1=Ask, where A is the gain matrix below. Decide whether A is diagonalisable, construct an explicit diagonalisation, and use it to obtain the ten-period propagator A10 in closed form.

  1. State the gain matrix

    The three buffer levels are coupled by the following one-period update matrix. Note that it is not symmetric, so nothing about its spectrum is guaranteed in advance.

    A=[722612621]
  2. Find the eigenvalues

    The trace is 711=5, the sum of the three principal 2×2 minors is 3+5+5=7, and det(A)=3. These are the coefficients of the characteristic polynomial up to sign, giving a factorisation with a repeated root.

    pA(x)=x35x2+7x3=(x3)(x1)2
  3. Record the algebraic multiplicities

    The distinct eigenvalues are λ=3 and λ=1, with αA(3)=1 and αA(1)=2. Because λ=1 is repeated, diagonalisability is genuinely in question and must be settled by computing the eigenspace dimension.

  4. Compute the eigenspace for λ=3

    Row-reduce A3I3. The reduced form has two pivot columns, so the null space has dimension 1 and γA(3)=1, matching αA(3)=1 as the general bound already guarantees.

    A3I3=[422642624][101011000],EA(3)=span{[111]}
  5. Compute the eigenspace for λ=1

    Here AI3 has three identical rows, so its reduced form has a single pivot. Two free variables give a two-dimensional null space, hence γA(1)=2=αA(1). The multiplicity criterion is satisfied for both eigenvalues, so A is diagonalisable.

    AI3=[622622622][11313000000],EA(1)=span{[130],[103]}
  6. Assemble S and D

    Place the three eigenvectors as columns in the order 3,1,1 and write the eigenvalues on the diagonal in the same order. The inverse is computed once by reducing [SI3].

    S=[111130103],D=[300010001],S1=[3111231311323]
  7. Verify without inverting

    Check AS=SD column by column. Column one: A(1,1,1)t=(3,3,3)t=3(1,1,1)t. Column two: A(1,3,0)t=(1,3,0)t. Column three: A(1,0,3)t=(1,0,3)t. All three match the corresponding columns of SD, confirming the diagonalisation.

    AS=[311330303]=SD
  8. Build the ten-period propagator

    Since Dk=diag(3k,1,1)=I3+(3k1)e1e1t, the power collapses to the identity plus a single rank-one correction: Ak=I3+(3k1)vwt where v=(1,1,1)t is the first column of S and wt=(3,1,1) is the first row of S1. At k=10, 3101=59048.

    A10=I3+59048[311311311]=[177145590485904817714459047590481771445904859047]
Result

The line has one growing mode with gain 3 per period along the direction (1,1,1)t and a two-dimensional subspace on which the state is exactly preserved. Ten periods of propagation, which would otherwise need nine matrix products, reduce to one scalar power and a rank-one update. Physically, any initial imbalance lying in the λ=1 plane persists indefinitely without growth, while any component along (1,1,1)t amplifies by a factor of 59049 over ten periods — the design signal that this configuration is unstable and needs feedback.

Applications &amp; Industry Use

Mechanical &amp; structural dynamics

Modal analysis of vibrating structures

The generalised eigenproblem for a mass and stiffness pair diagonalises the equations of motion, replacing a coupled multi-degree-of-freedom system with independent single-degree-of-freedom oscillators. Each mode has its own natural frequency and can be truncated or damped separately, which is why modal superposition dominates earthquake and rotor-dynamic analysis.

Control systems

Decoupling state-space models

For dxdt=Ax+Bu with A diagonalisable, the change of coordinates z=S1x produces n independent scalar dynamics with rates λi. Stability, settling time and the presence of oscillatory modes are then read off the diagonal, and controllability of an individual mode can be assessed in isolation.

Chemical &amp; process engineering

Multi-component reaction kinetics

A first-order reaction network gives dcdt=Kc for a rate matrix K. Diagonalising K yields reaction modes decaying as eλit, exposing the slow mode that governs residence time and the fast modes that can be treated as instantaneous in a reduced model.

Data science &amp; statistics

Principal component analysis

A sample covariance matrix is real symmetric and therefore always diagonalisable, with an orthonormal eigenvector basis. Diagonalisation ranks directions by variance, so the leading eigenvectors provide an optimal low-rank representation of measurement data and the trailing ones identify redundancy in an instrument array.

Computer graphics &amp; geometry

Classifying and simplifying linear maps

A diagonalisable transformation is a pure scaling once the right axes are chosen. Recognising this lets a graphics or CAD pipeline replace a general matrix by three scale factors plus a basis change, which simplifies interpolation between transforms and reveals whether a mapping preserves, inverts or degenerates volume.

Electrical power systems

Symmetrical component transformation

Balanced three-phase network matrices are circulant, and the fixed transformation to positive, negative and zero sequence components diagonalises them. Diagonalisation converts a coupled three-phase fault calculation into three independent single-phase calculations, which is the standard basis of protection studies.

Design Considerations

Diagonalisability is not a numerical property

The predicate is discontinuous: an arbitrarily small perturbation can split a repeated eigenvalue and turn a defective matrix into a diagonalisable one. That diagonalisation will have an almost singular S and is numerically useless. Decide on structure symbolically or from known matrix properties, never from a floating-point eigenvalue count.

Watch the conditioning of the eigenvector matrix

Errors in a diagonalisation are amplified by κ(S)=SS1. Near-defective matrices have nearly parallel eigenvectors and a huge κ(S), so Ak=SDkS1 can lose all significance even though every individual quantity is finite. Report κ(S) alongside any computed diagonalisation.

Prefer the symmetric or Hermitian case where you can

A Hermitian matrix is always diagonalisable and admits a unitary S, for which κ(S)=1 exactly. If the model can be posed with a symmetric operator — by symmetrising a stiffness matrix, or by working with a covariance rather than a raw data matrix — both the existence question and the conditioning question disappear.

Do not form S1 when you only need to solve

Applying Ak to a vector needs S1v, which is a linear solve rather than an inversion. Computing S1 explicitly costs more arithmetic and is less accurate. Factor S once and reuse the factorisation across right-hand sides and across powers.

Choose the column order deliberately

Column order in S is free, so use it. Ordering eigenvalues by decreasing modulus puts the dominant mode first, which is convenient for truncation and for reading off asymptotic behaviour. Grouping columns by eigenvalue keeps the diagonal blocks of D contiguous, which matters when a downstream algorithm exploits block structure.

Have a fallback for defective matrices

When the multiplicity test fails, the options are the Jordan form (exact, but numerically fragile), the Schur decomposition A=QTQ with Q unitary and T upper triangular (always exists, numerically stable, and enough for most computations), or the singular value decomposition when the question is about magnitudes rather than invariant directions. Production code should default to Schur.

Standards &amp; Codes

Notation, interchange and numerical standards that govern how this material is written down, stored and computed in production systems.

Applicable standards, conventions and reference implementations
ReferenceTitleRelevance to this topic
ISO 80000-2Quantities and units — Part 2: MathematicsFixes the notation used throughout: italic for the matrix symbols A, S, D, upright for the operators det and diag, and Greek λ for eigenvalues.
IEEE 754-2019IEEE Standard for Floating-Point ArithmeticGoverns the rounding behaviour that makes an equality test between an algebraic and a geometric multiplicity meaningless in floating point, and that bounds the accuracy of any computed eigenvector matrix.
LAPACK / BLAS referenceLinear Algebra PACKage reference implementationProvides xGEEV for the general eigenproblem and xSYEV/xHEEV for the symmetric and Hermitian cases; xGEES returns the Schur form, the standard fallback when a matrix is defective.
ISO/IEC 40314Mathematical Markup Language (MathML) Version 3.0Encodes the matrix and multiplicity notation on this page semantically, so that a diagonal matrix is exposed to assistive technology as structured content rather than as an image.
ISO 2041Mechanical vibration, shock and condition monitoring — VocabularyDefines the modal vocabulary — mode shape, natural frequency, modal coordinate — that maps directly onto the columns of S and the diagonal entries of D in structural applications.

Material Selection

For a mathematical topic, "material" is the numeric representation: the scalar field, storage format and precision the computation is built from.

Representation and precision selection
RepresentationSelect whenTrade-off
Exact rational arithmeticSmall matrices with integer or rational entries where diagonalisability itself is the deliverable, or where eigenvector bases feed a symbolic derivation.Gives a definitive yes or no answer with no tolerance, but requires exact roots of the characteristic polynomial, which do not exist in closed form beyond degree four.
Algebraic number field arithmeticIrrational eigenvalues must be handled exactly, for instance in exact modal analysis of a symmetric integer stiffness matrix.Preserves exactness through the eigenvector computation, at a substantial implementation and runtime cost that grows quickly with the degree of the minimal polynomial.
IEEE 754 binary64 with a real spectrumSymmetric or Hermitian matrices from measurement or discretisation, where a unitary diagonalisation is guaranteed to exist.Backward stable and well conditioned because κ(S)=1, but eigenvalues that are close together still yield eigenvectors with large relative error even though the invariant subspace is accurate.
IEEE 754 binary64 with a complex spectrumGeneral non-symmetric system matrices in control and dynamics, where eigenvalues may be complex and eigenvectors are not orthogonal.Requires complex storage and arithmetic for what may be a real matrix, and the accuracy of the result is limited by κ(S), which is unbounded near a defective matrix.
Real Schur form instead of a diagonalisationNumerical work where existence must be guaranteed and stability matters more than a fully diagonal target.Always exists with an orthogonal transforming matrix, so it is unconditionally stable, but leaves 2×2 blocks for complex-conjugate pairs and an upper triangular remainder rather than a diagonal.
Finite field arithmeticCoding theory and cryptanalysis, where a linear map over p must be put in diagonal form.Exact and fast, but the characteristic polynomial may not split over the field, so a matrix diagonalisable over can fail to be diagonalisable over p.

Manufacturing Notes

Implementation notes — how the result is actually produced by hand, by algorithm and by library, including cost and numerical behaviour.

Cost of the decision and the construction

Deciding diagonalisability by hand costs one characteristic polynomial plus one row reduction per distinct eigenvalue, so roughly k reductions of an n×n matrix at about 23n3 operations each. Numerically the whole eigendecomposition is obtained in one pass: reduction to Hessenberg form followed by the shifted QR iteration costs about 10n3 operations for eigenvalues alone and around 25n3 when eigenvectors are also requested.

Verify with AS=SD, not with S1AS

The multiplication-only identity AS=SD needs no inverse, costs two matrix products, and isolates errors to a single column. Checking S1AS instead introduces the inverse's own error and can mask a wrong eigenvector behind cancellation. In floating point, report the residual ASSD relative to AS rather than testing for exact equality.

Library behaviour and conventions

numpy.linalg.eig returns eigenvalues and normalised right eigenvectors as the columns of a matrix that plays the role of S, but it never reports whether the matrix is defective — it simply returns a nearly singular eigenvector matrix. scipy.linalg.schur gives the always-available fallback. Symbolic systems expose an explicit predicate and a diagonalisation routine that raises an error for defective input, which is the behaviour to prefer when the structural answer matters.

Exploiting the diagonalisation for repeated application

If Akv is needed for many values of k, factor once: compute z=S1v by a linear solve, then each power costs n scalar multiplications plus one matrix-vector product S(Dkz), at O(n2) instead of O(n3). When only the dominant behaviour is needed, truncating to the largest few |λi| gives a reduced-order model with a controllable error bound.

Scaling and normalisation of eigenvectors

Eigenvectors are determined only up to a non-zero scalar, so S is far from unique. Normalising each column to unit Euclidean length is the usual convention and improves the conditioning of the inverse; for a real matrix with a complex-conjugate eigenpair, fixing the phase (for instance by making the largest-magnitude component real and positive) makes results reproducible across libraries.

Failure Modes &amp; Common Mistakes

Failure modes, root causes and prevention
Failure mode / mistakeImpactRoot causePrevention & detection
Assuming every square matrix is diagonalisablehighGeneralising from textbook examples with distinct eigenvalues, where the criterion is satisfied automatically.Compute the eigenspace dimension for every repeated eigenvalue before asserting a diagonalisation exists; a repeated root is a question, not an answer.
Comparing only the algebraic multiplicitieshighChecking that the algebraic multiplicities sum to n, which is always true and therefore tests nothing.The criterion is γA(λ)=αA(λ) for each eigenvalue separately; the geometric side requires an actual null space computation.
Mismatching the order of S and DhighListing the eigenvalues in one order on the diagonal while the eigenvector columns were assembled in another.Build D only after S is fixed, reading each diagonal entry off the eigenvalue of the corresponding column, then verify AS=SD.
Using a dependent set of eigenvectorsmediumTaking several vectors from one eigenspace without checking that they form a basis, for instance including a scalar multiple twice.Take eigenspace bases from a row reduction of AλIn, which produces independent vectors by construction, and confirm det(S)0.
Trusting a floating-point diagonalisation of a near-defective matrixhighA computed eigenvector matrix is returned without error even when its condition number is 1012, so SDkS1 silently produces noise.Always compute κ(S); if it is large relative to the working precision, switch to a Schur decomposition or an invariant-subspace formulation.
Confusing similarity with row equivalencemediumAttempting to diagonalise by row operations alone, which changes eigenvalues and destroys the spectrum.A similarity transformation applies S1 on the left and S on the right simultaneously; row reduction is used only inside the eigenspace computations, never on A itself.
Assuming a real matrix has a real diagonalisationmediumA real non-symmetric matrix may have complex-conjugate eigenvalues, so S and D are complex even though A is not.Expect complex arithmetic for general real matrices, or use the real Schur form with 2×2 blocks if real output is a hard requirement.
Reporting the diagonal entries as if the order were canonicallowTwo correct diagonalisations of the same matrix list the eigenvalues differently, and downstream code assumes a fixed position.Sort the eigenvalues explicitly by a stated rule, such as decreasing modulus, and permute the columns of S to match before publishing results.

FAQs

What is the difference between diagonalisable and invertible?

They are independent properties. The zero matrix is diagonal, hence diagonalisable, but not invertible; the shear [1101] is invertible but not diagonalisable. Invertibility asks whether zero is an eigenvalue; diagonalisability asks whether the eigenvectors span the space.

Does a repeated eigenvalue prevent diagonalisation?

No. It only means the question must be answered by computation rather than by inspection. If the eigenspace of the repeated eigenvalue has dimension equal to its algebraic multiplicity, the matrix is diagonalisable; the identity matrix has one eigenvalue of multiplicity n and is already diagonal.

Is the diagonalisation of a matrix unique?

No. The columns of S can be reordered, which permutes the diagonal of D, and each column can be rescaled by any non-zero scalar. Within an eigenspace of dimension greater than one, any basis at all may be used. What is unique is the multiset of diagonal entries, since those are the eigenvalues with their multiplicities.

How does diagonalisation relate to the singular value decomposition?

They answer different questions. Diagonalisation uses a similarity transformation S1AS, preserves eigenvalues, applies only to square matrices and may not exist. The SVD uses two different unitary matrices, UAV, applies to any rectangular matrix, always exists and reveals magnitudes rather than invariant directions. They coincide, up to signs, for a symmetric positive definite matrix.

What happens when a matrix cannot be diagonalised?

The closest attainable form under similarity is the Jordan form: block diagonal with each block having one eigenvalue on the diagonal and ones on the superdiagonal. It is exact but extremely sensitive to perturbation, so numerical work uses the Schur decomposition A=QTQ with Q unitary and T upper triangular instead, which always exists and is computed stably.

Why is Ak=SDkS1 so much cheaper than repeated multiplication?

Because the diagonal of Dk is just λik, so the entire power is n scalar exponentiations plus two matrix products, independent of k. Repeated squaring of A costs O(n3logk) operations, and naive repeated multiplication O(n3k). The saving grows with k, and the same substitution extends to eAt and to any analytic function of the matrix.

Can I tell a matrix is diagonalisable without computing eigenvectors?

Sometimes. A Hermitian or real symmetric matrix always is; so is any matrix with n distinct eigenvalues, which can be confirmed from the characteristic polynomial alone; and more generally any normal matrix, satisfying AA=AA, is unitarily diagonalisable. Outside these classes, a repeated eigenvalue forces an eigenspace dimension computation.

References

  1. Beezer, R. A. A First Course in Linear Algebra, Version 0.70. University of Puget Sound, 2006. Section SD, subsection D. Licensed under the GNU Free Documentation License v1.2.
  2. Golub, G. H. and Van Loan, C. F. Matrix Computations, 4th edition. Johns Hopkins University Press, 2013. Chapters 7 and 8 on the unsymmetric and symmetric eigenproblems.
  3. Horn, R. A. and Johnson, C. R. Matrix Analysis, 2nd edition. Cambridge University Press, 2013.
  4. Anderson, E. et al. LAPACK Users' Guide, 3rd edition. Society for Industrial and Applied Mathematics, 1999.
  5. ISO 80000-2:2019, Quantities and units — Part 2: Mathematics. International Organization for Standardization.
  6. Moler, C. and Van Loan, C. Nineteen Dubious Ways to Compute the Exponential of a Matrix, Twenty-Five Years Later. SIAM Review 45(1), 2003.

AI Suggested Questions

  • Give me a 4x4 matrix that is not diagonalisable, show why the multiplicity test fails, and write out its Jordan form.
  • How large can the condition number of the eigenvector matrix become as a matrix approaches a defective one, and what does that do to a computed Ak?
  • Compare diagonalisation, Schur decomposition and singular value decomposition on the same non-symmetric matrix and explain what each one reveals.
  • Show how diagonalisation solves the coupled system dxdt=Ax in closed form and what changes when A is defective.
  • Two matrices have the same characteristic polynomial but only one is diagonalisable. Construct such a pair and explain what distinguishes them.
  • Work through the symmetrical component transformation for a balanced three-phase impedance matrix and identify the eigenvalues it produces.

Related Calculators

Continue learning

Algebraic and Geometric Multiplicities of Eigenvalues | KEVOS® MathematicsArticle · Project ManagementAmitsur’s Theorem on the Radical of a Polynomial Ring | KEVOS®Article · Project ManagementAmitsur’s Theorem on the Radical of an Algebra of Small Dimension | KEVOS®Article · Project ManagementArchetypes: Reference Catalogue of Worked Systems | KEVOS® MathematicsArticle · Project Management