Post · 4 min read· pp. 555–557

What Is a Matrix Square Root?

A square root of an n×nn\times n matrix AA is any matrix XX such that X2=AX^2 = A.

For a scalar aa (n=1n = 1), there are two square roots (which are equal if a=0a = 0), and they are real if and only if aa is real and nonnegative. For n≥2n \ge 2, depending on the matrix there can be no square roots, finitely many, or infinitely many. The matrix

A=[0100]A = \begin{bmatrix} 0 & 1 \\ 0 & 0 \end{bmatrix}

is easily seen to have no square roots. The matrix

D=diag(1,2)=[1002]D = \mathrm{diag}(1,2) = \begin{bmatrix} 1 & 0 \\ 0 & 2 \end{bmatrix}

has four square roots, diag(±1,±2)\mathrm{diag}(\pm 1, \pm\sqrt{2}). The identity matrix

[1001]\begin{bmatrix} 1 & 0 \\ 0 & 1 \end{bmatrix}

has infinitely many square roots (namely the 2×22\times 2 involutory matrices), including diag(±1,±1)\mathrm{diag}(\pm 1, \pm 1), the lower triangular matrix

[101−1],\begin{bmatrix} 1 & 0 \\ 1 & -1 \end{bmatrix},

and any symmetric orthogonal matrix, such as

[cos⁡θsin⁡θsin⁡θ−cos⁡θ],θ∈[0,2π]\begin{bmatrix} \cos \theta & \sin \theta \\ \sin \theta & -\cos \theta \end{bmatrix}, \quad \theta \in[0,2\pi]

(which is a Householder matrix). Clearly, a square root of a diagonal matrix need not be diagonal.

The matrix square root of most practical interest is the one whose eigenvalues lie in the right half-plane, which is called the principal square root, written A1/2A^{1/2}. If AA is nonsingular and has no eigenvalues on the negative real axis then AA has a unique principal square root. For the diagonal matrix DD above, D1/2=diag(1,2)D^{1/2} = \mathrm{diag}(1,\sqrt{2}).

A symmetric positive definite matrix has a unique symmetric positive definite square root. Indeed if AA is symmetric positive definite then it has a spectral decomposition A=QDQTA = QDQ^T, where QQ is orthogonal and DD is diagonal with positive diagonal elements, and then A1/2=QD1/2QTA^{1/2} = Q D^{1/2}Q^T is also symmetric positive definite.

If AA is nonsingular then it has at least 2s2^s square roots, where ss is the number of distinct eigenvalues. The existence of a square root of a singular matrix depends on the Jordan structure of the zero eigenvalues.

In some contexts involving symmetric positive definite matrices AA, such as Kalman filtering, a matrix YY such that A=YTYA = Y^TY is called a square root, but this is not the standard meaning.

When AA has structure one can ask whether a square root having the same structure, or some other related structure, exists. Results are known for (for example)

  • stochastic matrices,
  • MM-matrices,
  • skew-Hamiltonian matrices,
  • centrosymmetric matrices, and
  • matrices from an automorphism group.

An important distinction is between square roots of AA that can be expressed as a polynomial in AA (primary square roots) and those that cannot. Square roots of the latter type arise when AA has repeated eigenvalues and two copies of an eigenvalue are mapped to different square roots. In some contexts, a nonprimary square root may be the natural choice. For example, consider the matrix

G(θ)=[cos⁡θsin⁡θ−sin⁡θcos⁡θ],θ∈[0,2π],G(\theta) = \begin{bmatrix} \cos \theta & \sin \theta \\ -\sin \theta & \cos \theta \end{bmatrix}, \quad \theta \in[0,2\pi],

which represents a rotation through an angle θ\theta radians clockwise. The natural square root of G(θ)G(\theta) is G(θ/2)G(\theta/2). For θ=π\theta = \pi, this gives the square root

G(π/2)=[01−10]G(\pi/2) = \begin{bmatrix} 0 & 1 \\ -1 & 0 \end{bmatrix}

of

G(π)=[−100−1].G(\pi) = \begin{bmatrix} -1 & 0 \\ 0 & -1 \end{bmatrix}.

The matrix square root arises in many applications, often in connection with other matrix problems such as the polar decomposition, matrix geometric means, Markov chains (roots of transition matrices), quadratic matrix equations, and generalized eigenvalue problems. Most often the matrix is symmetric positive definite, but square roots of nonsymmetric matrices are also needed. Among modern applications, the matrix square root can be found in recent papers on machine learning.

References

This is a minimal set of references, which contain further useful references within.

This article is part of the “What Is” series, available from https://nhigham.com/category/what-is and in PDF form from the GitHub repository https://github.com/higham/what-is.