Polar Decomposition

lean4-prooflinear-algebravisualization
A=UP,U unitary,  P=AA positive semidefiniteA = U P,\quad U \text{ unitary},\; P = \sqrt{A^* A} \text{ positive semidefinite}

Statement

Let AA be an invertible n×nn \times n complex matrix. Then there exist a unique unitary matrix UU and a unique positive definite matrix PP such that

A=UP,P=AA,U=AP1.A = U P, \qquad P = \sqrt{A^* A}, \qquad U = A P^{-1}.

The matrix P=AAP = \sqrt{A^* A} is the unique positive semidefinite square root of AAA^* A (which exists because AAA^* A is Hermitian with non-negative eigenvalues). In the rectangular generalisation (m×nm \times n), uniqueness of UU is replaced by uniqueness of the restriction to the column space.

Visualization

Take A=(3002)A = \begin{pmatrix} 3 & 0 \\ 0 & -2 \end{pmatrix}.

Step 1 — Compute AAA^* A:

AA=(3002)(3002)=(9004).A^* A = \begin{pmatrix} 3 & 0 \\ 0 & -2 \end{pmatrix}^* \begin{pmatrix} 3 & 0 \\ 0 & -2 \end{pmatrix} = \begin{pmatrix} 9 & 0 \\ 0 & 4 \end{pmatrix}.

Step 2 — Positive definite square root:

P=AA=(3002).P = \sqrt{A^* A} = \begin{pmatrix} 3 & 0 \\ 0 & 2 \end{pmatrix}.

Step 3 — Unitary factor:

U=AP1=(3002)(1/3001/2)=(1001).U = A P^{-1} = \begin{pmatrix} 3 & 0 \\ 0 & -2 \end{pmatrix} \begin{pmatrix} 1/3 & 0 \\ 0 & 1/2 \end{pmatrix} = \begin{pmatrix} 1 & 0 \\ 0 & -1 \end{pmatrix}.

Verification:

UP=(1001)(3002)=(3002)=A.U P = \begin{pmatrix} 1 & 0 \\ 0 & -1 \end{pmatrix} \begin{pmatrix} 3 & 0 \\ 0 & 2 \end{pmatrix} = \begin{pmatrix} 3 & 0 \\ 0 & -2 \end{pmatrix} = A. \checkmark
QuantityValue
AAA^* Adiag(9,4)\text{diag}(9, 4)
P=AAP = \sqrt{A^* A}diag(3,2)\text{diag}(3, 2)
U=AP1U = A P^{-1}diag(1,1)\text{diag}(1, -1)
UUU U^*II (unitary)
P=PP^* = P, P0P \ge 0positive definite

Proof Sketch

  1. Positive semidefiniteness of AAA^* A. For any vv, AAv,v=Av20\langle A^* A v, v \rangle = \|Av\|^2 \ge 0, so AAA^* A is positive semidefinite. When AA is invertible, kerA={0}\ker A = \{0\}, so it is positive definite.
  2. Square root. By the Spectral TheoremSpectral TheoremA=QΛQT  (real symmetric case)A = Q \Lambda Q^T \;\text{(real symmetric case)}Every real symmetric matrix is orthogonally diagonalizableRead more →, AA=QDQA^* A = Q D Q^* with D=diag(λi)D = \text{diag}(\lambda_i), λi>0\lambda_i > 0. Set P=QDQP = Q \sqrt{D} Q^*. Then P2=AAP^2 = A^* A and PP is positive definite.
  3. Unitary factor. Set U=AP1U = A P^{-1}. Then UU=(AP1)(AP1)=P1AAP1=P1P2P1=IU^* U = (AP^{-1})^* (AP^{-1}) = P^{-1} A^* A P^{-1} = P^{-1} P^2 P^{-1} = I.
  4. Uniqueness. If A=U1P1=U2P2A = U_1 P_1 = U_2 P_2 then P12=AA=P22P_1^2 = A^* A = P_2^2; by uniqueness of the positive definite square root, P1=P2P_1 = P_2, hence U1=U2U_1 = U_2.

Connections

  • Spectral TheoremSpectral TheoremA=QΛQT  (real symmetric case)A = Q \Lambda Q^T \;\text{(real symmetric case)}Every real symmetric matrix is orthogonally diagonalizableRead more → — the existence of P=AAP = \sqrt{A^* A} rests on spectral diagonalization of the Hermitian matrix AAA^* A
  • Determinant MultiplicativityDeterminant Multiplicativitydet(AB)=det(A)det(B)\det(AB) = \det(A)\,\det(B)The determinant of a product equals the product of determinantsRead more →detA=detP|\det A| = \det P since detU=1\det U = 1 for unitary UU, and det(AA)=detA2\det(A^* A) = |\det A|^2
  • Cauchy–Schwarz InequalityCauchy–Schwarz Inequalityu,vuv|\langle u, v \rangle| \leq \|u\| \, \|v\|The inner product of two vectors is bounded by the product of their normsRead more → — the positive semidefiniteness of AAA^* A is an instance of the Cauchy–Schwarz inequality applied to the inner product Av,Av\langle Av, Av \rangle

Lean4 Proof

import Mathlib.LinearAlgebra.Matrix.PosDef

/-- The matrix Aᴴ * A is positive semidefinite for any matrix A.
    This is the foundation of polar decomposition: P = sqrt(Aᴴ * A).
    Mathlib's `Matrix.posSemidef_conjTranspose_mul_self` is the direct alias. -/
theorem ata_posSemidef
    {m n : Type*} [Fintype n] [DecidableEq n] [Fintype m]
    (A : Matrix m n ) :
    (Aᴴ * A).PosSemidef :=
  Matrix.posSemidef_conjTranspose_mul_self A