Matrix arithmetic

Matrix arithmetic

Spec 5.1–3 · Edexcel International A Level Further Maths: Revision notes

Studying this course? Keep your progress in one place.

Key facts

  • A matrix with mm rows and nn columns has order m×nm\times n (rows first).
  • Add or subtract matrices of the same order, entry by entry.
  • A scalar multiplies every entry.
  • AB\mathbf{AB} exists if columns of A\mathbf A = rows of B\mathbf B; each entry is row times column.
  • Matrix multiplication is not commutative: usually AB≠BA\mathbf{AB}\neq\mathbf{BA}.

Matrices and their order

A matrix with mm rows and nn columns has order m×nm\times n. Two matrices are equal only if they have the same order and equal entries.

A matrix is a rectangular array of numbers in rows and columns. A matrix with mm rows and nn columns has order m×nm\times n. Here we work mainly with 2×22\times2 matrices and 2×12\times1 column vectors. Each number is an entry.

Two matrices are equal only if they have the same order and every pair of corresponding entries is equal. This is used to find unknown entries.

  • Order m×nm\times nmm rows, nn columns
  • Equal matricessame order, equal entries

Worked example

Find aa and bb if (a+62+2b13)=(10813)\begin{pmatrix}a+6&2+2b\\ 1&3\end{pmatrix}=\begin{pmatrix}10&8\\ 1&3\end{pmatrix}.

How many columns does a 3×23\times2 matrix have?

Addition and subtraction

Matrices of the same order are added or subtracted entry by entry. Matrices of different orders cannot be added.

Matrices of the same order are added or subtracted entry by entry:

(abcd)+(efgh)=(a+eb+fc+gd+h).\begin{pmatrix}a&b\\ c&d\end{pmatrix}+\begin{pmatrix}e&f\\ g&h\end{pmatrix}=\begin{pmatrix}a+e&b+f\\ c+g&d+h\end{pmatrix}.

Addition is commutative (A+B=B+A\mathbf A+\mathbf B=\mathbf B+\mathbf A) and associative.

  • A±B\mathbf A\pm\mathbf Bsame order, entry by entry

Worked example

Work out (2−134)+(10−25)\begin{pmatrix}2&-1\\ 3&4\end{pmatrix}+\begin{pmatrix}1&0\\ -2&5\end{pmatrix}.

Can you add a 2×22\times2 matrix and a 2×12\times1 matrix?

Multiplying by a scalar

Multiplying a matrix by a scalar kk multiplies every entry by kk.

A scalar is an ordinary number. Multiplying a matrix by a scalar kk multiplies every entry by kk:

k(abcd)=(kakbkckd).k\begin{pmatrix}a&b\\ c&d\end{pmatrix}=\begin{pmatrix}ka&kb\\ kc&kd\end{pmatrix}.

Combine with addition and subtraction in the usual order of operations: 3A−B3\mathbf A-\mathbf B means multiply A\mathbf A by 3, then subtract B\mathbf B.

  • kAk\mathbf Aevery entry multiplied by kk

Worked example

Work out 3(2−134)−(10−25)3\begin{pmatrix}2&-1\\ 3&4\end{pmatrix}-\begin{pmatrix}1&0\\ -2&5\end{pmatrix}.

What is 2(1−304)2\begin{pmatrix}1&-3\\ 0&4\end{pmatrix}?

Multiplying two matrices

Each entry of AB\mathbf{AB} is a row of A\mathbf A times a column of B\mathbf B: multiply corresponding entries and add.

The product AB\mathbf{AB} exists only if the number of columns of A\mathbf A equals the number of rows of B\mathbf B. An m×nm\times n matrix times an n×pn\times p matrix gives an m×pm\times p matrix.

(abcd)(efgh)=(ae+bgaf+bhce+dgcf+dh).\begin{pmatrix}a&b\\ c&d\end{pmatrix}\begin{pmatrix}e&f\\ g&h\end{pmatrix}=\begin{pmatrix}ae+bg&af+bh\\ ce+dg&cf+dh\end{pmatrix}.

A matrix times a column vector works the same way: (1234)(56)=(1739)\begin{pmatrix}1&2\\ 3&4\end{pmatrix}\begin{pmatrix}5\\6\end{pmatrix}=\begin{pmatrix}17\\39\end{pmatrix}.

  1. 1

    Pick a row of A

    and a column of B

  2. 2

    Multiply

    corresponding entries

  3. 3

    Add

    the products to get one entry

  4. 4

    Repeat

    for every row and column pair

Multiplying row by column
  • (m×n)(n×p)(m\times n)(n\times p)m×pm\times p matrix

Worked example

Work out (2−134)(10−25)\begin{pmatrix}2&-1\\ 3&4\end{pmatrix}\begin{pmatrix}1&0\\ -2&5\end{pmatrix}.

A 2×32\times3 matrix is multiplied by a 3×13\times1 matrix. What is the order of the product?

Properties of products

Matrix multiplication is associative and distributive, but not commutative, and powers do not square the entries.

Keep the order given: in general AB≠BA\mathbf{AB}\neq\mathbf{BA}. The identity I=(1001)\mathbf I=\begin{pmatrix}1&0\\ 0&1\end{pmatrix} satisfies AI=IA=A\mathbf{AI}=\mathbf{IA}=\mathbf A.

Powers: A2=AA\mathbf A^2=\mathbf{AA}. Entries are not squared: for M=(120−1)\mathbf M=\begin{pmatrix}1&2\\ 0&-1\end{pmatrix}, M2=I\mathbf M^2=\mathbf I, not (1401)\begin{pmatrix}1&4\\ 0&1\end{pmatrix}.

Numbers

ab=baab=ba:
Yes
(ab)c=a(bc)(ab)c=a(bc):
Yes
a(b+c)=ab+aca(b+c)=ab+ac:
Yes
Identity:
1

Matrices

ab=baab=ba:
No
(ab)c=a(bc)(ab)c=a(bc):
Yes
a(b+c)=ab+aca(b+c)=ab+ac:
Yes
Identity:
I\mathbf I

Worked example

Show that AB≠BA\mathbf{AB}\neq\mathbf{BA} for A=(2−134)\mathbf A=\begin{pmatrix}2&-1\\ 3&4\end{pmatrix} and B=(10−25)\mathbf B=\begin{pmatrix}1&0\\ -2&5\end{pmatrix}.

Which is true for any matrices where the products exist?

Try an exam question

A=(2−134)\mathbf A=\begin{pmatrix}2&-1\\ 3&4\end{pmatrix} and B=(10−25)\mathbf B=\begin{pmatrix}1&0\\ -2&5\end{pmatrix}. Find 3A−B3\mathbf A-\mathbf B and AB\mathbf{AB}.

[4 marks]

That's the notes covered.

Carry on to the next subtopic.

Try a question

Find A+B\mathbf{A}+\mathbf{B}.

1 mark, marked against the mark scheme

Revision notes