The authors are concerned with the existence of a positive solution

$u\in {H}^{1}\left({\mathbb{R}}^{N}\right)$ of the non-autonomous Schrödinger equation

$-{\Delta}u+V\left(x\right)u=f\left(u\right)$ in

${\mathbb{R}}^{N}$,

$N\ge 2$, where

$f:[0,+\infty )\to \mathbb{R}$ and

$V:{\mathbb{R}}^{N}\to \mathbb{R}$ are continuous functions. The main feature of this paper is that the authors replace the standard global Ambrosetti-Rabinowitz superlinear condition

$0<\mu {\int}_{0}^{t}f\left(s\right)\phantom{\rule{0.166667em}{0ex}}ds\le tf\left(t\right)\phantom{\rule{0.166667em}{0ex}}dt$, for all

$t\in \mathbb{R}$ and some

$\mu >2$, with a less restrictive assumption on

$f$, which does not need global conditions on the nonlinearity. More precisely, the nonlinear term

$f$ is supposed to have a superlinear and subcritical growth at infinity, while around the origin

$f$ satisfies

$f\left(0\right)=0$ and

${f}^{\text{'}}\left(0\right)$ is defined. Under some standard assumptions on the variable potential

$V$, the authors establish the existence of at least one nontrivial positive solution. The proof of this result relies on appropriate variational methods, in which the “problem at infinity” plays an important role. This approach is crucial to ensure the compactness of bounded Palais-Smale sequences. The method developed in the present paper can be generalized for solving other classes of nonlinear stationary differential equations lacking compactness.