For a left -module, group cohomology is
with the trivial module. Equivalently take a projective resolution and the cohomology of . This also describes the right-derived functors of the invariant-module functor .
For an explicit model, the homogeneous bar free resolution has , with diagonal -action and boundary the alternating sum of coordinate deletions. It is free over : each orbit has a unique representative with first coordinate . The augmented complex is exact because inserting as a first coordinate supplies a contracting homotopy of underlying abelian groups; its lack of -equivariance does not affect exactness. The associated inhomogeneous group cochains are functions , with
For group cochains of degree zero, . Adjacent deletions cancel in pairs, giving and hence .
In degree zero this gives
It is also , since a map is determined by the invariant image of .
In degree one the cocycle condition is , so
These are crossed homomorphisms modulo principal crossed homomorphisms. For trivial action they reduce to ordinary group homomorphisms, so .
There are two further useful descriptions. If is the augmentation ideal, a crossed homomorphism gives an equivariant map by , because . Applying to therefore gives
Also a section of has the form and is a group homomorphism exactly when is a crossed homomorphism. Conjugation of sections by an element of changes by a principal crossed homomorphism. Thus classifies the -conjugacy classes of such sections, or equivalently of complements to in the semidirect product.
In degree two, a normalized two-cocycle satisfies
Define multiplication on by
The displayed cocycle identity is precisely associativity; normalization gives the identity and inverses exist. This produces a group extension with the prescribed action on .
Conversely a set-theoretic section , , gives in the additive kernel of a group homomorphism. Associativity gives the cocycle condition. Replacing by changes by
The resulting extensions are equivalent through a change of coordinates in . Conversely any extension equivalence preserving both kernel of a group homomorphism and quotient yields such a change of section. Hence
The zero class corresponds exactly to a split extension. With trivial action these are central group extensions; addition of classes corresponds to the Baer sum. This proves the second group cohomology classifies group extensions interpretation.
For and trivial coefficients , put . The Koszul resolution for a rank-two free abelian group is
where and . To check exactness at , reduce modulo . Since is not a zero divisor in , write , and cancellation gives . Injectivity of follows because is a domain. The augmentation kernel is generated by , proving the other exactness statement.
Applying makes both differentials zero, since act trivially. Thus
Degree-one classes assign arbitrary integers to the two generators. Geometrically these are also the cohomology groups of the torus, a classifying space for ; its cohomology ring is the exterior algebra on the two degree-one classes.
The integer in degree two has an explicit extension representative. On triples , set
The bilinear term is a two-cocycle. With generators , and central ,
Every central extension of by has this form: choose lifts of the two generators and the fixed generator of the kernel of a group homomorphism, then their group commutator determines and every element has a unique form . Changing the lifts by central elements leaves that commutator unchanged. Thus distinct integers give inequivalent extensions, and the cocycles add with . The case is ; is the integer Heisenberg group. This realizes the integral central extensions of a rank-two free abelian group concretely.