The irreducible representations of the Lie algebra sl(2) and of the Weyl algebra