Matrix Calculator
Perform matrix operations: addition, subtraction, multiplication, transpose, and determinant. Supports 2×2 to 4×4 matrices with step-by-step results.
Matrix A
Matrix B
Result
A × B
19
22
43
50
How to Use Matrix Calculator
- 1Select the matrix size (2×2 to 4×4).
- 2Enter values for Matrix A (and Matrix B for binary operations).
- 3Choose an operation: add, subtract, multiply, transpose, or determinant.
Zenovay
Privacy-first analytics for your website
Understand your visitors without invasive tracking. GDPR compliant, lightweight, and powerful.
Related Tools
JSON Formatter & ValidatorFormat, validate, and beautify JSON data with syntax highlighting and error detection.
JWT DecoderDecode and inspect JWT tokens. View header, payload, and verify signatures.
Base64 Encode/DecodeEncode text to Base64 or decode Base64 back to text. Supports UTF-8 and binary data.
URL Encode/DecodeEncode or decode URL components. Handle special characters, query strings, and full URLs.
Frequently Asked Questions
How does matrix multiplication work?▾
Matrix multiplication A × B: Result[i][j] = sum(A[i][k] × B[k][j]) for all k. Requires: columns of A = rows of B. Result size: rows of A × columns of B. Example: 2×3 × 3×2 = 2×2 result. NOT commutative: A×B ≠ B×A in general. Element calculation: for A (2×2) × B (2×2): result[0][0] = A[0][0]×B[0][0] + A[0][1]×B[1][0]. Time complexity: O(n³) for n×n matrices (Strassen: O(n^2.807), rarely used in practice for small matrices).
What is the determinant of a matrix?▾
The determinant (det or |A|) is a scalar value that encodes certain properties of the matrix. For 2×2: det([[a,b],[c,d]]) = ad − bc. For 3×3: cofactor expansion. Properties: det = 0: matrix is singular (not invertible). det ≠ 0: matrix is invertible. det(A×B) = det(A) × det(B). det(Aᵀ) = det(A). det(kA) = kⁿ × det(A) for n×n matrix. Geometric interpretation: |det| = volume of parallelepiped formed by column vectors. Sign determines orientation. Used in: Cramer's rule for solving linear systems, cross products, change of variables in integrals.
What is the transpose of a matrix?▾
Transpose Aᵀ flips the matrix over its main diagonal — rows become columns. (Aᵀ)[i][j] = A[j][i]. Properties: (Aᵀ)ᵀ = A. (A + B)ᵀ = Aᵀ + Bᵀ. (AB)ᵀ = BᵀAᵀ (note reversal). (kA)ᵀ = kAᵀ. Symmetric matrix: A = Aᵀ (e.g., identity matrix). Orthogonal matrix: AᵀA = I (transpose = inverse). Applications: transpose appears in least squares regression (XᵀX)⁻¹Xᵀy, neural network backpropagation, and covariance matrices.
What is the identity matrix?▾
The identity matrix I has 1s on the diagonal and 0s everywhere else. For 3×3: [[1,0,0],[0,1,0],[0,0,1]]. Properties: A × I = I × A = A (multiplicative identity). det(I) = 1. Iᵀ = I. I is the matrix analog of the number 1 in scalar multiplication. Matrix inverse: A⁻¹ is the matrix where A × A⁻¹ = I. Only square matrices with non-zero determinant are invertible. For 2×2: A⁻¹ = (1/det) × [[d,-b],[-c,a]] where A = [[a,b],[c,d]].
What are eigenvalues and eigenvectors?▾
For square matrix A: eigenvector v and eigenvalue λ satisfy Av = λv. The eigenvector is a direction that is only scaled (not rotated) by the matrix. Eigenvalues found by: det(A − λI) = 0 (characteristic equation). For 2×2 matrix: this gives a quadratic equation → 2 eigenvalues (possibly complex). Applications: PCA (principal component analysis) in machine learning uses eigenvectors of covariance matrix. PageRank algorithm is an eigenvector problem. Quantum mechanics: observables are eigenvalues of operators. Graph theory: spectral clustering uses eigenvectors of adjacency/Laplacian matrix.