I have a question about the following problem: show that $$S=\{ A \in GL_n(K) \mid AJA^t = J \}$$ is a subgroup of $GL_n(K)$, where $J\in K^{n\times n}$.
I have shown that the identity element $e$ is part of $S$, but I don't know to prove the second criteria for a subgroup. Thanks in advance!
I will use the one-step subgroup test.
Clearly $\varnothing\neq S\subseteq GL_n(K)$.
Let $A,B\in S.$ Then $AJA^t=J=BJB^t$. Observe that $$\begin{align} B^{-1}J(B^t)^{-1}&=B^{-1}BJB^t(B^t)^{-1}\\ &=J. \end{align}$$
We aim to show that $AB^{-1}\in S$. Indeed,
$$\begin{align} (AB^{-1})J(AB^{-1})^t&=(AB^{-1})J((B^{-1})^tA^t)\\ &=A(B^{-1}J(B^t)^{-1})A^t\tag{1}\\ &=AJA^t\\ &=J. \end{align}$$
Hence $S\le GL_n(K)$.
$(1)$: See here.