Linear Algebra

Matrix Multiplication

Multiply matrices A·B.

Formula

Formula
Cij = Σk Aik Bkj

Variables

SymbolDefinitionType & rangeUnitsRole
A m×n matrix real matrix input
B n×p matrix real matrix input

Try it yourself

Interactive calculator
rows separated by ';' , values by commas
rows separated by ';' , values by commas
Result

Worked examples

Example 1
GivenA = 1, 2; 3, 4, B = 5, 6; 7, 8
Result
1922
4350
Example 2
GivenA = 1, 0; 0, 1, B = 9, 8; 7, 6
Result
98
76