This is Exercise 1.5.10 of Robinson's, "A Course in the Theory of Groups (Second Edition)". According to Approach0, it is new to MSE.
The Details:
On page 11, ibid., the set product of subsets $X,Y$ of a group is defined as
$$XY=\{xy\mid x\in X, y\in Y\}.$$
On page 17, ibid., for groups $G,H$, the definition of ${\rm Hom}(G, H)$ is given as the set of all homomorphisms from $G$ to $H$.
The definition of a direct product on pages 20 to 21, ibid., is a little more involved.
Let $\{G_\lambda\mid \lambda\in\Lambda\}$ be a given set of groups. The cartesian (or unrestricted direct) product,
$$C=\underset{\lambda\in\Lambda}{{\rm Cr}}\, G_\lambda,$$
is the group whose underlying set is the set product of the $G_\lambda$s [. . .] and whose group operation is multiplication of components: thus
$$(g_\lambda)(h_\lambda)=(g_\lambda h_\lambda),$$
$g_\lambda, h_\lambda\in G_\lambda$. [. . .]
The subset of all $(g_\lambda)$ such that $g_\lambda=1_\lambda$ for almost all $\lambda$ [. . .] is called the external direct product,
$$D=\underset{\lambda\in\Lambda}{{\rm Dr}}\, G_\lambda,$$
[. . .] In case $\Lambda=\{\lambda_1,\dots,\lambda_n\}$, a finite set, we write
$$D=G_{\lambda_1}\times\dots\times G_{\lambda_n}.$$
Of course $C=D$ in this case.
On page 26, ibid., we have that
The set of all automorphisms of [a group] $G$ is denoted by
$${\rm Aut}(G).$$
It is a group under function composition.
The Question:
This is on page 30, ibid.
Let $G=G_1\times\dots\times G_n$ where the $G_i$ are abelian groups. Prove that ${\rm Aut}(G)$ is isomorphic with the group of all invertible $n\times n$ matrices whose $(i,j)$ entries belong to ${\rm Hom}(G_i, G_j)$, the usual matrix product being the group operation.
Thoughts:
I'm used to thinking of the direct product of groups as the group defined by a certain presentation, or else simply as the obvious generalisation of $$H\times K=\{(h,k)\mid h\in H, k\in K\}$$ under the operation $(h,k)\cdot(h',k')=(hh', kk')$.
My linear algebra is a little rusty, which is probably why I'm struggling here.
Examples:
When $n=1$:
We have just the abelian group $G$. The automorphism group is
$${\rm Aut}(G)=\{\varphi\in {\rm Hom}(G,G)\mid \varphi \text{ is an isomorphism}\}$$
and the $1\times 1$ matrices are simply $(\varphi)$ with $(\varphi)^{-1}=(\varphi^{-1})$.
The isomorphism is trivial.
When $n=2$:
We have $G=G_1\times G_2$. Now the $(i,j)$ entries of the $2\times 2$ matrices are such that . . .
Wait a Minute . . .
What operation is the addition of the homomorphisms?
I guess this is my main stumbling block.
Let's try working it out & see . . .
So, we have
$${\rm Aut}(G)\stackrel{?}{\cong}\left\{ \begin{pmatrix} \varphi_{(1,1)} & \varphi_{(1,2)}\\ \varphi_{(2,1)} & \varphi_{(2,2)} \end{pmatrix} : \varphi_{(1,1)}\stackrel{?}{\times}\varphi_{(2,2)}\stackrel{?}{-} \varphi_{(1,2)}\stackrel{?}{\times}\varphi_{(2,1)}\neq \stackrel{?}{0} \right\}.$$
Okay, so I'm not sure on multiplication either, nor am I sure of what the zero element is.
This is a mess. I'm sorry.
Please help :)