Square root of a matrix
Template:Short description Template:Use American English In mathematics, the square root of a matrix extends the notion of square root from numbers to matrices. A matrix Template:Mvar is said to be a square root of Template:Mvar if the matrix product Template:Math is equal to Template:Mvar.[1]
Some authors use the name square root or the notation Template:Math only for the specific case when Template:Mvar is positive semidefinite, to denote the unique matrix Template:Mvar that is positive semidefinite and such that Template:Math (for real-valued matrices, where Template:Math is the transpose of Template:Mvar).
Less frequently, the name square root may be used for any factorization of a positive semidefinite matrix Template:Mvar as Template:Math, as in the Cholesky factorization, even if Template:Math. This distinct meaning is discussed in the article Template:Section link.
Examples
In general, a matrix can have several square roots. In particular, if then as well.
For example, the Template:Tmath identity matrix has infinitely many square roots. They are given by
- and
where are any numbers (real or complex) such that Template:Tmath.
In particular, if is any Pythagorean triple,Template:Efn then is one of the matrix square roots of which happens to be symmetric and has rational entries.[2] Thus
Minus Template:Tmath also has square roots, for example:
which can be used to represent the imaginary unit and hence all complex numbers using Template:Tmath real matrices; see matrix representation of complex numbers.
As with the real numbers, a real matrix may fail to have a real square root, but may have a square root with complex-valued entries. But some matrices have no square root. An example is the matrix Template:Tmath.
Notice that some ideas from number theory do not carry over to matrices: The square root of a nonnegative integer must either be another integer or an irrational number, excluding non-integer rationals. Contrast that to a matrix of integers, which can have a square root whose entries are all non-integer rational numbers, as demonstrated in some of the above examples.
Positive semidefinite matrices
Template:See also A symmetric real Template:Tmath matrix is called positive semidefinite if for all (here denotes the transpose of Template:Tmath, changing a column vector into a row vector).
A square real matrix is positive semidefinite if and only if for some matrix Template:Tmath. There can be many different such matrices Template:Tmath. A positive semidefinite matrix Template:Tmath can also have many matrices Template:Tmath such that Template:Tmath. However, Template:Tmath always has precisely one square root Template:Tmath that is both positive semidefinite and symmetric. In particular, since Template:Tmath is required to be symmetric, Template:Tmath, so the two conditions or are equivalent.
For complex-valued matrices, the conjugate transpose is used instead of the transpose Template:Tmath, and the matrices Template:Tmath which are positive semidefinite over Template:Tmath are necessarily Hermitian, the latter meaning Template:Tmath.
This unique matrix is called the principal, non-negative, or positive square root (the latter in the case of a positive definite matrix).
The principal square root of a real positive semidefinite matrix is real.[3] The principal square root of a positive definite matrix is positive definite; more generally, the rank of the principal square root of Template:Tmath is the same as the rank of Template:Tmath.[3]
The operation of taking the principal square root is continuous on this set of matrices.[4] These properties are consequences of the holomorphic functional calculus applied to matrices.[5][6] The existence and uniqueness of the principal square root can be deduced directly from the Jordan normal form (see below).
Matrices with distinct eigenvalues
An Template:Math matrix with Template:Mvar distinct non-zero eigenvalues has Template:Math square roots. Such a matrix, Template:Mvar, has an eigendecomposition Template:Math, where Template:Mvar is the matrix whose columns are eigenvectors of Template:Mvar and Template:Mvar is the diagonal matrix whose diagonal elements are the corresponding Template:Mvar eigenvalues Template:Math. Thus the square roots of Template:Mvar are given by Template:Math, where Template:Math is any square root matrix of Template:Mvar, which, for distinct eigenvalues, must be diagonal with diagonal elements equal to square roots of the diagonal elements of Template:Mvar; since there are two possible choices for a square root of each diagonal element of Template:Mvar, there are Template:Math choices for the matrix Template:Math.
This also leads to a proof of the above observation, that a positive-definite matrix has precisely one positive-definite square root: a positive definite matrix has only positive eigenvalues, and each of these eigenvalues has only one positive square root; and since the eigenvalues of the square root matrix are the diagonal elements of Template:Math, for the square root matrix to be itself positive definite necessitates the use of only the unique positive square roots of the original eigenvalues.
Solutions in closed form
Template:See also If a matrix is idempotent, meaning Template:Tmath, then by definition one of its square roots is the matrix Template:Tmath itself.
Diagonal matrices
If Template:Tmath is a diagonal Template:Tmath matrix Template:Tmath, then some of its square roots are the diagonal matrices Template:Tmath where Template:Tmath.
If the diagonal elements of Template:Tmath are real and non-negative, then Template:Tmath is positive semidefinite; and if the square roots are taken with the (+) sign (i.e., all non-negative), then the resulting matrix is the principal square root of Template:Tmath.
A diagonal matrix may have additional non-diagonal square roots if some entries on its diagonal are equal, as exemplified by the identity matrix above.
Upper triangular matrices
If Template:Tmath is an upper triangular matrix (meaning its entries are for Template:Tmath) and at most one of its diagonal entries is zero, then one upper triangular solution of the equation can be found as follows.
Since the equation should be satisfied, let be the principal square root of the complex number Template:Tmath. This implies for all Template:Tmath, because the principal square roots of complex numbers all lie on one half of the complex plane.Template:Efn This is possible with the assumption Template:Tmath for at most one Template:Tmath.
From the equation we deduce that can be computed recursively for increasing from Template:Tmath to Template:Tmath as:
If Template:Tmath is upper triangular but has multiple zeroes on the diagonal, then a square root might not exist, as exemplified by Template:Tmath.
Note that the diagonal entries of a triangular matrix are precisely its eigenvalues (see Triangular matrix#Properties).
By diagonalization
An Template:Math matrix Template:Mvar is diagonalizable if there is a matrix Template:Mvar and a diagonal matrix Template:Mvar such that Template:Math. This happens if and only if Template:Mvar has Template:Math eigenvectors which constitute a basis for Template:Tmath. In this case, Template:Mvar can be chosen to be the matrix with the Template:Math eigenvectors as columns, and thus a square root of Template:Mvar is
where Template:Mvar is any square root of Template:Mvar. Indeed,
For example, the matrix can be diagonalized as Template:Math, where
- and Template:Tmath.
Template:Mvar has principal square root
giving the square root
When Template:Mvar is symmetric, the diagonalizing matrix Template:Mvar can be made an orthogonal matrix by suitably choosing the eigenvectors (see spectral theorem). Then the inverse of Template:Mvar is simply the transpose, so that
By Schur decomposition
Every complex-valued square matrix Template:Tmath, regardless of diagonalizability, has a Schur decomposition given by where is upper triangular and is unitary (meaning Template:Tmath). The eigenvalues of are exactly the diagonal entries of Template:Tmath; if at most one of them is zero, then the following is a square root of Template:Tmath:[7]
where a square root of the upper triangular matrix can be found as described above.
If is positive definite, then its eigenvalues are all positive reals, so one can choose positive reals for all the diagonal entries of Template:Tmath. Hence the eigenvalues of are all positive reals, which means the resulting matrix is the principal root of Template:Tmath.
By Jordan decomposition
Similarly as for the Schur decomposition, every square matrix can be decomposed as where:
- Template:Tmath is invertible, and
- Template:Tmath is in Jordan normal form, that is, Template:Tmath is a block-diagonal matrix Template:Tmath where Template:Tmath are Jordan blocks (thus, Template:Tmath is also upper triangular).
To see that any real matrix with positive eigenvalues has a real matrix square root with positive eigenvalues, it suffices to check this for a Jordan block. Any such block Template:Tmath has the form Template:Tmath where:
- Template:Tmath is real positive, and
- Template:Tmath is nilpotent, that is, Template:Tmath for some positive integer Template:Tmath.
Consider the MacLaurin series Substituting Template:Tmath for Template:Tmath, one gets a finite sum, since only the Template:Tmath first terms may be non-zero. It follows that Template:Tmath is upper triangular with all eigenvalues zero, so Template:Tmath is upper triangular with all eigenvalues Template:Tmath, real positive.
Thus, Template:Tmath where Template:Tmath are upper triangular (but not necessarily Jordan blocks).
Finally, Template:Tmath.
The validity of the result may be proved by expanding the square of the result. A simpler method consists of replacing Template:Tmath with Template:Tmath, where Template:Tmath is an auxiliary real variable, mimicking the proof of Taylor's theorem for this case, and making Template:Tmath at the end.
By power series
Recall the formal power series which converges provided that (since the coefficients of the power series are summable). Plugging in into this expression yields provided that Template:Nobr By virtue of Gelfand formula, this condition is equivalent to the requirement that the spectrum of is contained within the closed disk Template:Tmath. This method of defining or computing is especially useful in the case where is positive semi-definite, and symmetric if real.Template:Efn Then, we have and therefore Template:Nobr so that defines a square root of which moreover turns out to be the unique symmetric positive semi-definite one. This method remains valid to define square roots of operators on infinite-dimensional Banach or Hilbert spaces or certain elements of (Template:Tmath) Banach algebras.
Iterative solutions
By Denman–Beavers iteration
Another way to find the square root of an Template:Tmath matrix Template:Tmath is the Denman–Beavers square root iteration.[8]
Let Template:Tmath and Template:Tmath, where Template:Tmath is the Template:Tmath identity matrix. The iteration is defined by
As this uses a pair of sequences of matrix inverses whose later elements change comparatively little, only the first elements have a high computational cost since the remainder can be computed from earlier elements with only a few passes of a variant of Newton's method for computing inverses,
With this, for later values of Template:Tmath one would set and Template:Tmath, and then use for some small (perhaps just Template:Tmath), and similarly for Template:Tmath.
Convergence is not guaranteed, even for matrices that do have square roots; but if the process converges, the matrix converges quadratically to a square root Template:Tmath, while converges to its inverse, Template:Tmath.
By the Babylonian method
Yet another iterative method is obtained by taking the well-known formula of the Babylonian method for computing the square root of a real number, and applying it to matrices. Let Template:Tmath, where Template:Tmath is the identity matrix. The iteration is defined by
Again, convergence is not guaranteed, but if the process converges, the matrix converges quadratically to a square root Template:Tmath. Compared to Denman–Beavers iteration, an advantage of the Babylonian method is that only one matrix inverse need be computed per iteration step. On the other hand, as Denman–Beavers iteration uses a pair of sequences of matrix inverses whose later elements change comparatively little, only the first elements have a high computational cost since the remainder can be computed from earlier elements with only a few passes of a variant of Newton's method for computing inverses (see Denman–Beavers iteration above); of course, the same approach can be used to get the single sequence of inverses needed for the Babylonian method. However, unlike Denman–Beavers iteration, the Babylonian method is numerically unstable and more likely to fail to converge.[1]
The Babylonian method follows from Newton's method for the equation and using for all Template:Tmath.[9]
Square roots of positive operators
Template:More citations needed In linear algebra and operator theory, given a bounded positive semidefinite operator (a non-negative operator) T on a complex Hilbert space, B is a square root of T if T = B* B, where B* denotes the Hermitian adjoint of B.Template:Citation needed According to the spectral theorem, the continuous functional calculus can be applied to obtain an operator T1/2 such that T1/2 is itself positive semidefinite and (T1/2)2 = T. The operator T1/2 is the unique non-negative square root of T.Template:Citation needed
A bounded non-negative operator on a complex Hilbert space is self-adjoint by definition. So Template:Nobr Conversely, it is trivially true that every operator of the form B* B is non-negative. Therefore, an operator T is non-negative if and only if T = B* B for some B (equivalently, T = CC* for some C).
The Cholesky factorization provides another particular example of square root, which should not be confused with the unique non-negative square root.
Unitary freedom of square roots
If T is a non-negative operator on a finite-dimensional Hilbert space, then all square roots of T are related by unitary transformations. More precisely, if T = A* A = B* B, then there exists a unitary operator U such that A = UB.
Indeed, take B = T1/2 to be the unique non-negative square root of T. If T is strictly positive, then B is invertible, and so Template:Nobr is unitary:
If T is non-negative without being strictly positive, then the inverse of B cannot be defined, but the Moore–Penrose pseudoinverse B+ can be. In that case, the operator Template:Nobr is a partial isometry, that is, a unitary operator from the range of T to itself. This can then be extended to a unitary operator U on the whole space by setting it equal to the identity on the kernel of T. More generally, this is true on an infinite-dimensional Hilbert space if, in addition, T has closed range. In general, if A, B are closed and densely defined operators on a Hilbert space H, and A* A = B* B, then A = UB where U is a partial isometry.
Some applications
Square roots, and the unitary freedom of square roots, have applications throughout functional analysis and linear algebra.
Polar decomposition
Template:Main If A is an invertible operator on a finite-dimensional Hilbert space, then there is a unique unitary operator U and positive operator P such that
this is the polar decomposition of A. The positive operator P is the unique positive square root of the positive operator A∗ A, and U is defined by Template:Nobr.
If A is not invertible, then it still has a polar decomposition in which P is defined in the same way (and is unique). The unitary operator U is not unique. Rather it is possible to determine a "natural" unitary operator as follows: AP+ is a unitary operator from the range of A to itself, which can be extended by the identity on the kernel of A∗. The resulting unitary operator U then yields the polar decomposition of A.
Kraus operators
Template:Main By Choi's result, a linear map
is completely positive if and only if it is of the form
where k ≤ nm. Let {Ep,q} ⊂ Cn × n be the n2 elementary matrix units. The positive matrix
is called the Choi matrix of Φ. The Kraus operators correspond to the, not necessarily square, square roots of MΦ: For any square root B of MΦ, one can obtain a family of Kraus operators Vi by undoing the Vec operation to each column bi of B. Thus all sets of Kraus operators are related by partial isometries.
Mixed ensembles
Template:Main In quantum physics, a density matrix for an n-level quantum system is an n × n complex matrix ρ that is positive semidefinite with trace 1. If ρ can be expressed as
where and Σ pi = 1, the set
is said to be an ensemble that describes the mixed state ρ. Notice the family {vi} is not required to be orthogonal. Different ensembles describing the state ρ are related by unitary operators, via the square roots of ρ. For instance, suppose
The trace 1 condition means
Let
and vi be the normalized ai. We see that
gives the mixed state ρ.
Footnotes
See also
- Matrix function
- Holomorphic functional calculus
- Logarithm of a matrix
- Sylvester's formula
- Square root of a 2 by 2 matrix
Citations
References
- Template:Citation
- Template:Citation, Chapter IV, Reisz functional calculus
- Template:Citation
- Template:Citation
- Template:Citation
- Template:Citation
- Template:Cite book
- Template:Citation
- Template:Rudin Walter Functional Analysis
- ↑ 1.0 1.1 Template:Citation
- ↑ Template:Cite journal
- ↑ 3.0 3.1 Cite error: Invalid
<ref>tag; no text was provided for refs named "HJ-7.2.6". - ↑ Template:Cite book
- ↑ For analytic functions of matrices, see
- ↑ For the holomorphic functional calculus, see:
- ↑ Template:Citation.
- ↑ Template:Harvnb; Template:Harvnb
- ↑ Template:Cite journal