Mathwords logoMathwords

Matrix Square Root — Definition, Formula & Example

A matrix square root of a square matrix A is a matrix X that gives back A when you multiply it by itself, so XX = A. A matrix can have several square roots, exactly one, or none at all.

Let AA be an n×nn \times n matrix. Any n×nn \times n matrix XX satisfying X2=AX^2 = A is a square root of AA. Suppose AA has no eigenvalues on the closed negative real axis (−∞,0](-\infty, 0]. Then AA has exactly one square root whose eigenvalues all have positive real part. This is the principal square root, written A1/2A^{1/2}. If AA is symmetric positive semidefinite, it has a unique symmetric positive semidefinite square root. Some matrices, such as [0100]\begin{bmatrix} 0 & 1 \\ 0 & 0 \end{bmatrix}, have no square root.

Key Formula

A=PDP−1  ⟹  A1/2=P D1/2 P−1,D1/2=diag⁡ ⁣(λ1,…,λn)A = PDP^{-1} \implies A^{1/2} = P\,D^{1/2}\,P^{-1}, \quad D^{1/2} = \operatorname{diag}\!\left(\sqrt{\lambda_1}, \ldots, \sqrt{\lambda_n}\right)
Where:
  • AA = A diagonalizable square matrix with nonnegative eigenvalues
  • PP = Invertible matrix whose columns are eigenvectors of A
  • DD = Diagonal matrix of the eigenvalues of A
  • λi\lambda_i = The eigenvalues of A, listed in the same order as the columns of P

Worked Example

Problem: Find a square root of A=[5445]A = \begin{bmatrix} 5 & 4 \\ 4 & 5 \end{bmatrix}. Then show that AA has more than one square root.
Step 1: Diagonalize A. The vector (1, 1) is an eigenvector with eigenvalue 9, and (1, −1) is an eigenvector with eigenvalue 1. Put these vectors in the columns of P. The adjugate formula gives P inverse.
P=[111−1],D=[9001],P−1=12[111−1]P = \begin{bmatrix} 1 & 1 \\ 1 & -1 \end{bmatrix}, \quad D = \begin{bmatrix} 9 & 0 \\ 0 & 1 \end{bmatrix}, \quad P^{-1} = \tfrac{1}{2}\begin{bmatrix} 1 & 1 \\ 1 & -1 \end{bmatrix}
Step 2: Take the nonnegative square root of each eigenvalue. Then multiply out the formula. This gives the principal square root, whose eigenvalues are 3 and 1.
X=P[3001]P−1=[2112],X2=[5445]X = P\begin{bmatrix} 3 & 0 \\ 0 & 1 \end{bmatrix}P^{-1} = \begin{bmatrix} 2 & 1 \\ 1 & 2 \end{bmatrix}, \qquad X^2 = \begin{bmatrix} 5 & 4 \\ 4 & 5 \end{bmatrix}
Step 3: Now use −1 in place of 1 for the second eigenvalue. This is allowed because (−1)² = 1. You get a different matrix that also squares to A.
Y=P[300−1]P−1=[1221],Y2=[5445]Y = P\begin{bmatrix} 3 & 0 \\ 0 & -1 \end{bmatrix}P^{-1} = \begin{bmatrix} 1 & 2 \\ 2 & 1 \end{bmatrix}, \qquad Y^2 = \begin{bmatrix} 5 & 4 \\ 4 & 5 \end{bmatrix}
Answer: The principal square root is A1/2=[2112]A^{1/2} = \begin{bmatrix} 2 & 1 \\ 1 & 2 \end{bmatrix}. The matrix [1221]\begin{bmatrix} 1 & 2 \\ 2 & 1 \end{bmatrix} is also a square root. Their negatives are square roots too, so A has four square roots in total.

Why It Matters

In statistics, the square root of a covariance matrix converts independent random draws into correlated ones. Monte Carlo simulations in finance and engineering rely on this step. Matrix square roots also appear in solving the system of differential equations x'' = −Ax, which models coupled springs.

Common Mistakes

Mistake: Taking the square root of each entry, for example writing the square root of [[5, 4], [4, 5]] as [[√5, 2], [2, √5]].
Correction: Matrix multiplication mixes rows with columns, so entrywise roots almost never work. Here [5225]2=[945459]≠A\begin{bmatrix} \sqrt{5} & 2 \\ 2 & \sqrt{5} \end{bmatrix}^2 = \begin{bmatrix} 9 & 4\sqrt{5} \\ 4\sqrt{5} & 9 \end{bmatrix} \neq A. Take square roots of the eigenvalues instead, and always check that X2=AX^2 = A.

Related Terms