For AI agents: use /llms.txt for the Nakafa content index.
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 A A A , then the transpose of matrix A A A is usually denoted by A T A^T A T or .
Formally, if matrix A A A has an order of m × n m \times n m × n with elements a i j a_{ij} a ij (element in the i i i -th row and j j j -th column), then its transpose, A T A^T A T , will have an order of n × m n \times m n × m with elements a j i T = a i j a_{ji}^T = a_{ij} a j i T = a ij .
This means that the element in the j j j -th row and i i i -th column of A T A^T A T is the same as the element in the i i i -th row and j j j -th column of A A A .
To obtain the matrix transpose, follow these steps:
Write the first row of the original matrix as the first column of the transpose matrix.
Write the second row of the original matrix as the second column of the transpose matrix.
Continue this process for all rows in the original matrix.
Suppose we have matrix A A A :
Then, the transpose of matrix A A A is:
Notice how the first row [ a b ] \begin{bmatrix} a & b \end{bmatrix} [ a b ] becomes
the first column [ a b ] \begin{bmatrix} a \\ b \end{bmatrix} [ a b ] , and
the second row [ c d ] \begin{bmatrix} c & d \end{bmatrix} [ c d ] becomes
the second column [ c d ] \begin{bmatrix} c \\ d \end{bmatrix} [ c d ] .
Given matrix B B B with order 2 × 3 2 \times 3 2 × 3 :
The transpose of matrix B B B , denoted B T B^T B T , will have order 3 × 2 3 \times 2 3 × 2 :
The first row of B B B ([ 1 2 3 ] \begin{bmatrix} 1 & 2 & 3 \end{bmatrix} [ 1 2 3 ] ) becomes the first column of B T B^T B T .
The second row of B B B ([ 4 5 6 ] \begin{bmatrix} 4 & 5 & 6 \end{bmatrix} [ 4 5 6 ] ) becomes the second column of .
If C C C is a column matrix:
Then its transpose, C T C^T C T , is a row matrix:
Given a square matrix D D D :
Then its transpose, D T D^T D T , is also a square matrix:
Some important properties of matrix transpose are:
( A T ) T = A (A^T)^T = A ( A T ) T = A (The transpose of a transpose matrix is the
matrix itself)
( A + B ) T = A T + B T (A + B)^T = A^T + B^T ( A + B ) T = A T + B T (Transpose of the sum of two matrices)
( A − B ) T = A T − B T (A - B)^T = A^T - B^T ( A − B ) T = A T − B T (Transpose of the subtraction of
two matrices)
( k A ) T = k A T (kA)^T = kA^T ( k A ) T = k A T , where k k k is a
scalar
( A B ) T = B T A T (AB)^T = B^T A^T ( A B ) T = B T A T (Transpose of the product of two matrices,
note the reversed order)
Determine the transpose of the following matrices and state the type of the resulting matrix (e.g., row matrix, column matrix, square matrix).
A = [ 1 3 − 5 ] A = \begin{bmatrix} 1 & 3 & -5 \end{bmatrix} A = [ 1 3 − 5 ]
B = [ 9 − 1 3 0 1 5 ] B = \begin{bmatrix} 9 & -1 \\ 3 & 0 \\ 1 & 5 \end{bmatrix} B = 9 3 1 − 1 0 5
C = [ 2 3 1 1 6 − 2 4 5 − 7 ] C = \begin{bmatrix} 2 & 3 & 1 \\ 1 & 6 & -2 \\ 4 & 5 & -7 \end{bmatrix} C = 2 1 4 3 6 5 1 − 2 − 7
A T = [ 1 3 − 5 ] A^T = \begin{bmatrix} 1 \\ 3 \\ -5 \end{bmatrix} A T = 1 3 − 5
A T A^T A T is a column matrix.
B T = [ 9 3 1 − 1 0 5 ] B^T = \begin{bmatrix} 9 & 3 & 1 \\ -1 & 0 & 5 \end{bmatrix} B T = [ 9 − 1 3 0 1 5 ]
C T = [ 2 1 4 3 6 5 1 − 2 − 7 ] C^T = \begin{bmatrix} 2 & 1 & 4 \\ 3 & 6 & 5 \\ 1 & -2 & -7 \end{bmatrix} C T = 2 3 1 1 6 − 2 4 5 − 7
B T B^T B T is a rectangular matrix (horizontal matrix).
C T C^T C T is a square matrix.