1. Adding, subtracting and multiplying matrices
Matrices are added or subtracted entry by entry, and only when they have the same order. The zero matrix has every entry 0, so adding it changes nothing.
A product AB exists only when the number of columns of A equals the number of rows of B. An m × n matrix times an n × p matrix gives an m × p matrix. Each entry is a row of A multiplied into a column of B. Non-square matrices are allowed.
The identity matrix I has 1 on the leading diagonal and 0 elsewhere. In general AB ≠ BA.
(AB)_ij = sum_k a_ik b_kj
A + 0 = A, AI = IA = A
Examiner insight
Worked example 13 marks
The matrix A is given by A = beginpmatrix1&k&-1 3&1&k 3&1&-1endpmatrix, where k is a real constant. The matrices B and C are given by B = beginpmatrix1&0 0&-1 1&0endpmatrix and C = beginpmatrix0&1&0 1&0&1endpmatrix.
Show that CAB = beginpmatrixk+3&-1 2&-k-1endpmatrix.
- 1
CA is 2 × 3 times 3 × 3, so it is 2 × 3: CA = beginpmatrix3&1&k 4&k+1&-2endpmatrix [1]
- 2
(CA)B is 2 × 3 times 3 × 2, so it is 2 × 2. Row 1: 3 + k, -1. Row 2: 4 - 2, -(k+1) [1]
- 3
CAB = beginpmatrixk+3&-1 2&-k-1endpmatrix, as required [1]