Let $\{M_i\}_{i \in I}$ and N be left R modules where R is not necessarily commutative. Then how can we prove that
$Hom_R(N, \bigoplus_{i \in I} M_i)$ is isomorphic to $\bigoplus_{i \in I}Hom_R(N,M_i)$.
If I start from $f \in Hom_R(N, \bigoplus_{i \in I} M_i)$ define a map $f_i:N \to M_i$ by $f_i= \pi_i \circ f $ where $\pi_i$ is the projection. Then define $g= \sum_i f_i$. How can we conclude that $g \in \bigoplus_{i \in I}Hom_R(N,M_i)$ ?? How can we prove that all but a finitely many $f_i$ are zero? please help me.