Squaring the symmetric matrix with rows and gives the matrix with rows and , so the first is a square root of the second. Its negative has the same square, and so does the matrix with rows and . In what sense, then, can a matrix have one square root? This lesson proves that a Hermitian positive semidefinite matrix has exactly one Hermitian positive semidefinite square root, builds it from the spectral theorem, and separates it from the Cholesky factor and from the many other square roots a matrix can have.
Key terms
Positive semidefinite square root
Definition Let be or , and let be Hermitian, which means real symmetric when , and positive semidefinite, meaning for every . A positive semidefinite square root of is a Hermitian positive semidefinite matrix with
Every such has exactly one, written . The construction and the uniqueness proof below show this. The root has the same eigenvectors as , with eigenvalue wherever has eigenvalue , so , and is positive definite exactly when is. For a diagonal with every , the root is . The same definition applies to a positive semidefinite operator on a finite-dimensional inner product space over .
In plain words Among all matrices whose square is , take the one that is itself Hermitian with no negative eigenvalues. The qualifier plays the role that “nonnegative” plays for the square root of a number.
Example For
multiplication gives . The matrix is symmetric with eigenvalues on and on , so it is positive definite, and . The matrices and the one with rows and also square to . But has eigenvalues and , and the other matrix has eigenvalues and , so neither is positive semidefinite.
Spectral construction of a square root
Definition Let be Hermitian positive semidefinite, with equal to or . The spectral theorem gives with unitary, real orthogonal when , and . Every is nonnegative, because the th column of gives . Define
with nonnegative scalar roots. Then because the diagonal entries are real, and with
so is Hermitian positive semidefinite. In the product the middle factor is the identity, so . Nothing is divided by a root, so zero eigenvalues cause no trouble, and exactly when . Grouping equal eigenvalues,
where the sums run over the distinct eigenvalues of and is the orthogonal projector onto the eigenspace of . These projectors depend only on , so does not depend on which orthonormal eigenvectors were chosen inside a repeated eigenspace.
In plain words Find the perpendicular directions along which only scales, take the nonnegative root of each scale factor, and put the directions back. A direction that flattens stays flattened.
Example The complex matrix
is Hermitian. It sends to and fixes , so its eigenvalues are and , with eigenspace projectors
The positive root is
and indeed its square has diagonal entries and upper right entry . For a singular example, has positive root , and both have the kernel spanned by .
Uniqueness of the positive root
Definition Let be Hermitian positive semidefinite, with equal to or . If is Hermitian positive semidefinite and , then equals the matrix built above. The proof does not assume that and share eigenvectors. First, commutes with , because . So if , then
and maps every eigenspace of into itself. On , with the inherited inner product, is still Hermitian and positive semidefinite, so the spectral theorem gives an orthonormal basis of made of eigenvectors of . If for a nonzero , then and
so and , the only nonnegative number with that square. Every eigenvalue of on is , so acts on as times the identity, exactly as does. The eigenspaces of together span , so . The argument covers repeated eigenvalues and the eigenvalue as well.
In plain words A positive root has no freedom left. It must keep every eigenspace of , and on each one the only nonnegative number whose square is is .
Example Take , with the repeated eigenvalue . The construction gives . Many Hermitian matrices square to , for instance
Each has eigenvalues and , so none is positive semidefinite. Because the eigenvalue is repeated, any line through the origin can carry the eigenvalue while the perpendicular line carries , so there are infinitely many such roots, yet remains the only positive semidefinite one.
Square roots of a matrix
Definition A square root of a matrix is any with . Without further conditions a matrix may have finitely many square roots, infinitely many, or none, and the answer depends on the field. If is a square root, so is . A Hermitian matrix can have a Hermitian square root only if it is positive semidefinite, because a Hermitian gives
for every . So a Hermitian matrix with a negative eigenvalue has no Hermitian square root. Over the matrix has no square root at all, while over it has the two roots and , neither of them Hermitian. The matrix
has no square root over or . A root would commute with , since , and the matrices that commute with have rows and . Their squares have rows and , which equal only if and , a contradiction. At the other extreme, has infinitely many square roots, such as the matrix with rows and for every scalar . The positive root theorem picks out one root only in its own setting, a Hermitian positive semidefinite matrix and a Hermitian positive semidefinite root.
In plain words “The square root of a matrix” does not name one matrix unless the conditions are stated. Signs, phases and choices inside repeated eigenspaces multiply the possibilities, and some matrices have no square root at all.
Example Return to with rows and . Any square root , real or complex, commutes with , so it maps each eigenline of into itself, the line of with eigenvalue and the line of with eigenvalue . On those lines acts by a number whose square is or , that is by and . So has exactly four square roots,
all real symmetric. The matrix with rows and acts by and , so it is indefinite, and only the matrix with rows and is positive semidefinite.
Cholesky factor versus square root
Definition Let be Hermitian positive definite, with equal to or . Its Cholesky factorization is
where is upper triangular with positive real diagonal entries. This factor exists and is unique. Many books write with lower triangular. The positive root also gives with , since , but the two factors meet different requirements. The Cholesky factor is triangular and usually not Hermitian, and the positive root is Hermitian and usually not triangular. A matrix that is both upper triangular and Hermitian is diagonal, so exactly when is diagonal. The two factors differ by a unitary matrix on the left. The matrix satisfies
so with unitary. When is only positive semidefinite and singular, the positive root still exists and is unique, but a triangular factor with nonnegative diagonal can fail to be unique. For example, for every real with rows and where and .
In plain words Both factorizations write as a factor’s adjoint times the factor. Cholesky asks for a triangular factor, which is what forward and back substitution need, while the positive root asks for a Hermitian positive semidefinite factor that shares the eigenvectors of .
Example For with rows and ,
The product has entries , , and , so it equals . But is upper triangular, with lower left entry instead of , so is not a square root of and differs from , the matrix with rows and . Their quotient is the rotation
Check yourself
- Find the positive square root of the matrix with rows and , and check both the square and the positivity.
Show the answer
The vector is an eigenvector with eigenvalue and one with eigenvalue . The root acts by and on these directions, so
Its square has diagonal entries and off-diagonal entries , so it equals . It is symmetric with eigenvalues and , both positive, so it is positive definite.
- A student takes the square root of every entry of the matrix with rows and and proposes the matrix with rows and as its positive square root. Is that right?
Show the answer
No. The proposed matrix squares to the matrix with diagonal entries and off-diagonal entries , which is not the original matrix. It is even positive definite, with eigenvalues , so positivity alone proves nothing, and the square has to be checked too. Entrywise roots give the positive root only when the matrix is diagonal. The positive root is the matrix with rows and , obtained from the eigenvalues and .
- Let be the matrix with rows and . Find its Cholesky factor and its positive square root , and find the orthogonal matrix with .
Show the answer
For the Cholesky factor, , then , and . The eigenvalues of are on and on , so acts by and there. This gives
Check that has entries and . The inverse of has rows and , so
a rotation, since and . Multiplying confirms .