If A = [[1, 2], [3, 4]] and B = [[5, 6], [7, 8]], what is A + B?
Correct Answer: [[6, 8], [10, 12]]
- Step 1: Identify the matrices A and B. A = [[1, 2], [3, 4]] and B = [[5, 6], [7, 8]].
- Step 2: Understand that to add two matrices, you add their corresponding elements.
- Step 3: Add the elements in the first row of A to the elements in the first row of B: 1 + 5 and 2 + 6.
- Step 4: Calculate the results: 1 + 5 = 6 and 2 + 6 = 8.
- Step 5: Write the first row of the result: [6, 8].
- Step 6: Now, add the elements in the second row of A to the elements in the second row of B: 3 + 7 and 4 + 8.
- Step 7: Calculate the results: 3 + 7 = 10 and 4 + 8 = 12.
- Step 8: Write the second row of the result: [10, 12].
- Step 9: Combine both rows to get the final result: A + B = [[6, 8], [10, 12]].
- Matrix Addition – The operation of adding two matrices by adding their corresponding elements.