Theory
Matrices and matrix operations
Matrices and their types, sum, row-by-column product, transpose and powers, the inverse matrix, row echelon reduction and the computation of the inverse with the Gauss-Jordan method.
On this page
Matrices and notation
1. Matrix
Let be positive integers. An matrix with real entries is an array of real numbers arranged in rows and columns:
The number is the entry in position ; the first index indicates the row and the second the column. One writes briefly , and the set of matrices is denoted by . Two matrices are equal if they have the same dimensions and the entries in the same position coincide, so an equality between matrices is equivalent to equalities between numbers. Matrices collect into a single object the coefficients of a linear system, of a linear map or of a quadratic form, and the operations between matrices translate the operations on these objects.
Example
The matrix
has two rows and three columns; its entry in position is , while and . The second row is the matrix given by .
2. Square matrices, row vectors and column vectors
- A matrix with is called square of order ; the set of square matrices of order is denoted by .
- In a square matrix the entries form the main diagonal. Their sum is the trace, .
- A matrix is a row vector; an matrix is a column vector. In matrix computations the vectors of are written as columns.
- The zero matrix has all entries equal to .
For the main diagonal consists of and , therefore .
Special square matrices
1. Diagonal, triangular and identity matrices
Let .
- is upper triangular if for , that is, if the entries below the main diagonal are zero.
- is lower triangular if for , that is, if the entries above the main diagonal are zero.
- is diagonal if for ; one writes .
- The identity matrix is the diagonal matrix with all diagonal entries equal to .
A diagonal matrix is both upper and lower triangular. The product of two upper triangular matrices of the same order is upper triangular, and the same holds for diagonal matrices. On these classes computations become simpler: row echelon reduction produces upper triangular matrices, and the powers of a diagonal matrix are computed entry by entry.
Example
is upper triangular and is diagonal. A zero diagonal entry is allowed, since the definition imposes conditions only on the entries off the diagonal.
2. Symmetric and skew-symmetric matrices
A matrix is called
- symmetric if for all ;
- skew-symmetric if for all .
In a symmetric matrix the entries are arranged as mirror images with respect to the main diagonal. In a skew-symmetric matrix, setting gives , therefore the diagonal entries are zero. Symmetric matrices describe quadratic forms and conics, and the spectral theorem guarantees that they are always diagonalizable; these are covered in the topics on the inner product and on conics.
Example
is symmetric, since , and . is skew-symmetric, since it has zero diagonal and the entries in mirror positions are opposite.
The theory continues with 8 more sections (sum and multiplication by a scalar, row by column product, noncommutativity and zero divisors…), plus all worked examples, the solutions and the PDF.
Unlock now