I have a group $G \cong P \rtimes \mathbb{Z}_4$, where $|P| = p^2$ ($p$ is an odd prime). Do I have enough information to determine whether the two possible structures of $P$ both yield unique semidirect products?
If $P$ is cyclic, then $Aut(P)$ is cyclic, and if $P$ is elementary abelian, then $Aut(P) = GL(2,p)$. But I'm stuck here. How do I find the possible homomorphisms $\mathbb{Z}_4 \rightarrow Aut(P)$? And how can I tell if they lead to isomorphic or non-isomorphic groups?
Ultimately I'd like to find the center(s) of the possible groups. I read this post What is the center of a semidirect product?, but I'm not sure if I have enough information. The process seems quite complicated. Also, someone here Semidirect product uniqueness argument for classifying groups of small order mentioned the "normal Sylow trick". What is that? Here $P$ is normal Sylow, hence unique and characteristic, but how does that help?