1.14 Matrices

1.14 Matrices

IB Maths: Applications and Interpretation HL: Revision notes

Studying this course? Keep your progress in one place.

Key facts

  • A matrix has order m×nm\times n (rows first). Add and subtract only matrices of the same order.
  • ABAB exists only if columns of AA = rows of BB. Multiplication is not commutative: usually AB≠BAAB\neq BA.
  • The identity satisfies AI=IA=AAI=IA=A.
  • det⁡(abcd)=ad−bc\det\begin{pmatrix}a&b\\c&d\end{pmatrix}=ad-bc; the inverse exists only if det⁡≠0\det\neq0.
  • A system Ax=bA\mathbf x=\mathbf b has solution x=A−1b\mathbf x=A^{-1}\mathbf b (multiply on the left).
  • A−1A^{-1}1ad−bc(d−b−ca)\dfrac{1}{ad-bc}\begin{pmatrix}d&-b\\-c&a\end{pmatrix}
  • Ax=bA\mathbf x=\mathbf bx=A−1b\mathbf x=A^{-1}\mathbf b

Order and matrix algebra

Matrices of the same order are added element by element, and a scalar multiplies every element.

A matrix is a rectangular array with mm rows and nn columns, so its order is m×nm\times n. Each number is an element; aija_{ij} is in row ii, column jj.

  • Equal matrices have the same order and equal elements.
  • Add or subtract only matrices of the same order.
  • Scalar multiplication multiplies every element.

The GDC handles large matrices quickly.

  1. 1

    Check the orders match

    for addition and subtraction

  2. 2

    Add or subtract matching elements

  3. 3

    Scalar multiple

    multiply every element by the scalar

Adding and scaling matrices.

Defined when

  • Same order
  • Always
  • Any order

Operation

  • Addition and subtraction
  • Scalar multiplication
  • Equality

Worked example

Given A=(1−204)A=\begin{pmatrix}1&-2\\0&4\end{pmatrix} and B=(21−10)B=\begin{pmatrix}2&1\\-1&0\end{pmatrix}, find 3A+B3A+B.

Which pair can be added?

Matrix multiplication

ABAB exists only when the columns of AA equal the rows of BB, and the order of ABAB is rows of AA by columns of BB.

If AA is m×nm\times n and BB is n×pn\times p then ABAB is m×pm\times p. Each element is a row of AA times a column of BB.

  • Associative: A(BC)=(AB)CA(BC)=(AB)C.
  • Distributive: A(B+C)=AB+ACA(B+C)=AB+AC.
  • Not commutative: usually AB≠BAAB\neq BA.

The identity matrix II (ones on the diagonal) has AI=IA=AAI=IA=A; the zero matrix has A0=0A0=0.

  1. 1

    Check the orders

    columns of A must equal rows of B

  2. 2

    Predict the order of AB

    rows of A by columns of B

  3. 3

    Each element

    row of A times column of B, then add

Multiplying matrices.
  • m×nm\times n times n×pn\times pm×pm\times p

Worked example

Given A=(2134)A=\begin{pmatrix}2&1\\3&4\end{pmatrix} and B=(10−12)B=\begin{pmatrix}1&0\\-1&2\end{pmatrix}, find ABAB and BABA.

AA is 2×32\times3 and BB is 3×43\times4. What is the order of ABAB?

Determinants and inverses

The inverse of a 2×22\times2 matrix swaps the diagonal, changes the other two signs and divides by the determinant.

For A=(abcd)A=\begin{pmatrix}a&b\\c&d\end{pmatrix} the determinant is det⁡A=ad−bc\det A=ad-bc. If det⁡A≠0\det A\neq0:

A−1=1ad−bc(d−b−ca),AA−1=A−1A=I.A^{-1}=\frac{1}{ad-bc}\begin{pmatrix}d&-b\\-c&a\end{pmatrix},\qquad AA^{-1}=A^{-1}A=I.

If det⁡A=0\det A=0 the matrix is singular and has no inverse. For 3×33\times3 and larger, use the GDC.

  1. 1

    Find the determinant, ad − bc

  2. 2

    If it is 0, stop

    the matrix is singular

  3. 3

    Swap a and d; change the signs of b and c

  4. 4

    Divide every element by the determinant

Finding the inverse of a 2 × 2 matrix.
  • det⁡A\det Aad−bcad-bc
  • det⁡A=0\det A=0no inverse (singular)

Worked example

Find the inverse of A=(2134)A=\begin{pmatrix}2&1\\3&4\end{pmatrix}.

For which value of kk is (2k46)\begin{pmatrix}2&k\\4&6\end{pmatrix} singular?

Systems and modelling

Write the system as Ax=bA\mathbf x=\mathbf b and multiply on the left by A−1A^{-1}.

A system of linear equations is Ax=bA\mathbf x=\mathbf b, with coefficients in AA, unknowns in x\mathbf x and right-hand sides in b\mathbf b. If AA is invertible,

x=A−1b.\mathbf x=A^{-1}\mathbf b.

Multiply on the left. The same works for 3×33\times3 systems with technology.

Matrices also store data: quantities times prices gives costs; a coding matrix KK encodes message vectors and K−1K^{-1} decodes them. Always state what each row and column represents.

  1. 1

    Write Ax=bA\mathbf x=\mathbf b

    Coefficients, unknowns, constants

  2. 2

    Check det⁡A≠0\det A\neq0

    So the inverse exists

  3. 3

    Find A−1A^{-1}

    By formula or GDC

  4. 4

    Multiply on the left

    x=A−1b\mathbf x=A^{-1}\mathbf b

Solving a system with an inverse

Worked example

A small and large drink cost ss and ll. 3s+2l=13.93s+2l=13.9 and 2s+5l=212s+5l=21. Find ss and ll.

Which is correct for Ax=bA\mathbf x=\mathbf b?

Try an exam question

Solve the simultaneous equations 2x+y=72x+y=7 and 3x+4y=183x+4y=18 using a matrix inverse.

[4 marks]

That's the notes covered.

Carry on to the next subtopic.

Try a question

Find ABAB.

1 mark, marked against the mark scheme

Revision notes