Put A as 1, 2 / 3, 4 and B as 5, 6 / 7, 8 into the matrix calculator: the A × B row reads 19 22 43 50, because 1·5 + 2·7 = 19 and 3·5 + 4·7 = 43 and so on. Swap the operands — B first, A second — and the same row reads 23 34 31 46. Same four numbers in, different matrix out: multiplication of matrices is not commutative, and these are the smallest entries that show it.
What does survive is worth knowing. Both products have determinant 4, which is det(A)·det(B) = (−2)(−2), and both have trace 69: 19 + 50 = 23 + 46. So AB ≠ BA while det(AB) = det(BA) and tr(AB) = tr(BA) — the two invariants textbooks use to check that a student has multiplied in some order at all. The workbench links below do those two checks in one line each.
Answer
19 22 43 50
How to read it
The A × B row on the matrix calculator for A = 1, 2 / 3, 4 and B = 5, 6 / 7, 8. The second link loads the same pair in the other order; the third is the determinant of the first product.
Source
Matrix multiplication is not commutative; for A = [[1,2],[3,4]] and B = [[5,6],[7,8]], AB ≠ BA while det(AB) = det(BA) = det(A)det(B) = 4 and tr(AB) = tr(BA) = 69
Work it in the calculator
These links open the right calculator with this problem's numbers already typed in. The line above is what the screen should show — check it yourself.