I have proved $P'=AP$
where
$$P= \begin{pmatrix} T \\ N \\B \end{pmatrix}$$
$$A= \begin{pmatrix} 0 & \kappa & 0 \\ -\kappa & 0 & \tau \\ 0 & -\tau & 0 \\ \end{pmatrix} $$.
I am trying to show $P$ is orthogonal by this fact. I try to differentiate $PP^t$, then $P'(P^t)+P(P^t)'=APP^t-PP^tA$ since $A$ is skew-symmetric. But I am stuck here, I am wondering if it is true that $APP^t=PP^tA$.