Let $\mathfrak{g}$ be a finite dimensional complex Lie algebra. A derivation $D: \mathfrak{g} \rightarrow \mathfrak{g}$ is $\mathbb{C}$-linear map $\mathfrak{g} \rightarrow \mathfrak{g}$ such that for any $a, b \in \mathfrak{g}$, we have $D[a, b] = [Da, b] + [a, Db]$.
Let $\hbox{Rad}(\mathfrak{g})$ be the radical of $\mathfrak{g}$. My question is: does $D$ map $\hbox{Rad}(\mathfrak{g})$ into itself, i.e. is it true that $D(\text{Rad}(\mathfrak{g})) \subset \hbox{Rad}(\mathfrak{g})$?
This is true. Any derivation maps the solvable radical into the nilradical, hence we have $$ D(rad(\mathfrak{g}))\subseteq nil(\mathfrak{g})\subseteq rad(\mathfrak{g}). $$ The proof can be found in Jacobson's book on Lie algebras, see Corollary $2$ to Theorem $13$ in chapter $II$, section $7$. Ideals which are invariant under all derivations are called characteristic ideals.