Matrices can be added, subtracted and multiplied by numbers, and these operations work entry by entry, just as you would expect. They obey almost all the familiar laws of ordinary arithmetic, which means you can solve simple matrix equations by the same steps you use for ordinary equations. This lesson covers the three operations, their laws, and some matrix equations.
Addition
Two matrices can be added only if they have the same order. Their sum is found by adding the entries in the same positions:
if A=[aij] and B=[bij] are both m×n, then A+B=[aij+bij]
Example 1
Let A=[23−14] and B=[1−250]. Find A+B.
A+B=[2+13+(−2)−1+54+0]=[3144]
A 2×2 matrix and a 2×3 matrix cannot be added: some entries would have no partner.
Example 2
A sweet shop in Guntur records the kilograms of two sweets sold at its two counters. In January the sales were [1209580110] and in February [1001059070] (rows: counters; columns: sweets). Find the total sales for the two months and the change from February to January.
Total=[220200170180],January−February=[20−10−1040]
The first counter sold 20 kg more of the first sweet in January but 10 kg less of the second.
Scalar multiplication
In matrix work an ordinary number is called a scalar. To multiply a matrix by a scalar k, multiply every entry by k:
kA=[kaij]
For example, 3[10−24]=[30−612].
The negative of A is −A=(−1)A: change the sign of every entry.
Subtraction
For matrices of the same order, A−B=A+(−B): subtract the entries in the same positions.
Example 3
With A and B as in Example 1, find A−B and 2A−3B.
A−B=[2−13−(−2)−1−54−0]=[15−64]
2A−3B=[46−28]−[3−6150]=[112−178]
Laws of addition and scalar multiplication
For matrices A, B, C of the same order and scalars k, l:
- A+B=B+A (commutative law)
- (A+B)+C=A+(B+C) (associative law)
- A+O=O+A=A, where O is the zero matrix of the same order (additive identity)
- A+(−A)=(−A)+A=O (additive inverse)
- k(A+B)=kA+kB
- (k+l)A=kA+lA
- k(lA)=(kl)A
All of these follow at once because they are true for each entry, and each entry is an ordinary number.
Solving matrix equations
Because these laws hold, you can rearrange matrix equations just like ordinary ones: move a matrix to the other side by subtracting it, and divide by a scalar by multiplying by its reciprocal.
Example 4
With A and B as in Example 1, find the matrix X such that 2X+A=B.
2X=B−A=[1−2−2−35−(−1)0−4]=[−1−56−4]
X=21[−1−56−4]=[−21−253−2]
Example 5
Find X and Y if X+Y=[5029] and X−Y=[306−1].
Add the two equations: 2X=[8088], so X=[4044].
Subtract the second from the first: 2Y=[20−410], so Y=[10−25].
Example 6
Let P=[3204−15] and R=[−102−361]. Find 3P−2R.
3P−2R=[96012−315]−[−204−6122]=[116−418−1513]
Practice
Use A=[10−23] and B=[4−215] for questions 1 to 5.
- Find A+B.
- Find 3A.
- Find 2A−B.
- Find X if 2X+3A=B.
- Check that A+B=B+A.
- With P and R as in Example 6, find P+R and P−R.
- Find X and Y if X+Y=[7205] and X−Y=[10−43].
- Can [12] and [12] be added? Give a reason.
- Find x and y if 2[x13y]+[410−2]=[10368].
- A dairy records litres of milk and curd sold by two outlets on Monday as [1501304055]. On Tuesday every quantity was 10% higher. Write Tuesday's sales as a scalar multiple and work it out.
Answers
Show answers
- [5−2−18].
- [30−69].
- [20−46]−[4−215]=[−22−51].
- 2X=B−3A=[1−27−4], so X=[21−127−2].
- Both are [5−2−18].
- P+R=[222156] and P−R=[42−27−74].
- 2X=[82−48], so X=[41−24]; 2Y=[6242], so Y=[3121].
- No. The orders 1×2 and 2×1 are different.
- 2x+4=10 gives x=3; 2y−2=8 gives y=5. (The other entries agree: 6+0=6 and 2+1=3.)
- 1.1[1501304055]=[1651434460.5].