What is a matrix?
In mathematics, a matrix is a rectangular arrangement of numbers or symbols organized in rows and columns. Matrices are used to represent and solve systems of equations and to transform shapes, data and images.
A matrix is described by its size: the number of rows and then the number of columns. A 2 × 3 matrix has 2 rows and 3 columns.
Each item in a matrix is called an element or entry.
Matrix operations
Matrices of the same size can be added or subtracted by combining matching elements.
Matrices can also be multiplied, but only if the number of columns in the first equals the number of rows in the second. Matrix multiplication is not commutative: A × B is usually not the same as B × A.
A square matrix with 1s on its main diagonal and 0s elsewhere is called the identity matrix. Multiplying by it leaves another matrix unchanged.
Where matrices are used
In computer graphics, matrices rotate, scale and move 3D objects on screen.
They are central to machine learning and artificial intelligence, where huge matrices of numbers are processed.
Engineers, physicists and economists use them to model systems with many variables.
Search engines have used matrix calculations to rank web pages.
History
The English mathematician James Joseph Sylvester introduced the term matrix in 1850. Arthur Cayley developed matrix algebra soon after.
Ancient Chinese mathematicians used similar arrays to solve equations.