Cookmath

Matrix multiplication

For A of size m×n and B of size n×p, AB has size m×p. Each entry is a row-column dot product. Each column of AB is also a linear combination of the columns of A.

What you will learn

Dimensions before arithmetic

Nine row-column calculations

Read the same product by columns

Why order matters

Fill in the reasoning

Objective 1: Check dimensions

Objective 2: Compute row-column products

Objective 3: Explain why AB can differ from BA

A common mistake

AB usually differs from BA; this does not mean they can never be equal. Dimensions must be checked before either product.

Review first

Continue learning

Matrix operations and inverses · Inverse matrices and solving Ax=b

Interactive diagnosis and practice load in the learning app. You can read these lesson notes without JavaScript.