$\textbf{The question is as follows:}$
Let $G$ be a finite solvable group with trivial center and trivial Frattini subgroup. Show that its Fitting subgroup $F(G)$ is contained in $G'$.
$\textbf{This question has a hint:}$
[Hint: show that there exists $A \triangleleft G$ such that $A \cap G' = 1$ and $F(G) \subseteq AG'$.]
$\textbf{Definition:}$
The Fitting subgroup of a group is defined as the subgroup generated by all the nilpotent normal subgroups of the group.
Frattini subgroup of a group $G$, denoted $Frat G$ is defined to be the intersection of all maximal subgroups of $G$. When $G$ has no maximal subgroup, $Frat G$ is set to be $G$ itself.
$\textbf{What I can do is as follows:}$
If the Frattini subgroup is trivial, then the Fitting subgroup is a direct product of Abelian, minimal normal subgroups of $G$, and it is complemented by some subgroup $M$. On each Abelian, minimal normal subgroup $A$ of $G$, $M$ acts irreducibly so either $[M,A]=1$ (and $M$ centralizes $A$ so that $A \le Z(G))$ or $[M,A]=A$. In particular, if $Z(G)=1$ then $[M,A]=A$ and $[M,Fit(G)]=Fit(G)$ is contained in $[G,G]$.
As you see, here we do not use the solvability of the group $G$, which is also part of the assumption.
Can you please let me know which part of this proof is wrong?
Can you please give me a detailed proof?
Thanks!