Below are a few examples, to highlight the general idea. The reader can construct numerous other examples by consulting the articles mentioned in the introduction.
Tensor algebras Let \mathcal{C} be the
category of vector spaces K-Vect over a
field K and let \mathcal{D} be the category of
algebras K-Alg over K (assumed to be
unital and
associative). Let U : K\text{-}\mathbf{Alg} \to K\text{-}\mathbf{Vect} be the
forgetful functor which assigns to each algebra its underlying vector space. Given any
vector space V over K we can construct the
tensor algebra T(V). The tensor algebra is characterized by the fact: :“Any linear map from V to an algebra A can be uniquely extended to an
algebra homomorphism from T(V) to A.” This statement is an initial property of the tensor algebra since it expresses the fact that the pair (T(V),i), where i:V \to U(T(V)) is the inclusion map, is a universal morphism from the vector space V to the functor U. Since this construction works for any vector space V, we conclude that T is a functor from
K-Vect to
K-Alg. This means that T is
left adjoint to the forgetful functor U (see the section below on
relation to adjoint functors).
Products A
categorical product can be characterized by a universal construction. For concreteness, one may consider the
Cartesian product in
Set, the
direct product in
Grp, or the
product topology in
Top, where products exist. Let X and Y be objects of a category \mathcal{C} with finite products. The product of X and Y is an object X × Y together with two morphisms :\pi_1 : X \times Y \to X :\pi_2 : X \times Y \to Y such that for any other object Z of \mathcal{C} and morphisms f: Z \to X and g: Z \to Y there exists a unique morphism h: Z \to X \times Y such that f = \pi_1 \circ h and g = \pi_2 \circ h. To understand this characterization as a universal property, take the category \mathcal{D} to be the
product category \mathcal{C} \times \mathcal{C} and define the
diagonal functor : \Delta: \mathcal{C} \to \mathcal{C} \times \mathcal{C} by \Delta(X) = (X, X) and \Delta(f: X \to Y) = (f, f). Then (X \times Y, (\pi_1, \pi_2)) is a universal morphism from \Delta to the object (X, Y) of \mathcal{C} \times \mathcal{C}: if (f, g) is any morphism from (Z, Z) to (X, Y), then it must equal a morphism \Delta(h: Z \to X \times Y) = (h,h) from \Delta(Z) = (Z, Z) to \Delta(X \times Y) = (X \times Y, X \times Y) followed by (\pi_1, \pi_2). As a commutative diagram: For the example of the Cartesian product in
Set, the morphism (\pi_1, \pi_2) comprises the two projections \pi_1(x,y) = x and \pi_2(x,y) = y. Given any set Z and functions f,g the unique map such that the required diagram commutes is given by h = \langle x,y\rangle(z) = (f(z), g(z)).
Limits and colimits Categorical products are a particular kind of
limit in category theory. One can generalize the above example to arbitrary limits and colimits. Let \mathcal{J} and \mathcal{C} be categories with \mathcal{J} a
small index category and let \mathcal{C}^\mathcal{J} be the corresponding
functor category. The
diagonal functor :\Delta: \mathcal{C} \to \mathcal{C}^\mathcal{J} is the functor that maps each object N in \mathcal{C} to the constant functor \Delta(N): \mathcal{J} \to \mathcal{C} (i.e. \Delta(N)(X) = N for each X in \mathcal{J} and \Delta(N)(f) = 1_N for each f: X \to Y in \mathcal{J}) and each morphism f : N \to M in \mathcal{C} to the natural transformation \Delta(f):\Delta(N)\to\Delta(M) in \mathcal{C}^{\mathcal{J}} defined as, for every object X of \mathcal{J}, the component \Delta(f)(X):\Delta(N)(X)\to\Delta(M)(X) = f:N\to M at X. In other words, the natural transformation is the one defined by having constant component f:N\to M for every object of \mathcal{J}. Given a functor F: \mathcal{J} \to \mathcal{C} (thought of as an object in \mathcal{C}^\mathcal{J}), the
limit of F, if it exists, is nothing but a universal morphism from \Delta to F. Dually, the
colimit of F is a universal morphism from F to \Delta. ==Properties==