Matrix Operations Example
Matrix operations follow precise dimension rules. Addition and subtraction combine corresponding entries, scalar multiplication scales every entry, and matrix multiplication uses row-by-column dot products. This example performs all four operations and verifies one product entry so the dimensions and arithmetic are easy to follow.
Given A and B, find A + B, A − B, 2A, and AB
Use corresponding-entry operations for the first three parts. For AB, multiply each row of A by each column of B; the inner dimensions must match.
| Addition/subtraction condition | Same dimensions |
|---|---|
| Scalar multiplication | Multiply every entry by the scalar |
| Product condition | Columns of A = rows of B |
| Product order | (m × n)(n × p) = m × p |
Step-by-step solution
- 1
Add corresponding entries
Add entries in the same row and column. Both matrices are 2 × 2, so addition is defined.
- 2
Subtract corresponding entries
Subtract each entry of B from the entry in the same position in A.
- 3
Multiply A by the scalar 2
A scalar multiplies every matrix entry independently.
- 4
Check the dimensions for AB
A is 2 × 2 and B is 2 × 2. The inner dimensions agree, so AB exists and has order 2 × 2.
- 5
Compute each row-by-column product
For example, the top-left entry is 1·5 + 2·2 = 9. Repeat with each row and column pair.
ANSWER
A + B, A − B, 2A, and AB
Addition, subtraction, and scalar multiplication are entrywise. Matrix multiplication is different: it combines rows of the first matrix with columns of the second.
Verify a product entry
The bottom-left product entry uses the second row of A and first column of B. This row-by-column check confirms the value 23.