I am doing a question which need the following statement as a lemma:
Statement: If $G$ is a group with a finitely generated Frattini subgroup $\Phi(G)$, then the only subgroup $H$ of $G$ such that $H\Phi(G) = G$ is $H = G$.
The proof of this statement on my book is indirect and using the following theorem:
Theorem: The Frattini subgroup of a nontrivial group $G$ is the set of all elements $x$ in $G$ with the property that, whenever a set $K\cup \{x\}$ generates $G$, $K$ generates $G$.
However, my proof of the statement above is rather simply and more directly. So I am afraid there would be some mistake in my proof so I want someone to check it. Thanks!
My proof of the statement: Suppose there exist a maximal subgroup $M$ such that $H \subset M \subset G.$ Then since $M$ is maximal, $\Phi(G) \subset G$, so $G = H\Phi(G) \subseteq M \subset G$. So $H$ is a maximal subgroup not equal to $G$ or $H = G$. The former case is impossible since if it does then $G = H\Phi(G) = H$, a contradiction. So finally we have $H = G.$