
\documentclass{article}
\usepackage[body={8cm,8cm}]{geometry}
\usepackage{lmodern}
%\usepackage{mathtools}
\pagestyle{empty}
\begin{document}
\[
x \stackrel{f}{\mapsto} f(x)
\]
\end{document}
