Transpose of a Matrix Notes
These Transpose of a Matrix Notes explain how to reflect a matrix along its main diagonal, with the working shown line by line. Every entry in row \(i\) and column \(j\) moves to row \(j\) and column \(i\), which turns the rows into columns. An \(m \times n\) matrix becomes \(n \times m\), so the shape changes unless it was square to begin with. Following the same pattern every time makes the transpose easy to check and repeat.
Step-by-step method
- Set up the problem.
- Write the formula.
- Turn each row of A into a column.
Formula: Transpose Formula
This formula moves the entry in row i and column j to row j and column i. Every row of A becomes a column of the transpose.
Useful Tips to Remember
A matrix with m rows and n columns has a transpose with n rows and m columns. The main diagonal stays where it is. Transposing twice gives back the original matrix, so \((A^{T})^{T} = A\). A matrix that equals its own transpose is called symmetric.
Required knowledge
- What the rows and columns of a matrix are, covered in the Matrix Addition Calculator.
- Where transposes are used next, covered in the Inverse of a 3×3 Matrix Calculator.
Where Is the Transpose of a Matrix Used?
The transpose swaps the rows and columns of a matrix, which is needed whenever data has to be read the other way round. Spreadsheets transpose tables to turn rows of records into columns. In statistics and machine learning, transposes appear in least squares fitting and in computing covariance matrices. Computer graphics uses them to invert rotation matrices quickly, and the adjugate used to find an inverse matrix is the transpose of the cofactor matrix.
- Swapping rows and columns in spreadsheets
- Least squares fitting in statistics
- Covariance matrices in data science
- Inverting rotation matrices in 3D graphics
- Building the adjugate for an inverse matrix
Transpose of a Matrix Practice Problems
Example 1 transposes a \(2 \times 3\) matrix into a \(3 \times 2\) one, and Example 2 transposes a \(3 \times 3\) matrix with negative entries. Examples 3 and 4 give you two more problems of the same kind to try. Turn each row into a column yourself and compare.
The worked examples below go through the same pattern from start to finish, so you can compare every step with your own working. Try each problem on paper first, then open the example and check your working one step at a time, so you can see exactly which step went wrong if your answer does not match. Use them to check your answers and to understand why each step works.
See Example 1 Hide Example 1
Problem
Approach
Step-by-step method
- Set up the problem.
- Write the formula.
- Turn each row of A into a column.
Formula
Formula: Transpose Formula
This formula moves the entry in row i and column j to row j and column i. Every row of A becomes a column of the transpose.
Step 1
Step 1 - Set up the problem.
In this problem: Matrix A is \(2 \times 3\), so its transpose has the rows and columns swapped and is \(3 \times 2\).
Step 2
Step 2 - Write the formula.
In this problem: Transposing reflects the matrix in its main diagonal, so the entry in row i and column j moves to row j and column i.
Step 3
Step 3 - Turn each row of A into a column.
In this problem: Each row of A is written down as a column of the transpose, so \(\text{row } 1 = \begin{bmatrix} 1 & 2 & 3 \end{bmatrix}\) becomes \(\text{column } 1\) and \(\text{row } 2 = \begin{bmatrix} 4 & 5 & 6 \end{bmatrix}\) becomes \(\text{column } 2\).
Final Answer
See Example 2 Hide Example 2
Problem
Approach
Step-by-step method
- Set up the problem.
- Write the formula.
- Turn each row of A into a column.
Formula
Formula: Transpose Formula
This formula moves the entry in row i and column j to row j and column i. Every row of A becomes a column of the transpose.
Step 1
Step 1 - Set up the problem.
In this problem: Matrix A is \(3 \times 3\), so its transpose has the rows and columns swapped and is \(3 \times 3\).
Step 2
Step 2 - Write the formula.
In this problem: Transposing reflects the matrix in its main diagonal, so the entry in row i and column j moves to row j and column i.
Step 3
Step 3 - Turn each row of A into a column.
In this problem: Each row of A is written down as a column of the transpose, so \(\text{row } 1 = \begin{bmatrix} 2 & -1 & 4 \end{bmatrix}\) becomes \(\text{column } 1\), \(\text{row } 2 = \begin{bmatrix} 0 & 7 & 3 \end{bmatrix}\) becomes \(\text{column } 2\) and \(\text{row } 3 = \begin{bmatrix} -5 & 6 & 8 \end{bmatrix}\) becomes \(\text{column } 3\).
Final Answer
See Example 3 Hide Example 3
Problem
Approach
Step-by-step method
- Set up the problem.
- Write the formula.
- Turn each row of A into a column.
Formula
Formula: Transpose Formula
This formula moves the entry in row i and column j to row j and column i. Every row of A becomes a column of the transpose.
Step 1
Step 1 - Set up the problem.
In this problem: Matrix A is \(3 \times 2\), so its transpose has the rows and columns swapped and is \(2 \times 3\).
Step 2
Step 2 - Write the formula.
In this problem: Transposing reflects the matrix in its main diagonal, so the entry in row i and column j moves to row j and column i.
Step 3
Step 3 - Turn each row of A into a column.
In this problem: Each row of A is written down as a column of the transpose, so \(\text{row } 1 = \begin{bmatrix} 3 & -2 \end{bmatrix}\) becomes \(\text{column } 1\), \(\text{row } 2 = \begin{bmatrix} 5 & 0 \end{bmatrix}\) becomes \(\text{column } 2\) and \(\text{row } 3 = \begin{bmatrix} 1 & 4 \end{bmatrix}\) becomes \(\text{column } 3\).
Final Answer
See Example 4 Hide Example 4
Problem
Approach
Step-by-step method
- Set up the problem.
- Write the formula.
- Turn each row of A into a column.
Formula
Formula: Transpose Formula
This formula moves the entry in row i and column j to row j and column i. Every row of A becomes a column of the transpose.
Step 1
Step 1 - Set up the problem.
In this problem: Matrix A is \(3 \times 3\), so its transpose has the rows and columns swapped and is \(3 \times 3\).
Step 2
Step 2 - Write the formula.
In this problem: Transposing reflects the matrix in its main diagonal, so the entry in row i and column j moves to row j and column i.
Step 3
Step 3 - Turn each row of A into a column.
In this problem: Each row of A is written down as a column of the transpose, so \(\text{row } 1 = \begin{bmatrix} 1 & 4 & 7 \end{bmatrix}\) becomes \(\text{column } 1\), \(\text{row } 2 = \begin{bmatrix} 2 & 5 & 8 \end{bmatrix}\) becomes \(\text{column } 2\) and \(\text{row } 3 = \begin{bmatrix} 3 & 6 & 9 \end{bmatrix}\) becomes \(\text{column } 3\).
Final Answer
Calculator and Practice Mode
Want to check your own working? The Transpose of a Matrix Calculator solves any problem you type in and shows every step, so you can compare it line by line with your answer and find exactly where a mistake crept in. When you are ready to test yourself, Transpose of a Matrix Practice gives you a new problem at Easy, Medium or Hard level, checks your answer and shows the full working whenever you get one wrong. Practice Mode for this calculator is available on the Pro plan.