Canonical: https://knowlpedia.com/algebra-groups/subgroup-test-one-step/

# Subgroup Test (one-step)

A nonempty subset H of a group is a subgroup exactly when xy⁻¹ belongs to H for all x,y in H.

**One-step subgroup test.** Let \(G\) be a [group](https://knowlpedia.com/algebra-groups/group/) and let \(H\) be a nonempty [subset](https://knowlpedia.com/shared-foundations/subset/) of \(G\). Then \(H\) is a [subgroup](https://knowlpedia.com/algebra-groups/subgroup/) of \(G\) if and only if
\[
x,y\in H\quad\Longrightarrow\quad xy^{-1}\in H.
\]

## Remarks

Taking \(x=y\) gives the identity, taking \(x=e\) gives inverses, and the displayed condition then gives closure under products.
