Canonical: https://knowlpedia.com/algebra-category-theory/endomorphism-category/

# Endomorphism

A morphism whose domain and codomain are the same object.

Let \(\mathcal C\) be a [category](https://knowlpedia.com/algebra-category-theory/category/) and let \(A\) be an [object](https://knowlpedia.com/algebra-category-theory/object/) of \(\mathcal C\).

An **endomorphism** of \(A\) is a [morphism](https://knowlpedia.com/algebra-category-theory/morphism/)
\[
f:A\longrightarrow A.
\]
The set of endomorphisms of \(A\) is denoted
\[
\mathrm{End}_{\mathcal C}(A)\;:=\;\mathrm{Hom}_{\mathcal C}(A,A).
\]

## Algebraic structure

With [composition](https://knowlpedia.com/algebra-category-theory/composition-category/) as multiplication,
\[
(f,g)\mapsto f\circ g,
\]
the set \(\mathrm{End}_{\mathcal C}(A)\) is a monoid with identity element the [identity morphism](https://knowlpedia.com/algebra-category-theory/identity-morphism/) \(\mathrm{id}_A\).

An endomorphism is an [automorphism](https://knowlpedia.com/algebra-category-theory/automorphism-category/) precisely when it is invertible (i.e., an [isomorphism](https://knowlpedia.com/algebra-category-theory/isomorphism-category/) \(A\to A\)).

## Examples

1. **\(\mathbf{Set}\):** Endomorphisms of a set \(X\) are just [functions](https://knowlpedia.com/shared-foundations/function/) \(X\to X\).

2. **\(\mathbf{Grp}\) / \(\mathbf{Ab}\):** Endomorphisms of a group (or abelian group) \(G\) are group homomorphisms \(G\to G\).
   For example, \(n\mapsto kn\) defines an endomorphism of \(\mathbb Z\) for each integer \(k\).

3. **\(R\mathbf{-Mod}\):** Endomorphisms of an \(R\)-module \(M\) are \(R\)-linear maps \(M\to M\).
   For a free module \(R^n\), \(\mathrm{End}_R(R^n)\) can be identified with the ring of \(n\times n\) matrices over \(R\) (via the action on the standard basis).
