# Ext functor

In mathematics, the Ext functors of homological algebra are derived functors of Hom functors. They were first used in algebraic topology, but are common in many areas of mathematics. The name "Ext" comes from the connection between the functors and extensions in abelian categories.

## Definition and computation

Let R be a ring and let ModR be the category of modules over R. Let B be in ModR and set T(B) = HomR(A,B), for fixed A in ModR. This is a left exact functor and thus has right derived functors RnT. The Ext functor is defined by

${\displaystyle \operatorname {Ext} _{R}^{n}(A,B)=(R^{n}T)(B).}$

This can be calculated by taking any injective resolution

${\displaystyle 0\rightarrow B\rightarrow I^{0}\rightarrow I^{1}\rightarrow \dots ,}$

and computing

${\displaystyle 0\rightarrow \operatorname {Hom} _{R}(A,I^{0})\rightarrow \operatorname {Hom} _{R}(A,I^{1})\rightarrow \dots .}$

Then (RnT)(B) is the homology of this complex. Note that HomR(A,B) is excluded from the complex.

An alternative definition is given using the functor G(A)=HomR(A,B). For a fixed module B, this is a contravariant left exact functor, and thus we also have right derived functors RnG, and can define

${\displaystyle \operatorname {Ext} _{R}^{n}(A,B)=(R^{n}G)(A).}$

This can be calculated by choosing any projective resolution

${\displaystyle \dots \rightarrow P^{1}\rightarrow P^{0}\rightarrow A\rightarrow 0,}$

and proceeding dually by computing

${\displaystyle 0\rightarrow \operatorname {Hom} _{R}(P^{0},B)\rightarrow \operatorname {Hom} _{R}(P^{1},B)\rightarrow \dots .}$

Then (RnG)(A) is the homology of this complex. Again note that HomR(A,B) is excluded.

These two constructions turn out to yield isomorphic results, and so both may be used to calculate the Ext functor.

## Ext and extensions

### Equivalence of extensions

Ext functors derive their name from the relationship to extensions of modules. Given R-modules A and B, an extension of A by B is a short exact sequence of R-modules

${\displaystyle 0\rightarrow B\rightarrow E\rightarrow A\rightarrow 0.}$

Two extensions

${\displaystyle 0\rightarrow B\rightarrow E\rightarrow A\rightarrow 0}$
${\displaystyle 0\rightarrow B\rightarrow E^{\prime }\rightarrow A\rightarrow 0}$

are said to be equivalent (as extensions of A by B) if there is a commutative diagram

.

Note that the Five Lemma implies that the middle arrow is an isomorphism. An extension of A by B is called split if it is equivalent to the trivial extension

${\displaystyle 0\rightarrow B\rightarrow A\oplus B\rightarrow A\rightarrow 0.}$

There is a bijective correspondence between equivalence classes of extensions

${\displaystyle 0\rightarrow B\rightarrow E\rightarrow A\rightarrow 0}$

of A by B and elements of

${\displaystyle \operatorname {Ext} _{R}^{1}(A,B).}$

### The Baer sum of extensions

Given two extensions

${\displaystyle 0\rightarrow B\rightarrow E\rightarrow A\rightarrow 0}$
${\displaystyle 0\rightarrow B\rightarrow E^{\prime }\rightarrow A\rightarrow 0}$

we can construct the Baer sum, by forming the pullback over ${\displaystyle A}$,

We form the quotient

that is, we mod out by the relation ${\displaystyle (f(b)+e,e')\sim (e,f'(b)+e')}$. The extension

${\displaystyle 0\rightarrow B\rightarrow Y\rightarrow A\rightarrow 0}$

where the first arrow is ${\displaystyle b\mapsto [(f(b),0)]=[(0,f'(b))]}$ and the second ${\displaystyle (e,e')\mapsto g(e)=g'(e')}$ thus formed is called the Baer sum of the extensions E and E'.

Up to equivalence of extensions, the Baer sum is commutative and has the trivial extension as identity element. The extension 0 → BEA → 0 has for opposite the same extension with exactly one of the central arrows turned to their opposite eg the morphism g is replaced by -g.

The set of extensions up to equivalence is an abelian group that is a realization of the functor ExtTemplate:Su(A, B)

## Construction of Ext in abelian categories

The above identification enables us to define ExtTemplate:Su(A, B) even for abelian categories Ab without reference to projectives and injectives (even if the category has no projectives or injectives). We simply take ExtTemplate:Su(A, B) to be the set of equivalence classes of extensions of A by B, forming an abelian group under the Baer sum. Similarly, we can define higher Ext groups ExtTemplate:Su(A, B) as equivalence classes of n-extensions, which are exact sequences

${\displaystyle 0\rightarrow B\rightarrow X_{n}\rightarrow \cdots \rightarrow X_{1}\rightarrow A\rightarrow 0}$

under the equivalence relation generated by the relation that identifies two extensions

${\displaystyle \xi :0\rightarrow B\rightarrow X_{n}\rightarrow \cdots \rightarrow X_{1}\rightarrow A\rightarrow 0}$
${\displaystyle \xi ':0\rightarrow B\rightarrow X'_{n}\rightarrow \cdots \rightarrow X'_{1}\rightarrow A\rightarrow 0}$

if there are maps XmX′m for all m in {1, 2, ..., n} so that every resulting square commutes, i.e. if there is a chain map X:${\displaystyle \xi }$${\displaystyle \xi }$'.

The Baer sum of the two n-extensions above is formed by letting XTemplate:Su be the pullback of X1 and XTemplate:Su over A, and XTemplate:Su be the pushout of Xn and XTemplate:Su under B quotiented by the skew diagonal copy of B; see Weibel, §3.4. Then we define the Baer sum of the extensions to be

${\displaystyle 0\rightarrow B\rightarrow X''_{n}\rightarrow X_{n-1}\oplus X'_{n-1}\rightarrow \cdots \rightarrow X_{2}\oplus X'_{2}\rightarrow X''_{1}\rightarrow A\rightarrow 0.}$

## Further properties of Ext

The Ext functor exhibits some convenient properties, useful in computations.

• A converse also holds: if ExtTemplate:Su(A, B) = 0 for all A, then ExtTemplate:Su(A, B) = 0 for all A, and B is injective; if ExtTemplate:Su(A, B) = 0 for all B, then ExtTemplate:Su(A, B) = 0 for all B, and A is projective.

## Ring structure and module structure on specific Exts

One more very useful way to view the Ext functor is this: when an element of ExtTemplate:Su(A, B) = 0 is considered as an equivalence class of maps f: PnB for a projective resolution P* of A ; so, then we can pick a long exact sequence Q* ending with B and lift the map f using the projectivity of the modules Pm to a chain map f*: P*Q* of degree -n. It turns out that homotopy classes of such chain maps correspond precisely to the equivalence classes in the definition of Ext above.

Under sufficiently nice circumstances, such as when the ring R is a group ring over a field k, or an augmented k-algebra, we can impose a ring structure on ExtTemplate:Su(k, k). The multiplication has quite a few equivalent interpretations, corresponding to different interpretations of the elements of ExtTemplate:Su(k, k).

One interpretation is in terms of these homotopy classes of chain maps. Then the product of two elements is represented by the composition of the corresponding representatives. We can choose a single resolution of k, and do all the calculations inside HomR(P*,P*), which is a differential graded algebra, with cohomology precisely ExtR(k,k).

The Ext groups can also be interpreted in terms of exact sequences; this has the advantage that it does not rely on the existence of projective or injective modules. Then we take the viewpoint above that an element of ExtTemplate:Su(A, B) is a class, under a certain equivalence relation, of exact sequences of length n + 2 starting with B and ending with A. This can then be spliced with an element in ExtTemplate:Su(C, A), by replacing ... → X1A → 0 and 0 → AYn → ... with:

${\displaystyle \cdots \rightarrow X_{1}\rightarrow Y_{n}\rightarrow \cdots }$

where the middle arrow is the composition of the functions X1A and AYn. This product is called the Yoneda splice.

These viewpoints turn out to be equivalent whenever both make sense.

Using similar interpretations, we find that ExtTemplate:Su(k, M) is a module over ExtTemplate:Su(k, k), again for sufficiently nice situations.

## Interesting examples

If Z[G] is the integral group ring for a group G, then ExtTemplate:Su(Z, M) is the group cohomology H*(G,M) with coefficients in M.

For Fp the finite field on p elements, we also have that H*(G,M) = ExtTemplate:Su(Fp, M), and it turns out that the group cohomology doesn't depend on the base ring chosen.

If A is a k-algebra, then ExtTemplate:Su(A, M) is the Hochschild cohomology HH*(A,M) with coefficients in the A-bimodule M.

If R is chosen to be the universal enveloping algebra for a Lie algebra ${\displaystyle {\mathfrak {g}}}$ over a commutative ring k, then ExtTemplate:Su(k, M) is the Lie algebra cohomology ${\displaystyle \operatorname {H} ^{*}({\mathfrak {g}},M)}$ with coefficients in the module M.