Tutorials › Linear Algebra › The Transpose Map on Matrix Spaces

Matrix Representations of Linear Maps · Tutorial 438 of 1000

The Transpose Map on Matrix Spaces

Learn how the transpose map rearranges matrix coordinates and how to build and verify its representation matrix from ordered matrix-unit bases.

Intermediate 11 min read

What You'll Learn

  • Define ordered matrix-unit bases for the domain and codomain matrix spaces.
  • Track the image of each domain basis matrix under transposition.
  • Derive the representation matrix entry by entry from basis images.
  • Apply the representation matrix to coordinates of rectangular and square matrices.
  • Identify and correct a basis-ordering error.

The Transpose as a Linear Map

The transpose changes the positions of a matrix’s entries: the entry in row \(i\), column \(j\) moves to row \(j\), column \(i\). This simple rearrangement is also a linear map between two matrix spaces. To represent it by a matrix, we must choose ordered bases for both spaces and record where each domain basis vector is sent. The order matters: the same map can have different coordinate matrices if either basis is ordered differently.

Throughout, scalars are real. Write \(M_{m\times n}(\mathbb{R})\) for the vector space of \(m\times n\) real matrices. For \(1\le i\le m\) and \(1\le j\le n\), let \(E_{ij}^{(m,n)}\) be the \(m\times n\) matrix whose entry in row \(i\), column \(j\) is \(1\), and whose other entries are \(0\). We use the row-by-row ordering \(E_{11}^{(m,n)},E_{12}^{(m,n)},\dots,E_{1n}^{(m,n)},E_{21}^{(m,n)},\dots,E_{mn}^{(m,n)}\): the row index is fixed first while the column index runs through its values.

Definition: The transpose map is \(T_{m,n}:M_{m\times n}(\mathbb{R})\to M_{n\times m}(\mathbb{R})\), defined by \(T_{m,n}(\mathbf{X})=\mathbf{X}^{\top}\). In the domain, use the ordered basis \(\mathcal{B}_{m,n}\) consisting of the matrix units \(E_{ij}^{(m,n)}\) in row-by-row order. In the codomain, use the ordered basis \(\mathcal{C}_{n,m}\) consisting of \(E_{kl}^{(n,m)}\), also in row-by-row order.

These are bases because every matrix \(\mathbf{X}=(x_{ij})\) in \(M_{m\times n}(\mathbb{R})\) has the unique expansion \(\mathbf{X}=\sum_{i=1}^{m}\sum_{j=1}^{n}x_{ij}E_{ij}^{(m,n)}\). The coefficient of each matrix unit must be the entry in its position. The codomain has the corresponding expansion using its own matrix units. Each space has \(mn\) basis matrices, so the representation of \(T_{m,n}\) in these bases is an \(mn\times mn\) matrix.

The transpose map is linear: for \(\mathbf{X},\mathbf{Y}\in M_{m\times n}(\mathbb{R})\) and \(a,b\in\mathbb{R}\), its entry in position \((j,i)\) is \(a x_{ij}+b y_{ij}\), which is the same entry as in \(a\mathbf{X}^{\top}+b\mathbf{Y}^{\top}\). Thus \(T_{m,n}(a\mathbf{X}+b\mathbf{Y})=aT_{m,n}(\mathbf{X})+bT_{m,n}(\mathbf{Y})\).

Tracking the Matrix Units

For a linear map, the \(r\)-th column of its representation matrix is the coordinate vector of the image of the \(r\)-th domain basis vector. Here transposition sends the matrix unit in position \((i,j)\) to the matrix unit in position \((j,i)\), with the dimensions of the matrix space switched:

$$ T_{m,n}\bigl(E_{ij}^{(m,n)}\bigr)=E_{ji}^{(n,m)}. $$

The domain unit \(E_{ij}^{(m,n)}\) is in position \((i-1)n+j\) in the domain list. Its image is in position \((j-1)m+i\) in the codomain list. Therefore the column indexed by \((i-1)n+j\) has a \(1\) in row \((j-1)m+i\), and zeros elsewhere.

Theorem (Representation of the transpose map): Let \(m,n\in\mathbb{N}\), and use the row-by-row matrix-unit bases \(\mathcal{B}_{m,n}\) and \(\mathcal{C}_{n,m}\) defined above. The representation matrix \([T_{m,n}]_{\mathcal{C}_{n,m}\leftarrow\mathcal{B}_{m,n}}\) has entries \[ \bigl([T_{m,n}]_{\mathcal{C}_{n,m}\leftarrow\mathcal{B}_{m,n}}\bigr)_{r,s} = \begin{cases} 1,&r=(j-1)m+i,\ s=(i-1)n+j\text{ for some }1\le i\le m,\ 1\le j\le n,\\ 0,&\text{otherwise}. \end{cases} \] It has exactly one \(1\) in each row and exactly one \(1\) in each column; all its other entries are \(0\).

Proof. Fix a domain basis vector \(E_{ij}^{(m,n)}\). By the definition of the representation matrix, its coordinate vector after applying the map is column \((i-1)n+j\). The image is \(E_{ji}^{(n,m)}\), whose coordinate vector in the codomain basis has a \(1\) in position \((j-1)m+i\) and zeros elsewhere. This proves the stated entry formula for that column. Every domain index occurs once because the domain basis lists every pair \((i,j)\) exactly once. Every codomain index occurs once because \((i,j)\mapsto(j,i)\) pairs the positions of the domain and codomain matrix units one-to-one. Hence each column and each row contains exactly one \(1\). \(\square\)

For a matrix \(\mathbf{X}=(x_{ij})\), its domain coordinate vector in this ordering is the list of its entries row by row. Multiplying that vector by the representation matrix rearranges the entries into the row-by-row coordinate vector of \(\mathbf{X}^{\top}\). This is a permutation of coordinates, not a change to the entries themselves.

A Rectangular Example

Worked Example: The Transpose Map from \(M_{2\times3}\) to \(M_{3\times2}\)

Use the row-by-row bases in the domain and codomain. The domain basis order is \(E_{11},E_{12},E_{13},E_{21},E_{22},E_{23}\), with dimensions understood from the domain. The codomain basis order is \(E_{11},E_{12},E_{21},E_{22},E_{31},E_{32}\), with dimensions understood from the codomain.

The six domain units have images \(E_{11},E_{21},E_{31},E_{12},E_{22},E_{32}\), respectively. These images occupy codomain positions \(1,3,5,2,4,6\). Putting their coordinate vectors into the six columns gives

$$ [T_{2,3}]_{\mathcal{C}_{3,2}\leftarrow\mathcal{B}_{2,3}} = \begin{bmatrix} 1&0&0&0&0&0\\ 0&0&0&1&0&0\\ 0&1&0&0&0&0\\ 0&0&0&0&1&0\\ 0&0&1&0&0&0\\ 0&0&0&0&0&1 \end{bmatrix}. $$

Apply this matrix to \(\mathbf{X}=\begin{bmatrix}1&2&3\\4&5&6\end{bmatrix}\). The domain coordinate vector is \((1,2,3,4,5,6)^{\top}\). Direct multiplication gives

$$ \begin{bmatrix} 1&0&0&0&0&0\\ 0&0&0&1&0&0\\ 0&1&0&0&0&0\\ 0&0&0&0&1&0\\ 0&0&1&0&0&0\\ 0&0&0&0&0&1 \end{bmatrix} \begin{bmatrix}1\\2\\3\\4\\5\\6\end{bmatrix} = \begin{bmatrix}1\\4\\2\\5\\3\\6\end{bmatrix}. $$

In the codomain basis, those coordinates describe \(\begin{bmatrix}1&4\\2&5\\3&6\end{bmatrix}\), which is \(\mathbf{X}^{\top}\). Check: transposing \(\begin{bmatrix}1&2&3\\4&5&6\end{bmatrix}\) directly gives \(\begin{bmatrix}1&4\\2&5\\3&6\end{bmatrix}\), so the coordinate computation agrees.

Square and Thin Matrix Spaces

When \(m=n\), the transpose map has the same matrix space as its domain and codomain. Its coordinate matrix need not be the identity: the off-diagonal entries exchange positions, while diagonal entries stay where they are. When one dimension is \(1\), row-by-row ordering can make the coordinate rearrangement particularly simple. These cases are useful checks on the general indexing formula.

Worked Example: Transposing \(2\times2\) Matrices

For the domain and codomain basis order \(E_{11},E_{12},E_{21},E_{22}\), the images are \(E_{11},E_{21},E_{12},E_{22}\). Thus the second and third coordinate positions switch:

$$ [T_{2,2}] = \begin{bmatrix} 1&0&0&0\\ 0&0&1&0\\ 0&1&0&0\\ 0&0&0&1 \end{bmatrix}. $$

For \(\mathbf{X}=\begin{bmatrix}2&-1\\3&4\end{bmatrix}\), the coordinate vector is \((2,-1,3,4)^{\top}\), and

$$ \begin{bmatrix} 1&0&0&0\\ 0&0&1&0\\ 0&1&0&0\\ 0&0&0&1 \end{bmatrix} \begin{bmatrix}2\\-1\\3\\4\end{bmatrix} = \begin{bmatrix}2\\3\\-1\\4\end{bmatrix}. $$

The resulting coordinates give \(\begin{bmatrix}2&3\\-1&4\end{bmatrix}=\mathbf{X}^{\top}\). Check: the diagonal entries \(2\) and \(4\) have stayed in place, and the entries \(-1\) and \(3\) have exchanged positions, exactly as transposition requires.

Worked Example: Transposing a \(1\times3\) Matrix

Let \(m=1\) and \(n=3\). The domain basis order is \(E_{11},E_{12},E_{13}\). The codomain is \(M_{3\times1}(\mathbb{R})\), whose row-by-row basis order is \(E_{11},E_{21},E_{31}\). Each domain unit maps to the codomain unit in the same numbered position, so

$$ [T_{1,3}] = \begin{bmatrix} 1&0&0\\ 0&1&0\\ 0&0&1 \end{bmatrix}. $$

For \(\mathbf{X}=\begin{bmatrix}-2&0&5\end{bmatrix}\), multiplication gives

$$ \begin{bmatrix} 1&0&0\\ 0&1&0\\ 0&0&1 \end{bmatrix} \begin{bmatrix}-2\\0\\5\end{bmatrix} = \begin{bmatrix}-2\\0\\5\end{bmatrix}. $$

This is the coordinate vector of \(\mathbf{X}^{\top}=\begin{bmatrix}-2\\0\\5\end{bmatrix}\) in \(M_{3\times1}(\mathbb{R})\). Check: the vector of coordinates is unchanged, and the matrix shape changes from one row and three columns to three rows and one column.

Transposing Twice

There is also a direct way to verify that the map does not lose information. Applying transposition twice restores every entry to its original position. This fact is independent of a chosen coordinate basis and explains why transposition gives a one-to-one correspondence between the two matrix spaces.

Theorem: For every \(\mathbf{X}\in M_{m\times n}(\mathbb{R})\), \(T_{n,m}(T_{m,n}(\mathbf{X}))=\mathbf{X}\). In particular, \(T_{m,n}\) is one-to-one and onto \(M_{n\times m}(\mathbb{R})\).

Proof. Let \(\mathbf{X}=(x_{ij})\). The entry of \(\mathbf{X}^{\top}\) in row \(j\), column \(i\) is \(x_{ij}\), by the definition of transpose. Transposing again places that entry in row \(i\), column \(j\). Therefore every entry of \(T_{n,m}(T_{m,n}(\mathbf{X}))\) equals the corresponding entry of \(\mathbf{X}\). If \(T_{m,n}(\mathbf{X})=T_{m,n}(\mathbf{Y})\), applying \(T_{n,m}\) to both sides gives \(\mathbf{X}=\mathbf{Y}\), proving that \(T_{m,n}\) is one-to-one. For any \(\mathbf{Z}\in M_{n\times m}(\mathbb{R})\), take \(\mathbf{X}=\mathbf{Z}^{\top}\in M_{m\times n}(\mathbb{R})\). Then \(T_{m,n}(\mathbf{X})=\mathbf{Z}^{\top\top}=\mathbf{Z}\), proving that \(T_{m,n}\) is onto. \(\square\)

Common Pitfall: Mixing the Basis Orders

The formula for the representation matrix depends on the basis order in both spaces. For the \(2\times3\) example, \(E_{12}^{(2,3)}\) maps to \(E_{21}^{(3,2)}\). In the stated row-by-row codomain order, \(E_{21}^{(3,2)}\) is basis vector \(3\), not basis vector \(2\). A common wrong calculation puts a \(1\) in row \(2\) of column \(2\), treating the codomain list as though it began \(E_{11},E_{21},\ldots\). That would send the input coordinate vector \((0,1,0,0,0,0)^{\top}\) to \((0,1,0,0,0,0)^{\top}\), which represents \(E_{12}^{(3,2)}\), not \(E_{21}^{(3,2)}\).

The correction is to identify the image as a matrix first, then locate that matrix unit in the specified codomain basis. Here the correct output is \(E_{21}^{(3,2)}\), whose row-by-row coordinate vector is \((0,0,1,0,0,0)^{\top}\). If a different codomain ordering is deliberately chosen, the representation matrix changes accordingly; it is not valid to use that different ordering without changing the matrix.

The key procedure is therefore consistent: write the ordered domain basis, transpose each basis matrix, and express each image in the ordered codomain basis. The resulting coordinate vectors form the columns of the representation matrix. The method applies to rectangular matrix spaces as well as square ones, provided the dimensions and basis orders are kept explicit.

Check Your Understanding

Use row-by-row matrix-unit bases in both spaces unless a question says otherwise.

  1. For \(T_{2,3}\), where does \(E_{23}^{(2,3)}\) go, and what is the position of its image in the codomain basis?
  2. Write the coordinate vector of \(\begin{bmatrix}1&-2\\0&3\\4&5\end{bmatrix}\) in the row-by-row basis of \(M_{3\times2}(\mathbb{R})\).
  3. For \(T_{1,2}\), construct the representation matrix and apply it to the coordinate vector of \(\begin{bmatrix}a&b\end{bmatrix}\).
  4. Explain why the representation matrix has one \(1\) in every row and every column.
  5. Show directly from the definition of transpose why \(T_{m,n}\) is onto \(M_{n\times m}(\mathbb{R})\).

Test yourself: Linear Algebra final exam practice

Ready to check what you know? Work a full-length practice final, then open the complete worked solutions.

Want all 1,114 practice problems?

This tutorial covers one topic. Calc Pass covers the full Calculus AB & BC curriculum (the core of Calculus I and II): full review, every practice question, and step-by-step solutions to each one.

QR code to download the Calc Pass app

Get the Calc Pass App

Scan to download and practice on the go, with instant scoring.

Calc Pass Volume 1: 1,114 Practice Questions book cover

Vol. 1: 1,114 Questions

The complete practice question bank, organized by AB & BC topic.

View on Amazon
Calc Pass Volume 2: Solutions Manual book cover

Vol. 2: Solutions Manual

Fully worked solutions to every question in Volume 1.

View on Amazon