Skip to content

Mathematics · Ch 7 — Matrices and Determinants

Algebraic Operations on Matrices

7.2.3

Algebraic Operations on Matrices

Three algebraic operations are defined on matrices.

(1) Scalar multiplication. For A=[aij]m×nA=[a_{ij}]_{m\times n} and a number (scalar) kk, the matrix kA=[k aij]m×nkA=[k\,a_{ij}]_{m\times n} is obtained by multiplying every entry of AA by kk. Taking k=−1k=-1 gives −A=[−aij]-A=[-a_{ij}], the negative of AA — note this is not called "a negative matrix" (its entries need not all be negative).

(2) Addition and subtraction. If AA and BB have the same order, their sum A+B=[aij+bij]A+B=[a_{ij}+b_{ij}] is formed by adding corresponding entries, and it has that same order. Subtraction is defined via A−B=A+(−1)B=[aij−bij]A-B = A+(-1)B = [a_{ij}-b_{ij}]. If AA and BB do not have the same order, A+BA+B and A−BA-B are simply not defined — there is no 'padding with zeros'. Addition/subtraction extends naturally to any finite number of same-order matrices.

(3) Multiplication. AA is conformable for the product ABAB only when the number of columns of AA equals the number of rows of BB. If AA is m×nm\times n and BB is n×pn\times p, the product ABAB exists and has order m×pm\times p: (m×n)(n×p)→(m×p)(m\times n)(n\times p)\to(m\times p) — the inner pair n,nn,n must match and "cancels", leaving the outer pair as the answer's order. The (i,j)(i,j) entry of ABAB is the dot product of row ii of AA with column jj of BB:

cij=∑k=1naik bkj=ai1b1j+ai2b2j+⋯+ainbnj.c_{ij}=\sum_{k=1}^{n} a_{ik}\,b_{kj}=a_{i1}b_{1j}+a_{i2}b_{2j}+\cdots+a_{in}b_{nj}.

For two row/column vectors, e.g. [1 2 3](−235)=1(−2)+2(3)+3(5)=[19][1\ 2\ 3]\begin{pmatrix}-2\\3\\5\end{pmatrix} = 1(-2)+2(3)+3(5)=[19], a 1×11\times1 matrix (a single number). …