# Group cohomology

In mathematics (more specifically, in homological algebra), group cohomology is a set of mathematical tools used to study groups using cohomology theory, a technique from algebraic topology. Analogous to group representations, group cohomology looks at the group actions of a group G in an associated G-module M to elucidate the properties of the group. By treating the G-module as a kind of topological space with elements of $G^{n}$ representing n-simplices, topological properties of the space may be computed, such as the set of cohomology groups $H^{n}(G,M)$. The cohomology groups in turn provide insight into the structure of the group G and G-module M themselves. Group cohomology plays a role in the investigation of fixed points of a group action in a module or space and the quotient module or space with respect to a group action. Group cohomology is used in the fields of abstract algebra, homological algebra, algebraic topology and algebraic number theory, as well as in applications to group theory proper. As in algebraic topology, there is a dual theory called group homology. The techniques of group cohomology can also be extended to the case that instead of a G-module, G acts on a nonabelian G-group; in effect, a generalization of a module to non-Abelian coefficients.
These algebraic ideas are closely related to topological ideas. The group cohomology of a discrete group G is the singular cohomology of a suitable space having G as its fundamental group, namely the corresponding Eilenberg–MacLane space. Thus, the group cohomology of $\mathbb {Z}$ can be thought of as the singular cohomology of the circle S$^1$. Likewise, the group cohomology of $\mathbb {Z} /2\mathbb {Z}$ is the singular cohomology of $\mathbb {P} ^{\infty }(\mathbb {R} ).$
A great deal is known about the cohomology of groups, including interpretations of low-dimensional cohomology, functoriality, and how to change groups. The subject of group cohomology began in the 1920s, matured in the late 1940s, and continues as an area of active research today.

## Motivation

A general paradigm in group theory is that a group G should be studied via its group representations. A slight generalization of those representations are the G-modules: a G-module is an abelian group M together with a group action of G on M, with every element of G acting as an automorphism of M. We will write G multiplicatively and M additively.
Given such a G-module M, it is natural to consider the submodule of G-invariant elements:
    $M^{G}=\lbrace x\in M\ |\ \forall g\in G:\ gx=x\rbrace .$
Now, if N is a G-submodule of M (i.e., a subgroup of M mapped to itself by the action of G), it isn't in general true that the invariants in $M/N$ are found as the quotient of the invariants in M by those in N: being invariant 'modulo N ' is broader. The purpose of the first group cohomology $H^{1}(G,N)$ is to precisely measure this difference.
The group cohomology functors $H^{*}$ in general measure the extent to which taking invariants doesn't respect exact sequences. This is expressed by a long exact sequence.

## Definitions

The collection of all G-modules is a category (the morphisms are equivariant group homomorphisms, that is group homomorphisms f with the property $f(gx)=g(f(x))$ for all g in G and x in M). Sending each module M to the group of invariants $M^{G}$ yields a functor from the category of G-modules to the category Ab of abelian groups. This functor is left exact but not necessarily right exact. We may therefore form its right derived functors. Their values are abelian groups and they are denoted by $H^{n}(G,M)$, "the n-th cohomology group of G with coefficients in M". Furthermore, the group $H^{0}(G,M)$ may be identified with $M^{G}$.

### Cochain complexes

The definition using derived functors is conceptually very clear, but for concrete applications, the following computations, which some authors also use as a definition, are often helpful. For $n\geq 0,$ let $C^{n}(G,M)$ be the group of all functions from $G^{n}$ to M (here $G^{0}$ means $\operatorname {id} _{G}$). This is an abelian group; its elements are called the (inhomogeneous) n-cochains. The coboundary homomorphisms are defined by
    ${\begin{cases}d^{n+1}\colon C^{n}(G,M)\to C^{n+1}(G,M)\\\left(d^{n+1}\varphi \right)(g_{1},\ldots ,g_{n+1})=g_{1}\varphi (g_{2},\dots ,g_{n+1})+\sum _{i=1}^{n}(-1)^{i}\varphi \left(g_{1},\ldots ,g_{i-1},g_{i}g_{i+1},\ldots ,g_{n+1}\right)+(-1)^{n+1}\varphi (g_{1},\ldots ,g_{n}).\end{cases}}$
One may check that $d^{n+1}\circ d^{n}=0,$ so this defines a cochain complex whose cohomology can be computed. It can be shown that the above-mentioned definition of group cohomology in terms of derived functors is isomorphic to the cohomology of this complex
    $H^{n}(G,M)=Z^{n}(G,M)/B^{n}(G,M).$
Here the groups of n-cocycles, and n-coboundaries, respectively, are defined as
    $Z^{n}(G,M)=\ker(d^{n+1})$
    $B^{n}(G,M)={\begin{cases}0&n=0\\\operatorname {im} (d^{n})&n\geqslant 1\end{cases}}$

### The functors Ext$^n$ and formal definition of group cohomology

Interpreting G-modules as modules over the group ring $\mathbb {Z} [G],$ one can note that
    $H^{0}(G,M)=M^{G}=\operatorname {Hom} _{\mathbb {Z} [G]}(\mathbb {Z} ,M),$
i.e., the subgroup of G-invariant elements in M is identified with the group of homomorphisms from $\mathbb {Z}$, which is treated as the trivial G-module (every element of G acts as the identity) to M.
Therefore, as Ext functors are the derived functors of Hom, there is a natural isomorphism
    $H^{n}(G,M)=\operatorname {Ext} _{\mathbb {Z} [G]}^{n}(\mathbb {Z} ,M).$
These Ext groups can also be computed via a projective resolution of $\mathbb {Z}$, the advantage being that such a resolution only depends on G and not on M. We recall the definition of Ext more explicitly for this context. Let F be a projective $\mathbb {Z} [G]$-resolution (e.g. a free $\mathbb {Z} [G]$-resolution) of the trivial $\mathbb {Z} [G]$-module $\mathbb {Z}$:
    $\cdots \to F_{n}\to F_{n-1}\to \cdots \to F_{0}\to \mathbb {Z} \to 0.$
e.g., one may always take the resolution of group rings, $F_{n}=\mathbb {Z} [G^{n+1}],$ with morphisms
    ${\begin{cases}f_{n}:\mathbb {Z} [G^{n+1}]\to \mathbb {Z} [G^{n}]\\(g_{0},g_{1},\ldots ,g_{n})\mapsto \sum _{i=0}^{n}(-1)^{i}\left(g_{0},\ldots ,{\widehat {g_{i}}},\dots ,g_{n}\right)\end{cases}}$
Recall that for $\mathbb {Z} [G]$-modules N and M, Hom$_G$(N, M) is an abelian group consisting of $\mathbb {Z} [G]$-homomorphisms from N to M. Since $\operatorname {Hom} _{G}(-,M)$ is a contravariant functor and reverses the arrows, applying $\operatorname {Hom} _{G}(-,M)$ to F termwise and dropping $\operatorname {Hom} _{G}(\mathbb {Z} ,M)$ produces a cochain complex $\operatorname {Hom} _{G}(-,M)(F,M)$:
    $\cdots \leftarrow \operatorname {Hom} _{G}(F_{n},M)\leftarrow \operatorname {Hom} _{G}(F_{n-1},M)\leftarrow \dots \leftarrow \operatorname {Hom} _{G}(F_{0},M)\leftarrow 0.$
The cohomology groups $H^{*}(G,M)$ of G with coefficients in the module M are defined as the cohomology of the above cochain complex:
    $H^{n}(G,M)=H^{n}({\rm {Hom}}_{G}(F,M)),\qquad n\geqslant 0.$
This construction initially leads to a coboundary operator that acts on the "homogeneous" cochains. These are the elements of $\operatorname {Hom} _{G}(F,M)$, that is, functions $\phi _{n}\colon G^{n}\to M$ that obey
    $g\phi _{n}(g_{1},g_{2},\ldots ,g_{n})=\phi _{n}(gg_{1},gg_{2},\ldots ,gg_{n}).$
The coboundary operator $\delta \colon C^{n}\to C^{n+1}$ is now naturally defined by, for example,
    $\delta \phi _{2}(g_{1},g_{2},g_{3})=\phi _{2}(g_{2},g_{3})-\phi _{2}(g_{1},g_{3})+\phi _{2}(g_{1},g_{2}).$
The relation to the coboundary operator d that was defined in the previous section, and which acts on the "inhomogeneous" cochains $\varphi$, is given by reparameterizing so that
    ${\begin{aligned}\varphi _{2}(g_{1},g_{2})&=\phi _{3}(1,g_{1},g_{1}g_{2})\\\varphi _{3}(g_{1},g_{2},g_{3})&=\phi _{4}(1,g_{1},g_{1}g_{2},g_{1}g_{2}g_{3}),\end{aligned}}$
and so on. Thus
    ${\begin{aligned}d\varphi _{2}(g_{1},g_{2},g_{3})&=\delta \phi _{3}(1,g_{1},g_{1}g_{2},g_{1}g_{2}g_{3})\\&=\phi _{3}(g_{1},g_{1}g_{2},g_{1}g_{2}g_{3})-\phi _{3}(1,g_{1}g_{2},g_{1}g_{2}g_{3})+\phi _{3}(1,g_{1},g_{1}g_{2}g_{3})-\phi _{3}(1,g_{1},g_{1}g_{2})\\&=g_{1}\phi _{3}(1,g_{2},g_{2}g_{3})-\phi _{3}(1,g_{1}g_{2},g_{1}g_{2}g_{3})+\phi _{3}(1,g_{1},g_{1}g_{2}g_{3})-\phi _{3}(1,g_{1},g_{1}g_{2})\\&=g_{1}\varphi _{2}(g_{2},g_{3})-\varphi _{2}(g_{1}g_{2},g_{3})+\varphi _{2}(g_{1},g_{2}g_{3})-\varphi _{2}(g_{1},g_{2}),\end{aligned}}$
as in the preceding section.

## Group homology

Dually to the construction of group cohomology there is the following definition of group homology: given a G-module M, set DM to be the submodule generated by elements of the form g·m − m, g ∈ G, m ∈ M. Assigning to M its so-called coinvariants, the quotient
    $M_{G}:=M/DM,$
is a right exact functor. Its left derived functors are by definition the group homology
    $H_{n}(G,M).$
The covariant functor which assigns M$_G$ to M is isomorphic to the functor which sends M to $\mathbb {Z} \otimes _{\mathbb {Z} [G]}M,$ where $\mathbb {Z}$ is endowed with the trivial G-action. Hence one also gets an expression for group homology in terms of the Tor functors,
    $H_{n}(G,M)=\operatorname {Tor} _{n}^{\mathbb {Z} [G]}(\mathbb {Z} ,M)$
Note that the superscript/subscript convention for cohomology/homology agrees with the convention for group invariants/coinvariants, while which is denoted "co-" switches:
* superscripts correspond to cohomology H* and invariants X$^G$ while
* subscripts correspond to homology H$_∗$ and coinvariants X$_G$ := X/G.
Specifically, the homology groups H$_n$(G, M) can be computed as follows. Start with a projective resolution F of the trivial $\mathbb {Z} [G]$-module $\mathbb {Z} ,$ as in the previous section. Apply the covariant functor $\cdot \otimes _{\mathbb {Z} [G]}M$ to F termwise to get a chain complex $F\otimes _{\mathbb {Z} [G]}M$:
    $\cdots \to F_{n}\otimes _{\mathbb {Z} [G]}M\to F_{n-1}\otimes _{\mathbb {Z} [G]}M\to \cdots \to F_{0}\otimes _{\mathbb {Z} [G]}M\to \mathbb {Z} \otimes _{\mathbb {Z} [G]}M.$
Then H$_n$(G, M) are the homology groups of this chain complex, $H_{n}(G,M)=H_{n}(F\otimes _{\mathbb {Z} [G]}M)$ for n ≥ 0.
Group homology and cohomology can be treated uniformly for some groups, especially finite groups, in terms of complete resolutions and the Tate cohomology groups.
The group homology $H_{*}(G,k)$ of abelian groups G with values in a principal ideal domain k is closely related to the exterior algebra $\wedge ^{*}(G\otimes k)$.

## Low-dimensional cohomology groups
### H$^1$

The first cohomology group is the quotient of the so-called crossed homomorphisms, i.e. maps (of sets) f : G → M satisfying f(ab) = f(a) + af(b) for all a, b in G, modulo the so-called principal crossed homomorphisms, i.e. maps f : G → M given by f(g) = gm−m for some fixed m ∈ M. This follows from the definition of cochains above.
If the action of G on M is trivial, then the above boils down to H$^1$(G,M) = Hom(G, M), the group of group homomorphisms G → M, since the crossed homomorphisms are then just ordinary homomorphisms and the coboundaries (i.e. the principal crossed homomorphisms) must have image identically zero: hence there is only the zero coboundary.
On the other hand, consider the case of $H^{1}(\mathbb {Z} /2,\mathbb {Z} _{-}),$ where $\mathbb {Z} _{-}$ denotes the non-trivial $\mathbb {Z} /2$-structure on the additive group of integers, which sends a to -a for every $a\in \mathbb {Z}$; and where we regard $\mathbb {Z} /2$ as the group $\{\pm 1\}$. By considering all possible cases for the images of $\{1,-1\}$, it may be seen that crossed homomorphisms constitute all maps $f_{t}:\{\pm 1\}\to \mathbb {Z}$ satisfying $f_{t}(1)=0$ and $f_{t}(-1)=t$ for some arbitrary choice of integer t. Principal crossed homomorphisms must additionally satisfy $f_{t}(-1)=(-1)*m-m=-2m$ for some integer m: hence every crossed homomorphism $f_{t}$ sending -1 to an even integer $t=-2m$ is principal, and therefore:
    $H^{1}(\mathbb {Z} /2,\mathbb {Z} _{-})\cong \mathbb {Z} /2={\rm {\ (say)\ {\it}}}\langle f:f(1)=0,f(-1)=1\rangle ,$
with the group operation being pointwise addition: $(f_{s}+f_{t})(x)=f_{s}(x)+f_{t}(x)=f_{s+t}(x)$, noting that $f_{0}$ is the identity element.

### H$^2$

If M is a trivial G-module (i.e. the action of G on M is trivial), the second cohomology group H$^2$(G,M) is in one-to-one correspondence with the set of central extensions of G by M (up to a natural equivalence relation). More generally, if the action of G on M is nontrivial, H$^2$(G,M) classifies the isomorphism classes of all extensions $0\to M\to E\to G\to 0$ of G by M, in which the action of G on E (by inner automorphisms), endows (the image of) M with an isomorphic G-module structure.
In the example from the section on $H^{1}$ immediately above, $H^{2}(\mathbb {Z} /2,\mathbb {Z} _{-})=0,$ as the only extension of $\mathbb {Z} /2$ by $\mathbb {Z}$ with the given nontrivial action is the infinite dihedral group, which is a split extension and so trivial inside the $H^{2}$ group. This is in fact the significance in group-theoretical terms of the unique non-trivial element of $H^{1}(\mathbb {Z} /2,\mathbb {Z} _{-}),$.
An example of a second cohomology group is the Brauer group: it is the cohomology of the absolute Galois group of a field k which acts on the invertible elements in a separable closure:
    $H^{2}\left(\mathrm {Gal} (k),(k^{\mathrm {sep} })^{\times }\right).$
See also .

## Basic examples
### Group cohomology of a finite cyclic group

For the finite cyclic group $G=C_{m}$ of order $m$ with generator $\sigma$, the element $\sigma -1\in \mathbb {Z} [G]$ in the associated group ring is a divisor of zero because its product with $N$, given by
   $N=1+\sigma +\sigma ^{2}+\cdots +\sigma ^{m-1}\in \mathbb {Z} [G],$
gives
   ${\begin{aligned}N(1-\sigma )&=1+\sigma +\cdots +\sigma ^{m-1}\\&\quad -\sigma -\sigma ^{2}-\cdots -\sigma ^{m}\\&=1-\sigma ^{m}\\&=0.\end{aligned}}$
This property can be used to construct the resolution of the trivial $\mathbb {Z} [G]$-module $\mathbb {Z}$ via the complex
   $\cdots \xrightarrow {\sigma -1} \mathbb {Z} [G]\xrightarrow {N} \mathbb {Z} [G]\xrightarrow {\sigma -1} \mathbb {Z} [G]\xrightarrow {\text{aug}} \mathbb {Z} \to 0$
giving the group cohomology computation for any $\mathbb {Z} [G]$-module $A$. Note the augmentation map gives the trivial module $\mathbb {Z}$ its $\mathbb {Z} [G]$-structure by
   ${\text{aug}}\left(\sum _{g\in G}a_{g}g\right)=\sum _{g\in G}a_{g}$
This resolution gives a computation of the group cohomology since there is the isomorphism of cohomology groups
   $H^{k}(G,A)\cong {\text{Ext}}_{\mathbb {Z} [G]}^{k}(\mathbb {Z} ,A)$
showing that applying the functor ${\text{Hom}}_{\mathbb {Z} [G]}(-,A)$ to the complex above (with $\mathbb {Z}$ removed since this resolution is a quasi-isomorphism), gives the computation
   $H^{k}(G,A)={\begin{cases}A^{G}/NA&k{\text{ even}},k\geq 2\\_{N}A/(\sigma -1)A&k{\text{ odd}},k\geq 1\end{cases}}$
for
   $_{N}A=\{a\in A:Na=0\}$
For example, if $A=\mathbb {Z}$, the trivial module, then $\mathbb {Z} ^{G}=\mathbb {Z}$, $N\mathbb {Z} ={\text{aug}}(N)\mathbb {Z} =m\mathbb {Z}$, and $_{N}\mathbb {Z} =0$, hence
   $H^{k}(C_{m},\mathbb {Z} )={\begin{cases}\mathbb {Z} /m\mathbb {Z} &k{\text{ even}},k\geq 2\\0&k{\text{ odd}},k\geq 1\end{cases}}$

#### Explicit cocycles

Cocycles for the group cohomology of a cyclic group can be given explicitly using the Bar resolution. We get a complete set of generators of $l$-cocycles for $l$ odd as the maps
   $\omega _{a}:B_{l}\to k^{*}$
given by
   $[g^{i_{1}},\ldots ,g^{i_{l}}]\mapsto \zeta _{m}^{ai_{1}\left[{\frac {i_{2}+i_{3}}{m}}\right]\cdots \left[{\frac {i_{l-1}+i_{l}}{m}}\right]}$
for $l$ odd, $0\leq a\leq m-1$, $\zeta _{m}$ a primitive $m$-th root of unity, $k$ a field containing $m$-th roots of unity, and
   $\left[{\frac {a}{b}}\right]$
for a rational number $a/b$ denoting the largest integer not greater than $a/b$. Also, we are using the notation
   $B_{l}=\bigoplus _{0\leq i_{1},\ldots ,i_{l}\leq m-1}\mathbb {Z} G\cdot [g^{i_{1}},\ldots ,g^{i_{l}}]$
where $g$ is a generator for $G=C_{m}$. Note that for $l$ non-zero even indices the cohomology groups are trivial.

### Cohomology of free groups
#### Using a resolution

Given a set $S$ the associated free group $G={\text{Free}}(S)={\underset {s\in S}{*}}\mathbb {Z}$ has an explicit resolution of the trivial module $\mathbb {Z} _{\text{triv}}$ which can be easily computed. Notice the augmentation map
   ${\text{aug}}:\mathbb {Z} [G]\to \mathbb {Z} _{\text{triv}}$
has kernel given by the free submodule $I_{S}$ generated by the set $\{s-1:s\in S\}$, so
   $I_{S}=\bigoplus _{s\in S}\mathbb {Z} [G]\cdot (s-1)$.
Because this object is free, this gives a resolution
   $0\to I_{S}\to \mathbb {Z} [G]\to \mathbb {Z} _{\text{triv}}\to 0$
hence the group cohomology of $G$ with coefficients in $\mathbb {Z} _{\text{triv}}$ can be computed by applying the functor ${\text{Hom}}_{\mathbb {Z} [G]}(-,\mathbb {Z} )$ to the complex $0\to I_{S}\to \mathbb {Z} [G]\to 0$, giving
   $H^{k}(G,\mathbb {Z} _{\text{triv}})={\begin{cases}\mathbb {Z} &k=0\\\bigoplus _{s\in S}\mathbb {Z} &k=1\\0&k\geq 2\end{cases}}$
this is because the dual map
   ${\text{Hom}}_{\mathbb {Z} [G]}(\mathbb {Z} [G],\mathbb {Z} _{\text{triv}})\to {\text{Hom}}_{\mathbb {Z} [G]}(I_{S},\mathbb {Z} _{\text{triv}})$
sends any $\mathbb {Z} [G]$-module morphism
   $\phi :\mathbb {Z} [G]\to \mathbb {Z} _{\text{triv}}$
to the induced morphism on $I_{S}$ by composing the inclusion. The only maps which are sent to $0$ are $\mathbb {Z}$-multiples of the augmentation map, giving the first cohomology group. The second can be found by noticing the only other maps
   $\psi \in {\text{Hom}}_{\mathbb {Z} [G]}(I_{S},\mathbb {Z} _{\text{triv}})$
can be generated by the $\mathbb {Z}$-basis of maps sending $(s-1)\mapsto 1$ for a fixed $s\in S$, and sending $(s'-1)\mapsto 0$ for any $s'\in S-\{s\}$.

#### Using topology

The group cohomology of free groups $\mathbb {Z} *\mathbb {Z} *\cdots *\mathbb {Z}$ generated by $n$ letters can be readily computed by comparing group cohomology with its interpretation in topology. Recall that for every group $G$ there is a topological space $BG$, called the classifying space of the group, which has the property
   $\pi _{1}(BG)=G{\text{ and }}\pi _{k}(BG)=0{\text{ for }}k\geq 2$.
In addition, it has the property that its topological cohomology is isomorphic to group cohomology
   $H^{k}(BG,\mathbb {Z} )\cong H^{k}(G,\mathbb {Z} )$
giving a way to compute some group cohomology groups. Note $\mathbb {Z}$ could be replaced by any local system ${\mathcal {L}}$ which is determined by a map
   $\pi _{1}(G)\to GL(V)$
for some abelian group $V$. In the case of $B(\mathbb {Z} *\cdots *\mathbb {Z} )$ for $n$ letters, this is represented by a wedge sum of $n$ circles $S^{1}\vee \cdots \vee S^{1}$ which can be showed using the Van-Kampen theorem, giving the group cohomology
   $H^{k}(\mathbb {Z} *\cdots *\mathbb {Z} )={\begin{cases}\mathbb {Z} &k=0\\\mathbb {Z} ^{n}&k=1\\0&k\geq 2\end{cases}}$

### Group cohomology of an integral lattice

For an integral lattice $\Lambda$ of rank $n$ (hence isomorphic to $\mathbb {Z} ^{n}$), its group cohomology can be computed with relative ease. First, because $B\mathbb {Z} \cong S^{1}$, and $B\mathbb {Z} \times B\mathbb {Z}$ has $\pi _{1}\cong \mathbb {Z} \times \mathbb {Z}$, which as abelian groups are isomorphic to $\mathbb {Z} \oplus \mathbb {Z}$, the group cohomology has the isomorphism
   $H^{k}(\Lambda ,\mathbb {Z} _{\text{triv}})\cong H^{k}(\mathbb {R} ^{n}/\mathbb {Z} ^{n},\mathbb {Z} )$
with the integral cohomology of a torus of rank $n$.

## Properties

In the following, let M be a G-module.

### Long exact sequence of cohomology

In practice, one often computes the cohomology groups using the following fact: if
    $0\to L\to M\to N\to 0$
is a short exact sequence of G-modules, then a long exact sequence is induced:
    $0\longrightarrow L^{G}\longrightarrow M^{G}\longrightarrow N^{G}{\overset {\delta ^{0}}{\longrightarrow }}H^{1}(G,L)\longrightarrow H^{1}(G,M)\longrightarrow H^{1}(G,N){\overset {\delta ^{1}}{\longrightarrow }}H^{2}(G,L)\longrightarrow \cdots$
The so-called connecting homomorphisms,
    $\delta ^{n}:H^{n}(G,N)\to H^{n+1}(G,L)$
can be described in terms of inhomogeneous cochains as follows. If $c\in H^{n}(G,N)$ is represented by an n-cocycle $\phi :G^{n}\to N,$ then $\delta ^{n}(c)$ is represented by $d^{n}(\psi ),$ where $\psi$ is an n-cochain $G^{n}\to M$ "lifting" $\phi$ (i.e. $\phi$ is the composition of $\psi$ with the surjective map M → N).

### Functoriality

Group cohomology depends contravariantly on the group G, in the following sense: if f : H → G is a group homomorphism, then we have a naturally induced morphism H$^n$(G, M) → H$^n$(H, M) (where in the latter, M is treated as an H-module via f). This map is called the restriction map. If the index of H in G is finite, there is also a map in the opposite direction, called transfer map,
    $cor_{H}^{G}:H^{n}(H,M)\to H^{n}(G,M).$
In degree 0, it is given by the map
    ${\begin{cases}M^{H}\to M^{G}\\m\mapsto \sum _{g\in G/H}gm\end{cases}}$
Given a morphism of G-modules M → N, one gets a morphism of cohomology groups in the H$^n$(G, M) → H$^n$(G, N).

### Products

Similarly to other cohomology theories in topology and geometry, such as singular cohomology or de Rham cohomology, group cohomology enjoys a product structure: there is a natural map called cup product:
    $H^{n}(G,N)\otimes H^{m}(G,M)\to H^{n+m}(G,M\otimes N)$
for any two G-modules M and N. This yields a graded anti-commutative ring structure on $\oplus _{n\geqslant 0}H^{n}(G,R),$ where R is a ring such as $\mathbb {Z}$ or $\mathbb {Z} /p.$ For a finite group G, the even part of this cohomology ring in characteristic p, $\oplus _{n\geqslant 0}H^{2n}(G,\mathbb {Z} /p)$ carries a lot of information about the group the structure of G, for example the Krull dimension of this ring equals the maximal rank of an abelian subgroup $(\mathbb {Z} /p)^{r}$.
For example, let G be the group with two elements, under the discrete topology. The real projective space $\mathbb {P} ^{\infty }(\mathbb {R} )$ is a classifying space for G. Let $k=\mathbb {F} _{2},$ the field of two elements. Then
    $H^{*}(G;k)\cong k[x],$
a polynomial k-algebra on a single generator, since this is the cellular cohomology ring of $\mathbb {P} ^{\infty }(\mathbb {R} ).$

### Künneth formula

If, M = k is a field, then H*(G; k) is a graded k-algebra and the cohomology of a product of groups is related to the ones of the individual groups by a Künneth formula:
    $H^{*}(G_{1}\times G_{2};k)\cong H^{*}(G_{1};k)\otimes H^{*}(G_{2};k).$
For example, if G is an elementary abelian 2-group of rank r, and $k=\mathbb {F} _{2},$ then the Künneth formula shows that the cohomology of G is a polynomial k-algebra generated by r classes in H$^1$(G; k).,
    $H^{*}(G;k)\cong k[x_{1},\ldots ,x_{r}].$

### Homology vs. cohomology

As for other cohomology theories, such as singular cohomology, group cohomology and homology are related to one another by means of a short exact sequence
    $0\to \mathrm {Ext} _{\mathbb {Z} }^{1}\left(H_{n-1}(G,\mathbb {Z} ),A\right)\to H^{n}(G,A)\to \mathrm {Hom} \left(H_{n}(G,\mathbb {Z} ),A\right)\to 0,$
where A is endowed with the trivial G-action and the term at the left is the first Ext group.

### Amalgamated products

Given a group A which is the subgroup of two groups G$_1$ and G$_2$, the homology of the amalgamated product $G:=G_{1}\star _{A}G_{2}$ (with integer coefficients) lies in a long exact sequence
    $\cdots \to H_{n}(A)\to H_{n}(G_{1})\oplus H_{n}(G_{2})\to H_{n}(G)\to H_{n-1}(A)\to \cdots$
The homology of $\mathrm {SL} _{2}(\mathbb {Z} )=\mathbb {Z} /4\star _{\mathbb {Z} /2}\mathbb {Z} /6$ can be computed using this:
    $H_{n}(\mathrm {SL} _{2}(\mathbb {Z} ))={\begin{cases}\mathbb {Z} &n=0\\\mathbb {Z} /12&{\text{odd degrees}}\\0&{\text{otherwise}}\end{cases}}$
This exact sequence can also be applied to show that the homology of the $\mathrm {SL} _{2}(k[t])$ and the special linear group $\mathrm {SL} _{2}(k)$ agree for an infinite field k.

### Change of group

The Hochschild–Serre spectral sequence relates the cohomology of a normal subgroup N of G and the quotient G/N to the cohomology of the group G (for (pro-)finite groups G). From it, one gets the inflation-restriction exact sequence.

### Cohomology of the classifying space

Group cohomology is closely related to topological cohomology theories such as sheaf cohomology, by means of an isomorphism
    $H^{n}(BG,\mathbb {Z} )\cong H^{n}(G,\mathbb {Z} ).$
The expression $BG$ at the left is a classifying space for $G$. It is an Eilenberg–MacLane space $K(G,1)$, i.e., a space whose fundamental group is $G$ and whose higher homotopy groups vanish). Classifying spaces for $\mathbb {Z} ,\mathbb {Z} /2$ and $\mathbb {Z} /n$ are the 1-sphere S$^1$, infinite real projective space $\mathbb {P} ^{\infty }(\mathbb {R} )=\cup _{n}\mathbb {P} ^{n}(\mathbb {R} ),$ and lens spaces, respectively. In general, $BG$ can be constructed as the quotient $EG/G$, where $EG$ is a contractible space on which $G$ acts freely. However, $BG$ does not usually have an easily amenable geometric description.
More generally, one can attach to any $G$-module $M$ a local coefficient system on $BG$ and the above isomorphism generalizes to an isomorphism
    $H^{n}(BG,M)=H^{n}(G,M).$

## Further examples
### Semi-direct products of groups

There is a way to compute the semi-direct product of groups using the topology of fibrations and properties of Eilenberg-Maclane spaces. Recall that for a semi-direct product of groups $G=N\rtimes H$ there is an associated short exact sequence of groups
   $1\to N\to N\rtimes H\to H\to 1$
Using the associated Eilenberg-Maclane spaces there is a Serre fibration
   $K(N,1)\to K(G,1)\to K(H,1)$
which can be put through a Serre spectral sequence. This gives an $E_{2}$-page
   $E_{2}^{p,q}=H^{p}(K(H,1),H^{q}(K(N,1)))\Rightarrow H^{p+q}(K(G,1))$
which gives information about the group cohomology of $G$ from the group cohomology groups of $H,N$. Note this formalism can be applied in a purely group-theoretic manner using the Lyndon–Hochschild–Serre spectral sequence.

## Cohomology of finite groups
### Higher cohomology groups are torsion

The cohomology groups H$^n$(G, M) of finite groups G are all torsion for all n≥1. Indeed, by Maschke's theorem the category of representations of a finite group is semi-simple over any field of characteristic zero (or more generally, any field whose characteristic does not divide the order of the group), hence, viewing group cohomology as a derived functor in this abelian category, one obtains that it is zero. The other argument is that over a field of characteristic zero, the group algebra of a finite group is a direct sum of matrix algebras (possibly over division algebras which are extensions of the original field), while a matrix algebra is Morita equivalent to its base field and hence has trivial cohomology.
If the order of G is invertible in a G-module M (for example, if M is a $\mathbb {Q}$-vector space), the transfer map can be used to show that $H^{n}(G,M)=0$ for $n\geqslant 1.$ A typical application of this fact is as follows: the long exact cohomology sequence of the short exact sequence (where all three groups have a trivial G-action)
    $0\to \mathbb {Z} \to \mathbb {Q} \to \mathbb {Q} /\mathbb {Z} \to 0$
yields an isomorphism
    $\mathrm {Hom} (G,\mathbb {Q} /\mathbb {Z} )=H^{1}(G,\mathbb {Q} /\mathbb {Z} )\cong H^{2}(G,\mathbb {Z} ).$

### Tate cohomology

Tate cohomology groups combine both homology and cohomology of a finite group G:
    ${\widehat {H}}^{n}(G,M):={\begin{cases}H^{n}(G,M)&n\geqslant 1\\\operatorname {coker} N&n=0\\\ker N&n=-1\\H_{-n-1}(G,M)&n\leqslant -2,\end{cases}}$
where $N:M_{G}\to M^{G}$ is induced by the norm map:
    ${\begin{cases}M\to M\\m\mapsto \sum _{g\in G}gm\end{cases}}$
Tate cohomology enjoys similar features, such as long exact sequences, product structures. An important application is in class field theory, see class formation.
Tate cohomology of finite cyclic groups, $G=\mathbb {Z} /n,$ is 2-periodic in the sense that there are isomorphisms
    ${\widehat {H}}^{m}(G,M)\cong {\widehat {H}}^{m+2}(G,M)\qquad {\text{for all }}m\in \mathbb {Z} .$
A necessary and sufficient criterion for a d-periodic cohomology is that the only abelian subgroups of G are cyclic. For example, any semi-direct product $\mathbb {Z} /n\rtimes \mathbb {Z} /m$ has this property for coprime integers n and m.

## Applications
### Algebraic K-theory and homology of linear groups

Algebraic K-theory is closely related to group cohomology: in Quillen's +-construction of K-theory, K-theory of a ring R is defined as the homotopy groups of a space $\mathrm {BGL} (R)^{+}.$ Here $\mathrm {GL} (R)=\cup _{n\geq 1}\mathrm {GL} _{n}(R)$ is the infinite general linear group. The space $\mathrm {BGL} (R)^{+}$ has the same homology as $\mathrm {BGL} (R),$ i.e., the group homology of GL(R). In some cases, stability results assert that the sequence of cohomology groups
    $\dots \to H_{m}\left(\mathrm {GL} _{n}(R)\right)\to H_{m}\left(\mathrm {GL} _{n+1}(R)\right)\to \cdots$
becomes stationary for large enough n, hence reducing the computation of the cohomology of the infinite general linear group to the one of some $\mathrm {GL} _{n}(R)$. Such results have been established when R is a field or for rings of integers in a number field.
The phenomenon that group homology of a series of groups $G_{n}$ stabilizes is referred to as homological stability. In addition to the case $G_{n}=\mathrm {GL} _{n}(R)$ just mentioned, this applies to various other groups such as symmetric groups or mapping class groups.

### Projective representations and group extensions

In quantum mechanics we often have systems with a symmetry group $G.$ We expect an action of $G$ on the Hilbert space ${\mathcal {H}}$ by unitary matrices $U(g).$ We might expect $U(g_{1})U(g_{2})=U(g_{1}g_{2}),$ but the rules of quantum mechanics only require
    $U(g_{1})U(g_{2})=\exp\{2\pi i\omega (g_{1},g_{2})\}U(g_{1}g_{2}),$
where $\exp\{2\pi i\omega (g_{1},g_{2})\}\in {\rm {U}}(1)$ is a phase. This projective representation of $G$ can also be thought of as a conventional representation of a group extension ${\tilde {G}}$ of $G$ by $\mathrm {U} (1),$ as described by the exact sequence
    $1\to {\rm {U}}(1)\to {\tilde {G}}\to G\to 1.$
Requiring associativity
    $U(g_{1})[U(g_{2})U(g_{3})]=[U(g_{1})U(g_{2})]U(g_{3})$
leads to
    $\omega (g_{2},g_{3})-\omega (g_{1}g_{2},g_{3})+\omega (g_{1},g_{2}g_{3})-\omega (g_{1},g_{2})=0,$
which we recognise as the statement that $d\omega (g_{1},g_{2},g_{3})=0,$ i.e. that $\omega$ is a cocycle taking values in $\mathbb {R} /\mathbb {Z} \simeq {\rm {U}}(1).$ We can ask whether we can eliminate the phases by redefining
    $U(g)\to \exp\{2\pi i\eta (g)\}U(g)$
which changes
    $\omega (g_{1},g_{2})\to \omega (g_{1},g_{2})+\eta (g_{2})-\eta (g_{1}g_{2})+\eta (g_{1}).$
This we recognise as shifting $\omega$ by a coboundary $\omega \to \omega +d\eta .$ The distinct projective representations are therefore classified by $H^{2}(G,\mathbb {R} /\mathbb {Z} ).$ Note that if we allow the phases themselves to be acted on by the group (for example, time reversal would complex-conjugate the phase), then the first term in each of the coboundary operations will have a $g_{1}$ acting on it as in the general definitions of coboundary in the previous sections. For example, $d\eta (g_{1},g_{2})\to g_{1}\eta (g_{2})-\eta (g_{1}g_{2})+\eta (g_{1}).$

## Extensions
### Cohomology of topological groups

Given a topological group G, i.e., a group equipped with a topology such that product and inverse are continuous maps, it is natural to consider continuous G-modules, i.e., requiring that the action
    $G\times M\to M$
is a continuous map. For such modules, one can again consider the derived functor of $M\mapsto M^{G}$. A special case occurring in algebra and number theory is when G is profinite, for example the absolute Galois group of a field. The resulting cohomology is called Galois cohomology.

### Non-abelian group cohomology

Using the G-invariants and the 1-cochains, one can construct the zeroth and first group cohomology for a group G with coefficients in a non-abelian group. Specifically, a G-group is a (not necessarily abelian) group A together with an action by G.
The zeroth cohomology of G with coefficients in A is defined to be the subgroup
    $H^{0}(G,A)=A^{G},$
of elements of A fixed by G.
The first cohomology of G with coefficients in A is defined as 1-cocycles modulo an equivalence relation instead of by 1-coboundaries. The condition for a map $\varphi$ to be a 1-cocycle is that $\varphi (gh)=\varphi (g)[g\varphi (h)]$ and $\ \varphi \sim \varphi '$ if there is an a in A such that $\ a\varphi '(g)=\varphi (g)\cdot (ga)$. In general, $H^{1}(G,A)$ is not a group when A is non-abelian. It instead has the structure of a pointed set – exactly the same situation arises in the 0th homotopy group, $\ \pi _{0}(X;x)$ which for a general topological space is not a group but a pointed set. Note that a group is in particular a pointed set, with the identity element as distinguished point.
Using explicit calculations, one still obtains a truncated long exact sequence in cohomology. Specifically, let
    $1\to A\to B\to C\to 1\,$
be a short exact sequence of G-groups, then there is an exact sequence of pointed sets
    $1\to A^{G}\to B^{G}\to C^{G}\to H^{1}(G,A)\to H^{1}(G,B)\to H^{1}(G,C).\,$

## History and relation to other fields

The low-dimensional cohomology of a group was classically studied in other guises, well before the notion of group cohomology was formulated in 1943–45. The first theorem of the subject can be identified as Hilbert's Theorem 90 in 1897; this was recast into Emmy Noether's equations in Galois theory (an appearance of cocycles for $H^{1}$). The idea of factor sets for the extension problem for groups (connected with $H^{2}$) arose in the work of Otto Hölder (1893), in Issai Schur's 1904 study of projective representations, in Otto Schreier's 1926 treatment, and in Richard Brauer's 1928 study of simple algebras and the Brauer group. A fuller discussion of this history may be found in (Weibel 1999, pp. 806–811).
In 1941, while studying $H^{2}(G,\mathbb {Z} )$ (which plays a special role in groups), Heinz Hopf discovered what is now called Hopf's integral homology formula (Hopf 1942), which is identical to Schur's formula for the Schur multiplier of a finite, finitely presented group:
    $H_{2}(G,\mathbb {Z} )\cong (R\cap [F,F])/[F,R],$
where $G\cong F/R$ and F is a free group.
Hopf's result led to the independent discovery of group cohomology by several groups in 1943-45: Samuel Eilenberg and Saunders Mac Lane in the United States (Rotman 1995, p. 358); Hopf and Beno Eckmann in Switzerland; Hans Freudenthal in the Netherlands (Weibel 1999, p. 807); and Dmitry Faddeev in the Soviet Union (Arslanov 2011, p. 29, Faddeev 1947). The situation was chaotic because communication between these countries was difficult during World War II.
From a topological point of view, the homology and cohomology of G was first defined as the homology and cohomology of a model for the topological classifying space BG as discussed above. In practice, this meant using topology to produce the chain complexes used in formal algebraic definitions. From a module-theoretic point of view this was integrated into the Cartan–Eilenberg theory of homological algebra in the early 1950s.
The application in algebraic number theory to class field theory provided theorems valid for general Galois extensions (not just abelian extensions). The cohomological part of class field theory was axiomatized as the theory of class formations. In turn, this led to the notion of Galois cohomology and étale cohomology (which builds on it) (Weibel 1999, p. 822). Some refinements in the theory post-1960 have been made, such as continuous cocycles and John Tate's redefinition, but the basic outlines remain the same. This is a large field, and now basic in the theories of algebraic groups.
The analogous theory for Lie algebras, called Lie algebra cohomology, was first developed in the late 1940s, by Claude Chevalley and Eilenberg, and Jean-Louis Koszul (Weibel 1999, p. 810). It is formally similar, using the corresponding definition of invariant for the action of a Lie algebra. It is much applied in representation theory, and is closely connected with the BRST quantization of theoretical physics.
Group cohomology theory also has a direct application in condensed matter physics. Just like group theory being the mathematical foundation of spontaneous symmetry breaking phases, group cohomology theory is the mathematical foundation of a class of quantum states of matter—short-range entangled states with symmetry. Short-range entangled states with symmetry are also known as symmetry-protected topological states.