1.1.7Linear Algebra Essentials

Matrix transpose and properties

1,746 words8 min readdifficulty · medium5 backlinks

WHAT is the transpose?

WHY this definition? The main diagonal (entries AiiA_{ii}) stays put — a "mirror line". Off-diagonal entries swap partners: whatever sat at (j,i)(j,i) moves to (i,j)(i,j). So the shape m×nm\times n becomes n×mn\times m.

Figure — Matrix transpose and properties

HOW the core properties are derived

Everything below is proved from the single rule (A)ij=Aji(A^\top)_{ij} = A_{ji}. No memorising.

1. Transpose is self-inverse

((A))ij=(A)ji=Aij    (A)=A.\big((A^\top)^\top\big)_{ij} = (A^\top)_{ji} = A_{ij} \implies (A^\top)^\top = A. Why? Flipping twice returns every entry to its home. So \top is an involution.

2. Linearity: (A+B)=A+B(A+B)^\top = A^\top + B^\top and (cA)=cA(cA)^\top = cA^\top

((A+B))ij=(A+B)ji=Aji+Bji=(A)ij+(B)ij.((A+B)^\top)_{ij} = (A+B)_{ji} = A_{ji}+B_{ji} = (A^\top)_{ij}+(B^\top)_{ij}. Why? Transpose only moves entries around; addition is done entry-by-entry, so the two operations commute.

3. The reverse-order rule: (AB)=BA(AB)^\top = B^\top A^\top

Start from the matrix-product definition (AB)ij=kAikBkj(AB)_{ij} = \sum_k A_{ik}B_{kj}: ((AB))ij=(AB)ji=kAjkBki.\big((AB)^\top\big)_{ij} = (AB)_{ji} = \sum_k A_{jk}B_{ki}. Now rewrite each factor using the transpose rule (Ajk=(A)kjA_{jk}=(A^\top)_{kj}, Bki=(B)ikB_{ki}=(B^\top)_{ik}): =k(B)ik(A)kj=(BA)ij.= \sum_k (B^\top)_{ik}(A^\top)_{kj} = (B^\top A^\top)_{ij}. Hence (AB)=BA(AB)^\top = B^\top A^\top.

4. Transpose of an inverse: (A1)=(A)1(A^{-1})^\top = (A^\top)^{-1}

Transpose both sides of AA1=IA A^{-1} = I using rule 3 (and I=II^\top = I): (A1)A=I    (A1)=(A)1.(A^{-1})^\top A^\top = I \implies (A^{-1})^\top = (A^\top)^{-1}. Notation AA^{-\top} is shorthand for this common object.

5. Determinant is unchanged: det(A)=det(A)\det(A^\top) = \det(A)

The Leibniz formula sums over permutations σ\sigma: each product iAi,σ(i)\prod_i A_{i,\sigma(i)} becomes iAσ(i),i\prod_i A_{\sigma(i),i} under transpose, which is just the same sum reindexed by σ1\sigma^{-1} (same sign). So the total is identical.


Symmetric & skew-symmetric matrices


The transpose is the dot-product mover

Also: for a vector xx, xx=ixi2=x2x^\top x = \sum_i x_i^2 = \|x\|^2. The transpose turns a column into the machine that computes squared length.


Worked examples


Common mistakes (steel-manned)


Recall Feynman: explain to a 12-year-old

Imagine a class seating chart drawn as a grid. Each number says "this kid in row ii, seat jj." The transpose is what you get if you turn the grid on its side so rows become columns — like tilting a photo 90° along its diagonal mirror. The kid who was in "row 3, seat 1" is now in "row 1, seat 3." You didn't add or remove any kids, you just changed how you read the grid. And a cool rule: if you first do task AA then task BB and flip the whole thing, it's the same as flipping BB, then flipping AA — you have to undo them in reverse order, like taking off your shoes before your socks.


Flashcards

What is the defining entry rule for the transpose?
(A)ij=Aji(A^\top)_{ij} = A_{ji} — swap the two indices.
How does transpose change the shape of an m×nm\times n matrix?
It becomes n×mn\times m.
State the reverse-order (socks-and-shoes) rule.
(AB)=BA(AB)^\top = B^\top A^\top.
Derive why (AB)=BA(AB)^\top=B^\top A^\top and not ABA^\top B^\top.
(AB)ij=kAjkBki=k(B)ik(A)kj(AB)^\top_{ij}=\sum_k A_{jk}B_{ki}=\sum_k (B^\top)_{ik}(A^\top)_{kj}; also shapes force the reversal.
What is (A)(A^\top)^\top?
AA — transpose is an involution (self-inverse).
When is AA symmetric? Skew-symmetric?
Symmetric: A=AA^\top=A. Skew: A=AA^\top=-A (zero diagonal).
Why is AAA^\top A always symmetric?
(AA)=A(A)=AA(A^\top A)^\top = A^\top(A^\top)^\top = A^\top A.
How do you split any square AA into symmetric + skew parts?
A=12(A+A)+12(AA)A=\tfrac12(A+A^\top)+\tfrac12(A-A^\top).
Relationship between det(A)\det(A) and det(A)\det(A^\top)?
Equal; hence same characteristic polynomial and eigenvalues.
What is (A1)(A^{-1})^\top?
(A)1(A^\top)^{-1} (proved by transposing AA1=IAA^{-1}=I).
Inner-product / adjoint property of transpose?
Ax,y=x,Ay\langle Ax,y\rangle=\langle x,A^\top y\rangle.
Why must a skew-symmetric matrix have zero diagonal?
Aii=AiiAii=0A_{ii}=-A_{ii}\Rightarrow A_{ii}=0.

Connections

Concept Map

formalised as

flip twice

entry-wise adds

applied to product

swaps dimensions

forces order

transpose of AA^-1=I

Leibniz reindex

underlies

Flip across diagonal

Rule: (A^T)ij = Aji

Self-inverse involution

Linearity of transpose

Reverse-order: (AB)^T = B^T A^T

Shape m×n becomes n×m

Inverse: (A^-1)^T = (A^T)^-1

det(A^T) = det(A)

Symmetry and dot products

Hinglish (regional understanding)

Intuition Hinglish mein samjho

Dekho, transpose ka funda bilkul simple hai: matrix ko uski main diagonal ke around palat do. Jo rows the woh columns ban jaate hain, aur jo columns the woh rows. Rule sirf ek hai — (A)ij=Aji(A^\top)_{ij} = A_{ji} — matlab index ii aur jj ko aapas mein swap kar do. Isse shape m×nm\times n ka n×mn\times m ho jaata hai, lekin koi number naya add ya delete nahi hota, sirf padhne ka tareeka badalta hai.

Sabse important property jise students galat karte hain: (AB)=BA(AB)^\top = B^\top A^\top, na ki ABA^\top B^\top. Yaad rakhne ka tareeka — "socks and shoes": pehle shoes utaaro phir socks, order ulta ho jaata hai. Logically bhi, agar AA hai m×nm\times n aur BB hai n×pn\times p, to (AB)(AB)^\top hoga p×mp\times m, aur yeh sirf tabhi banega jab BB^\top pehle aaye. Shape khud force kar deti hai order ko.

ML mein transpose kyun matter karta hai? Kyunki AAA^\top A hamesha symmetric hota hai — proof: (AA)=AA(A^\top A)^\top = A^\top A. Isi wajah se covariance matrix, Gram matrix, aur least-squares ki normal equations AAx=AbA^\top A x = A^\top b symmetric world mein aate hain, jahan eigenvalues real hote hain aur eigenvectors orthogonal. PCA, linear regression — sab yahin se aata hai.

Ek aur deep baat: transpose actually dot product ko "doosri taraf" le jaata hai — Ax,y=x,Ay\langle Ax, y\rangle = \langle x, A^\top y\rangle. Yeh transpose ka asli, coordinate-free matlab hai (ise adjoint bolte hain). Bas itna samajh lo to poora chapter khul jaata hai.

Test yourself — Linear Algebra Essentials

Connections