A generalized differential of real functionals