3×3 Matrix Multiplication Calculator

·

Solution comments
Without description (answer only)

a

b

c

d

x

y

z

AC

i

ab
x2
xn

Randomize

Number format
3131313131351515151515≈52188552198585858586
Round to
Digits after decimal point
10
=Solve

  How to multiply two 3×3 matrices

The product of two 3×3 matrices A and B is a 3×3 matrix C. The entry in row i and column j of C is the dot product of row i of A with column j of B:

cᵢⱼ = aᵢ₁·b₁ⱼ + aᵢ₂·b₂ⱼ + aᵢ₃·b₃ⱼ

There are nine entries and each needs three multiplications and two additions, so a full 3×3 product is 27 multiplications and 18 additions. The work is simple but easy to get wrong by one slip, which is why it helps to see every entry written out.

  Worked example

Let A have rows (1, 0, 2), (−1, 3, 1) and (2, 1, 0). Let B have rows (3, 1, 0), (2, 1, 4) and (1, 0, 2). The columns of B are (3, 2, 1), (1, 1, 0) and (0, 4, 2).

First row of the product: 1·3 + 0·2 + 2·1 = 5, then 1·1 + 0·1 + 2·0 = 1, then 1·0 + 0·4 + 2·2 = 4.

Second row: −1·3 + 3·2 + 1·1 = 4, then −1·1 + 3·1 + 1·0 = 2, then −1·0 + 3·4 + 1·2 = 14.

Third row: 2·3 + 1·2 + 0·1 = 8, then 2·1 + 1·1 + 0·0 = 3, then 2·0 + 1·4 + 0·2 = 4.

The product AB has rows (5, 1, 4), (4, 2, 14) and (8, 3, 4).

  Tips for multiplying by hand

Work one row of the result at a time: keep a finger on one row of A and move across the columns of B. Zeros save work, since any term with a zero factor can be skipped.

Remember that AB and BA are usually different, so keep the matrices in the order the problem gives them. Multiplication is still associative, (AB)C = A(BC), and it distributes over addition.

The calculator above is set to two 3×3 matrices and writes out all nine dot products. Entries can be integers, decimals, fractions, complex numbers or variables.

  3×3 matrix multiplication worked example

Write the initial matrix
A
:
A
=
1
-1
2
0
3
1
2
1
0
Write the initial matrix
B
:
B
=
3
2
1
1
1
0
0
4
2
The result of multiplying two matrices (
A
and
B
) will be a matrix (
C
) with the same number of rows as in matrix
A
and with the same number of columns as in matrix
B
;
Write the initial matrix
C
and mark the elements that we need to find as unknown:
C
=
×××
×××
×××
To find all the elements of the matrix
C
, need to calculate all possible combinations of scalar products of row-vectors of matrix
A
by column-vectors of matrix
B
;
To find an element of the matrix
C
with indices
i
and
j
, need to multiply each element of the
i
-th row of the matrix
A
by the corresponding element of the
j
-th column of the matrix
B
and add the resulting products;
c
0
i,j
=
m
k
= 1
a
0
i,k
·
b
0
k,j
// where
i
i is the row number;
j
j is the column number;
a
a is an element of matrix A;
b
b is an element of matrix B;
c
c is an element of matrix C;
k
k is a variable counter, which for each element c_{i,j} will start with a value of 1, increase by 1 at each iteration, and end at a value of m;
m
m is the number of columns of the matrix A or the number of rows of the matrix B;
C
=
A
·
B
=
1
-1
2
0
3
1
2
1
0
·
3
2
1
1
1
0
0
4
2
=
5
4
8
1
2
3
4
14
4
Answer
c = a · b
5
4
8
1
2
3
4
14
4
SIZE3×3OPS45

  Calculators by size and method

  Sources