Class 12 Maths, Worked in Full Past papersGet updates
Chapter 3 · Matrices

Exercise 3.2 · Q1: Find A+BA+B⁠, A−BA-B⁠, 3A−C3A-C⁠, ABAB⁠, BABA

Exercise 3.2Addition and multiplication of matrices · Sections 3.4.1 to 3.4.5
The question

Let

A=[2432],B=[13−25],A=\begin{bmatrix}2&4\\3&2\end{bmatrix},\quad B=\begin{bmatrix}1&3\\-2&5\end{bmatrix}, C=[−2534].C=\begin{bmatrix}-2&5\\3&4\end{bmatrix}.

Find each of the following:
(i) A+BA+B   (ii) A−BA-B   (iii) 3A−C3A-C   (iv) ABAB   (v) BABA

Exam answer

(i) Adding corresponding entries,

A+B=[2+14+33−22+5]=[3717]\begin{aligned} A + B &= \begin{bmatrix} 2+1 & 4+3 \\ 3-2 & 2+5 \end{bmatrix} \\ &= \begin{bmatrix} 3 & 7 \\ 1 & 7 \end{bmatrix} \end{aligned}

(ii) Subtracting corresponding entries,

A−B=[2−14−33+22−5]=[115−3]\begin{aligned} A - B &= \begin{bmatrix} 2-1 & 4-3 \\ 3+2 & 2-5 \end{bmatrix} \\ &= \begin{bmatrix} 1 & 1 \\ 5 & -3 \end{bmatrix} \end{aligned}

(iii)

3A−C=[61296]−[−2534]=[6+212−59−36−4]=[8762]\begin{aligned} 3A - C &= \begin{bmatrix} 6 & 12 \\ 9 & 6 \end{bmatrix} - \begin{bmatrix} -2 & 5 \\ 3 & 4 \end{bmatrix} \\ &= \begin{bmatrix} 6+2 & 12-5 \\ 9-3 & 6-4 \end{bmatrix} \\ &= \begin{bmatrix} 8 & 7 \\ 6 & 2 \end{bmatrix} \end{aligned}

(iv) Multiplying row by column,

AB=[2432][13−25]=[2−86+203−49+10]=[−626−119]\begin{aligned} AB &= \begin{bmatrix} 2 & 4 \\ 3 & 2 \end{bmatrix}\begin{bmatrix} 1 & 3 \\ -2 & 5 \end{bmatrix} \\ &= \begin{bmatrix} 2-8 & 6+20 \\ 3-4 & 9+10 \end{bmatrix} \\ &= \begin{bmatrix} -6 & 26 \\ -1 & 19 \end{bmatrix} \end{aligned}

(v)

BA=[13−25][2432]=[2+94+6−4+15−8+10]\begin{aligned} BA &= \begin{bmatrix} 1 & 3 \\ -2 & 5 \end{bmatrix}\begin{bmatrix} 2 & 4 \\ 3 & 2 \end{bmatrix} \\ &= \begin{bmatrix} 2+9 & 4+6 \\ -4+15 & -8+10 \end{bmatrix} \end{aligned}

∴ BA=[1110112]\therefore\ BA = \begin{bmatrix} 11 & 10 \\ 11 & 2 \end{bmatrix}

Want the reason behind every step, the basics and the checks?

The one idea this problem is built on

Adding, subtracting and multiplying by a number all work entry by entry: the entry in a given position of the answer uses only the entries in that same position. Multiplying two matrices is different: the entry in row ii⁠, column kk of ABAB comes from row ii of AA paired with column kk of BB: multiply the pairs and add. Because rows and columns play different roles, ABAB and BABA usually come out different, and here they do.

Given, to find, and the plan
Given
Three matrices AA⁠, BB⁠, CC⁠, each with 2 rows and 2 columns (order 2×22\times2⁠).
To find
The five matrices A+BA+B⁠, A−BA-B⁠, 3A−C3A-C⁠, ABAB and BABA⁠.
Plan
(1) Record the orders and check each operation is defined. (2) Add and subtract entry by entry. (3) Multiply AA by 3, then subtract CC⁠. (4) Work out each of the four entries of ABAB as row times column. (5) Do the same for BABA and compare.

Basics you need

1The address of an entry

aija_{ij} is the entry of AA in row ii⁠, column jj⁠. Rows run across, columns run down. In this question a12=4a_{12}=4 and a21=3a_{21}=3⁠. Basics: rows, columns and aija_{ij}

2Adding and subtracting matrices

Defined only for matrices of the same order. Add (or subtract) the entries in matching positions: the (i,j)(i,j) entry of A±BA\pm B is aij±bija_{ij}\pm b_{ij}⁠. Basics: adding like with like

3A number times a matrix

kAkA multiplies every entry of AA by kk⁠. The negative −C-C is (−1)C(-1)C⁠, and 3A−C3A-C means 3A+(−C)3A+(-C)⁠.

4Matrix multiplication

ABAB is defined when the number of columns of AA equals the number of rows of BB⁠. An m×nm\times n matrix times an n×pn\times p matrix gives an m×pm\times p matrix, and its (i,k)(i,k) entry is row ii of AA times column kk of BB⁠: multiply the first entries, multiply the second entries, and add. Basics: pair up, multiply, add

Solution

  1. Orders: check every operation is defined

    AA⁠, BB and CC each have 2 rows and 2 columns, so each has order 2×22\times2⁠.

    • A+BA+B⁠, A−BA-B⁠: same order, so defined, and the result is 2×22\times2⁠.
    • 3A3A is 2×22\times2⁠, the same as CC⁠, so 3A−C3A-C is defined and 2×22\times2⁠.
    • ABAB⁠: AA has 2 columns and BB has 2 rows, so ABAB is defined, of order 2×22\times2⁠. The same count works for BABA⁠.
    Each operation has a size rule, and checking it first is not a formality: with different orders there are entries with no partner, and the operation simply does not exist. Square matrices of the same order pass every rule, which is why all five parts make sense here.
    Sum: same order. Product PQPQ⁠: columns of PP = rows of QQ⁠; then (m×n)(n×p)(m\times n)(n\times p) is m×pm\times p⁠. Lesson: matrix multiplication
  2. (i) A+BA+B⁠: add matching entries

    Each entry of the answer is the sum of the two entries in the same position:

    A+B=[2+14+33+(−2)2+5]=[3717].A+B=\begin{bmatrix}2+1&4+3\\3+(-2)&2+5\end{bmatrix}=\begin{bmatrix}3&7\\1&7\end{bmatrix}.
    The definition of the sum (Section 3.4.1) says cij=aij+bijc_{ij}=a_{ij}+b_{ij}⁠. The only place to slip is the (2,1)(2,1) entry, where b21=−2b_{21}=-2⁠: 3+(−2)=13+(-2)=1⁠.
    Addition is position by position. Basics: adding like with like
  3. (ii) A−BA-B⁠: subtract matching entries

    A−B=[2−14−33−(−2)2−5]=[115−3].\begin{aligned}A-B&=\begin{bmatrix}2-1&4-3\\3-(-2)&2-5\end{bmatrix}\\&=\begin{bmatrix}1&1\\5&-3\end{bmatrix}.\end{aligned}
    The difference is defined by dij=aij−bijd_{ij}=a_{ij}-b_{ij} (Section 3.4.2). Subtracting a negative entry adds: 3−(−2)=3+2=53-(-2)=3+2=5⁠. Write the bracket around −2-2 so this sign is not lost.
  4. (iii) 3A−C3A-C⁠: first 3A3A⁠, then subtract CC

    Multiply every entry of AA by 3:

    3A=[3⋅23⋅43⋅33⋅2]=[61296].3A=\begin{bmatrix}3\cdot2&3\cdot4\\3\cdot3&3\cdot2\end{bmatrix}=\begin{bmatrix}6&12\\9&6\end{bmatrix}.

    Now subtract CC entry by entry:

    3A−C=[6−(−2)12−59−36−4]=[8762].\begin{aligned}3A-C&=\begin{bmatrix}6-(-2)&12-5\\9-3&6-4\end{bmatrix}\\&=\begin{bmatrix}8&7\\6&2\end{bmatrix}.\end{aligned}
    In 3A−C3A-C the 3 multiplies only AA⁠, just as in ordinary algebra, so the scalar multiple is done first. Again the negative entry needs care: c11=−2c_{11}=-2⁠, and 6−(−2)=86-(-2)=8⁠.
    kA=[k aij]kA=[k\,a_{ij}]⁠: the number multiplies every entry. Lesson: addition and scalar multiplication
  5. (iv) ABAB⁠: row of AA times column of BB⁠, four times

    Write the rows of AA and the columns of BB⁠:

    • rows of AA⁠: row 1 is (2, 4)(2,\ 4)⁠, row 2 is (3, 2)(3,\ 2)⁠;
    • columns of BB⁠: column 1 is (1, −2)(1,\ -2)⁠, column 2 is (3, 5)(3,\ 5)⁠.

    Entry (i,k)(i,k) of ABAB is row ii of AA times column kk of BB⁠:

    c11=2⋅1+4⋅(−2)=2−8=−6c12=2⋅3+4⋅5=6+20=26c21=3⋅1+2⋅(−2)=3−4=−1c22=3⋅3+2⋅5=9+10=19\begin{aligned} c_{11}&=2\cdot1+4\cdot(-2)=2-8=-6\\ c_{12}&=2\cdot3+4\cdot5=6+20=26\\ c_{21}&=3\cdot1+2\cdot(-2)=3-4=-1\\ c_{22}&=3\cdot3+2\cdot5=9+10=19 \end{aligned}

    Assemble the four entries in their places:

    AB=[−626−119].AB=\begin{bmatrix}-6&26\\-1&19\end{bmatrix}.
    ABAB 24 32 13 −25 −626 −119 = row 1 of A with column 2 of B: 2·3 + 4·5 = 26
    How one entry of ABAB is made: the first row of AA (blue) is paired with the second column of BB (gold), and the result lands in row 1, column 2 (green).
    The definition (Section 3.4.5) is cik=ai1b1k+ai2b2kc_{ik}=a_{i1}b_{1k}+a_{i2}b_{2k}⁠. The row number of the entry tells you which row of the first matrix to use, and the column number tells you which column of the second. Writing the rows and columns out first stops you from reading a row of BB by mistake, which is the commonest error.
    Pair up, multiply, add: first with first, second with second. Basics: pair up, multiply, add
  6. (v) BABA⁠: now the rows come from BB

    For BABA the first matrix is BB⁠, so the rows come from BB and the columns from AA⁠:

    • rows of BB⁠: row 1 is (1, 3)(1,\ 3)⁠, row 2 is (−2, 5)(-2,\ 5)⁠;
    • columns of AA⁠: column 1 is (2, 3)(2,\ 3)⁠, column 2 is (4, 2)(4,\ 2)⁠.
    d11=1⋅2+3⋅3=2+9=11d12=1⋅4+3⋅2=4+6=10d21=(−2)⋅2+5⋅3=−4+15=11d22=(−2)⋅4+5⋅2=−8+10=2\begin{aligned} d_{11}&=1\cdot2+3\cdot3=2+9=11\\ d_{12}&=1\cdot4+3\cdot2=4+6=10\\ d_{21}&=(-2)\cdot2+5\cdot3=-4+15=11\\ d_{22}&=(-2)\cdot4+5\cdot2=-8+10=2 \end{aligned} BA=[1110112].BA=\begin{bmatrix}11&10\\11&2\end{bmatrix}.

    Compare with part (iv): not a single entry agrees, so AB≠BAAB\ne BA.

    Swapping the order swaps which matrix supplies the rows. ABAB uses rows of AA⁠; BABA uses rows of BB⁠. These are genuinely different calculations, so there is no reason for the answers to match. This is the textbook's point in Section 3.4.5 (Examples 13 and 14): matrix multiplication is not commutative, even when both products exist and have the same order.
    For numbers ab=baab=ba always; for matrices, keep the order exactly as written. Lesson: matrix multiplication
Result A+B=[3717],A−B=[115−3],3A−C=[8762],AB=[−626−119],BA=[1110112].\begin{aligned} A+B&=\begin{bmatrix}3&7\\1&7\end{bmatrix},\\ A-B&=\begin{bmatrix}1&1\\5&-3\end{bmatrix},\\ 3A-C&=\begin{bmatrix}8&7\\6&2\end{bmatrix},\\ AB&=\begin{bmatrix}-6&26\\-1&19\end{bmatrix},\\ BA&=\begin{bmatrix}11&10\\11&2\end{bmatrix}. \end{aligned}

(Textbook answer: the same five matrices.)

Check it with numbers

Sums. Adding parts (i) and (ii) should give 2A2A⁠: (3+1, 7+1, 1+5, 7−3)(3+1,\ 7+1,\ 1+5,\ 7-3)⁠, that is (4, 8, 6, 4)(4,\ 8,\ 6,\ 4)⁠, which is 2A2A entry by entry. ✓ Subtracting them should give 2B2B⁠: (3−1, 7−1, 1−5, 7+3)(3-1,\ 7-1,\ 1-5,\ 7+3)⁠, that is (2, 6, −4, 10)(2,\ 6,\ -4,\ 10)⁠, which is 2B2B⁠. ✓

Products. A quick test: the column totals of ABAB equal (row of column totals of AA⁠) times BB⁠. Column totals of AA are (5, 6)(5,\ 6)⁠, and

[56][13−25]=[5−1215+30]=[−745].\begin{aligned}&\begin{bmatrix}5&6\end{bmatrix}\begin{bmatrix}1&3\\-2&5\end{bmatrix}\\&=\begin{bmatrix}5-12&15+30\end{bmatrix}\\&=\begin{bmatrix}-7&45\end{bmatrix}.\end{aligned}

The column totals of ABAB are −6−1=−7-6-1=-7 and 26+19=4526+19=45⁠. ✓ The same test for BABA⁠: column totals of BB are (−1, 8)(-1,\ 8)⁠; (−1)⋅2+8⋅3=22(-1)\cdot2+8\cdot3=22 and (−1)⋅4+8⋅2=12(-1)\cdot4+8\cdot2=12⁠; the column totals of BABA are 11+11=2211+11=22 and 10+2=1210+2=12⁠. ✓

Common mistakes
  1. Multiplying matching entries for ABAB⁠. The top-left entry of ABAB is not 2⋅1=22\cdot1=2⁠. Each entry is a row-times-column sum: 2⋅1+4⋅(−2)=−62\cdot1+4\cdot(-2)=-6⁠.
  2. Losing a minus sign. 3−(−2)=53-(-2)=5⁠, 6−(−2)=86-(-2)=8⁠, and 4⋅(−2)=−84\cdot(-2)=-8⁠. Bracket every negative entry when you substitute it.
  3. Assuming BA=ABBA=AB⁠. The order matters; BABA must be worked out separately, and here it is completely different.
  4. Multiplying CC by 3 as well. In 3A−C3A-C only AA is tripled.
What to take away
  1. Sums, differences and scalar multiples act position by position.
  2. Products act row by column: entry (i,k)(i,k) of ABAB uses row ii of AA and column kk of BB⁠.
  3. ABAB and BABA are different calculations and are usually different matrices.

Every fact used, and where it comes from

FactUsed inSource
Sum of matrices of the same order: cij=aij+bijc_{ij}=a_{ij}+b_{ij}Steps 1, 2Section 3.4.1 (Lesson: addition)
Scalar multiple kA=[k aij]kA=[k\,a_{ij}]⁠; negative; difference dij=aij−bijd_{ij}=a_{ij}-b_{ij}Steps 3, 4Section 3.4.2
Product defined when columns of the first = rows of the second; (m×n)(n×p)(m\times n)(n\times p) is m×pm\times p⁠; row-times-column ruleSteps 1, 5, 6Section 3.4.5 (Lesson: multiplication)
Matrix multiplication is not commutativeStep 6Section 3.4.5, Examples 13 and 14
Found an error, or want more?

Tell us if something on this page is wrong or unclear, or if you would like a fuller explanation, another method or a new feature. Send feedback on this problem →