Perform matrix addition, multiplication, and compute the determinant of square matrices.
This calculator handles three core matrix operations. For addition, each element of the result is the sum of the corresponding elements from both matrices: C[i][j] = A[i][j] + B[i][j], requiring identical dimensions. For multiplication, each element is the dot product of a row from A and a column from B: C[i][j] = Σ A[i][k] × B[k][j], where A's columns must equal B's rows. The determinant of a square matrix is computed via cofactor expansion — for 2×2 matrices, det = ad − bc — and recursively for larger matrices using minors and alternating signs along any row or column.
No. Matrix addition requires both matrices to have exactly the same dimensions (same number of rows and columns). Each element is added to its corresponding position, so mismatched sizes make the operation undefined.
To multiply two matrices A and B, the number of columns in A must equal the number of rows in B. The resulting matrix will have the same number of rows as A and the same number of columns as B. Note that matrix multiplication is not commutative (A × B ≠ B × A in general).
The determinant is a scalar value computed from a square matrix that encodes important properties. If the determinant is zero, the matrix is singular (not invertible), meaning the system of equations it represents has no unique solution. A non-zero determinant indicates the matrix is invertible.