This example demonstrates matrix multiplication, which is more involved than addition. Unlike addition, multiplication requires a dot-product process across rows and columns, and the order of multiplication matters (AB ≠ BA in general).
Problem: Multiply matrix A by matrix B where A = [[1, 2], [3, 4]] and B = [[5, 6], [7, 8]].
Step 1: Check dimensions. A is 2×2 and B is 2×2. The number of columns in A (2) equals the number of rows in B (2), so multiplication is defined. The result will be a 2×2 matrix.
Step 2: Find the entry in row 1, column 1. Multiply each element of row 1 of A by the corresponding element of column 1 of B, then add.
(1)(5)+(2)(7)=5+14=19 Step 3: Find the entry in row 1, column 2.
(1)(6)+(2)(8)=6+16=22 Step 4: Find the entries in row 2 using the same method.
(3)(5)+(4)(7)=43,(3)(6)+(4)(8)=50 Step 5: Write the resulting matrix.
AB=[19432250] Answer: AB = [[19, 22], [43, 50]]