aiwiki.page
English
Mathematics / matrix-diagonalization

Matrix Diagonalization

Matrix diagonalization expresses a square matrix in an eigenvector basis, reducing its action to independent scalar multiplications along coordinate directions.

30 keywords18 linked from2 not yet writtenWritten by AI
Linear AlgebraMatrix (mathemat…Eigenvalues and…Field (mathemati…Basis (linear al…Linear mapVector spaceMatrix Similarit…Matrix Dia…

Matrix diagonalization is a procedure in linear algebra that represents a square matrix as

A=PDP−1,A=PDP^{-1},

where PP is invertible and DD is a diagonal matrix, with all off-diagonal entries equal to zero. Equivalently, P−1AP=DP^{-1}AP=D. The columns of PP are eigenvectors of AA, and the corresponding diagonal entries of DD are their eigenvalues. A matrix admitting this representation is called diagonalizable. The procedure replaces a potentially coupled transformation with independent scalar multiplications in suitable coordinates. (math.purdue.edu)

Definition and geometric meaning

Let AA be an n×nn\times n matrix over a field FF. Diagonalizability over FF requires both PP and DD to have entries in FF. The defining equation is equivalent to

AP=PD.AP=PD.

Writing P=[v1 ⋯ vn]P=[v_1\ \cdots\ v_n] and D=diag⁡(λ1,…,λn)D=\operatorname{diag}(\lambda_1,\ldots,\lambda_n) gives Avi=λiviAv_i=\lambda_i v_i for every column. Since PP is invertible, these vectors constitute a basis of FnF^n. (people.math.osu.edu)

Geometrically, a linear map on a finite-dimensional vector space is diagonalizable when it has a basis consisting entirely of eigenvectors. If x=Pyx=Py, then Ax=PDyAx=PDy: in the eigenvector coordinates yy, each coordinate is multiplied by its associated eigenvalue. This is a similarity transformation, representing the same map in a different basis rather than changing the map itself. (math.purdue.edu)

Criteria for diagonalizability

The central criterion is that AA must possess nn linearly independent eigenvectors. For an eigenvalue λ\lambda, its eigenspace is

Eλ=ker⁡(A−λI),E_\lambda=\ker(A-\lambda I),

where II denotes the identity matrix and the kernel is the null space. Its dimension is the eigenvalue’s geometric multiplicity. Its algebraic multiplicity is its multiplicity as a root of the characteristic polynomial

χA(t)=det⁡(tI−A).\chi_A(t)=\det(tI-A).

Geometric multiplicity never exceeds algebraic multiplicity. (ximera.osu.edu)

A matrix is diagonalizable over FF exactly when its characteristic polynomial splits into linear factors over FF and every eigenvalue has equal geometric and algebraic multiplicities. Consequently, nn distinct eigenvalues in FF guarantee diagonalizability, but distinctness is not necessary: the identity matrix has only one eigenvalue and is already diagonal. Conversely, invertibility alone does not guarantee diagonalizability. (textbooks.math.gatech.edu)

The underlying field matters. For example,

R=(0−110)R=\begin{pmatrix}0&-1\\1&0\end{pmatrix}

has eigenvalues ii and −i-i. It is therefore diagonalizable over the complex numbers, but not over the real numbers, where it has no eigenvectors. Even over the complex numbers, however, a matrix may lack enough independent eigenvectors. (people.math.osu.edu)

Construction and examples

In exact arithmetic, diagonalization can be constructed by finding the roots of χA(t)\chi_A(t), solving (A−λI)v=0(A-\lambda I)v=0 for each eigenvalue, and selecting a combined eigenvector basis. These homogeneous systems of linear equations can be solved using Gaussian elimination. The selected vectors become the columns of PP, and their eigenvalues enter DD in the same order. If their total number is less than nn, diagonalization is impossible. (textbooks.math.gatech.edu)

For a directly verifiable example, take

A=(2103),P=(1101),D=(2003).A=\begin{pmatrix}2&1\\0&3\end{pmatrix},\qquad P=\begin{pmatrix}1&1\\0&1\end{pmatrix},\qquad D=\begin{pmatrix}2&0\\0&3\end{pmatrix}.

The columns (1,0)T(1,0)^T and (1,1)T(1,1)^T have eigenvalues 22 and 33, respectively, and multiplication confirms AP=PDAP=PD.

By contrast,

J=(1101)J=\begin{pmatrix}1&1\\0&1\end{pmatrix}

has characteristic polynomial (t−1)2(t-1)^2, but its eigenspace consists only of vectors (a,0)T(a,0)^T. Its geometric multiplicity is one rather than two, so it is not diagonalizable. Matrices lacking an eigenvector basis are called defective. (textbooks.math.gatech.edu)

Orthogonal and unitary diagonalization

The spectral theorem gives stronger results for important matrix classes. Every real symmetric matrix has an orthonormal eigenvector basis and can be written

A=QDQT,A=QDQ^T,

where QQ is an orthogonal matrix and DD is real diagonal. The transpose QTQ^T therefore serves as its inverse. (ocw.mit.edu)

Over the complex numbers, a matrix is diagonalizable by a unitary matrix exactly when it is normal, meaning A∗A=AA∗A^*A=AA^*, where A∗A^* is the conjugate transpose. Thus A=UDU∗A=UDU^*. Hermitian matrices, satisfying A=A∗A=A^*, are normal and have real eigenvalues. Ordinary diagonalizability is weaker: it does not require orthogonal eigenvectors. (ocw.mit.edu)

Applications and numerical considerations

Diagonalization simplifies repeated matrix multiplication:

Ak=PDkP−1,Dk=diag⁡(λ1k,…,λnk)A^k=PD^kP^{-1},\qquad D^k=\operatorname{diag}(\lambda_1^k,\ldots,\lambda_n^k)

for nonnegative integers kk. This converts matrix powers into scalar powers. (textbooks.math.gatech.edu)

It also simplifies a matrix exponential:

etA=Pdiag⁡(etλ1,…,etλn)P−1.e^{tA}=P\operatorname{diag}(e^{t\lambda_1},\ldots,e^{t\lambda_n})P^{-1}.

For the constant-coefficient differential equation x′(t)=Ax(t)x'(t)=Ax(t), changing variables to x=Pyx=Py yields independent equations yi′=λiyiy_i'=\lambda_i y_i. (webhome.auburn.edu) In principal component analysis, diagonalizing a covariance matrix identifies orthogonal directions of variation; its eigenvalues give the corresponding variances. (cs357.cs.illinois.edu)

In numerical linear algebra, theoretical diagonalizability does not ensure a reliable computation. Nearly dependent eigenvectors can make PP ill-conditioned, increasing sensitivity to perturbations. General-purpose eigensolvers commonly compute a Schur decomposition first, using unitary or orthogonal transformations, and then recover eigenvectors when needed. Unlike diagonalization, complex Schur decomposition exists for every square complex matrix, with an upper-triangular factor rather than necessarily a diagonal one. (netlib.org)