Matrix calculations – the basics
Addition, multiplication, determinant and inverse for 2x2 and 3x3 matrices
A matrix is a rectangular array of numbers, arranged in rows and columns. This calculator supports square matrices of size 2x2 and 3x3 – the typical scope covered in school and introductory linear algebra courses.
For addition and subtraction, matrices are combined element by element: (A ± B)ᵢⱼ = aᵢⱼ ± bᵢⱼ. Both matrices must have the same size for this.
The matrix multiplication follows the row-by-column rule: cᵢₖ = Σⱼ aᵢⱼ · bⱼₖ. The number of columns of A must equal the number of rows of B — for two square matrices of different sizes (e.g. 2x2 and 3x3), multiplication is therefore not defined.
The determinant of a 2x2 matrix is calculated as ad − bc. For 3x3 matrices, the rule of Sarrus is used, named after the mathematician Pierre Frédéric Sarrus. The determinant decides whether a matrix has an inverse: only if det(A) ≠ 0 does A⁻¹ exist.