Calculadora de matrices

🌐 Español
A (3×3)
Filas: 3
Columnas: 3
B (3×3)
Filas: 3
Columnas: 3
Supports: fractions (1/2), decimals (0.5), constants (pi, e). Empty cells are treated as 0.

Resultados del cálculo

1. ¿Qué es una raíz cuadrada matricial?

A matrix \(X\) is called a square root of a square matrix \(A\) if

\[ X^{2} = A. \]

In general a matrix may have zero, one, or many square roots (over the reals or complex numbers). For real symmetric positive definite matrices there exists a unique symmetric positive definite square root, called the principal square root, usually denoted \(A^{1/2}\).

2. Cómo calcular una raíz cuadrada matricial: métodos comunes

  • Diagonal (or diagonalizable) matrices: If \(A = VDV^{-1}\) with \(D=\operatorname{diag}(d_i)\), then one square root is \[ X = V\,\operatorname{diag}(\pm\sqrt{d_i})\,V^{-1}, \] provided the \(d_i\) admit square roots (e.g. \(d_i>0\) for real principal roots).
  • Symmetric positive definite case: if \(A\) is symmetric positive definite and \(A=V D V^{T}\) orthogonally diagonalizes, the principal (symmetric) square root is \[ A^{1/2} = V \operatorname{diag}(\sqrt{d_i}) V^{T}. \]
  • Schur method (numerical): compute real Schur \(A = Q T Q^{T}\) with \(T\) quasi-triangular, compute a square root \(S\) of \(T\) blockwise, then set \(X = Q S Q^{T}\).
  • Matrix Newton iteration (numerical): \[ X_{k+1} = \tfrac{1}{2}\left(X_k + X_k^{-1} A\right), \] starting from a suitable \(X_0\), converges quadratically to a square root under conditions.

3. Ejemplos resueltos

Ejemplo 1 - matriz diagonal (fácil)

\[ A = \begin{pmatrix}4 & 0 \\[4pt] 0 & 9\end{pmatrix} \]

Since \(A\) is diagonal, take square roots of diagonal entries (principal positive roots):

\[ A^{1/2} = \begin{pmatrix}2 & 0 \\[4pt] 0 & 3\end{pmatrix}. \]

Check: \(\begin{pmatrix}2 &0\\0&3\end{pmatrix}^2 = \begin{pmatrix}4&0\\0&9\end{pmatrix}.\)

Ejemplo 2 - matriz simétrica definida positiva 2×2 (diagonalización)

Let

\[ A = \begin{pmatrix}5 & 4 \\[4pt] 4 & 5\end{pmatrix}. \]

Compute eigen-decomposition. Eigenvalues are \(\lambda_1=9,\ \lambda_2=1\); orthonormal eigenvectors form

\[ V = \frac{1}{\sqrt{2}}\begin{pmatrix}1 & 1 \\[4pt] 1 & -1\end{pmatrix}. \]

Raíz cuadrada principal (usa raíces positivas):

\[ A^{1/2} = V \operatorname{diag}(\sqrt{9},\sqrt{1}) V^{T} = V \operatorname{diag}(3,1) V^{T}. \]

Carrying out the multiplication (since \(V\) is orthogonal):

\[ A^{1/2} = \frac{1}{2}\begin{pmatrix}3+1 & 3-1 \\[4pt] 3-1 & 3+1\end{pmatrix} = \begin{pmatrix}2 & 1 \\[4pt] 1 & 2\end{pmatrix}. \]

Check: \(\begin{pmatrix}2&1\\1&2\end{pmatrix}^2=\begin{pmatrix}5&4\\4&5\end{pmatrix}=A.\)

4. Errores comunes

  • Treating square root element-wise: \(A^{1/2}\) is not generally \((\sqrt{a_{ij}})\).
  • Assuming existence for arbitrary matrices: not every real matrix has a real square root (or a symmetric real square root). Check eigenvalues and Jordan blocks.
  • Using diagonalization without checking: diagonalization requires a full set of eigenvectors; if \(A\) is not diagonalizable use Schur/Jordan methods.
  • Mixing signs: eigenvalues have two square roots \(\pm\sqrt{\lambda}\); principal square root uses the positive branch for positive eigenvalues.
  • Neglecting numerical stability: computing square roots for nearly defective matrices requires stable algorithms (Schur + careful block solves or Newton iteration).

5. Practice problems

Try these problems. Click Mostrar respuesta to reveal the (principal) square root.

Ejercicio 1

\[ A=\begin{pmatrix}4 & 0 \\[4pt] 0 & 9\end{pmatrix} \]
Mostrar respuesta
\[ A^{1/2} = \begin{pmatrix}2 & 0 \\[4pt] 0 & 3\end{pmatrix}. \]

Ejercicio 2

\[ A=\begin{pmatrix}5 & 4 \\[4pt] 4 & 5\end{pmatrix} \]
Mostrar respuesta
\[ A^{1/2} = \begin{pmatrix}2 & 1 \\[4pt] 1 & 2\end{pmatrix}. \]

(See worked Example 2.)

Ejercicio 3

\[ A=\begin{pmatrix}2 & 1 \\[4pt] 1 & 2\end{pmatrix} \]
Mostrar respuesta
\[ \text{Eigenvalues: } 3,\;1.\quad A^{1/2} = \frac{1}{2}\begin{pmatrix}\sqrt{3}+1 & \sqrt{3}-1 \\[6pt] \sqrt{3}-1 & \sqrt{3}+1\end{pmatrix}. \]

This is the principal symmetric square root (use positive root \(\sqrt{3}\)).

Ejercicio 4

\[ A=\begin{pmatrix}1 & 0 & 0 \\[4pt] 0 & 4 & 0 \\[4pt] 0 & 0 & 9\end{pmatrix} \]
Mostrar respuesta
\[ A^{1/2} = \begin{pmatrix}1 & 0 & 0 \\[4pt] 0 & 2 & 0 \\[4pt] 0 & 0 & 3\end{pmatrix}. \]

Caso diagonal: toma raíces cuadradas positivas en la diagonal.


Copyright Notice: This article is original content from the Matrix Calculator website. Please credit the source when sharing or reproducing it. For more matrix computation tools, visit matrixcalcu.com.

Aprende multiplicación de matrices más fácilmente en solo 2 minutes with this juego gratuito.

Juego de multiplicación de matrices