Symmetric Matrix Checker
Determine whether a square matrix satisfies \(A = A^T\). Checks all off-diagonal mirror pairs \(a_{ij}\) versus \(a_{ji}\) and highlights any discrepancies in red.
What is a Symmetric Matrix?
A matrix is symmetric if it is equal to its transpose. In other words, reflecting every entry across the main diagonal (from top-left to bottom-right) leaves the matrix completely identical.
\(A = A^T \iff a_{ij} = a_{ji} \quad \forall i, j\)
Symmetry is only defined for square \(n \times n\) matrices.Why Symmetric Matrices are Essential
- Real Eigenvalues: Every real symmetric matrix has exclusively real eigenvalues; complex roots never appear.
- Orthogonal Eigenvectors: Eigenvectors corresponding to different eigenvalues are strictly perpendicular (orthogonal).
- Spectral Theorem: Any symmetric matrix can be factored as \(A = Q \Lambda Q^T\), where \(Q\) is an orthogonal matrix and \(\Lambda\) is a diagonal matrix of eigenvalues.
- Physics & Machine Learning: Covariance matrices, Hessian matrices of second derivatives, and graph Adjacency matrices for undirected networks are all symmetric.
Solved Examples: Symmetric vs. Asymmetric
Check if matrix \(A = \begin{bmatrix} 5 & 2 & -1 \\ 2 & 8 & 3 \\ -1 & 3 & 4 \end{bmatrix}\) is symmetric:
Examine off-diagonal pairs across the main diagonal:
- \(a_{12} = 2\) and \(a_{21} = 2 \implies a_{12} = a_{21}\) ✓
- \(a_{13} = -1\) and \(a_{31} = -1 \implies a_{13} = a_{31}\) ✓
- \(a_{23} = 3\) and \(a_{32} = 3 \implies a_{23} = a_{32}\) ✓
Since \(a_{ij} = a_{ji}\) for all index pairs, \(A = A^T\).
Verdict: YES — Matrix is symmetric.
Check if matrix \(B = \begin{bmatrix} 1 & 7 \\ -7 & 2 \end{bmatrix}\) is symmetric:
Inspect mirror entries:
- \(b_{12} = 7\)
- \(b_{21} = -7\)
Because \(b_{12} \neq b_{21}\) (\(7 \neq -7\)), \(B \neq B^T\). (In fact, this matrix satisfies \(B^T = -B\), making it skew-symmetric, but not symmetric).
Verdict: NO — Matrix is not symmetric.
Symmetric vs Orthogonal Matrices Guide
Discover the profound relationship between symmetric transformations and orthogonal coordinate changes in our linear algebra guide.
Read our student tutorial: Symmetric vs. Orthogonal Matrices →