Let $\mathcal{F}, \mathcal{G}$ be sheaves on topological spaces $X, Y$ respectively and $f: X \to Y$ a continuous map. How to show that $\operatorname{Hom}_X(f^{-1}\mathcal{G}, \mathcal{F}) = \operatorname{Hom}_Y(\mathcal{G}, f_*\mathcal{F})$?
By definition, for an open set $U \subseteq Y$, $$ f_*f^{-1}\mathcal{G}(U) = \lim_{\rightarrow}_{V \supseteq f(f^{-1}(U))} \mathcal{G}(V). \qquad (1) $$ Since $U \supseteq f(f^{-1}(U))$, $U$ is one of $V$'s on the right hand side of (1). We take $g$ as the inclusion map. Then we have a presheaf. We make sheafification then we obtain a natrual map of sheaves $$\phi: \mathcal{G} \to f_*f^{-1}\mathcal{G}.$$
By definition, $$f^{-1}f_{*}\mathcal{F}(U)=\lim_{\rightarrow}_{V \supseteq f(U)} \mathcal{F}(f^{-1}(V)).$$
If $V \supseteq f(U)$, then $U \subseteq f^{-1}(V)$. Since $\mathcal{F}$ is a sheaf, we have the restriction map: $\operatorname{res}_{f^{-1}(V), U}: \mathcal{F}(f^{-1}(V)) \to \mathcal{F}(U)$. By using the definition of direct limits, there is a natrual map $\lim_{\rightarrow}_{V \supseteq f(U)} \mathcal{F}(f^{-1}(V))$ to $\mathcal{F}(U)$. Therefore we obtain a presheaf. We make sheafification then we obtain a natrual map of sheaves $$ \psi: f^{-1}f_*\mathcal{F} \to \mathcal{F}. $$
Let $\alpha: \operatorname{Hom}_X(f^{-1}\mathcal{G}, \mathcal{F}) \to \operatorname{Hom}_Y(\mathcal{G}, f_*\mathcal{F})$ be the map given by $g \mapsto (f_*g)\circ \psi$ and $\beta: \operatorname{Hom}_Y(\mathcal{G}, f_*\mathcal{F}) \to \operatorname{Hom}_X(f^{-1}\mathcal{G}, \mathcal{F}) $ be the map given by $g \mapsto \phi\circ (f^{-1}g)$. How to verify that $\alpha \circ \beta = 1_{\operatorname{Hom}_Y(\mathcal{G}, f_*\mathcal{F})}$ and $\beta \circ \alpha = 1_{\operatorname{Hom}_X(f^{-1}\mathcal{G}, \mathcal{F})}$? Thank you very much.