A matrixA∈Fn×p, where n,p≥1, over the field F with ordern×p is a collection of np scalar elements aij∈F where n is the number of rows, p is the number of columns, i=1,…,n and j=1,…,p. The positional indices i,j allow the matrix to be expressed in a rectangular format:
A column vector is a collection of n scalar elements ai∈F equivalent to a matrix with column-order one a∈Fn and expressed in a columnar form:
a=a1a2⋮an
A row vector is a collection of p scalar elements ai∈F equivalent to a matrix with row-order one a∈F1×p and expressed in a row form:
a=[a1a2…ap]
The column space and row space of a matrix A are the vector spaces spanned by the column vectors or row vectors of A respectively. The column and row space of any matrix have equal dimension.
The rank of a matrix A∈Fn×p is the dimension of the vector space spanned by the p column vectors or n row vectors of A. The rank of a matrix is not necessarily equal to the number of columns or rows; it is equal to the maximum number of linearly independent columns, which equals the maximum number of linearly independent rows.
Let A∈Fn×p be a matrix with rank r. If r=min{n,p} then A is full rank. If r<min{n,p} then A is rank deficient and its rank deficiency is min{n,p}−r.
The transpose of a matrix A∈Fn×p is the matrix A⊺∈Fp×n whose rows and columns have been interchanged from A:
Let A,B∈Fn×p and λ∈F.Matrix addition is defined to be the matrix A+B∈Fn×p where elements have been summed together element-wise. Matrix scalar multiplication is defined to be the matrix λA∈Fn×p where the scalar λ has been multiplied with every element of A.
Let A∈Fn×p and B∈Fp×m. That is, A has as many columns as B has rows. Matrix multiplication is defined to be the matrix AB∈Fn×m where elements indexed by the positional indices i,j are defined by:
Matrix multiplication satisfies the following properties:
Associativity: (AB)C=A(BC)∀A∈Fn×p,B∈Fp×m,C∈Fm×q
Distributivity: A(B+C)=AB+AC and (A+D)B=AB+DB∀A∈Fn×p,B∈Fp×m,C∈Fp×m,D∈Fn×p
Non-commutativity: in general AB=BA, even when both products are defined, e.g. for A∈Fn×p,B∈Fp×n
For a matrix to be multiplied with itself it must be square. Let A∈Fp×p. The matrix power is recursively defined by A1=A and, for n≥2, the matrix
An=An−1A∈Fp×p.
The identity matrixIn of order n is a square matrix with diagonal elements equal to one and zero otherwise. For a non-square matrix A∈Fn×p there are two matrices that act as identity matrices for matrix multiplication: In and Ip which satisfy InA=AIp=A. For a square matrix B∈Fp×p,B0=Ip.
A diagonal matrix is a square matrix where non-diagonal elements are zero, a null matrix is a matrix where all elements are zero, a symmetric matrix is a matrix whose transpose equals itself, a skew-symmetric matrix is a matrix whose transpose equals minus itself, upper triangular matrix is a matrix where elements aij indexed by the positional indices i,j satisfy aij=0∀i>j and a lower triangular matrix is a matrix where elements satisfy aij=0∀i<j.
Let A∈Fn×n be a square matrix. A is invertible if there exists another matrix A−1∈Fn×n such that AA−1=A−1A=In. If an inverse exists, it is unique. If no inverse exists for A then A is singular.
Let A∈Fn×n be a square matrix. A is invertible if and only if any one of the following equivalent conditions is true (below is a subset of the conditions described in the Invertible Matrix Theorem):
A has full rank
Columns of A form a basis for Fn
Transpose A⊺ is invertible
Av=0 only has the trivial solution v=0
The matrix inverse satisfies the following properties for invertible matrices A,B∈Fn×n and non-zero scalar λ∈F:
(λA)−1=λ−1A−1(AB)−1=B−1A−1
Let A∈Rn×n be a real, square matrix. A is an orthogonal matrix if its rows and columns form orthonormal sets of vectors. This is true if and only if the product of A and its transpose A⊺ is equal to the identity matrix: AA⊺=A⊺A=In. The complex analogue of an orthogonal matrix is a unitary matrix (defined below).
Orthogonal matrices satisfy the following properties:
Matrix inverse is equal to transpose: A−1=A⊺
Orthogonality of matrix multiplication: AB is orthogonal if A and B are orthogonal
Let A∈Rn×p, where n=p, be a non-square matrix. A is a semi-orthogonal matrix if:
the columns of A form an orthonormal set and n>p; or
the rows of A form an orthonormal set and n<p.
Let A∈Cn×p. The conjugate transpose is the matrix A∗∈Cp×n whose rows and columns have been interchanged from A and whose elements are the complex conjugate of the elements in A:
Let A∈Cn×n be a complex, square matrix. A is a Hermitian matrix if it is equal to its own conjugate transpose: aij=aji. The diagonal elements of a Hermitian matrix must be real.
Let A∈Cn×n be a complex, square matrix. A is a unitary matrix if its conjugate transpose is equal to its inverse: AA∗=A∗A=In.
Let A∈Cn×n be a Hermitian matrix, so that v∗Av is real for every v∈Cn.A is positive definite if v∗Av>0∀v∈Cn∖{0},negative definite if v∗Av<0∀v∈Cn∖{0},positive semi-definite if v∗Av≥0∀v∈Cn∖{0} and negative semi-definite if v∗Av≤0∀v∈Cn∖{0}.