Matrix arithmetic

Matrix arithmetic

Spec C1–C2 · AQA 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; equal matrices have the same order and every entry equal.
  • Add or subtract matrices of the same order entry by entry; a scalar multiplies every entry.
  • AB\mathbf{AB} exists only if the columns of A\mathbf{A} equal the rows of B\mathbf{B}: (m×n)(n×p)(m\times n)(n\times p) gives m×pm\times p.
  • Multiplication is row times column, and is not commutative: usually AB≠BA\mathbf{AB}\ne\mathbf{BA}.
  • The identity I\mathbf{I} satisfies AI=IA=A\mathbf{AI}=\mathbf{IA}=\mathbf{A}; AB=O\mathbf{AB}=\mathbf{O} does not mean A\mathbf{A} or B\mathbf{B} is O\mathbf{O}.

Order and equality

The order is rows ×\times columns, and two matrices are equal only if their orders match and every entry matches.

A matrix is a rectangular array of numbers (entries). With mm rows and nn columns it has order m×nm\times n. A square matrix has m=nm=n.

For example, (122−131)\begin{pmatrix}1&2&2\\-1&3&1\end{pmatrix} has order 2×32\times3.

A matrix equation gives one equation per entry. State the order before attempting a sum or product, to decide whether it is defined.

  1. 1

    Count rows and columns

    order is rows × columns

  2. 2

    Compare orders

    a sum or equality needs the same order

  3. 3

    For a product AB

    columns of A must equal rows of B

  4. 4

    Equal matrices

    every matching entry is equal

Checking order before any sum or product.
  • mm rows, nn columnsorder m×nm\times n
  • A=B\mathbf{A}=\mathbf{B}same order, every entry equal

A\mathbf{A} has order 2×32\times3 and B\mathbf{B} has order 3×43\times4. What is the order of AB\mathbf{AB}?

Adding and scaling

Matrices of the same order add or subtract entry by entry; a scalar multiplies every entry.

Matrices of the same order are added or subtracted entry by entry. A matrix cannot be added to one of a different order.

Multiplying by a scalar kk multiplies every entry by kk.

Addition is commutative and associative, and k(A+B)=kA+kBk(\mathbf{A}+\mathbf{B})=k\mathbf{A}+k\mathbf{B}.

OA (1, 2)B (3, 1)A + B (4, 3)
Column matrices as vectors: A = (1, 2) and B = (3, 1) add entry by entry to A + B = (4, 3).
  • A±B\mathbf{A}\pm\mathbf{B}add or subtract matching entries (same order only)
  • kAk\mathbf{A}multiply every entry by kk

Worked example

With C=(1234)\mathbf{C}=\begin{pmatrix}1&2\\3&4\end{pmatrix} and D=(0−152)\mathbf{D}=\begin{pmatrix}0&-1\\5&2\end{pmatrix}, find 2C−D2\mathbf{C}-\mathbf{D}.

Can a 2×22\times2 matrix be added to a 2×32\times3 matrix?

Matrix multiplication

Check the orders first, then each entry is a row of A\mathbf{A} times a column of B\mathbf{B}.

AB\mathbf{AB} is defined only when the matrices are conformable: the columns of A\mathbf{A} equal the rows of B\mathbf{B}. If A\mathbf{A} is m×nm\times n and B\mathbf{B} is n×pn\times p, then AB\mathbf{AB} is m×pm\times p.

Entry (i,j)(i,j) of AB\mathbf{AB} is row ii of A\mathbf{A} times column jj of B\mathbf{B}.

Multiplication is associative and distributive, but not commutative: usually AB≠BA\mathbf{AB}\ne\mathbf{BA}, and one may be defined when the other is not.

  1. 1

    Write the orders

    (m×n)(n×p)(m\times n)(n\times p)

  2. 2

    Compare inner numbers

    if they differ, the product is not defined

  3. 3

    Read the outer numbers

    they give the order of the product, m×pm\times p

Can I multiply, and what order is the answer?

Worked example

Find (102−131)(210−143)\begin{pmatrix}1&0&2\\-1&3&1\end{pmatrix}\begin{pmatrix}2&1\\0&-1\\4&3\end{pmatrix}.

A\mathbf{A} is 2×32\times3 and B\mathbf{B} is 3×23\times2. What are the orders of AB\mathbf{AB} and BA\mathbf{BA}?

Zero and identity matrices

The zero matrix plays the role of 00 and the identity matrix plays the role of 11, with one catch for products.

The zero matrix O\mathbf{O} has every entry 00. The identity matrix I\mathbf{I} is square with 11s on the leading diagonal and 00s elsewhere, for example (1001)\begin{pmatrix}1&0\\0&1\end{pmatrix}.

Unlike numbers, AB=O\mathbf{AB}=\mathbf{O} does not mean A=O\mathbf{A}=\mathbf{O} or B=O\mathbf{B}=\mathbf{O}.

O(1, 0)(0, 1)(1, 1)
The identity matrix leaves every point where it is, so the unit square is unchanged. The zero matrix sends every point to O.

Zero matrix O\mathbf{O}

Plays the role of:
00
Addition rule:
A+O=A\mathbf{A}+\mathbf{O}=\mathbf{A} and A−A=O\mathbf{A}-\mathbf{A}=\mathbf{O}
Product rule:
AO=OA=O\mathbf{AO}=\mathbf{OA}=\mathbf{O} (when defined)

Identity matrix I\mathbf{I}

Plays the role of:
11
Addition rule:
AI=IA=A\mathbf{AI}=\mathbf{IA}=\mathbf{A}
Product rule:
for a square A\mathbf{A} of the same order

If AB=O\mathbf{AB}=\mathbf{O}, must A=O\mathbf{A}=\mathbf{O} or B=O\mathbf{B}=\mathbf{O}?

Expressions and powers

Mn\mathbf{M}^n is nn copies multiplied; use I\mathbf{I} and scalar multiples to relate powers to lower ones.

The square of a square matrix is M2=MM\mathbf{M}^2=\mathbf{MM}, and Mn\mathbf{M}^n is nn copies multiplied.

To find constants in an equation like A2+pA+qI=O\mathbf{A}^2+p\mathbf{A}+q\mathbf{I}=\mathbf{O}, work out each term, add, and equate every entry to 00.

If M2\mathbf{M}^2 is written in terms of M\mathbf{M} and I\mathbf{I}, substitute again to reach higher powers.

MM(1, 0)(0, 1)(−1, 0)
M = (0 −1; 1 0) rotates 90° anticlockwise. Applying M twice sends (1, 0) to (−1, 0), so M² = −I.
  • Mn\mathbf{M}^nMM⋯M\mathbf{M}\mathbf{M}\cdots\mathbf{M} (nn copies, square M\mathbf{M})
  • Mn+1\mathbf{M}^{n+1}M Mn\mathbf{M}\,\mathbf{M}^n

Worked example

For M=(2−110)\mathbf{M}=\begin{pmatrix}2&-1\\1&0\end{pmatrix}, write M2\mathbf{M}^2 and M3\mathbf{M}^3 in terms of M\mathbf{M} and I\mathbf{I}.

If A2=3A−2I\mathbf{A}^2=3\mathbf{A}-2\mathbf{I}, what is A3\mathbf{A}^3?

Try an exam question

A=(1203)\mathbf{A}=\begin{pmatrix}1&2\\0&3\end{pmatrix} and B=(2011)\mathbf{B}=\begin{pmatrix}2&0\\1&1\end{pmatrix}. Find AB\mathbf{AB} and BA\mathbf{BA}, and state whether AB=BA\mathbf{AB}=\mathbf{BA}.

[5 marks]

That's the notes covered.

Carry on to the next subtopic.

Try a question

Find CD\mathbf{CD}.

1 mark, marked against the mark scheme

Revision notes