Matri­ces can be added, sub­tracted and mul­ti­plied by num­bers, and these oper­a­tions work entry by entry, just as you would expect. They obey almost all the famil­iar laws of ordi­nary arith­metic, which means you can solve sim­ple matrix equa­tions by the same steps you use for ordi­nary equa­tions. This les­son cov­ers the three oper­a­tions, their laws, and some matrix equa­tions.

Addi­tion

Two matri­ces can be added only if they have the same order. Their sum is found by adding the entries in the same posi­tions:

if A=[aij] and B=[bij] are both m×n, then A+B=[aij+bij]\text{if } A = [a_{ij}] \text{ and } B = [b_{ij}] \text{ are both } m \times n, \text{ then } A + B = [a_{ij} + b_{ij}]

Exam­ple 1

Let A=[2−134]A = \begin{bmatrix} 2 & -1 \\ 3 & 4 \end{bmatrix} and B=[15−20]B = \begin{bmatrix} 1 & 5 \\ -2 & 0 \end{bmatrix}. Find A+BA + B.

A+B=[2+1−1+53+(−2)4+0]=[3414]A + B = \begin{bmatrix} 2 + 1 & -1 + 5 \\ 3 + (-2) & 4 + 0 \end{bmatrix} = \begin{bmatrix} 3 & 4 \\ 1 & 4 \end{bmatrix}

A 2×22 \times 2 matrix and a 2×32 \times 3 matrix can­not be added: some entries would have no part­ner.

Exam­ple 2

A sweet shop in Gun­tur records the kilo­grams of two sweets sold at its two coun­ters. In Jan­u­ary the sales were [1208095110]\begin{bmatrix} 120 & 80 \\ 95 & 110 \end{bmatrix} and in Feb­ru­ary [1009010570]\begin{bmatrix} 100 & 90 \\ 105 & 70 \end{bmatrix} (rows: coun­ters; columns: sweets). Find the total sales for the two months and the change from Feb­ru­ary to Jan­u­ary.

Total=[220170200180],January−February=[20−10−1040]\text{Total} = \begin{bmatrix} 220 & 170 \\ 200 & 180 \end{bmatrix}, \qquad \text{January} - \text{February} = \begin{bmatrix} 20 & -10 \\ -10 & 40 \end{bmatrix}

The first counter sold 2020 kg more of the first sweet in Jan­u­ary but 1010 kg less of the sec­ond.

Scalar mul­ti­pli­ca­tion

In matrix work an ordi­nary num­ber is called a scalar. To mul­ti­ply a matrix by a scalar kk, mul­ti­ply every entry by kk:

kA=[k aij]kA = [k\,a_{ij}]

For exam­ple, 3[1−204]=[3−6012]3\begin{bmatrix} 1 & -2 \\ 0 & 4 \end{bmatrix} = \begin{bmatrix} 3 & -6 \\ 0 & 12 \end{bmatrix}.

The neg­a­tive of AA is −A=(−1)A-A = (-1)A: change the sign of every entry.

Sub­trac­tion

For matri­ces of the same order, A−B=A+(−B)A - B = A + (-B): sub­tract the entries in the same posi­tions.

Exam­ple 3

With AA and BB as in Exam­ple 1, find A−BA - B and 2A−3B2A - 3B.

A−B=[2−1−1−53−(−2)4−0]=[1−654]A - B = \begin{bmatrix} 2 - 1 & -1 - 5 \\ 3 - (-2) & 4 - 0 \end{bmatrix} = \begin{bmatrix} 1 & -6 \\ 5 & 4 \end{bmatrix}

2A−3B=[4−268]−[315−60]=[1−17128]2A - 3B = \begin{bmatrix} 4 & -2 \\ 6 & 8 \end{bmatrix} - \begin{bmatrix} 3 & 15 \\ -6 & 0 \end{bmatrix} = \begin{bmatrix} 1 & -17 \\ 12 & 8 \end{bmatrix}

Laws of addi­tion and scalar mul­ti­pli­ca­tion

For matri­ces AA, BB, CC of the same order and scalars kk, ll:

  1. A+B=B+AA + B = B + A (com­mu­ta­tive law)
  2. (A+B)+C=A+(B+C)(A + B) + C = A + (B + C) (asso­cia­tive law)
  3. A+O=O+A=AA + O = O + A = A, where OO is the zero matrix of the same order (addi­tive iden­tity)
  4. A+(−A)=(−A)+A=OA + (-A) = (-A) + A = O (addi­tive inverse)
  5. k(A+B)=kA+kBk(A + B) = kA + kB
  6. (k+l)A=kA+lA(k + l)A = kA + lA
  7. k(lA)=(kl)Ak(lA) = (kl)A

All of these fol­low at once because they are true for each entry, and each entry is an ordi­nary num­ber.

Solv­ing matrix equa­tions

Because these laws hold, you can rearrange matrix equa­tions just like ordi­nary ones: move a matrix to the other side by sub­tract­ing it, and divide by a scalar by mul­ti­ply­ing by its rec­i­p­ro­cal.

Exam­ple 4

With AA and BB as in Exam­ple 1, find the matrix XX such that 2X+A=B2X + A = B.

2X=B−A=[1−25−(−1)−2−30−4]=[−16−5−4]2X = B - A = \begin{bmatrix} 1 - 2 & 5 - (-1) \\ -2 - 3 & 0 - 4 \end{bmatrix} = \begin{bmatrix} -1 & 6 \\ -5 & -4 \end{bmatrix}

X=12[−16−5−4]=[−123−52−2]\displaystyle X = \frac{1}{2}\begin{bmatrix} -1 & 6 \\ -5 & -4 \end{bmatrix} = \begin{bmatrix} -\frac{1}{2} & 3 \\ -\frac{5}{2} & -2 \end{bmatrix}

Exam­ple 5

Find XX and YY if X+Y=[5209]X + Y = \begin{bmatrix} 5 & 2 \\ 0 & 9 \end{bmatrix} and X−Y=[360−1]X - Y = \begin{bmatrix} 3 & 6 \\ 0 & -1 \end{bmatrix}.

Add the two equa­tions: 2X=[8808]2X = \begin{bmatrix} 8 & 8 \\ 0 & 8 \end{bmatrix}, so X=[4404]X = \begin{bmatrix} 4 & 4 \\ 0 & 4 \end{bmatrix}.

Sub­tract the sec­ond from the first: 2Y=[2−4010]2Y = \begin{bmatrix} 2 & -4 \\ 0 & 10 \end{bmatrix}, so Y=[1−205]Y = \begin{bmatrix} 1 & -2 \\ 0 & 5 \end{bmatrix}.

Exam­ple 6

Let P=[30−1245]P = \begin{bmatrix} 3 & 0 & -1 \\ 2 & 4 & 5 \end{bmatrix} and R=[−1260−31]R = \begin{bmatrix} -1 & 2 & 6 \\ 0 & -3 & 1 \end{bmatrix}. Find 3P−2R3P - 2R.

3P−2R=[90−361215]−[−24120−62]=[11−4−1561813]3P - 2R = \begin{bmatrix} 9 & 0 & -3 \\ 6 & 12 & 15 \end{bmatrix} - \begin{bmatrix} -2 & 4 & 12 \\ 0 & -6 & 2 \end{bmatrix} = \begin{bmatrix} 11 & -4 & -15 \\ 6 & 18 & 13 \end{bmatrix}

Prac­tice

Use A=[1−203]A = \begin{bmatrix} 1 & -2 \\ 0 & 3 \end{bmatrix} and B=[41−25]B = \begin{bmatrix} 4 & 1 \\ -2 & 5 \end{bmatrix} for ques­tions 1 to 5.

  1. Find A+BA + B.
  2. Find 3A3A.
  3. Find 2A−B2A - B.
  4. Find XX if 2X+3A=B2X + 3A = B.
  5. Check that A+B=B+AA + B = B + A.
  6. With PP and RR as in Exam­ple 6, find P+RP + R and P−RP - R.
  7. Find XX and YY if X+Y=[7025]X + Y = \begin{bmatrix} 7 & 0 \\ 2 & 5 \end{bmatrix} and X−Y=[1−403]X - Y = \begin{bmatrix} 1 & -4 \\ 0 & 3 \end{bmatrix}.
  8. Can [12]\begin{bmatrix} 1 & 2 \end{bmatrix} and [12]\begin{bmatrix} 1 \\ 2 \end{bmatrix} be added? Give a rea­son.
  9. Find xx and yy if 2[x31y]+[401−2]=[10638]2\begin{bmatrix} x & 3 \\ 1 & y \end{bmatrix} + \begin{bmatrix} 4 & 0 \\ 1 & -2 \end{bmatrix} = \begin{bmatrix} 10 & 6 \\ 3 & 8 \end{bmatrix}.
  10. A dairy records litres of milk and curd sold by two out­lets on Mon­day as [1504013055]\begin{bmatrix} 150 & 40 \\ 130 & 55 \end{bmatrix}. On Tues­day every quan­tity was 10%10\% higher. Write Tues­day's sales as a scalar mul­ti­ple and work it out.

Answers

Show answers
  1. [5−1−28]\begin{bmatrix} 5 & -1 \\ -2 & 8 \end{bmatrix}.
  2. [3−609]\begin{bmatrix} 3 & -6 \\ 0 & 9 \end{bmatrix}.
  3. [2−406]−[41−25]=[−2−521]\begin{bmatrix} 2 & -4 \\ 0 & 6 \end{bmatrix} - \begin{bmatrix} 4 & 1 \\ -2 & 5 \end{bmatrix} = \begin{bmatrix} -2 & -5 \\ 2 & 1 \end{bmatrix}.
  4. 2X=B−3A=[17−2−4]2X = B - 3A = \begin{bmatrix} 1 & 7 \\ -2 & -4 \end{bmatrix}, so X=[1272−1−2]\displaystyle X = \begin{bmatrix} \frac{1}{2} & \frac{7}{2} \\ -1 & -2 \end{bmatrix}.
  5. Both are [5−1−28]\begin{bmatrix} 5 & -1 \\ -2 & 8 \end{bmatrix}.
  6. P+R=[225216]P + R = \begin{bmatrix} 2 & 2 & 5 \\ 2 & 1 & 6 \end{bmatrix} and P−R=[4−2−7274]P - R = \begin{bmatrix} 4 & -2 & -7 \\ 2 & 7 & 4 \end{bmatrix}.
  7. 2X=[8−428]2X = \begin{bmatrix} 8 & -4 \\ 2 & 8 \end{bmatrix}, so X=[4−214]X = \begin{bmatrix} 4 & -2 \\ 1 & 4 \end{bmatrix}; 2Y=[6422]2Y = \begin{bmatrix} 6 & 4 \\ 2 & 2 \end{bmatrix}, so Y=[3211]Y = \begin{bmatrix} 3 & 2 \\ 1 & 1 \end{bmatrix}.
  8. No. The orders 1×21 \times 2 and 2×12 \times 1 are dif­fer­ent.
  9. 2x+4=102x + 4 = 10 gives x=3x = 3; 2y−2=82y - 2 = 8 gives y=5y = 5. (The other entries agree: 6+0=66 + 0 = 6 and 2+1=32 + 1 = 3.)
  10. 1.1[1504013055]=[1654414360.5]1.1\begin{bmatrix} 150 & 40 \\ 130 & 55 \end{bmatrix} = \begin{bmatrix} 165 & 44 \\ 143 & 60.5 \end{bmatrix}.