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!