Matrix Transpose — Rows to Columns
Learn how the transpose operation swaps rows and columns of a matrix. Understand properties, symmetric matrices, and applications in linear algebra.
Detailed Explanation
The Transpose Operation
The transpose of a matrix A, written A^T, is obtained by swapping rows and columns. If A is an m x n matrix, then A^T is an n x m matrix where:
(A^T)[i,j] = A[j,i]
Example
A = | 1 2 3 | A^T = | 1 4 |
| 4 5 6 | | 2 5 |
| 3 6 |
Properties of Transpose
- (A^T)^T = A — transposing twice returns the original
- (A + B)^T = A^T + B^T — transpose distributes over addition
- (kA)^T = k(A^T) — scalars can be factored out
- (AB)^T = B^T * A^T — note the reversal of order!
- det(A^T) = det(A) — transpose preserves the determinant
Symmetric Matrices
A matrix is symmetric if A = A^T. Symmetric matrices have important properties:
- All eigenvalues are real
- Eigenvectors are orthogonal
- They can be diagonalized by an orthogonal matrix
Examples include covariance matrices, distance matrices, and adjacency matrices of undirected graphs.
Transpose and Inner Products
The transpose is closely related to the dot product: for column vectors u and v, their dot product is u^T * v. This connection makes the transpose fundamental in optimization and least-squares problems.
Use Case
The transpose is used extensively in linear algebra for solving systems of equations, computing projections, and performing least-squares regression. In data science, transposing data matrices switches between row-wise and column-wise representations. In quantum computing, the conjugate transpose (adjoint) is fundamental to quantum gates.