[guided]We assume $F \cong P \oplus Q$ with $F$ a [free module](/page/Free%20Module), and we must show that the functor $\operatorname{Hom}_R(P, -)$ is [exact](/page/Exact%20Sequence). The strategy has two stages: first establish that $\operatorname{Hom}_R(F, -)$ is exact for any free module $F$, then use the direct-sum decomposition $F \cong P \oplus Q$ to "project out" the $P$-component and conclude that $\operatorname{Hom}_R(P, -)$ inherits exactness.
**Stage 1: Why is $\operatorname{Hom}_R(F, -)$ exact?**
Let $F = \bigoplus_{i \in I} R$ be a free $R$-module with basis $\{e_i\}_{i \in I}$. The fundamental property of a free module is that an $R$-module homomorphism out of $F$ is uniquely determined by where it sends the basis elements. Formally, for any $R$-module $M$, define the evaluation map
\begin{align*}
\Phi_M: \operatorname{Hom}_R(F, M) &\to \prod_{i \in I} M \\
\varphi &\mapsto (\varphi(e_i))_{i \in I}.
\end{align*}
We claim $\Phi_M$ is an isomorphism of abelian groups. It is injective because if $\varphi(e_i) = 0$ for every $i \in I$, then $\varphi$ vanishes on the basis and hence on all of $F$ by $R$-linearity. It is surjective because given any family $(m_i)_{i \in I} \in \prod_{i \in I} M$, we can define $\varphi: F \to M$ by $\varphi((r_i)_{i \in I}) = \sum_{i \in I} r_i m_i$ (the sum is finite since elements of $F$ have finitely many nonzero components), and this $\varphi$ is the unique $R$-module homomorphism with $\varphi(e_i) = m_i$.
Moreover, $\Phi$ is natural in $M$: for any [R-module homomorphism](/page/Module%20Homomorphism) $f: M \to N$, the diagram
\begin{align*}
\operatorname{Hom}_R(F, M) &\xrightarrow{\Phi_M} \prod_{i \in I} M \\
\downarrow f_* \quad &\qquad \downarrow \prod f \\
\operatorname{Hom}_R(F, N) &\xrightarrow{\Phi_N} \prod_{i \in I} N
\end{align*}
commutes, where $f_*(\varphi) = f \circ \varphi$ and $(\prod f)((m_i)) = (f(m_i))$. Commutativity holds because $(\Phi_N \circ f_*)(\varphi) = (f(\varphi(e_i)))_{i \in I} = ((\prod f) \circ \Phi_M)(\varphi)$.
Now consider the [short exact sequence](/page/Exact%20Sequence) $0 \to A \xrightarrow{\iota} B \xrightarrow{\pi} C \to 0$. Applying the natural isomorphism $\Phi$ converts the sequence
\begin{align*}
0 \to \operatorname{Hom}_R(F, A) \xrightarrow{\iota_*} \operatorname{Hom}_R(F, B) \xrightarrow{\pi_*} \operatorname{Hom}_R(F, C) \to 0
\end{align*}
into the sequence
\begin{align*}
0 \to \prod_{i \in I} A \xrightarrow{\prod \iota} \prod_{i \in I} B \xrightarrow{\prod \pi} \prod_{i \in I} C \to 0.
\end{align*}
Why is this product sequence exact? A product (i.e., direct product) of sequences of abelian groups is exact if and only if each component sequence is exact. To see this, note that the product $\prod_{i \in I} A$ is the set of all $I$-tuples, and the maps $\prod \iota$ and $\prod \pi$ act componentwise: $(\prod \iota)((a_i)) = (\iota(a_i))$ and $(\prod \pi)((b_i)) = (\pi(b_i))$. Therefore, a tuple $(b_i)$ lies in $\ker(\prod \pi)$ if and only if $\pi(b_i) = 0$ for each $i$, i.e., $b_i \in \ker(\pi) = \operatorname{im}(\iota)$ for each $i$, i.e., $(b_i) \in \operatorname{im}(\prod \iota)$. The same componentwise argument establishes injectivity of $\prod \iota$ and surjectivity of $\prod \pi$. Since $\Phi$ is a natural isomorphism, the original $\operatorname{Hom}_R(F, -)$ sequence inherits exactness.
**Stage 2: Extracting exactness for $P$.**
The decomposition $F \cong P \oplus Q$ induces a natural isomorphism of functors
\begin{align*}
\operatorname{Hom}_R(F, -) \cong \operatorname{Hom}_R(P \oplus Q, -) \cong \operatorname{Hom}_R(P, -) \oplus \operatorname{Hom}_R(Q, -).
\end{align*}
Concretely, an $R$-module homomorphism $\varphi: P \oplus Q \to M$ is determined by its restrictions to $P$ and $Q$, giving the isomorphism $\varphi \mapsto (\varphi|_P, \varphi|_Q)$. The inverse sends a pair $(f, g) \in \operatorname{Hom}_R(P, M) \oplus \operatorname{Hom}_R(Q, M)$ to the map $(p, q) \mapsto f(p) + g(q)$. This isomorphism is natural in $M$ because post-composition with any $R$-module homomorphism $h: M \to N$ distributes over the restriction: $(h \circ \varphi)|_P = h \circ (\varphi|_P)$.
Now apply this decomposition to the short exact sequence $0 \to A \xrightarrow{\iota} B \xrightarrow{\pi} C \to 0$. The exact sequence $0 \to \operatorname{Hom}_R(F, A) \to \operatorname{Hom}_R(F, B) \to \operatorname{Hom}_R(F, C) \to 0$ decomposes as a direct sum of two sequences:
\begin{align*}
&0 \to \operatorname{Hom}_R(P, A) \to \operatorname{Hom}_R(P, B) \to \operatorname{Hom}_R(P, C) \to 0, \\
&0 \to \operatorname{Hom}_R(Q, A) \to \operatorname{Hom}_R(Q, B) \to \operatorname{Hom}_R(Q, C) \to 0.
\end{align*}
A [direct sum](/page/Direct%20Sum) of two sequences of abelian groups is exact if and only if each summand is exact. This follows because kernels and images in a direct sum decompose componentwise: for maps $f: A_1 \oplus A_2 \to B_1 \oplus B_2$ of the form $f = f_1 \oplus f_2$, we have $\ker(f) = \ker(f_1) \oplus \ker(f_2)$ and $\operatorname{im}(f) = \operatorname{im}(f_1) \oplus \operatorname{im}(f_2)$. Therefore $\ker(f) = \operatorname{im}(g)$ in the total sequence if and only if $\ker(f_1) = \operatorname{im}(g_1)$ and $\ker(f_2) = \operatorname{im}(g_2)$ in the respective summands. Since the total sequence is exact (by Stage 1), the $P$-summand
\begin{align*}
0 \to \operatorname{Hom}_R(P, A) \to \operatorname{Hom}_R(P, B) \to \operatorname{Hom}_R(P, C) \to 0
\end{align*}
is exact, as required.[/guided]