If $G$ is a group, its Fitting subgroup $F_G$ is generated by all normal nilpotent subgroups of $G$. By the Fitting Lemma, it is equal to the union of the normal nilpotent subgroups. If $G$ is finite then $F_G$ is also nilpotent but that doesn't hold in general.
I have two related questions that I couldn't find an answer for in the literature (maybe because it is too easy), also not by myself since I have almost no knowledge about concrete computations of the Fitting subgroup.
First question: I have read here that we have $\varphi(F_G) = F_G$ for every surjective homomorphism $\varphi : G \to G$. What is a reference for this result? Does it also hold when $G$ is infinite? (The literature is mostly concerned with finite groups, for which the claim is trivial.)
Second question: If $\varphi : G \to H$ is any surjective homomorphism, I have checked $\varphi(F_G) \subseteq F_H$, but I assume $\varphi(F_G) = F_H$ may fail. What is an example? My feeling is that there must be an extreme example, so a group $G$ with $F_G = 1$ but which surjects onto a nilpotent group $H$, so that $F_H = H$. I suspect that it might work when $G$ is a free group of rank $ > 1$, but I am not sure how to compute $F_G$ in that case.