Computer Science I / Matrices and Matrix Operations
Practice question · Put in order

Order the steps to compute entry (2,1) of AB, where A has rows (1,2),(3,4) and B has rows (5,6),(7,8).

Hints
  1. Entry (i, j) pairs row i of the left matrix with column j of the right.
  2. Multiply matching components and sum.
Show the answer
  1. Take row 2 of A: (3, 4)
  2. Take column 1 of B: (5, 7)
  3. Form the dot product 3*5 + 4*7
  4. Get 15 + 28 = 43
Why

Entry (2,1) uses A's row 2 and B's column 1: (3,4) dot (5,7) = 15 + 28 = 43. The row index picks the left row, the column index picks the right column.

Read the lesson: Matrices and Matrix Operations →

Practise Matrices and Matrix Operations

The app has 4 more questions on this lesson, and keeps your place in the course. Computer Science I is free to start.

More questions on Matrices and Matrix Operations