Let RR be a and let M,NM,N be left .

For n≥0n\ge 0, the group Ext⁡Rn(M,N)\operatorname{Ext}^n_R(M,N) is the nn-th right derived functor of Hom⁡R(M,−)\operatorname{Hom}_R(M,-), evaluated at NN.

Computation by a projective resolution

Equivalently, by deriving in the first (contravariant) variable, it is computed from a projective resolution of MM:

Ext⁡Rn(M,N)=Hn ⁣(Hom⁡R(P∙,N)).\operatorname{Ext}^n_R(M,N) =H^n\!\bigl(\operatorname{Hom}_R(P_\bullet,N)\bigr).
Computation from a projective resolution

Choose a P∙→MP_\bullet \to M:

⋯→P2→d2P1→d1P0→M→0\cdots \to P_2 \xrightarrow{d_2} P_1 \xrightarrow{d_1} P_0 \to M \to 0

with each PiP_i projective. Applying gives the

0→HomR(P0,N)→d1∗HomR(P1,N)→d2∗HomR(P2,N)→⋯ .0 \to \mathrm{Hom}_R(P_0,N) \xrightarrow{d_1^*} \mathrm{Hom}_R(P_1,N) \xrightarrow{d_2^*} \mathrm{Hom}_R(P_2,N) \to \cdots.

Here Hn(−)H^n(-) denotes .

This construction is independent of the chosen resolution up to canonical isomorphism. It is functorial: Ext⁡Rn(−,N)\operatorname{Ext}^n_R(-,N) is contravariant in the first variable and Ext⁡Rn(M,−)\operatorname{Ext}^n_R(M,-) is covariant in the second.

Equivalent definition (via an injective resolution)

Alternatively, choose an N→I∙N\to I^\bullet and set

ExtRn(M,N)  :=  Hn ⁣(HomR(M,I∙)).\mathrm{Ext}^n_R(M,N) \;:=\; H^n\!\big(\mathrm{Hom}_R(M,I^\bullet)\big).

In either approach, Ext⁡R0(M,N)≅Hom⁡R(M,N)\operatorname{Ext}^0_R(M,N)\cong\operatorname{Hom}_R(M,N).

Conceptual meaning
Examples

Example 1: Vector spaces over a field

Let kk be a field and V,WV,W be kk-vector spaces. Every kk-module is free, so a projective resolution can be taken to have length 00. Therefore,

Extkn(V,W)=0(n>0),Extk0(V,W)=Homk(V,W).\mathrm{Ext}^n_k(V,W)=0 \quad (n>0), \qquad \mathrm{Ext}^0_k(V,W)=\mathrm{Hom}_k(V,W).

Example 2: Ext⁡Z1(Z/n,A)≅A/nA\operatorname{Ext}^1_{\mathbb Z}(\mathbb Z/n,A)\cong A/nA

Take the standard projective resolution of Z/n\mathbb Z/n:

0→Z→×nZ→Z/n→0.0 \to \mathbb Z \xrightarrow{\times n} \mathbb Z \to \mathbb Z/n \to 0.

Apply Hom⁡Z(−,A)\operatorname{Hom}_{\mathbb Z}(-,A):

0→Hom(Z/n,A)→Hom(Z,A)→×nHom(Z,A)→Ext1(Z/n,A)→0.0 \to \mathrm{Hom}(\mathbb Z/n,A) \to \mathrm{Hom}(\mathbb Z,A)\xrightarrow{\times n} \mathrm{Hom}(\mathbb Z,A)\to \mathrm{Ext}^1(\mathbb Z/n,A)\to 0.

Using Hom⁡(Z,A)≅A\operatorname{Hom}(\mathbb Z,A)\cong A, the last map shows

ExtZ1(Z/n,A)  ≅  coker(A→×nA)  ≅  A/nA.\mathrm{Ext}^1_{\mathbb Z}(\mathbb Z/n,A)\;\cong\; \mathrm{coker}(A \xrightarrow{\times n} A)\;\cong\; A/nA.

In particular, Ext⁡Z1(Z/n,Z)≅Z/n\operatorname{Ext}^1_{\mathbb Z}(\mathbb Z/n,\mathbb Z)\cong\mathbb Z/n.

Example 3: Ext⁡Z1(Z/n,Z/m)\operatorname{Ext}^1_{\mathbb Z}(\mathbb Z/n,\mathbb Z/m)

Taking A=Z/mA=\mathbb Z/m in the preceding example gives

ExtZ1(Z/n,Z/m)≅(Z/m)/n(Z/m)≅Z/gcd⁡(n,m).\mathrm{Ext}^1_{\mathbb Z}(\mathbb Z/n,\mathbb Z/m)\cong (\mathbb Z/m)/n(\mathbb Z/m)\cong \mathbb Z/\gcd(n,m).

For these cyclic Z\mathbb Z-modules, Ext⁡Zi(Z/n,−)=0\operatorname{Ext}^i_{\mathbb Z}(\mathbb Z/n,-)=0 for i≥2i\ge2, because Z/n\mathbb Z/n has projective dimension 11.