Examples of derivation of Lie algebras Let $A$ be an algebra over a field $F$. A derivation of $A$ is an $F$-linear map
$D : A\to A$ such that
$D(ab) = aD(b) + D(a)b$ for all $a, b \in A$.
The map $adx : L \to L$ is inner derivation. I'm looking for some examples non-inner derivations of Lie algebras.
The easiest example is perhaps to consider all derivations of the Heisenberg Lie Algebra $\mathfrak{h}_3(K)$, i.e., all linear maps $D\colon \mathfrak{h}_3(K) \rightarrow \mathfrak{h}_3(K)$ satisfying $D([x,y])=[D(x),y]+[x,D(y)]$ for all $x,y$. Here the brackets
are given by $[e_1,e_2]=-[e_2,e_1]=e_3$, where $(e_1,e_2,e_3)$ denotes a basis.
The inner derivations are of the form $ad (x)$, and are linear combinations of
$$
ad (e_1)=\begin{pmatrix} 0 &amp; 0 &amp; 0\cr
0 &amp; 0 &amp; 0\cr
0 &amp; 1 &amp; 0\cr
\end{pmatrix},\;
ad (e_2)=\begin{pmatrix} 0 &amp; 0 &amp; 0\cr
0 &amp; 0 &amp; 0\cr
-1 &amp; 0 &amp; 0\cr
\end{pmatrix},\, ad(e_3)=0.
$$
However, the Heisenberg Lie Algebra has many other derivations (outer derivations). In fact, all linear maps of the form
$$
D=\begin{pmatrix} d_1 &amp; d_4 &amp; 0\cr
d_2 &amp; d_5 &amp; 0\cr
d_3 &amp; d_6 &amp; d_1+d_5\cr
\end{pmatrix}
$$
are derivations of the Heisenberg Lie algebra.
I just the same calculations and i get 

\begin{pmatrix} d_1 &amp; d_4 &amp; 0\cr
    d_2 &amp; d_2 &amp; 0\cr
    d_3 &amp; d_5 &amp; d_1 + d_2\cr
     \end{pmatrix}

for the derivations of  $\mathfrak{h}_3$.

I'm not sure who is right :P