Let C\mathcal C be a with a zero object, and hence with zero morphisms 0A,B:A→B0_{A,B}:A\to B. Given a morphism f:A→Bf:A\to B, a cokernel of ff is a morphism

q:B→Qq:B\to Q

such that:

  1. q∘f=0A,Qq\circ f = 0_{A,Q}, and
  2. for every morphism s:B→Ts:B\to T with s∘f=0A,Ts\circ f=0_{A,T}, there exists a unique morphism v:Q→Tv:Q\to T with
    v∘q=s.v\circ q = s.

This construction is dual to a .

Equivalent characterizations

Equivalently, q:B→Qq:B\to Q is a of the parallel pair f,0A,B:A⇉Bf,0_{A,B}:A\rightrightarrows B.

Remarks

A cokernel, if it exists, is unique up to unique . Cokernels are (because coequalizers are epic).

Examples
  1. Ab\mathbf{Ab}. For f:A→Bf:A\to B a homomorphism, coker⁡(f)≅B/im⁡(f)\operatorname{coker}(f)\cong B/\operatorname{im}(f), and the cokernel map is the quotient B↠B/im⁡(f)B\twoheadrightarrow B/\operatorname{im}(f).
  1. RR-Mod\mathbf{Mod}. For f:M→Nf:M\to N an RR-linear map, coker⁡(f)≅N/im⁡(f)\operatorname{coker}(f)\cong N/\operatorname{im}(f).
  1. Grp\mathbf{Grp}. For a group homomorphism f:G→Hf:G\to H, the cokernel is the quotient
    H↠H/⟨ ⁣⟨f(G)⟩ ⁣⟩H \twoheadrightarrow H/\langle\!\langle f(G)\rangle\!\rangle
    where ⟨ ⁣⟨f(G)⟩ ⁣⟩\langle\!\langle f(G)\rangle\!\rangle is the normal closure of the subgroup f(G)f(G) in HH. (This is the coequalizer of ff and the trivial map G→HG\to H.)