Positive solutions of Yamabe type equations on complete manifolds and applications