Take the semidirect product of a Lie algebra and a module
where is the defining representation of the sl2 Lie algebra. To see directly that this is a Lie algebra, realize as the block matrix . These matrices are closed under the operator commutator, whose Jacobi identity holds in every associative algebra.
Using the standard sl2 triple , its Lie brackets show : indeed , , and . Also is invertible on . For any , put ; then
It follows that the derived algebra contains both and , so : this is a perfect Lie algebra.
However, is a nonzero ideal of a Lie algebra with zero Lie bracket. It is therefore a solvable Lie algebra and is contained in the solvable radical of . A semisimple Lie algebra has zero solvable radical, so
This illustrates the perfect semidirect product criterion: the Lie brackets internal to the first summand generate it, while its action generates the second summand.
Bilinearity and alternatingness of
are immediate. For three elements, the component of the Jacobi sum vanishes by the Jacobi identity in . In the component, the coefficient of a vector such as is
because the action is a Lie algebra representation; the other terms cancel cyclically in the same way. Hence the bracket satisfies Jacobi and defines the semidirect product of a Lie algebra and a module .
For a Lie algebra representation of on , let denote the linear span of for and . The derived algebra of the semidirect product of a Lie algebra and a module is the displayed direct sum of vector spaces. Every Lie bracket has first component in and second component in . Conversely, brackets of with span the former component, and brackets of with span the latter. Therefore this semidirect product of a Lie algebra and a module is a perfect Lie algebra exactly when is a perfect Lie algebra and . When , its nonzero abelian Lie algebra ideal prevents it from being a semisimple Lie algebra. The sl2 Lie algebra acting on its two-dimensional defining representation supplies a five-dimensional example.