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

Exercise 3.3 · Q5: Verify (AB)′=B′A′(AB)'=B'A' for a column times a row

Exercise 3.3Transpose of a product · Section 3.5
The question

For the matrices AA and BB⁠, verify that (AB)′=B′A′(AB)' = B'A'⁠, where

(i)

A=[1−43],B=[−121]A = \begin{bmatrix} 1 \\ -4 \\ 3 \end{bmatrix}, \quad B = \begin{bmatrix} -1 & 2 & 1 \end{bmatrix}

(ii)

A=[012],B=[157]A = \begin{bmatrix} 0 \\ 1 \\ 2 \end{bmatrix}, \quad B = \begin{bmatrix} 1 & 5 & 7 \end{bmatrix}
Exam answer

(i)

AB=[1−43][−121]=[1(−1)1(2)1(1)−4(−1)−4(2)−4(1)3(−1)3(2)3(1)]=[−1214−8−4−363]\begin{aligned} AB &= \begin{bmatrix} 1 \\ -4 \\ 3 \end{bmatrix}\begin{bmatrix} -1 & 2 & 1 \end{bmatrix} \\ &= \begin{bmatrix} 1(-1) & 1(2) & 1(1) \\ -4(-1) & -4(2) & -4(1) \\ 3(-1) & 3(2) & 3(1) \end{bmatrix} \\ &= \begin{bmatrix} -1 & 2 & 1 \\ 4 & -8 & -4 \\ -3 & 6 & 3 \end{bmatrix} \end{aligned} LHS=(AB)′=[−14−32−861−43]\text{LHS} = (AB)' = \begin{bmatrix} -1 & 4 & -3 \\ 2 & -8 & 6 \\ 1 & -4 & 3 \end{bmatrix} RHS=B′A′=[−121][1−43]=[−1(1)−1(−4)−1(3)2(1)2(−4)2(3)1(1)1(−4)1(3)]=[−14−32−861−43]\begin{aligned} &\text{RHS} = B'A' \\ &= \begin{bmatrix} -1 \\ 2 \\ 1 \end{bmatrix}\begin{bmatrix} 1 & -4 & 3 \end{bmatrix} \\ &= \begin{bmatrix} -1(1) & -1(-4) & -1(3) \\ 2(1) & 2(-4) & 2(3) \\ 1(1) & 1(-4) & 1(3) \end{bmatrix} \\ &= \begin{bmatrix} -1 & 4 & -3 \\ 2 & -8 & 6 \\ 1 & -4 & 3 \end{bmatrix} \end{aligned}

∴\therefore LHS = RHS, so (AB)′=B′A′(AB)' = B'A'⁠.

(ii)

AB=[012][157]=[0(1)0(5)0(7)1(1)1(5)1(7)2(1)2(5)2(7)]=[00015721014]\begin{aligned} AB &= \begin{bmatrix} 0 \\ 1 \\ 2 \end{bmatrix}\begin{bmatrix} 1 & 5 & 7 \end{bmatrix} \\ &= \begin{bmatrix} 0(1) & 0(5) & 0(7) \\ 1(1) & 1(5) & 1(7) \\ 2(1) & 2(5) & 2(7) \end{bmatrix} \\ &= \begin{bmatrix} 0 & 0 & 0 \\ 1 & 5 & 7 \\ 2 & 10 & 14 \end{bmatrix} \end{aligned} LHS=(AB)′=[01205100714]\text{LHS} = (AB)' = \begin{bmatrix} 0 & 1 & 2 \\ 0 & 5 & 10 \\ 0 & 7 & 14 \end{bmatrix} RHS=B′A′=[157][012]=[1(0)1(1)1(2)5(0)5(1)5(2)7(0)7(1)7(2)]=[01205100714]\begin{aligned} &\text{RHS} = B'A' \\ &= \begin{bmatrix} 1 \\ 5 \\ 7 \end{bmatrix}\begin{bmatrix} 0 & 1 & 2 \end{bmatrix} \\ &= \begin{bmatrix} 1(0) & 1(1) & 1(2) \\ 5(0) & 5(1) & 5(2) \\ 7(0) & 7(1) & 7(2) \end{bmatrix} \\ &= \begin{bmatrix} 0 & 1 & 2 \\ 0 & 5 & 10 \\ 0 & 7 & 14 \end{bmatrix} \end{aligned}

∴\therefore LHS = RHS, so (AB)′=B′A′(AB)' = B'A'⁠. Hence verified.

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

The one idea this problem is built on

The transpose of a product is the product of the transposes in reverse order: (AB)′=B′A′(AB)' = B'A'⁠. The reversal is forced by the orders. Here AA is 3×13\times1 and BB is 1×31\times3⁠, so ABAB is 3×33\times3⁠. Then B′B' is 3×13\times1 and A′A' is 1×31\times3⁠, so B′A′B'A' is again a column times a row, 3×33\times3⁠. The other order, A′B′A'B'⁠, would be a row times a column: a single number, which cannot equal a 3×33\times3 matrix.

Given, to find, and the plan
Given
Two pairs: a 3×13\times1 column AA and a 1×31\times3 row BB⁠.
To show
(AB)′=B′A′(AB)' = B'A' for each pair.
Plan
For each pair: (1) check orders; (2) compute every entry of ABAB⁠, then transpose; (3) write B′B' and A′A' and compute every entry of B′A′B'A'⁠; (4) compare.

Basics you need

1When a product is defined, and its order

ABAB is defined when the number of columns of AA equals the number of rows of BB⁠. If AA is m×nm\times n and BB is n×pn\times p⁠, then ABAB is m×pm\times p⁠. Basics: pair up, multiply, add

2The entries of a product

The (i,k)(i,k) entry of ABAB is row ii of AA times column kk of BB⁠: multiply matching entries and add, cik=ai1b1k+ai2b2kc_{ik} = a_{i1}b_{1k} + a_{i2}b_{2k} +⋯+ainbnk+ \dots + a_{in}b_{nk}⁠. When AA has only one column (n=1n = 1⁠), there is only one term: cik=ai1b1kc_{ik} = a_{i1}b_{1k}⁠. Lesson: matrix multiplication

3The transpose

(A′)ij=aji(A')_{ij} = a_{ji}⁠; a column turns into a row and a row into a column. Basics: reading a table sideways

Part (i): AA = column 1,−4,31, -4, 3⁠; BB = row −1,2,1-1, 2, 1

  1. (i) Check the orders

    AA is 3×13\times1 and BB is 1×31\times3⁠. Columns of AA = 1 = rows of BB⁠, so ABAB is defined and has order 3×33\times3⁠. Its transpose is 3×33\times3⁠.

    B′B' is 3×13\times1 and A′A' is 1×31\times3⁠. Columns of B′B' = 1 = rows of A′A'⁠, so B′A′B'A' is defined and is 3×33\times3⁠. Both sides have the same order.

    Product m×nm\times n times n×pn\times p is m×pm\times p (Basic 1). Basics: pair up, multiply, add
  2. (i) Compute ABAB⁠, entry by entry

    Each row of AA holds one number and each column of BB holds one number, so each entry is a single product cik=ai1b1kc_{ik} = a_{i1}b_{1k}⁠. In the table, row ii and column kk hold cikc_{ik}⁠:

    column 1column 2column 3
    1⋅(−1)=−11\cdot(-1) = -11⋅2=21\cdot 2 = 21⋅1=11\cdot1 = 1
    (−4)(−1)=4(-4)(-1) = 4(−4)⋅2=−8(-4)\cdot2 = -8(−4)⋅1=−4(-4)\cdot1 = -4
    3⋅(−1)=−33\cdot(-1) = -33⋅2=63\cdot 2 = 63⋅1=33\cdot 1 = 3

    Assemble:

    AB=[−1214−8−4−363].AB = \begin{bmatrix} -1 & 2 & 1 \\ 4 & -8 & -4 \\ -3 & 6 & 3 \end{bmatrix}.
    Each row of ABAB is the row BB scaled by one entry of AA⁠: row 1 is 1×B1\times B⁠, row 2 is −4×B-4\times B⁠, row 3 is 3×B3\times B⁠. That gives a quick check on the nine products.
    cikc_{ik} = row ii of AA times column kk of BB⁠, Section 3.4.5 (Basic 2). Lesson: matrix multiplication
  3. (i) Transpose ABAB

    The rows −1,2,1-1, 2, 1⁠; 4,−8,−44, -8, -4⁠; −3,6,3-3, 6, 3 become columns:

    (AB)′=[−14−32−861−43].(AB)' = \begin{bmatrix} -1 & 4 & -3 \\ 2 & -8 & 6 \\ 1 & -4 & 3 \end{bmatrix}.
  4. (i) Compute B′A′B'A'⁠, entry by entry

    Transposing turns the row BB into a column and the column AA into a row:

    B′=[−121]3×1,A′=[1−43]1×3.B' = \begin{bmatrix} -1 \\ 2 \\ 1 \end{bmatrix}_{3\times1}, \quad A' = \begin{bmatrix} 1 & -4 & 3 \end{bmatrix}_{1\times3}.

    Writing dikd_{ik} for the entries of B′A′B'A'⁠, each is again a single product, (entry ii of B′B'⁠) × (entry kk of A′A'⁠); row ii⁠, column kk of the table holds dikd_{ik}⁠:

    column 1column 2column 3
    (−1)⋅1=−1(-1)\cdot 1 = -1(−1)(−4)=4(-1)(-4) = 4(−1)⋅3=−3(-1)\cdot 3 = -3
    2⋅1=22\cdot1 = 22(−4)=−82(-4) = -82⋅3=62\cdot3 = 6
    1⋅1=11\cdot 1 = 11(−4)=−41(-4) = -41⋅3=31\cdot 3 = 3
    B′A′=[−14−32−861−43].B'A' = \begin{bmatrix} -1 & 4 & -3 \\ 2 & -8 & 6 \\ 1 & -4 & 3 \end{bmatrix}.
    We compute B′A′B'A' from scratch rather than assuming the answer. The purpose of "verify" is that the two sides are found independently and then compared.
  5. (i) Compare

    Part (i), Steps 3 and 4 give the same 3×33\times3 matrix, entry for entry. So (AB)′=B′A′(AB)' = B'A' for the pair in (i).

    Equality of matrices, Definition 2.

Part (ii): AA = column 0,1,20, 1, 2⁠; BB = row 1,5,71, 5, 7

  1. (ii) Orders

    Exactly as in Part (i): AA is 3×13\times1⁠, BB is 1×31\times3⁠, so ABAB is 3×33\times3⁠; B′B' is 3×13\times1⁠, A′A' is 1×31\times3⁠, so B′A′B'A' is 3×33\times3⁠.

  2. (ii) Compute ABAB and transpose it

    Each entry is cik=ai1b1kc_{ik} = a_{i1}b_{1k}⁠:

    column 1column 2column 3
    0⋅1=00\cdot1 = 00⋅5=00\cdot5 = 00⋅7=00\cdot7 = 0
    1⋅1=11\cdot1 = 11⋅5=51\cdot5 = 51⋅7=71\cdot7 = 7
    2⋅1=22\cdot1 = 22⋅5=102\cdot5 = 102⋅7=142\cdot7 = 14
    AB=[00015721014].AB = \begin{bmatrix} 0 & 0 & 0 \\ 1 & 5 & 7 \\ 2 & 10 & 14 \end{bmatrix}.

    Rows become columns:

    (AB)′=[01205100714].(AB)' = \begin{bmatrix} 0 & 1 & 2 \\ 0 & 5 & 10 \\ 0 & 7 & 14 \end{bmatrix}.
    The first row of ABAB is all zeros because the first entry of AA is 0: a zero row times anything is zero. After transposing, that zero row becomes a zero column.
  3. (ii) Compute B′A′B'A'

    B′=[157],A′=[012].B' = \begin{bmatrix} 1 \\ 5 \\ 7 \end{bmatrix}, \quad A' = \begin{bmatrix} 0 & 1 & 2 \end{bmatrix}.

    Each entry is (entry ii of B′B'⁠) × (entry kk of A′A'⁠); row ii⁠, column kk of the table holds dikd_{ik}⁠:

    column 1column 2column 3
    1⋅0=01\cdot0 = 01⋅1=11\cdot1 = 11⋅2=21\cdot2 = 2
    5⋅0=05\cdot0 = 05⋅1=55\cdot1 = 55⋅2=105\cdot2 = 10
    7⋅0=07\cdot0 = 07⋅1=77\cdot1 = 77⋅2=147\cdot2 = 14
    B′A′=[01205100714].B'A' = \begin{bmatrix} 0 & 1 & 2 \\ 0 & 5 & 10 \\ 0 & 7 & 14 \end{bmatrix}.
  4. (ii) Compare

    Both sides are the same 3×33\times3 matrix, so (AB)′=B′A′(AB)' = B'A' for the pair in (ii).

  5. Why the order must reverse

    Look at one entry in general. The (i,k)(i,k) entry of (AB)′(AB)' is the (k,i)(k,i) entry of ABAB⁠, which is ak1b1ia_{k1}b_{1i}⁠. The (i,k)(i,k) entry of B′A′B'A' is (B′)i1(A′)1k=b1iak1(B')_{i1}(A')_{1k} = b_{1i}a_{k1}⁠. These are equal because numbers commute, ak1b1i=b1iak1a_{k1}b_{1i} = b_{1i}a_{k1}⁠. In the wrong order, A′B′A'B' is (1×31\times3⁠)(3×13\times1⁠), a 1×11\times1 matrix: in (i) it is [1(−1)+(−4)(2)+3(1)]=[−6][1(-1) + (-4)(2) + 3(1)] = [-6]⁠, which is not even the same size as (AB)′(AB)'⁠.

    Matrices do not commute in general, so the order in a product matters. The reversal in (AB)′=B′A′(AB)' = B'A' is like taking off socks and shoes: what goes on last comes off first.
    (AB)′=B′A′(AB)' = B'A'⁠, Section 3.5.1, property (iv); Example 21 is the same kind of check. Lesson: transpose
Result

(i) Both sides equal

[−14−32−861−43].\begin{bmatrix} -1 & 4 & -3 \\ 2 & -8 & 6 \\ 1 & -4 & 3 \end{bmatrix}.

(ii) Both sides equal

[01205100714].\begin{bmatrix} 0 & 1 & 2 \\ 0 & 5 & 10 \\ 0 & 7 & 14 \end{bmatrix}.

So (AB)′=B′A′(AB)' = B'A' is verified in both cases.

Check it with numbers

In (i), the (2,3) entry of (AB)′(AB)' should be the (3,2) entry of ABAB⁠, which is a31b12=3⋅2=6a_{31}b_{12} = 3\cdot 2 = 6⁠. Both sides show 6 there. ✓ In (ii), the (3,3) entry is a31b13=2⋅7=14a_{31}b_{13} = 2\cdot 7 = 14⁠. ✓

Common mistakes
  1. Writing (AB)′=A′B′(AB)' = A'B'⁠. The order must reverse. Here A′B′A'B' is 1×11\times1 and cannot equal a 3×33\times3 matrix.
  2. Confusing ABAB with BABA⁠. BABA is a row times a column, 1×11\times1⁠; in (i) it is [−6][-6]⁠.
  3. Sign slips in products. (−4)(−1)=4(-4)(-1) = 4 and (−1)(−4)=4(-1)(-4) = 4⁠.
What to take away
  1. (AB)′=B′A′(AB)' = B'A'⁠: the transpose of a product reverses the order.
  2. Column (3×13\times1⁠) times row (1×31\times3⁠) is a 3×33\times3 matrix with entries aibka_i b_k⁠; row times column is a single number.
  3. Always check orders before multiplying; they often tell you which order is the only possible one.

Every fact used, and where it comes from

FactUsed inSource
ABAB defined when columns of AA = rows of BB⁠; order m×pm\times pPart (i), Step 1; Part (ii), Step 1Section 3.4.5 (Lesson: multiplication)
Entry of a product: row times columnParts (i), (ii), Steps 2–4Section 3.4.5, definition of the product
Transpose (A′)ij=aji(A')_{ij} = a_{ji}ThroughoutDefinition 3, Section 3.5
(AB)′=B′A′(AB)' = B'A'Part (ii), Step 5Section 3.5.1, property (iv); Example 21
Matrix multiplication is not commutativePart (ii), Step 5Section 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 →