I understand the definition and usefulness of the notion of functor.
But I am worrying about the usefulness of the notion of a contravariant functor. Wikipedia writes:
There are many constructions in mathematics that would be functors but for the fact that they "turn morphisms around" and "reverse composition". We then define a contravariant functor [...]
But why do they "turn morphisms around", wouldn't it be easier to do the same without the inversion of morphisms and composition?
So I guess it would be beneficial for me to know some examples of naturally occuring contravariant functors. So let me ask: what are some constructions in mathematics that naturally occur as contravariant functors instead of covariant functor?
In linear algebra, taking the dual of a vector space is a contravariant functor from the category of vector spaces to itself : given a linear map $f:V\to W$, you get an induced map $f^*:W^*\to V^*:\varphi\mapsto \varphi\circ f$ between the dual spaces, and you can easily check that the identities $(id_V)^*=id_{V^*}$ and $(g\circ f)^*=f^*\circ g^*$ always hold. This is actually the first example of a functor that appears in Eilenberg and MacLane's original paper!
In fact, this is a particular case of a general construction : given any category $\mathcal{C}$, every object $X$ defines a functor $\operatorname{Hom}(\_,X):\mathcal{C}\to \mathbf{Set}$ that takes an object $Y$ to $\operatorname{Hom}(Y,X)$ and a morphism $f:Y\to Z$ to the function $$f^*:\operatorname{Hom}(Z,X)\to \operatorname{Hom}(Y,X):g\mapsto g\circ f.$$ Dual vector spaces correspond to the case where $\mathcal{C}$ is the category of vector spaces over some field $k$ and $X=k$.
Moreover, in this answer I gave the contravariant powerset functor as another example; this is not quite of the form described above, but almost. In fact the correspondence between subsets of a set $Y$ and their characteristic functions defines a natural isomorphism between the contravariant functor $\operatorname{Hom}(\_,\{0,1\})$ and the contravariant powerset functor.