Matrix Product Entry Explained with Worked Examples

The entry in row , column of the product is the sum : row of multiplied term by term with column of . The product exists only when the number of columns of equals the number of rows of .

Write 2x or 2*x to multiply, ^ for powers, and ; between simultaneous equations. You can also type factor, expand, derivative of, integrate … from a to b, limit … as x->0 or 15% of 80.

Try an example

Before you start

This page is easier if you are comfortable with:

What Matrix product entry means

Each entry of the product is a scalar product of a row of the first matrix with a column of the second. An matrix times an matrix gives an matrix.

Matrix multiplication is not commutative: and are usually different, and one may exist when the other does not. This is why the order matters in a composite transformation, in the inverse of a product and in the transpose of a product.

Special cases are worth knowing: multiplying by the identity leaves a matrix unchanged, and the determinant of a product is the product of the determinants. The related trace of a product does not depend on the order.

What is it used for?

Matrix multiplication combines two tables of numbers row by row and column by column. It represents doing one linear operation after another.

How to use matrix product entry

  1. Check that the inner sizes match.
  2. For each entry, run along a row of and down a column of .
  3. Multiply pairs of numbers and add them.
  4. Write the result as an matrix.

Graph

Entry (1, 1) of AB: row 1 of A times column 1 of B1×52×7sum 1900.511.522.533.540510152025Entry (1, 1) of AB: row 1 of A times column 1 of BxyGraph with x from 0 to 4 and y from 0 to 25. Shows bars (3); point 1×5 at (1, 5); point 2×7 at (2, 14); point sum 19 at (3, 19).

The two products 1 × 5 and 2 × 7 add up to the entry 19.

Worked examples

These examples are worked by hand, step by step, so you can compare your own working.

Example 1: a 2 × 2 product

Find for , .

Worked example
Answer
(19224350)\begin{pmatrix}19&22\\43&50\end{pmatrix}
  1. Row 1 times column 1
  2. Row 1 times column 2
  3. Row 2

Example 2: a 2 × 3 matrix times a column

Find the product of and .

Worked example
Answer
(711)\begin{pmatrix}7\\11\end{pmatrix}
  1. Row 1
  2. Row 2

Example 3: order matters

Show that for , .

Worked example
Answer
AB≠BAAB\ne BA
  1. AB
  2. BA

Special cases

A few situations come up again and again. Knowing them saves time and helps you spot answers that cannot be right.

A = (1 2; 3 4), B = (5 6; 7 8)

(AB)₁₁

19.

same

(AB)₁₂

22.

same

(AB)₂₁

43.

same

(AB)₂₂

50.

Word problems

(AB)ᵢⱼ = Σₖ aᵢₖbₖⱼ: row i of A times column j of B. The product exists only if A has as many columns as B has rows.

(AB)₁₁

Row 1 · column 1.

  1. 5 + 14
  2. Check: ✓19

(AB)₁₂

Row 1 · column 2.

  1. 6 + 16
  2. Check: ✓22

(AB)₂₁ Higher

Row 2 · column 1.

  1. 15 + 28
  2. Check: ✓43

(AB)₂₂ Higher

Row 2 · column 2.

  1. 18 + 32
  2. Check: ✓50

Common mistakes

Entry-wise product

a₁₁b₁₁ ✗

row · column ✓

Matrix product.

Column of A

column · row ✗

row of A · column of B ✓

Order.

AB = BA

equal ✗

usually not ✓

Order.

Mismatched sizes

any ✗

columns of A = rows of B ✓

Existence.

Exam tips

  1. Row of A · column of B.
  2. Size (m × n)(n × p) = m × p.
  3. Not commutative.
  4. Check with the identity.
  5. Work entry by entry.

Practice questions

Try each one on paper, then open the answer. Use the solver above to see the full working.

1. (AB)₁₁: A = (2 0; 1 3), B = (1 4; 2 5) Foundation

2

2. (AB)₁₂: same Foundation

8

3. (AB)₂₁: same Foundation

7

4. (AB)₂₂: same Higher

19

5. (BA)₁₁: same Higher

6

6. (BA)₂₂: same Higher

15

Practice generator

Unlimited fresh questions with instant marking. Choose a level, work it out on paper, then type your answer.

Solve: …

Key terms

Matrix product
AB.
Entry
(i, j).
Row
Horizontal line.
Column
Vertical line.
Dot product
Row · column.
Compatible sizes
n columns, n rows.

Frequently asked questions

How do I find an entry of AB?

Multiply row i of A by column j of B and add.

When does AB exist?

When A has as many columns as B has rows.

Is AB = BA?

Usually not.

What size is AB?

rows of A by columns of B.

Which page covers composites?

composite transformation.

Which page covers determinants of products?

determinant of a product.

More in Vectors and matrices and the formula sheets.