If HH is a nonempty subset of a group GG, then HH is a subgroup of GG if and only if

xy1Hxy^{-1} \in H

for all x,yHx,y \in H.

Why it matters

This is the fastest practical way to prove a subset is a subgroup.