Definition. A matrix of size is a rectangular table of numbers consisting of rows and columns. Matrices are denoted by capital Latin letters, with the dimensions written as a subscript when needed: . The entries of a matrix are denoted , where is the row index (running from to ) and is the column index (running from to ).
The shorthand notation is , , .
An example of a matrix:
Definition. Two matrices and are called equal () if they have the same size and all of their corresponding entries coincide: for all .
Definition. A matrix of size is called a row matrix (or simply a row), and a matrix of size is called a column matrix (or simply a column).
It is precisely columns and rows that play the role of vectors in linear algebra: each is obtained from the other by transposition.
Definition. A matrix is called an echelon matrix (one in echelon, or "staircase", form) if two conditions hold:
The first nonzero entry of a row is called the leading (or pivot) entry.
An example of an echelon matrix (leading entries in bold):
Echelon form plays a key role in computing the rank of a matrix and in solving systems of linear equations by Gaussian elimination.
Definition. A matrix of size is called a square matrix of order . The entries (those with equal indices) form the main diagonal, and the entries form the anti-diagonal.
Definition. A square matrix is called triangular if all of its entries on one side of the main diagonal are zero. There are two kinds:
(The entries on the main diagonal itself and on the relevant side of it may be arbitrary – they need not be nonzero.)
Property. The determinant of a triangular matrix equals the product of the entries on its main diagonal (see Properties of determinants).
Definition. A diagonal matrix is a square matrix in which every entry off the main diagonal is zero:
A diagonal matrix is both upper and lower triangular at the same time.
Definition. The identity matrix is the diagonal matrix all of whose main-diagonal entries equal :
Notation: , , , . The identity matrix acts as the neutral element for matrix multiplication: and (for compatible sizes).
Definition. The zero matrix is a matrix all of whose entries are zero.
The zero matrix is the neutral element for addition: .
Definition. A square matrix is called symmetric if for all (that is, – the matrix is symmetric about its main diagonal).
Definition. A square matrix is called skew-symmetric (antisymmetric) if for all (that is, ). In particular, every entry on its main diagonal is zero.
Symmetric matrices are especially important: quadratic forms lead to them, and their eigenvalues are always real.