girgit.org

Matrices

Turning rows into columns: the transpose

The big ideaThe transpose A′ turns the rows of A into columns, and its most important rule reverses the order of a product: (AB)′ = B′A′.

In simple words

Take a grid and write its first line going down instead of across, then its second line going down next to it, and so on. The grid has been flipped over its slanting line from the top left corner. A wide grid becomes a tall one. Flip it again and you are back where you started.

Rows become columns

If \( A = [a_{ij}] \) is an m × n matrix, the matrix made by swapping its rows and columns is the transpose of A. It is written A′ (read "A dash" or "A transpose") or \( A^T \). In symbols, if \( A = [a_{ij}]_{m \times n} \) then \( A' = [a_{ji}]_{n \times m} \): the entry at (i, j) moves to (j, i).

\[ A = \begin{bmatrix} 1 & 4 & -2 \\ 0 & 3 & 5 \end{bmatrix}_{2 \times 3} \quad\Rightarrow\quad A' = \begin{bmatrix} 1 & 0 \\ 4 & 3 \\ -2 & 5 \end{bmatrix}_{3 \times 2} \]

Row 1 of A, [1 4 −2], is column 1 of A′. The order flips from m × n to n × m. A row matrix becomes a column matrix, and the other way round. For a square matrix the diagonal stays put and the other entries swap across it like reflections in a mirror.

Try it: run the flip slowly and follow one entry from its old address to its new one.

You met this already: the kirana stock written with items as rows, and then with shops as rows, were transposes of each other.

Four properties

For matrices A and B of suitable orders and any constant k, NCERT lists these (they can be checked with examples):

PropertyWhy it makes sense
(A′)′ = AFlipping twice brings every entry back.
(kA)′ = kA′Scaling every entry and flipping can be done in either order.
(A + B)′ = A′ + B′Adding is done place by place, and flipping moves both places together.
(AB)′ = B′A′The order reverses (see below).

The third rule also gives (A − B)′ = A′ − B′, since A − B = A + (−1)B.

Guess first: is (AB)′ equal to A′B′?

Take \( A = \begin{bmatrix} 1 & 2 \\ 3 & 4 \end{bmatrix} \) and \( B = \begin{bmatrix} 0 & 1 \\ 1 & 0 \end{bmatrix} \). Guess: is the transpose of AB the same as A′B′?

See what happens
\( AB = \begin{bmatrix} 2 & 1 \\ 4 & 3 \end{bmatrix} \), so \( (AB)' = \begin{bmatrix} 2 & 4 \\ 1 & 3 \end{bmatrix} \).
\( A'B' = \begin{bmatrix} 1 & 3 \\ 2 & 4 \end{bmatrix} \begin{bmatrix} 0 & 1 \\ 1 & 0 \end{bmatrix} = \begin{bmatrix} 3 & 1 \\ 4 & 2 \end{bmatrix} \). Not equal.
\( B'A' = \begin{bmatrix} 0 & 1 \\ 1 & 0 \end{bmatrix} \begin{bmatrix} 1 & 3 \\ 2 & 4 \end{bmatrix} = \begin{bmatrix} 2 & 4 \\ 1 & 3 \end{bmatrix} \). Equal to (AB)′.

Why the reversal? The (i, k) entry of AB is row i of A times column k of B. In (AB)′ that number sits at (k, i). Now row k of B′ is column k of B, and column i of A′ is row i of A, so the (k, i) entry of B′A′ is the very same sum. Only B′A′ pairs them in the right order.

Try it: change A and B and compare all three. Then test a thousand pairs at once.

Sizes alone show that A′B′ is usually wrong. If A is 2 × 3 and B is 3 × 2, then (AB)′ is 2 × 2, but A′B′ is (3 × 2)(2 × 3) = 3 × 3. For three matrices, \( (ABC)' = C'B'A' \).

Checking with a non-square pair

Worked example

With \( A = \begin{bmatrix} 2 & 1 & 0 \\ -1 & 3 & 4 \end{bmatrix} \) and \( B = \begin{bmatrix} 1 & 2 \\ 0 & -1 \\ 5 & 3 \end{bmatrix} \), we found \( AB = \begin{bmatrix} 2 & 3 \\ 19 & 7 \end{bmatrix} \), so \( (AB)' = \begin{bmatrix} 2 & 19 \\ 3 & 7 \end{bmatrix} \).

\( B'A' = \begin{bmatrix} 1 & 0 & 5 \\ 2 & -1 & 3 \end{bmatrix} \begin{bmatrix} 2 & -1 \\ 1 & 3 \\ 0 & 4 \end{bmatrix} = \begin{bmatrix} 2 + 0 + 0 & -1 + 0 + 20 \\ 4 - 1 + 0 & -2 - 3 + 12 \end{bmatrix} = \begin{bmatrix} 2 & 19 \\ 3 & 7 \end{bmatrix} \).

They agree, as the rule promises.

Not in the current textbook, but JEE asks it: a square matrix with \( A'A = AA' = I \) is called orthogonal; its transpose undoes it. The rotation matrix \( \begin{bmatrix} \cos\theta & -\sin\theta \\ \sin\theta & \cos\theta \end{bmatrix} \) is the standard example.

Words to know

Transpose A′ (or \( A^T \))
A with rows and columns swapped; the (i, j) entry moves to (j, i).
Order of A′
n × m when A is m × n.
Reversal law
(AB)′ = B′A′: transpose each and reverse the order.
Orthogonal matrix
A square matrix with A′A = AA′ = I.

A is 3 × 5. What is the order of A′?

  1. 3 × 5
  2. 5 × 3
  3. 5 × 5

Which equals \( (AB)' \)?

  1. A′B′
  2. B′A′
  3. BA

If \( A = \begin{bmatrix} 3 & -1 \\ 2 & 0 \end{bmatrix} \), what is \( (2A)' \)?

  1. \( \begin{bmatrix} 6 & 4 \\ -2 & 0 \end{bmatrix} \)
  2. \( \begin{bmatrix} 6 & -2 \\ 4 & 0 \end{bmatrix} \)
  3. \( \begin{bmatrix} 3 & 2 \\ -1 & 0 \end{bmatrix} \)