Solution (source code)

= Solution

The <identity function> fixes every element, and <function composition> means applying the inner <function> first:
$$
\boxed{\operatorname{id}_A:A\longrightarrow A,\quad x\longmapsto x,}
\qquad
\boxed{f\circ f:A\longrightarrow A,\quad x\longmapsto f(f(x)).}
$$