Matrix Calculator
Compute determinant, inverse, eigenvalues, trace, and rank for 2×2, 3×3, and 4×4 matrices. The 2×2 view shows the geometric transformation of the unit square with animated basis vectors.
Matrix [A]
Properties
| Matrix | -- |
| Determinant | -- |
| Trace | -- |
| Rank | -- |
| Inverse | -- |
| Eigenvalues | -- |
| Eigenvectors | -- |
The Math Behind It
Matrix Operations
- Determinant (2×2): det(A) = ad − bc
- Determinant (n×n): Computed via cofactor expansion along the first row
- Inverse: A¹ = (1/det) · adj(A) — exists only when det ≠ 0
- Trace: tr(A) = ∑ aii — sum of diagonal entries
- Rank: Number of non-zero rows after Gaussian elimination
Eigenvalues & Eigenvectors
- Characteristic equation: det(A − λI) = 0
- 2×2: Quadratic formula — λ = (tr ± √(tr² − 4·det)) / 2
- 3×3: Cubic characteristic polynomial solved via Cardano’s method
- 4×4: Faddeev–LeVerrier algorithm + Durand–Kerner numerical root finding
- Eigenvectors satisfy Av = λv — directions only scaled by the matrix
You're crushing it!