Example 1.
First we initialize a Lie algebra and display the multiplication table.
The derived series:
The lower central series:
The upper central series:
Example 2.
We compute the different series for the subalgebra .
The derived series:
The lower central series:
The upper central series: