Euler Hall — free maths guides

Test whether a matrix equals its transpose

Decide symmetry by comparing every mirrored pair of off-diagonal entries. The idea in plain words, a worked example, and a check with the answers shown — part of the free Linear Algebra guides.

The definition

SS is symmetric when

ST=S,S^{T}=S,

which — entry by entry — means

sij=sjifor every i,j.s_{ij}=s_{ji}\quad\text{for every }i,j.

Because that condition is trivial wheni=ji=j (every entry equals itself), the real content is the off-diagonal pairs: for a3×33\times3 there are three of them,(1,2)(1,2)(2,1)(2,1),(1,3)(1,3)(3,1)(3,1) and(2,3)(2,3)(3,2)(3,2); for ann×nn\times n there aren(n−1)2\tfrac{n(n-1)}{2}.

Why "the first row looks fine" is not a shortcut

Symmetry is a statement about every pair at once, so passing it is a universal claim and failing it is an existential one. That asymmetry matters for how you answer:

To say yes, you must check alln(n−1)2\tfrac{n(n-1)}{2} pairs. There is no shortcut. To say no, one mismatched pair is a complete proof, and you should say which pair it is.

There is one useful shortcut in the other direction: a matrix and its transpose always have the same diagonal, so a difference betweenSS andSTS^{T} must show up in an off-diagonal position. If you have computedSTS^{T} and the two look identical, check an off-diagonal pair — the diagonal cannot be where they differ.

A worked example in the exam's shape

S=[23−1305−154].S=\begin{bmatrix}2&3&-1\\3&0&5\\-1&5&4\end{bmatrix}.

Three pairs:

  • *(1,2)=3(1,2)=3 against(2,1)=3(2,1)=3 ✓
  • *(1,3)=−1(1,3)=-1 against(3,1)=−1(3,1)=-1 ✓
  • *(2,3)=5(2,3)=5 against(3,2)=5(3,2)=5 ✓

All three match, soST=SS^{T}=S andSS is symmetric. The diagonal2,0,42,0,4 never entered the test.

Now change the(3,2)(3,2) entry to77. Then(2,3)=5≠7=(3,2)(2,3)=5\ne7=(3,2) — one pair fails and the matrix is not symmetric. That single change is all it takes.

By the end you can
  • Decide symmetry by comparing every mirrored pair of off-diagonal entries
  • Say how many pairs a 4x4 matrix has and why the diagonal is not part of the test
  • Complete a matrix so that it becomes symmetric
Check yourself

(a) IsAA symmetric? (b) IsBB symmetric? If not, name the pair that fails. (c) How many off-diagonal pairs must be checked for a4×44\times4 matrix?

Answers

(a) Yes.(1,2)=4=(2,1)(1,2)=4=(2,1);(1,3)=0=(3,1)(1,3)=0=(3,1);(2,3)=7=(3,2)(2,3)=7=(3,2).

(b) No. The pair(1,2)(1,2)(2,1)(2,1) holds44 and55, which differ. Every other pair matches, which is why one passing pair is not evidence of anything — you need all of them.

(c)4⋅32=6\tfrac{4\cdot3}{2}=6.

Work out where to start — free, no accountAnswer six real questions — free, no account