I'm traying to prove the following theorem :
"Theorem: Let $G$ be a finite group, and $P \in \text{Syl}_p(G)$ where $p$ is the smallest prime dividing the order of $G$. Suppose that every subgroup of $P$ is normal in $G$, then $G \cong P \times A$ for some group $A$."
For the proof we use the Schur-Zassenhaus theorem and we argue that $[P, A] = 1$ due to the action of $A$ on $P/M \cong \mathbb{Z}_p$ being trivial, where $M$ is arbitrary maximal subgroup of $P$. This makes $[P, A] \leq \Phi(P)$. To complete the proof I need to conclude that $[P, A] = 1$. Could someone kindly suggest some details?"
Thank you for your assistance!