Multiplying matrices and its properties

About this lesson

Precalculus › Matrices

To save a PDF, choose “Save as PDF” in the print dialog.

Multiplying matrices and its properties

Matrices. matrices, matrix multiplication, determinant, inverse matrix, vectors, transformations

Warm-up

Three quick questions from earlier lessons.

Discover

To multiply a row (2, 3) by a column (4, 5), you compute 2 · 4 + 3 · 5. What is it?

  1. 23
  2. (8, 15)

Key idea

Each entry of AB is a row of A times a column of B.

If AA is m×nm \times n and BB is n×pn \times p, then ABAB is m×pm \times p: the entry in row ii, column jj is row ii of AA times column jj of BB (multiply pairs, then add). The inner sizes must match. Matrix multiplication is associative and distributes over addition, but in general AB≠BAAB \ne BA.

Worked example

Compute the top-left entry of (1234)(5678)\begin{pmatrix} 1 & 2 \\ 3 & 4 \end{pmatrix}\begin{pmatrix} 5 & 6 \\ 7 & 8 \end{pmatrix}.

(1, 2) and (5, 7)
Row 1 of A, column 1 of B.
1 · 5 + 2 · 7 = 19
Multiply and add.

Your turn, guided

Your turn: the top-right entry of the same product.

2222
1 · 6 + 2 · 8.

Practice ★

  1. Let A = (423−2)\begin{pmatrix} 4 & 2 \\ 3 & -2 \end{pmatrix} and B = (7954)\begin{pmatrix} 7 & 9 \\ 5 & 4 \end{pmatrix}. What is the entry in row 1, column 1 of AB?
  2. Let A = (−2−45−4)\begin{pmatrix} -2 & -4 \\ 5 & -4 \end{pmatrix} and B = (47−5−1)\begin{pmatrix} 4 & 7 \\ -5 & -1 \end{pmatrix}. What is the entry in row 1, column 1 of AB?
  1. A is a 2 × 5 matrix and B is a 5 × 8 matrix. What are the dimensions of AB?
    1. 2 × 8
    2. 5 × 5
    3. AB is not defined

Watch out!

Practice ★★

  1. Let A = (8884)\begin{pmatrix} 8 & 8 \\ 8 & 4 \end{pmatrix} and B = (2332)\begin{pmatrix} 2 & 3 \\ 3 & 2 \end{pmatrix}. What is the entry in row 2, column 1 of AB?
  2. Let A = (182−2)\begin{pmatrix} 1 & 8 \\ 2 & -2 \end{pmatrix} and B = (2−556)\begin{pmatrix} 2 & -5 \\ 5 & 6 \end{pmatrix}. What is the entry in row 2, column 1 of AB?
  1. Boss problem. A stand sells pens and notebooks. The sales matrix S = (9537)\begin{pmatrix} 9 & 5 \\ 3 & 7 \end{pmatrix} has rows Monday, Tuesday and columns pens, notebooks. The price vector is p = (36)\begin{pmatrix} 3 \\ 6 \end{pmatrix} (dollars). The product Sp gives each day's income.

Exit ticket

Three questions to check you have got it.

  1. Let A = (423−2)\begin{pmatrix} 4 & 2 \\ 3 & -2 \end{pmatrix} and B = (7954)\begin{pmatrix} 7 & 9 \\ 5 & 4 \end{pmatrix}. What is the entry in row 1, column 1 of AB?
  2. Let A = (−2−45−4)\begin{pmatrix} -2 & -4 \\ 5 & -4 \end{pmatrix} and B = (47−5−1)\begin{pmatrix} 4 & 7 \\ -5 & -1 \end{pmatrix}. What is the entry in row 1, column 1 of AB?
  3. Let A = (5804)\begin{pmatrix} 5 & 8 \\ 0 & 4 \end{pmatrix} and B = (41−23)\begin{pmatrix} 4 & 1 \\ -2 & 3 \end{pmatrix}. What is the entry in row 1, column 1 of AB?

Summary card

Multiplying matrices

(m × n)(n × p) = m × p; entry = row · column.

Watch out: AB is usually not BA.

CC BY-SA 4.0