Let $V$ be a finite vector space over $\Bbb R$, let $q$ be an non-degenerate bilinear form. Let $T: V \to V$ be a linear transformation.
Prove that exists one and only one $S: V \to V$ so that $S$ is a linear transfomration satisfying:
$\forall v,w \in V \hspace{1.5mm} q(T(v), w) = q(v, S(w))$
My initial thought was to choose a Matrix $M$ that represents $q$ in some basis $C$ of $V$, and prove:
$[T(v)^t]_CM[w]_C \hspace{1.5mm} - [v^t]_CM[S(w)^t]_C = 0$
Obviously, if $M$ is positive-definite then we can take $S$ to be $T^*$ and we achieve the desired result since $q$ is an inner product. However, if $M$ is not definite-positive, I'm not sure how to tackle this - mainly unsure how to use the fact that $M$ is invertible. Any help is appreciated very much.
Using your approach we obtain, thinking of $T$ and $S$ as square matrices, $$v^t T^t M w = v^t M S w \quad \textrm{for all }v, \, w,$$ so we must have $T^t M = M S$. This implies, using the fact that $M$ is invertible, $$S = M^{-1} T^t M.$$