How do you compute the group of inner automorphisms of a given Lie algebra?
It seems as a dumb question to me, but I wasn't able to find the answer anywhere. I know that the group of inner automorphisms of Lie algebra $L$ is generated by elements $\exp({\rm ad}_x)$ for $x\in L$.
Is there some condition for the Lie algebra assuring that every inner automorphism is of the form $\exp({\rm ad}_x)$ (i.e. this set is closed w.r.t. multiplication)? Is there some condition for the Lie algebra assuring that every inner automorphism is of the form $\prod\exp(t_i{\rm ad}_{e_i})$, where $(e_i)$ is the basis (because this leads to much simpler results than $\exp(\sum t_i{\rm ad}_{e_i})$)?