Source codeVideos

Command Palette

Search for a command to run...

Matrix

Matrix Transpose

What Is a Matrix Transpose?

A matrix transpose is a new matrix obtained by interchanging the rows and columns of the original matrix. The elements of the rows become the elements of the columns, and conversely, the elements of the columns become the elements of the rows.

If we have a matrix AA, then the transpose of matrix AA is usually denoted by ATA^T or AA'.

Formally, if matrix AA has an order of m×nm \times n with elements aija_{ij} (element in the ii-th row and jj-th column), then its transpose, ATA^T, will have an order of n×mn \times m with elements ajiT=aija_{ji}^T = a_{ij}.

This means that the element in the jj-th row and ii-th column of ATA^T is the same as the element in the ii-th row and jj-th column of AA.

How to Determine the Matrix Transpose

To obtain the matrix transpose, follow these steps:

  1. Write the first row of the original matrix as the first column of the transpose matrix.
  2. Write the second row of the original matrix as the second column of the transpose matrix.
  3. Continue this process for all rows in the original matrix.

General Matrix

Suppose we have matrix AA:

A=[abcd]A = \begin{bmatrix} a & b \\ c & d \end{bmatrix}

Then, the transpose of matrix AA is:

AT=[acbd]A^T = \begin{bmatrix} a & c \\ b & d \end{bmatrix}

Notice how the first row [ab]\begin{bmatrix} a & b \end{bmatrix} becomes the first column [ab]\begin{bmatrix} a \\ b \end{bmatrix}, and the second row [cd]\begin{bmatrix} c & d \end{bmatrix} becomes the second column [cd]\begin{bmatrix} c \\ d \end{bmatrix}.

Matrix with Different Order

Given matrix BB with order 2×32 \times 3:

B=[123456]B = \begin{bmatrix} 1 & 2 & 3 \\ 4 & 5 & 6 \end{bmatrix}

The transpose of matrix BB, denoted BTB^T, will have order 3×23 \times 2:

BT=[142536]B^T = \begin{bmatrix} 1 & 4 \\ 2 & 5 \\ 3 & 6 \end{bmatrix}
  • The first row of BB ([123]\begin{bmatrix} 1 & 2 & 3 \end{bmatrix}) becomes the first column of BTB^T.
  • The second row of BB ([456]\begin{bmatrix} 4 & 5 & 6 \end{bmatrix}) becomes the second column of BTB^T.

Column Matrix to Row Matrix

If CC is a column matrix:

C=[23]C = \begin{bmatrix} 2 \\ 3 \end{bmatrix}

Then its transpose, CTC^T, is a row matrix:

CT=[23]C^T = \begin{bmatrix} 2 & 3 \end{bmatrix}

Transpose of a Square Matrix

Given a square matrix DD:

D=[7813597222131601]D = \begin{bmatrix} -7 & 8 & 1 & 3 \\ 5 & 9 & 7 & 2 \\ 2 & 2 & 1 & 3 \\ 1 & -6 & 0 & 1 \end{bmatrix}

Then its transpose, DTD^T, is also a square matrix:

DT=[7521892617103231]D^T = \begin{bmatrix} -7 & 5 & 2 & 1 \\ 8 & 9 & 2 & -6 \\ 1 & 7 & 1 & 0 \\ 3 & 2 & 3 & 1 \end{bmatrix}

Properties of Matrix Transpose

Some important properties of matrix transpose are:

  1. (AT)T=A(A^T)^T = A (The transpose of a transpose matrix is the matrix itself)
  2. (A+B)T=AT+BT(A + B)^T = A^T + B^T (Transpose of the sum of two matrices)
  3. (AB)T=ATBT(A - B)^T = A^T - B^T (Transpose of the subtraction of two matrices)
  4. (kA)T=kAT(kA)^T = kA^T, where kk is a scalar
  5. (AB)T=BTAT(AB)^T = B^T A^T (Transpose of the product of two matrices, note the reversed order)

Exercises

Determine the transpose of the following matrices and state the type of the resulting matrix (e.g., row matrix, column matrix, square matrix).

  1. A=[135]A = \begin{bmatrix} 1 & 3 & -5 \end{bmatrix}
  2. B=[913015]B = \begin{bmatrix} 9 & -1 \\ 3 & 0 \\ 1 & 5 \end{bmatrix}
  3. C=[231162457]C = \begin{bmatrix} 2 & 3 & 1 \\ 1 & 6 & -2 \\ 4 & 5 & -7 \end{bmatrix}

Answer Key

  1. AT=[135]A^T = \begin{bmatrix} 1 \\ 3 \\ -5 \end{bmatrix}

    ATA^T is a column matrix.

  2. BT=[931105]B^T = \begin{bmatrix} 9 & 3 & 1 \\ -1 & 0 & 5 \end{bmatrix}

    BTB^T is a rectangular matrix (horizontal matrix).

  3. CT=[214365127]C^T = \begin{bmatrix} 2 & 1 & 4 \\ 3 & 6 & 5 \\ 1 & -2 & -7 \end{bmatrix}

    CTC^T is a square matrix.