Chaos expansions: applications to a generalized eigenvalue problem for the Malliavin derivative