Matrix Properties Calculator
Examine a matrix for important algebraic properties such as symmetry, skew-symmetry, orthogonality, and other supported matrix conditions. These properties help classify matrices and determine which mathematical operations or decompositions may apply.
A
Learn About Matrix Properties Checker
In linear algebra, matrices are classified by algebraic symmetries, spectral characteristics, and structural identities. Identifying these properties dictates which numerical algorithms, factorizations, and physical models apply to a given matrix.
The Matrix Properties Checker tests whether a square matrix $\mathbf{A} \in \mathbb{R}^{n \times n}$ satisfies key algebraic classifications using exact rational arithmetic and formal proofs.
Supported Properties and Mathematical Criteria
- Symmetric Matrix:
Real symmetric matrices always have real eigenvalues and orthogonal eigenvectors.
- Skew-Symmetric (Anti-Symmetric) Matrix:
Because $a_{ii} = -a_{ii}$, all main diagonal entries must be zero ($a_{ii} = 0$).
- Orthogonal Matrix:
Orthogonal matrices preserve vector lengths and inner products, with $\det(\mathbf{A}) = \pm 1$.
- Idempotent Matrix (Projection):
Every idempotent matrix represents a projection onto a subspace. Its eigenvalues are restricted to $0$ and $1$.
- Orthogonal Projection Matrix:
An idempotent matrix that is also symmetric: $\mathbf{P}^2 = \mathbf{P}$ and $\mathbf{P}^T = \mathbf{P}$. It projects vectors perpendicularly onto its column space.
- Nilpotent Matrix:
All eigenvalues of a nilpotent matrix are $0$, implying $\operatorname{tr}(\mathbf{A}) = 0$ and $\det(\mathbf{A}) = 0$.
- Positive Definite Matrix (Sylvester's Criterion):
A symmetric matrix is positive definite ($\mathbf{x}^T \mathbf{A} \mathbf{x} > 0$ for all $\mathbf{x} \ne \mathbf{0}$) if and only if all $n$ leading principal minors are strictly positive:
- Invertible (Non-Singular) Matrix:
Worked Numerical Example
Consider the $2 \times 2$ matrix:
- Symmetry: $\mathbf{A}^T = \begin{bmatrix} 2 & -1 \\ -1 & 2 \end{bmatrix} = \mathbf{A} \implies \textbf{Symmetric}$.
- Skew-Symmetry: $-\mathbf{A} = \begin{bmatrix} -2 & 1 \\ 1 & -2 \end{bmatrix} \ne \mathbf{A}^T \implies \textbf{Not Skew-Symmetric}$.
- Orthogonality: $\mathbf{A}^T \mathbf{A} = \begin{bmatrix} 5 & -4 \\ -4 & 5 \end{bmatrix} \ne \mathbf{I} \implies \textbf{Not Orthogonal}$.
- Idempotency: $\mathbf{A}^2 = \begin{bmatrix} 5 & -4 \\ -4 & 5 \end{bmatrix} \ne \mathbf{A} \implies \textbf{Not Idempotent}$.
- Nilpotency: Powers do not vanish ($\mathbf{A}^2 \ne \mathbf{0}$) $\implies \textbf{Not Nilpotent}$.
- Invertibility: $\det(\mathbf{A}) = (2)(2) - (-1)(-1) = 3 \ne 0 \implies \textbf{Invertible}$.
- Positive Definiteness:
- Symmetric: Yes.
- Minor $k=1$: $\det(\mathbf{A}_1) = |2| = 2 > 0$.
- Minor $k=2$: $\det(\mathbf{A}_2) = 3 > 0$.
All leading principal minors are strictly positive $\implies \textbf{Positive Definite}$.
Why must every skew-symmetric matrix have zeros along its main diagonal?
By definition, $a_{ij} = -a_{ji}$. On the main diagonal where $i = j$, this requires $a_{ii} = -a_{ii}$, or $2a_{ii} = 0$, forcing $a_{ii} = 0$ for all diagonal entries.
What is Sylvester's Criterion and why does it require symmetry first?
Sylvester's criterion states that a matrix is positive definite if all its leading principal minors have positive determinants. However, this test is valid only for symmetric matrices. A non-symmetric matrix can have positive leading minors while failing to satisfy $\mathbf{x}^T \mathbf{A} \mathbf{x} > 0$ for all nonzero vectors.
Can a non-zero matrix be both idempotent and invertible?
Only the identity matrix $\mathbf{I}$. If $\mathbf{A}^2 = \mathbf{A}$ and $\mathbf{A}$ is invertible, multiplying by $\mathbf{A}^{-1}$ yields $\mathbf{A} = \mathbf{I}$. Any other idempotent matrix must be singular with $\det(\mathbf{A}) = 0$.
What is the difference between an arbitrary projection and an orthogonal projection?
An arbitrary (oblique) projection satisfies $\mathbf{P}^2 = \mathbf{P}$, mapping vectors onto a subspace along a non-perpendicular complement. An orthogonal projection satisfies both $\mathbf{P}^2 = \mathbf{P}$ and $\mathbf{P}^T = \mathbf{P}$, ensuring that the projection error $(\mathbf{x} - \mathbf{P}\mathbf{x})$ is perpendicular to the subspace.
- Toeplitz Cartesian Decomposition: Every square matrix $\mathbf{A}$ uniquely splits into the sum of a symmetric matrix $\mathbf{S}$ and a skew-symmetric matrix $\mathbf{K}$:
where $\mathbf{S} = \frac{1}{2}(\mathbf{A} + \mathbf{A}^T)$ and $\mathbf{K} = \frac{1}{2}(\mathbf{A} - \mathbf{A}^T)$.
- Nilpotent Index Bound: If an $n \times n$ matrix is nilpotent, its index of nilpotency (the smallest integer $k$ such that $\mathbf{A}^k = \mathbf{0}$) cannot exceed the dimension: $k \le n$. Thus, testing powers up to $\mathbf{A}^n$ guarantees verification.