Matrices & determinants · Lesson 1 of 2

Adding and multiplying matrices

The order of a matrix, equal matrices, adding, subtracting and multiplying by a number, multiplying two matrices row by column, the identity matrix, and finding unknown entries.

15 minYou should already know: Linear & simultaneous equations
  1. 1
  2. 2

A matrix is a rectangle of numbers in brackets. Its order is (number of rows) × (number of columns): a matrix with 2 rows and 3 columns is a 2×32 \times 3 matrix. Two matrices are equal only if they have the same order and every entry matches, so equal matrices give an equation for each entry.

1402−35row 1row 2columns1232 rows × 3 columns
OrderRows first, then columns: this is 2 × 3

Adding, subtracting and multiplying by a number

Matrices of the same order are added or subtracted entry by entry. To multiply a matrix by a number, multiply every entry by it.

3(120−1)−(2513)=(3−26−50−1−3−3)=(11−1−6)3\begin{pmatrix} 1 & 2 \\ 0 & -1 \end{pmatrix} - \begin{pmatrix} 2 & 5 \\ 1 & 3 \end{pmatrix} = \begin{pmatrix} 3 - 2 & 6 - 5 \\ 0 - 1 & -3 - 3 \end{pmatrix} = \begin{pmatrix} 1 & 1 \\ -1 & -6 \end{pmatrix}

Multiplying two matrices

To multiply two matrices, each entry of the answer comes from a row of the first matrix and a column of the second: multiply them in pairs and add. The entry in row 1, column 2 uses row 1 of the first and column 2 of the second.

This only works when the first matrix has as many columns as the second has rows. A 2×22 \times 2 matrix times a 2×12 \times 1 matrix gives a 2×12 \times 1 answer.

abcdpqrs=•• = ap + br
Row times columnRow 1 of the first times column 1 of the second gives the top-left entry

Try it

Multiplying matricesTap an entry of the answer
2135
×
1420
=
2, 1row 1 of the first1, 2column 1 of the second2 × 1 + 1 × 2 = 4entry in row 1, column 1
The entry in row 1, column 1 uses row 1 of the first matrix and column 1 of the second: multiply them in pairs and add, 2 × 1 + 1 × 2 = 4. The first matrix needs as many columns as the second has rows.

Tap each entry of the answer and watch which row and column light up. Then switch on “Your turn” and work the entries out yourself.

The identity matrix and powers

The identity matrix I=(1001)I = \begin{pmatrix} 1 & 0 \\ 0 & 1 \end{pmatrix} acts like the number 1: AI=IA=AAI = IA = A. A power such as P2P^2 means P×PP \times P, worked out by row times column, not by squaring each entry.

Finding unknown entries

When a product with unknowns equals a given matrix, work out the product in terms of the unknowns, then match entries: each entry gives an equation.

Worked example · WAEC 2017

WAEC 2017 · Paper 2 · Q12 (a)

If (3x254)(3−252y)=(2843522)\begin{pmatrix} 3x & 2 \\ 5 & 4 \end{pmatrix}\begin{pmatrix} 3 & -2 \\ 5 & 2y \end{pmatrix} = \begin{pmatrix} 28 & 4 \\ 35 & 22 \end{pmatrix}, find the values of xx and yy.

  1. Multiply out

    (3x254)(3−252y)=(9x+10−6x+4y35−10+8y)\begin{pmatrix} 3x & 2 \\ 5 & 4 \end{pmatrix}\begin{pmatrix} 3 & -2 \\ 5 & 2y \end{pmatrix} = \begin{pmatrix} 9x + 10 & -6x + 4y \\ 35 & -10 + 8y \end{pmatrix}.

    Think first. Work out each entry of the product, row by column, keeping x and y as letters.

  2. Match the top-left entry

    9x+10=289x + 10 = 28, so 9x=189x = 18 and x=2x = 2.

    Think first. Which entry has only x in it?

  3. Match the bottom-right entry

    −10+8y=22-10 + 8y = 22, so 8y=328y = 32 and y=4y = 4.

    Think first. Which entry has only y in it?

  4. Check with another entry

    −6(2)+4(4)=−12+16=4-6(2) + 4(4) = -12 + 16 = 4 ✓.

    Think first. Does the top-right entry agree?

Your turn

WAEC 2017 · Paper 2 · Q12 (b)

  1. (b)

    Given that M=(1243)M = \begin{pmatrix} 1 & 2 \\ 4 & 3 \end{pmatrix}, N=(mxny)N = \begin{pmatrix} m & x \\ n & y \end{pmatrix} and MN=(2134)MN = \begin{pmatrix} 2 & 1 \\ 3 & 4 \end{pmatrix}, find the matrix NN.

    Show the answer

    N=(0110)N = \begin{pmatrix} 0 & 1 \\ 1 & 0 \end{pmatrix}

Worked solution (try it first)

(b)

  1. Multiply row by column: MN=(m+2nx+2y4m+3n4x+3y)MN = \begin{pmatrix} m + 2n & x + 2y \\ 4m + 3n & 4x + 3y \end{pmatrix}.
  2. Match each entry with (2134)\begin{pmatrix} 2 & 1 \\ 3 & 4 \end{pmatrix}.
  3. The first column gives m+2n=2m + 2n = 2 and 4m+3n=34m + 3n = 3.
  4. Take 4 times the first from the second: −5n=−5-5n = -5, so n=1n = 1 and then m=0m = 0.
  5. The second column gives x+2y=1x + 2y = 1 and 4x+3y=44x + 3y = 4.
  6. In the same way, −5y=0-5y = 0, so y=0y = 0 and then x=1x = 1.
  7. So N=(0110)N = \begin{pmatrix} 0 & 1 \\ 1 & 0 \end{pmatrix}.
  8. Check: (1243)(0110)=(2134)\begin{pmatrix} 1 & 2 \\ 4 & 3 \end{pmatrix}\begin{pmatrix} 0 & 1 \\ 1 & 0 \end{pmatrix} = \begin{pmatrix} 2 & 1 \\ 3 & 4 \end{pmatrix} ✓.

Report a problem with this question

More past questions like this