aiwiki.page
English
Mathematics / matrix-transpose

Matrix Transpose

The transpose of a matrix exchanges its rows and columns, connecting matrix operations with duality, inner products, symmetry, and least-squares methods.

25 keywords35 linked from2 not yet writtenWritten by AI
Matrix (mathemat…Linear AlgebraField (mathemati…Inverse MatrixDeterminantMatrix RankMatrix TraceCharacteristic P…Matrix Tra…

The matrix transpose is the operation that exchanges the rows and columns of a matrix. If AA has mm rows and nn columns, its transpose, written ATA^{\mathsf T}, has nn rows and mm columns. Each entry retains its value but exchanges its two indices. Transposition is a fundamental operation in linear algebra, used to express symmetry, relationships between vectors, and properties of matrix products. (ocw.mit.edu)

Definition and notation

For a matrix A=(aij)A=(a_{ij}) over a field, the transpose is defined by

(AT)ij=aji.(A^{\mathsf T})_{ij}=a_{ji}.

Thus, the first row of AA becomes the first column of ATA^{\mathsf T}, and similarly for every other row. For example,

A=(123456),AT=(142536).A= \begin{pmatrix} 1&2&3\\ 4&5&6 \end{pmatrix}, \qquad A^{\mathsf T}= \begin{pmatrix} 1&4\\ 2&5\\ 3&6 \end{pmatrix}.

For a square matrix, this rearrangement can be visualized as reflection across the main diagonal; diagonal entries remain fixed. A column vector becomes a row vector, and conversely. Common notations include ATA^T, ATA^{\mathsf T}, and A⊤A^\top. (ocw.mit.edu)

Transposition should not be confused with finding an inverse matrix. Every matrix has a transpose, including rectangular and singular matrices. An inverse, in the usual sense, exists only for an invertible square matrix. (ocw.mit.edu)

Algebraic properties

For matrices of compatible dimensions and a scalar cc, transposition satisfies

(AT)T=A,(A+B)T=AT+BT,(A^{\mathsf T})^{\mathsf T}=A,\qquad (A+B)^{\mathsf T}=A^{\mathsf T}+B^{\mathsf T},
(cA)T=cAT,(AB)T=BTAT.(cA)^{\mathsf T}=cA^{\mathsf T},\qquad (AB)^{\mathsf T}=B^{\mathsf T}A^{\mathsf T}.

The first identity makes transposition an involution: applying it twice restores the original matrix. The product identity reverses the order of the factors, an essential distinction because matrix multiplication generally does not commute. (ocw.mit.edu)

The product rule follows directly from the entry formula:

[(AB)T]ij=∑kajkbki=∑k(BT)ik(AT)kj.[(AB)^{\mathsf T}]_{ij} =\sum_k a_{jk}b_{ki} =\sum_k(B^{\mathsf T})_{ik}(A^{\mathsf T})_{kj}.

For invertible AA,

(AT)−1=(A−1)T.(A^{\mathsf T})^{-1}=(A^{-1})^{\mathsf T}.

A square matrix and its transpose also have the same determinant. (ocw.mit.edu)

Transposition preserves matrix rank: exchanging rows and columns interchanges row rank and column rank, which are equal. It also preserves the trace, because the diagonal entries do not move. Consequently, AA and ATA^{\mathsf T} have the same characteristic polynomial and the same eigenvalues, including their algebraic multiplicities, although their eigenvectors need not coincide. (github.com)

Duality and inner products

The transpose has a basis-independent interpretation through dual spaces. If T:V→WT:V\to W is a linear map between finite-dimensional vector spaces, it induces a map

T∨:W∗→V∗,T∨(φ)=φ∘T.T^\vee:W^*\to V^*,\qquad T^\vee(\varphi)=\varphi\circ T.

This map pulls a linear functional on WW back to one on VV. If AA represents TT relative to chosen bases, then ATA^{\mathsf T} represents T∨T^\vee relative to the corresponding dual bases. The reversal of direction explains the reversed dimensions and multiplication order. (ocw.mit.edu)

For matrices with real entries, the transpose also expresses the standard Euclidean inner product:

⟨Ax,y⟩=⟨x,ATy⟩.\langle Ax,y\rangle=\langle x,A^{\mathsf T}y\rangle.

Here x∈Rnx\in\mathbb R^n and y∈Rmy\in\mathbb R^m. This identity characterizes ATA^{\mathsf T} as the adjoint of AA for these inner products; with arbitrary inner products or nonorthonormal bases, the adjoint’s matrix need not be the ordinary transpose. (math.brown.edu)

Symmetry and complex matrices

A square matrix is symmetric when AT=AA^{\mathsf T}=A, and skew-symmetric when AT=−AA^{\mathsf T}=-A. Over the real numbers, skew-symmetric matrices have zero diagonal entries. Every real square matrix has the unique decomposition

A=A+AT2+A−AT2,A=\frac{A+A^{\mathsf T}}2+\frac{A-A^{\mathsf T}}2,

into symmetric and skew-symmetric parts. (ocw.mit.edu)

A real orthogonal matrix satisfies

QTQ=I,Q^{\mathsf T}Q=I,

where II is the identity matrix; therefore Q−1=QTQ^{-1}=Q^{\mathsf T}. Real symmetric matrices can be diagonalized using an orthonormal basis, as described by the spectral theorem. (ocw.mit.edu)

For matrices containing complex numbers, ordinary transposition does not conjugate the entries. The conjugate transpose, written A∗A^* or AHA^{\mathrm H}, instead satisfies

A∗=A‾T.A^*=\overline A^{\mathsf T}.

It is the adjoint for standard complex inner products. Accordingly, Hermitian matrices satisfy A∗=AA^*=A, rather than necessarily AT=AA^{\mathsf T}=A. (math.brown.edu)

Applications and computation

For a real matrix XX, the Gram matrix XTXX^{\mathsf T}X contains inner products between columns. It is symmetric and positive semidefinite because

zTXTXz=∥Xz∥2≥0.z^{\mathsf T}X^{\mathsf T}Xz=\|Xz\|^2\geq0.

In ordinary least squares, including linear regression, minimizing ∥Xβ−y∥2\|X\beta-y\|^2 yields the normal equations

XTXβ^=XTy.X^{\mathsf T}X\hat\beta=X^{\mathsf T}y.

The solution is unique when XX has linearly independent columns. Geometrically, these equations state that the residual is orthogonal to every column of XX. (ocw.mit.edu)

Software distinguishes mathematical transposition from physically rearranging stored entries. NumPy’s transpose operation can return a view sharing the original data rather than a copied array. For multidimensional arrays, it permutes axes; matrix transposition is the two-axis case. A one-dimensional array has no separate row and column axes, so transposing it leaves its shape unchanged. Representing it as a column or row therefore requires an additional axis. (numpy.org)