Canonical: https://knowlpedia.com/algebra-groups/subgroup/

# Subgroup

A subset of a group that is itself a group under the same operation

Let \(G\) be a [group](https://knowlpedia.com/algebra-groups/group/) with operation \(\cdot\). A **subgroup** of \(G\) is a [subset](https://knowlpedia.com/shared-foundations/subset/) \(H\subseteq G\) such that:

1. \(e\in H\) (where \(e\) is the identity of \(G\)),
2. for all \(a,b\in H\) we have \(a\cdot b\in H\),
3. for all \(a\in H\) we have \(a^{-1}\in H\).

## Examples

- For \(n\in\mathbb{Z}\), the set \(n\mathbb{Z}=\{nk:k\in\mathbb{Z}\}\) is a subgroup of \((\mathbb{Z},+)\).
- The [alternating group](https://knowlpedia.com/algebra-groups/alternating-group/) \(A_n\) is a subgroup of \(S_n\).
- The set of diagonal invertible matrices is a subgroup of the group of invertible matrices under multiplication.

## Equivalent characterizations

Equivalently, \(H\) is a subgroup iff it is nonempty and closed under the one-step test \(ab^{-1}\in H\); see the [subgroup test](https://knowlpedia.com/algebra-groups/subgroup-test-one-step/).

## Remarks

Subgroups are the basic inputs for [cosets](https://knowlpedia.com/algebra-groups/coset/) and for size constraints in finite groups via [Lagrange's theorem](https://knowlpedia.com/algebra-groups/lagranges-theorem/).
