Matrices can be multiplied if the number of columns in the first matrix is the same as the number of rows in the second matrix.
⎣⎢⎢⎡a11⋮am1⋯⋱⋯a1n⋮amn⎦⎥⎥⎤⋅⎣⎢⎢⎡b11⋮bn1⋯⋱⋯b1p⋮bnp⎦⎥⎥⎤=⎣⎢⎢⎡c11⋮cm1⋯⋱⋯c1p⋮cmp⎦⎥⎥⎤
cij=ai1b1j+ai2b2j+⋯+ainbnj Click on the elements of the product matrix below to see the illustration of how to find the product of a 4×2 and a 2×3 matrix.
When manual calculation is needed, rearranging the matrices on the paper can help remembering how to work out the elements.