Calculate $\operatorname{Aut}(\mathbb{Z}_2 \times \mathbb{Z}_2)$.
My solution: $ \operatorname{Aut}(\mathbb{Z}_2 \times \mathbb{Z}_2) \cong \operatorname{Aut}(\mathbb{Z}_4) \cong U(4) \cong \mathbb{Z}_2 $
Is my solution correct ?
Reasoning used: Any subgroup of order $4$ is isomorphic to $\mathbb{Z}_2 \times \mathbb{Z}_2$. So $\mathbb{Z}_2 \times \mathbb{Z}_2$ can be replaced by $\mathbb{Z}_4$. That $\operatorname{Aut}(\mathbb{Z}_4) \cong U(4)$ is a theorem, and $U(4) \cong \mathbb{Z}/2$.
Doubt: There are $4$ elements in $\mathbb{Z}_2 \times \mathbb{Z}_2$. The identity will go to the identity. From the remaining three, $6$ different functions can be formed. Therefore $$ \operatorname{Aut}(\mathbb{Z}_2 \times \mathbb{Z}_2) \cong S_3. $$ How is this possible?
What is wrong, is that every subgroup of order $4$ is not isomorphic to $\mathbb Z_4$. In particular, $A = \mathbb Z_2 \times \mathbb Z_2$ is not isomorphic to $\mathbb Z_4$ since it contains an element of order two, while $\mathbb Z_4$ does not, and every isomorphism takes an element to another element of the same order.
How you would argue this is as follows. Note that $\mathbb Z_2 \times \mathbb Z_2$ has four elements, namely $(0,0),(0,1),(1,0),(1,1)$ (where $0,1$ are the elements of $\mathbb Z_2$ i.e. congruence classes modulo two). We call these elements $e,a,b,ab$ respectively to shorten notation. Note that $a^2 = b^2 = (ab)^2 = e$, so every non-trivial element has order two. Furthermore, the group is abelian.
Any automorphism takes $e \to e$, so there we have no freedom.
Note that it is enough to decide where any automorphism takes $a$ and $b$, since $\phi(ab) = \phi(a)\phi(b)$.
So we have the following problem : assign to $a,b$, two numbers in such a manner that the above relation of $\phi$ is satisfied.
The claim is that this will be done all the time. That is, if you send $a,b$ to any two different elements out of $ab,a,b$, then $ab$ going to the third element is a valid automorphism.
Indeed, this is clear, since if you take any two elements of the set $\{ab,a,b\}$ and multiply them, you get the third element. For example, $ab \times a = b$. Thus, the size of $\mbox{Aut }(A)$ is six.
So let us give a map $\psi : S_3 \to \mbox{Aut }(A)$, as follows : Form a mini-map l : $\{1,2,3\} \to \{a,b,ab\}$ given by $l(1) = a,l(2) = b,l(3) = ab$ (like a label map), and $(\psi(\phi))(x) = l(\phi(x))$.
$\psi$ is well defined, since $\phi$ and $l$ are both bijective(on their respective domains/codomains), so $\psi$ is sending an automorphism to a bijection.
$\psi$ is a homomorphism : this is easy to see.
It is injective, since if $l(\phi(x)) = x$ for every $x$ then in particular $\phi(a) = a$ and $\phi(b) = b$ so $\phi$ is the identity map. Of course, since the sets are of the same size, this is a bijection.
Hence the automorphism group of the Klein-4 group is automorphic to the symmetric group on three elements.