Definition 7.1: A matrix is a rectangular array of numbers. Rows are horizontal units, and columns are vertical units.
The element in the ith row and jth column is the (i,j)th entry of the matrix.
An m×n matrix has m rows and n columns.
Rows are counted from the top, columns from the left.
The collection of all m×n matrices with real entries is denoted by Mm×n(R).
Capital letters denote matrices, small letters denote entries. For example, A=(a<em>ij)</em>m×n denotes an m×n matrix A with entries aij, where 1⩽i⩽m and 1⩽j⩽n.
Example 7.1: The matrix A=(1amp;2amp;34amp;5amp;6) is a 2×3 matrix. Its first row is (1amp;2amp;3), and its third column is (36). The (2,1)th entry of A is 4.
Definition 7.2: A square matrix has the same number of rows and columns.
Definition 7.3: The main diagonal of a matrix consists of the (1,1)th, (2,2)th, …, (n,n)th entries.
Definition 7.4: A diagonal matrix is a square matrix whose entries not on the main diagonal are all 0.
Example 7.2:
The matrix A=(4amp;0amp;00amp;5amp;00amp;0amp;0) is a diagonal matrix (and thus also a square matrix).
The matrix B=(0amp;0amp;10amp;2amp;03amp;0amp;0) is a square matrix but not a diagonal matrix.
Definition 7.5: Two matrices A=(a<em>ij)</em>m×n and B=(b<em>ij)</em>k×ℓ are equal if m=k, n=ℓ, and a<em>ij=b</em>ij for all i and j. We write A=B if A and B are equal matrices.
Definition 7.6: Let A=(a<em>ij)</em>m×n and B=(b<em>ij)</em>m×n be two matrices of the same size. The matrix addition is defined by A+B=(a<em>ij+b</em>ij).
Example 7.3:(1amp;23amp;4)+(5amp;78amp;6)=(1+5amp;2+73+8amp;4+6)=(6amp;911amp;10).
Definition 7.7: The m×n zero matrix, denoted by Om×n or simply O, is the m×n matrix where every entry is 0.
Definition 7.8: Let A=(a<em>ij)</em>m×n be a matrix. The additive inverse of A, denoted by −A, is the matrix (−a<em>ij)</em>m×n.
Proposition 7.1: Let A, B, and C be matrices of the same size, and let O be the zero matrix of the same size. Then the following hold:
(a) (commutativity) A+B=B+A
(b) (associativity) (A+B)+C=A+(B+C)
(c) O+A=A
(d) A+(−A)=O
Definition 7.9: Let A=(a<em>ij)</em>m×n and B=(b<em>ij)</em>m×n be two matrices of the same size. The matrix subtraction is defined by A−B=(a<em>ij−b</em>ij).
Example 7.4:(5amp;78amp;6)−(1amp;23amp;4)=(5−1amp;7−28−3amp;6−4)=(4amp;55amp;2).
Definition 7.10: Let A=(a<em>ij)</em>m×n be a matrix and let c be a scalar. The scalar multiplication is defined by cA=(caij).
Example 7.5:5(1amp;23amp;4)=(5(1)amp;5(2)5(3)amp;5(4))=(5amp;1015amp;20).
Proposition 7.2: Let A and B be matrices of the same size, and let c and d be two scalars. Then the following hold:
(a) 1(A)=A, 0(A)=O, (−1)(A)=−A
(b) (cd)A=c(dA)
(c) (distributivity) c(A+B)=cA+cB, (c+d)A=cA+dA
Definition 7.11: Let A=(a<em>ij)</em>m×n be a matrix. The transpose of A, denoted by AT, is the matrix (a<em>ji)</em>n×m.
Example 7.6:(1amp;23amp;45amp;6)T=(1amp;3amp;52amp;4amp;6).
Proposition 7.3: Let A and B be matrices of the same size, and let c be a scalar. Then the following hold:
(a) (AT)T=A
(b) (A+B)T=AT+BT
(c) (cA)T=cAT
Definition 7.12: Let A=(a<em>ij)</em>m×n and B=(b<em>ij)</em>n×ℓ be matrices. The matrix product AB of A and B is defined to be the matrix (c<em>ij)</em>m×ℓ where c<em>ij=a</em>i1b<em>1j+a</em>i2b<em>2j+⋯+a</em>inbnj.
The product AB is only defined when the number of columns of A is the same as the number of rows of B.
We can define the positive power of a square matrix in the natural way. For example, A2=AA and A3=(A2)A, etc.
Example 7.7:(1amp;23amp;4)(5amp;67amp;8)=((1)(5)+(2)(7)amp;(1)(6)+(2)(8)(3)(5)+(4)(7)amp;(3)(6)+(4)(8))=(19amp;2243amp;50).
Definition 7.13: The n×n identity matrix, denoted by In or simply I, is the n×n diagonal matrix whose every diagonal entry is 1.
Proposition 7.4: Let A, B, and C be matrices such that the following operations are well-defined, and let c be a scalar. Then the following hold:
(a) (associativity) (AB)C=A(BC)
(b) AO=O, OB=O, AI=A, IB=B
(c) (distributivity) A(B+C)=AB+AC, (A+B)C=AC+BC
(d) c(AB)=(cA)B=A(cB)
(e) (AB)T=BTAT
Matrix multiplication is not commutative in general. This means AB and BA are not necessarily the same even if both are well-defined.
Definition 7.14: An n×n matrix A is said to be invertible or non-singular if there exists an n×n matrix B such that AB=In=BA. Such a matrix B is called the inverse of A, and is usually denoted by A−1. A square matrix which has no inverse is said to be non-invertible or singular.
Proposition 7.5: The inverse of a matrix, if it exists, is unique.
Example 7.8: The matrix A=(1amp;23amp;5) is invertible, and A−1=(−5amp;23amp;−1).
Example 7.9: The matrix B=(1amp;23amp;6) is non-invertible.
Proposition 7.6: Let A and B be invertible matrices of the same size, and let c be a nonzero scalar. Then the following hold:
(a) A−1 is invertible and (A−1)−1=A
(b) cA is invertible and (cA)−1=c−1A−1
(c) AB is invertible and (AB)−1=B−1A−1
(d) AT is invertible and (AT)−1=(A−1)T
Determinants
Definition 7.15: The determinants of a 1×1 matrix A=(a), a 2×2 matrix B=(aamp;bcamp;d), and a 3×3 matrix C=(aamp;bamp;cdamp;eamp;fgamp;hamp;i) are defined to be detA=a, detB=ad−bc, detC=aei+bfg+cdh−gec−dbi−ahf respectively.
The determinant of A can also be represented as ∣A∣. Another common notation for the determinant of a matrix (aamp;bcamp;d) is aamp;bcamp;d.
Example 7.10:1amp;2amp;03amp;4amp;50amp;6amp;7=(1)(4)(7)+(2)(5)(0)+(0)(3)(6)−(0)(4)(0)−(3)(2)(7)−(1)(6)(5)=−44. Also, we have detO=0 and detI=1.
Theorem 7.1: A square matrix A is invertible if and only if detA=0.
Example 7.11: Since 3amp;26amp;4=0, the matrix (3amp;26amp;4) is non-invertible.
Proposition 7.7: Let A and B be square matrices of size n×n. Then the following hold:
(a) det(AB)=(detA)(detB)
(b) det(kA)=kndetA for any k∈R
(c) det(AT)=detA
(d) if A is invertible, then det(A−1)=detA1
(e) if A has a zero row or a zero column, then detA=0
(f) if A has two identical rows or two identical columns, then detA=0
Example 7.12: Let both A and B be 3×3 matrices such that detA=2 and B is invertible. Then det(−BTA2B−1)=−4.
Definition 7.16: Let A=(a<em>ij) be an n×n matrix where n⩾2. Let A</em>ij be the (n−1)×(n−1) matrix obtained by deleting the ith row and the jth column of A. The (i,j)-cofactor of A is defined by c<em>ij=(−1)i+jdet(A</em>ij).
Example 7.13: The (2,3)-cofactor of (1amp;2amp;34amp;5amp;67amp;8amp;9) is −1amp;27amp;8=6.
Theorem 7.2: Let A be an invertible matrix. Let B be the matrix whose (i,j)th entry is the (j,i)-cofactor cji of A. Then A−1=detA1B.
Example 7.14: Let A=(aamp;bcamp;d) where detA=ad−bc=0. Then A−1=ad−bc1(damp;−b−camp;a).
Example 7.15: The inverse of B=(1amp;1amp;22amp;3amp;41amp;0amp;1) is (−3amp;1amp;2−2amp;1amp;03amp;−1amp;−1).