Canonical: https://knowlpedia.com/algebra-homological/derived-functor/

# Derived functor

Functors R^nF and L_nF obtained from resolutions, measuring the failure of exactness and yielding Ext and Tor.

Derived functors formalize the idea that a non-exact functor can be “corrected” by replacing objects with resolutions and then taking homology/cohomology.

Throughout, let \(\mathcal A,\mathcal B\) be [abelian categories](https://knowlpedia.com/algebra-category-theory/abelian-category/) and \(F:\mathcal A\to\mathcal B\) an additive functor.

## Right derived functors (from injective resolutions)

Assume \(F\) is [left exact](https://knowlpedia.com/algebra-category-theory/left-exact-functor/) and \(\mathcal A\) has enough injectives (so [injective resolutions](https://knowlpedia.com/algebra-homological/injective-resolution/) exist).

For \(A\in\mathcal A\), choose an injective resolution \(0\to A\to I^\bullet\). Apply \(F\) termwise to get a cochain complex \(F(I^\bullet)\) in \(\mathcal B\). The **right derived functors** of \(F\) are
\[
R^nF(A)\;:=\;H^n\bigl(F(I^\bullet)\bigr)\qquad (n\ge 0),
\]
where \(H^n\) is [cohomology](https://knowlpedia.com/algebra-homological/cohomology-module/).

Key facts (standard in homological algebra):
- \(R^0F \cong F\).
- \(R^nF(A)\) is independent of the chosen injective resolution up to canonical isomorphism.
- A short exact sequence in \(\mathcal A\) induces a [long exact sequence](https://knowlpedia.com/algebra-homological/long-exact-sequence-derived/) in the \(R^nF\).

## Left derived functors (from projective resolutions)

Assume \(F\) is right exact and \(\mathcal A\) has enough projectives (so [projective resolutions](https://knowlpedia.com/algebra-homological/projective-resolution/) exist).

For \(A\in\mathcal A\), choose a projective resolution \(P_\bullet\to A\). Apply \(F\) termwise to get a chain complex \(F(P_\bullet)\) in \(\mathcal B\). The **left derived functors** are
\[
L_nF(A)\;:=\;H_n\bigl(F(P_\bullet)\bigr)\qquad (n\ge 0),
\]
where \(H_n\) is [homology](https://knowlpedia.com/algebra-homological/homology-module/).

Again:
- \(L_0F \cong F\).
- \(L_nF(A)\) is well-defined up to canonical isomorphism.
- Short exact sequences yield long exact sequences in the \(L_nF\).

## Fundamental examples: Ext and Tor

In \(\mathcal A = R\text{-Mod}\):
- The functor \(\operatorname{Hom}_R(M,-)\) is [left exact](https://knowlpedia.com/algebra-homological/hom-left-exact/), and its right derived functors are \(R^n\operatorname{Hom}_R(M,-)\cong \mathrm{Ext}_R^n(M,-)\) (see [Ext](https://knowlpedia.com/algebra-homological/ext/)).
- The functor \(-\otimes_R N\) is [right exact](https://knowlpedia.com/algebra-homological/tensor-right-exact/), and its left derived functors are \(L_n(-\otimes_R N)\cong \mathrm{Tor}_n^R(-,N)\) (see [Tor](https://knowlpedia.com/algebra-homological/tor/)).
See also [Ext and Tor as derived functors](https://knowlpedia.com/algebra-homological/ext-tor-derived-functors/).

## Examples (explicit computations)

### Example 1: Computing \(\mathrm{Tor}_1^{\mathbb Z}(\mathbb Z/n,\mathbb Z/m)\) as a left derived functor
Let \(F(-)= -\otimes_{\mathbb Z}\mathbb Z/m\mathbb Z\). Take the projective resolution
\[
0\to \mathbb Z \xrightarrow{\times n} \mathbb Z \to \mathbb Z/n\mathbb Z \to 0.
\]
Applying \(F\) gives
\[
0\to \mathbb Z/m \xrightarrow{\times n} \mathbb Z/m \to 0,
\]
so
\[
L_1F(\mathbb Z/n)\cong H_1\cong \ker(\times n:\mathbb Z/m\to\mathbb Z/m)\cong \mathbb Z/\gcd(m,n)\mathbb Z.
\]
Thus \(\mathrm{Tor}_1^{\mathbb Z}(\mathbb Z/n,\mathbb Z/m)\cong \mathbb Z/\gcd(m,n)\mathbb Z\) (see [Tor](https://knowlpedia.com/algebra-homological/tor/)).

### Example 2: Computing \(\mathrm{Ext}^1_{\mathbb Z}(\mathbb Z/n,\mathbb Z)\) as a right derived functor
Let \(F(-)=\operatorname{Hom}_{\mathbb Z}(\mathbb Z/n,-)\), which is left exact. Use the injective resolution
\[
0\to \mathbb Z \to \mathbb Q \to \mathbb Q/\mathbb Z \to 0.
\]
Applying \(F\) gives
\[
0\to \operatorname{Hom}(\mathbb Z/n,\mathbb Q)\to \operatorname{Hom}(\mathbb Z/n,\mathbb Q/\mathbb Z)\to 0,
\]
with \(\operatorname{Hom}(\mathbb Z/n,\mathbb Q)=0\) and \(\operatorname{Hom}(\mathbb Z/n,\mathbb Q/\mathbb Z)\cong \mathbb Z/n\). Hence
\[
R^1F(\mathbb Z)\cong H^1 \cong \mathbb Z/n\mathbb Z,
\]
i.e. \(\mathrm{Ext}^1_{\mathbb Z}(\mathbb Z/n,\mathbb Z)\cong \mathbb Z/n\mathbb Z\) (see [Ext](https://knowlpedia.com/algebra-homological/ext/)).

### Example 3: Exact functors have no higher derived functors
If \(F\) is an [exact functor](https://knowlpedia.com/algebra-category-theory/exact-functor/) (e.g. in module categories, localization is exact on suitable classes of modules), then applying \(F\) to any resolution preserves exactness. Consequently,
\[
R^nF=0 \ (n>0)\quad\text{and}\quad L_nF=0 \ (n>0),
\]
whenever the relevant derived functors are defined (right/left).
