Example: Find Transpose
Given
Properties of Transpose
Example: Verify (AB)ᵀ = BᵀAᵀ
Let and .
Applications
The transpose is used in:
- Defining symmetric and skew-symmetric matrices
- Computing and (used in least squares)
- Orthogonal matrices:
Example: Verify Orthogonal
Check if is orthogonal.
What the rearrangement rule really says
Write as a rectangular array with rows and columns, and index each entry as , where selects the row and selects the column. The transpose is the single assignment : the entry that sat in row 1 column 3 moves to row 3 column 1. Nothing is added, scaled, or cancelled — the entries are only re-addressed. That is why every property listed above is really a statement about index bookkeeping, and why the transpose of an matrix always lands as an matrix.
Two consequences are worth fixing in memory before the worked numbers. First, the main diagonal — the entries where the row and column index agree — is the one part of a square matrix that survives untouched, because swapping an index with itself changes nothing. Second, transposing twice returns you to the start, so and the map is its own inverse.
Shape bookkeeping for rectangular matrices
A matrix holds 6 entries; its transpose holds the same 6 entries but sits in form. Shapes decide whether an operation is even legal: requires both matrices to share a shape, so a matrix and its transpose can never be added, even though both contain six numbers. Products behave the same way. If is and is , then is while is — the same entries mirrored. Writing the order above every intermediate matrix is the fastest way to catch a wrong answer in an exam.
A worked product that reverses the order
Take and . The forward product is , and transposing it flips that to . Now transpose first and multiply in the reversed order: . The entry in row 1 column 1 is , row 1 column 2 gives , row 2 column 1 gives , and row 2 column 2 gives . The two results agree entry by entry, which is exactly why the rule is stated with reversed order rather than as .
Checking the identities in Python
Copying numbers off a page is where sign and index errors start, so a short script is cheap insurance. The block below builds both matrices, compares the two sides of the identity, and reports the shape change a transpose produces.
import numpy as np
A = np.array([[1, 2], [3, 4]])
B = np.array([[5, 6], [7, 8]])
lhs = (A @ B).T
rhs = B.T @ A.T
print("equal:", np.array_equal(lhs, rhs)) # equal: True
print("A shape:", A.shape, "-> A.T shape:", A.T.shape)
C = np.array([[1, 2, 3], [4, 5, 6]])
print("C:", C.shape, "C.T:", C.T.shape) # C: (2, 3) C.T: (3, 2)
print("double transpose:", np.array_equal(C.T.T, C)) # double transpose: True
The same rule written by hand, as nested loops over indices, produces identical output:
def transpose(mat):
rows, cols = len(mat), len(mat[0])
return [[mat[i][j] for i in range(rows)] for j in range(cols)]
grid = [[1, 2, 3], [4, 5, 6]]
for row in transpose(grid):
print(row)
# 1 4
# 2 5
# 3 6
Symmetry, skew-symmetry and orthogonality
A square matrix with is symmetric, so its off-diagonal pairs mirror each other and only the entries on or above the diagonal carry independent information. A skew-symmetric matrix has , and its diagonal must satisfy , which forces every diagonal entry to be zero. Any square matrix then splits uniquely as : one symmetric part plus one skew-symmetric part.
Orthogonal matrices form the third family. The condition says the columns are unit vectors mutually at right angles, so costs one transpose instead of a full elimination. Rotation matrices such as the one checked earlier belong to this family, and so do permutation matrices and reflections across a line through the origin.
Quick self-check before you write the answer
Before submitting, run three fast tests on your computed transpose. Confirm the order is swapped: an result must be . Confirm the count of entries is unchanged, since a transpose only re-addresses values. Confirm the diagonal is identical to the original. If any of the three fails, the rows were probably filled in the wrong direction rather than exchanged.
Key Takeaways
- The transpose re-addresses every entry with b(ij) = a(ji), so an m by n matrix becomes n by m while keeping the same entries and the same main diagonal.
- Products reverse order under transposition: (AB)ᵀ equals BᵀAᵀ, and the two sides always have mirrored shapes, so dimension counting catches most errors early.
- A symmetric matrix satisfies Aᵀ = A, a skew-symmetric matrix satisfies Aᵀ = -A and has a zero diagonal, and every square matrix splits into those two parts.
- An orthogonal matrix obeys AᵀA = I, which makes the transpose equal to the inverse and keeps rotations, permutations and reflections computationally cheap.
Common Mistakes
Writing (AB)ᵀ = AᵀBᵀ because the factors look easier that way
Fix: Reverse the factor order: compute BᵀAᵀ and check the shapes first, since a 2 by 3 times a 3 by 2 only fits in one order.
Adding a matrix to its own transpose whenever the matrix is square but not symmetric
Fix: Add only when the shapes match exactly; for a square matrix, split it into the symmetric half and the skew-symmetric half instead of adding blindly.
Claiming every diagonal entry of a skew-symmetric matrix is free to be any number
Fix: Set a(ij) = -a(ji) with i = j, which gives a(ii) = 0, and write zeros on the diagonal before filling the rest.