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

# Subgroup Test (two-step)

A nonempty subset of a group is a subgroup iff it is closed under products and inverses

**Subgroup Test (two-step)**: 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:

1. for all \(x,y\in H\) one has \(xy\in H\) (closure under the group operation), and
2. for all \(x\in H\) one has \(x^{-1}\in H\) (closure under inverses).

## Remarks

This criterion is equivalent to the [one-step subgroup test](https://knowlpedia.com/algebra-groups/subgroup-test-one-step/); use whichever closure condition is easier to verify in a given situation.
