Choose a basis of the two-dimensional abelian Lie algebra , and lifts with the same names. Every alternating bilinear form is determined by , and every such form is a Lie algebra two-cocycle because every Lie bracket in is zero. Thus every central extension of a Lie algebra has a basis withIf , all Lie brackets vanish, so this is the direct sum of Lie algebras . If , replace the central basis vector by . Then , which is the Heisenberg Lie algebra . This change of basis shows that every nonzero gives the same Lie algebra isomorphism class.
These two Lie algebras cannot be isomorphic: their derived algebras have dimensions zero and one, respectively, and a Lie algebra isomorphism preserves the derived algebra. Moreover, the Heisenberg Lie algebra cannot be a direct sum of Lie algebras , since that direct sum of Lie algebras would have zero Lie bracket. ThereforeHere “up to isomorphism” means the Lie algebra isomorphism class of the middle Lie algebra, allowing a change of the identifications at the ends of the short exact sequence. If instead equivalence of central extensions of a Lie algebra must induce the identity on both and , the parameter cannot change: the formula in part (a) has . That stricter notion has one class for each , rather than two. This distinction explains the convention required by the question.
For the Lie algebra two-cocycle of part (i), the central extension of a Lie algebra has a basis and Lie bracketsPut . This is still a basis together with , andConsequently is a Lie subalgebra isomorphic to the affine Lie algebra of the line. It commutes with and has zero intersection with , so both summands are ideals of a Lie algebra andThis also holds for the stricter equivalence of central extensions of a Lie algebra. Indeed, choose the linear functional with , . Since in , the change of section in part (a) gives . Thus every Lie algebra two-cocycle here is a Lie algebra two-coboundary, so in Lie algebra cohomology. The explicit map from the split central extension of a Lie algebra sends to , to , and to ; it fixes the central line and induces the identity on the quotient Lie algebra.