Skip to main content
Matrices and transformations
Lesson 6 of 75
Introduction

Matrix operations

Objective. Combine compatible matrices and interpret dimensions.

  1. 1. Learn
  2. 2. Worked example
  3. 3. Practice
  4. 4. Feedback
  5. 5. Continue

Learn: the key idea

A matrix is a rectangular array of numbers, and operations on matrices are only defined when their dimensions are compatible. Matrices of the same dimensions are added or subtracted entry by entry, while matrix multiplication AB is defined only when the number of columns of A equals the number of rows of B, with entries formed from dot products of rows and columns. For example, a 2×3 matrix can multiply a 3×2 matrix to give a 2×2 result. Matrix multiplication is generally not commutative, so AB ≠ BA in general, which must always be checked rather than assumed.

Worked example

Given matrices A = [[2,1],[0,3]] and B = [[1,4],[2,−1]], find the matrix product AB.

Given matrices A = [[2
Illustrated card showing Given matrices A = [[2
  1. 1Top-left entry: (2×1) + (1×2) = 2 + 2 = 4
  2. 2Top-right entry: (2×4) + (1×−1) = 8 − 1 = 7
  3. 3Bottom-left entry: (0×1) + (3×2) = 0 + 6 = 6
  4. 4Bottom-right entry: (0×4) + (3×−1) = 0 − 3 = −3

Answer: AB = [[4,7],[6,−3]]

Concept mastery

Based on your past attempts at this lesson — the question types to practise again come first.

Complete a practice set to see your concept breakdown here.

Practice

Practice happens on its own screen, one question at a time. Answers stay hidden until you submit yours, and you can stop and pick up at the same question later.

Start practising

Common mistake. Students multiply matrices entry-by-entry like addition, e.g. computing [[1,2],[3,4]]×[[5,6],[7,8]] as [[5,12],[21,32]] instead of using row-by-column multiplication. Always form each entry as a sum of row-times-column products.

Your progress

Tick each step as you finish it. Your exact reading position is saved automatically, so Continue drops you back on the same line.

0 of 5 steps complete

Your place saves automatically as you read.

My dashboard