Nonlinear equations involving non positive definite linear operators via variational methods