I know that matrix multiplication is not commutative, but if $B = P^TAP$, then is $B = PAP^T$? In the same way that, if A and B are similar, then $A = P^{-1}BP$ and $A = PBP^{-1}$ are equivalent.
I would appreciate it if someone can please take the time to confirm.
No. If$$P=\begin{pmatrix}1&2\\3&4\end{pmatrix}\text{ and }A=\begin{pmatrix}1&1\\0&1\end{pmatrix},$$then$$P^T.A.P=\begin{pmatrix}13 & 18 \\ 20 & 28\end{pmatrix}\text{, whereas }P.A.P^T=\begin{pmatrix}7 & 15 \\ 17 & 37\end{pmatrix}.$$And it is false with inverses intead of transposes, too.