A group is a nonempty set with a closed binary operation that is associative, has an identity element, and gives every element an inverse element. A subgroup is a subset that is itself a group under the inherited operation. The left coset of represented by is ; right cosets are defined analogously. Left cosets partition a finite group, and is a bijection from to . Therefore , proving Lagrange's theorem and the required divisibility.
For the given matrices, put and . Since , the generators commute; , , and the generated elements are
They are distinct, and , with exponents reduced modulo four and two. The Cayley table is
The table proves closure and identifies as the identity. The inverse element of is , and associativity follows from matrix multiplication. Thus this is the direct product of cyclic groups of orders four and two, an abelian group of order eight.
Its subgroups are exactly
To see the list is complete, Lagrange's theorem leaves orders one, two, four and eight. There are exactly three elements of order two, giving the three order-two subgroups. An order-four subgroup containing an element of order four must be one of the two cyclic groups displayed; without such an element it must be the four-element set of elements whose squares are . This is the enumeration in subgroups of C4 times C2.
For example choose . A complete set of cosets is . Since is Abelian, the left and right cosets coincide.