Addition and Subtraction of Matrices: Rules & Examples
Matrices are added and subtracted entry by entry: to compute A + B, you add the entry in row i, column j of A to the entry in the same position of B. The result C has c_ij = a_ij + b_ij, and subtraction works the same way with minus signs.
This matters because matrices store real data — monthly sales, pixel brightnesses, forces in a structure — and adding two tables combines the data. The catch that every student must internalise is the order rule: you can only add or subtract matrices of the same order. A 2 × 3 matrix and a 3 × 2 matrix cannot be added, no matter what numbers they hold.
Key Concepts
- Same-order rule: A + B and A − B exist only if A and B are both m × n. The result is also m × n.
- Entry-wise operation: (A + B)_ij = a_ij + b_ij; (A − B)_ij = a_ij − b_ij.
- Zero matrix: A + O = A, just like adding zero to a number.
- Properties: addition is commutative (A + B = B + A) and associative ((A + B) + C = A + (B + C)), exactly like ordinary addition.
How It Works
To add or subtract two matrices:
- Check the orders: count rows and columns of both matrices. If they differ, stop — the operation is undefined.
- Line up positions: the (1,1) entries combine, the (1,2) entries combine, and so on through every row and column.
- Add or subtract each pair: compute a_ij + b_ij (or minus) for every position.
- Write the result: place each answer in its position to form the new m × n matrix.
Worked Example
Compute A + B and A − B for A = [[3, −1], [0, 4]] and B = [[2, 5], [−3, 1]].
- Orders: both are 2 × 2, so both operations are defined.
- A + B: (1,1): 3 + 2 = 5; (1,2): −1 + 5 = 4; (2,1): 0 + (−3) = −3; (2,2): 4 + 1 = 5. So A + B = [[5, 4], [−3, 5]].
- A − B: (1,1): 3 − 2 = 1; (1,2): −1 − 5 = −6; (2,1): 0 − (−3) = 3; (2,2): 4 − 1 = 3. So A − B = [[1, −6], [3, 3]].
- Verify with the negative: −B = [[−2, −5], [3, −1]], and A + (−B) = [[3−2, −1−5], [0+3, 4−1]] = [[1, −6], [3, 3]]. Matches A − B. Correct.
Common Misconceptions
- "I can add a 2 × 3 and a 3 × 2 matrix since both have 6 entries." No — the shapes must match exactly, rows and columns. Six entries in different shapes cannot line up.
- "Matrix addition works like multiplication — rows times columns." That confusion is common; addition is purely entry-by-entry, with no row-column combining at all.
- "A − B = B − A." False — subtraction is not commutative. From the example, B − A = [[−1, 6], [−3, −3]] = −(A − B).
Real-World Applications
- Image editing: brightening a photo adds a constant matrix to the pixel matrix; blending two images averages their matrices entry by entry.
- Accounting: monthly expense tables for two branches are added to get the company total, month by month and category by category.
- Physics: combining force or stress tensors at a point is matrix addition of their component tables.
Matrix addition and subtraction combine matching entries of same-order matrices. The single rule to never break is the order rule: same shape or no operation.
Related blogs
- Matrix Order and Types: Complete Guide with Examples
- Equality of Matrices: Concepts, Formulas and Examples
- Scalar Multiplication of Matrices: Rules and Examples
- Matrix Multiplication: Rules and Examples Made Simple
- Transpose of a Matrix: Definition, Properties, Examples
- Symmetric and Skew-Symmetric Matrices Explained with