Enter the values of the matrices and click submit to get the result.
Matrix multiplication is a fundamental operation in linear algebra that combines two matrices to produce a third matrix. Unlike scalar multiplication, matrix multiplication is not element-wise; instead, it involves a systematic combination of rows and columns.
This operation is essential for representing compositions of linear transformations, solving systems of equations, and modeling complex relationships in science, engineering, and computer graphics.
Given two matrices A (m×n) and B (n×p), their product C = AB is an (m×p) matrix where each element is:
C[i,j] = Σ(k=1 to n) A[i,k] × B[k,j]
In other words, element C[i,j] is computed by taking the dot product of the i-th row of matrix A and the j-th column of matrix B.
Dimension Compatibility: For AB to be defined, columns in A must equal rows in B.
Matrix multiplication has several important properties:
Matrix multiplication represents composition of linear transformations:
Standard algorithm for n×n matrices: O(n³) operations.
Optimizations:
Tips: Always check dimensions first: (m×n) × (n×p) → (m×p)