Skip to content

Mathematics and Statistics · Ch 2 — Matrices

Algebra of Matrices — Addition, Scalar Multiplication and Multiplication

2

Algebra of Matrices — Addition, Scalar Multiplication and Multiplication

Addition and subtraction. Two matrices can be added (or subtracted) only when they are of the same order; the sum is obtained by adding corresponding elements. If A=[aij]A=[a_{ij}] and B=[bij]B=[b_{ij}] are both m×nm\times n, then A+B=[aij+bij]A+B=[a_{ij}+b_{ij}]. For instance, (1234)+(0−125)=(1159).\begin{pmatrix} 1 & 2 \\ 3 & 4 \end{pmatrix}+\begin{pmatrix} 0 & -1 \\ 2 & 5 \end{pmatrix}=\begin{pmatrix} 1 & 1 \\ 5 & 9 \end{pmatrix}. Matrix addition is commutative (A+B=B+AA+B=B+A) and associative ((A+B)+C=A+(B+C)(A+B)+C=A+(B+C)), and the zero matrix OO is the additive identity.

Scalar multiplication. To multiply a matrix by a scalar (an ordinary number) kk, multiply every element by kk: kA=[k aij]kA=[k\,a_{ij}]. So 3(1−204)=(3−6012).3\begin{pmatrix} 1 & -2 \\ 0 & 4 \end{pmatrix}=\begin{pmatrix} 3 & -6 \\ 0 & 12 \end{pmatrix}. Combining the two operations, expressions such as 2A−3B2A-3B are formed by scaling first and then adding element by element.

Matrix multiplication. The product ABAB is defined 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, then ABAB exists and is of order m×pm\times p. The element in row ii, column jj of ABAB is found by the row-by-column rule: take row ii of AA and column jj of BB, multiply corresponding entries, and add. In symbols, (AB)ij=ai1b1j+ai2b2j+⋯+ainbnj.(AB)_{ij}=a_{i1}b_{1j}+a_{i2}b_{2j}+\cdots+a_{in}b_{nj}.

For example, (2314)(1025)=(2(1)+3(2)2(0)+3(5)1(1)+4(2)1(0)+4(5))=(815920).\begin{pmatrix} 2 & 3 \\ 1 & 4 \end{pmatrix}\begin{pmatrix} 1 & 0 \\ 2 & 5 \end{pmatrix}=\begin{pmatrix} 2(1)+3(2) & 2(0)+3(5) \\ 1(1)+4(2) & 1(0)+4(5) \end{pmatrix}=\begin{pmatrix} 8 & 15 \\ 9 & 20 \end{pmatrix}. …

Definition 1Matrix addition

Addition of two matrices of the same order, done by adding corresponding elements; it is commutative and associative, with the z …

Definition 2Scalar multiplication

Multiplication of a matrix by a single number k, obtained by multiplying every element of …

Definition 3Matrix multiplication

The product AB, defined only when the columns of A equal the rows of B; its (i,j) element is the sum of products of row i of A with column j of B, and the result is of order …

Definition 4Non-commutativity of matrix product

The property that AB is in general not equal to BA; one product may exist while the other does not, so the order of the factors …