Let $\mathfrak {g}$ be a finite dimensional complex Lie algebra. Recall that an element $g \in \mathfrak {g}$ is called nilpotent element if ad$g: \mathfrak {g} \to \mathfrak {g}$ is nilpotent endomorphism.
Give an example of a linear Lie Algebra with a element $g$ such that $g$ is nilpotent as a matrix but ad$(g)$ is not nilpotent?
I am not sure how can we construct this.Please help.
Such an example does not exist, because of the following Lemma (from Humphreys book)
Lemma: Let $V$ be a vector space and $x\in \mathfrak{gl}(V)$ be nilpotent, i.e., $x^n=0$ for some $n$. Then $ad(x)\in \mathfrak{gl}(\mathfrak{gl}(V))$ is nilpotent too.
The proof is easy, one considers the linear maps $L\colon \mathfrak{gl}(V)\rightarrow \mathfrak{gl}(V)$ given by $y\mapsto xy$ and $R\colon \mathfrak{gl}(V)\rightarrow \mathfrak{gl}(V)$ given by $y\mapsto yx$, and notes that $L$ and $R$ commute because of $(LR)(y)=xyx=(RL)(y)$. Since $x^n=0$ we have $L^n=R^n=0$, and thus $$ ad(x)^{2n}=(L-R)^{2n}=\sum_{k=0}^{2n}\binom{2n}{k}L^{2n-k}(-R)^k=0. $$
Remark: The converse statement is not true in general. There are ad-nilpotent elements $x$, i.e., with $ad(x)$ nilpotent, where $x\in \mathfrak{gl}(V)$ is not nilpotent. Take the Lie algebra $\mathfrak{d}_n$ of diagonal matrices. This Lie algebra is abelian, so that $ad(d)=0$ is nilpotent for all $d$, but not all diagonal matrices are nilpotent.