Add, subtract and multiply 2×2 and 3×3 matrices, and find the determinant, inverse and transpose.
In short
For a 2×2 matrix with rows (a, b) and (c, d), the determinant is ad − bc and the inverse is 1 ÷ (ad − bc) times the matrix with rows (d, −b) and (−c, a). A matrix whose determinant is 0 has no inverse.
What each operation does
A + B and A − B: add or subtract the numbers in matching positions.
A × B: each entry is a row of A multiplied by a column of B, added up.
Determinant: one number that tells you whether the matrix can be inverted, and how it scales area or volume.
Inverse: the matrix that undoes A, so A times its inverse gives the identity matrix.
Transpose: rows become columns.
Where matrices are used
Matrices describe rotations and scaling in computer graphics, systems of linear equations in engineering, and data tables in statistics and machine learning. Solving a system of equations often comes down to finding an inverse or a determinant.
A single number worked out from a square matrix. If it is zero, the matrix has no inverse. For a 2×2 matrix with rows (a, b) and (c, d), the determinant is ad − bc.
Why does it say the matrix has no inverse?
Because its determinant is zero. Such a matrix is called singular: its rows are multiples or combinations of each other, so the operation cannot be undone.
Is A × B the same as B × A?
Usually not. Matrix multiplication depends on the order, so swapping the two matrices generally gives a different answer.