This is Strogatz exercise $7.6.5:$
For the system $\ddot x+x+\varepsilon h(x,\dot x)=0$, where $h(x,\dot x)=x\dot x^2$ with $0 < ε << 1$, calculate the averaged equations and if possible, solve the averaged equations explicitly for $x(t,ε)$, given the initial conditions $x(0)=a$, $\dot x(0)=0$.
$0)$
$$r=\sqrt{x^2+y^2},$$
$$\phi=\arctan\biggr(\frac{y}{x}\biggr)-t\ (\theta=t+\phi\rightarrow\phi=\theta-t).$$
$1)$
$$h(x,\dot x)=x\dot x^2=r\cos(t+\phi)r^2\sin^2(t+\phi)=r^3\cos(t+\phi)\sin^2(t+\phi).$$
$2)$
$$\dot{\bar r}=\Bigr<\varepsilon h\sin(t+\phi)\Bigr>_t,$$
$$\dot{\bar \phi}=\Bigr<\frac{\varepsilon h}{r}\cos(t+\phi)\Bigr>_t.$$
\begin{align} \rightarrow \dot r & = \Bigr<\varepsilon r^3\cos(t+\phi)\sin^2(t+\phi)\Bigr[\sin(t+\phi)\Bigr]\Bigr>_t \\ & = \varepsilon r^3\Bigr<\cos(t+\phi)\sin^3(t+\phi)\Bigr>_t \\ & = \varepsilon r^3\frac{1}{2\pi}\displaystyle \int_{t-\pi}^{t+\pi}\cos(t+\phi)\sin^3(t+\phi)dt=0 \\ & \rightarrow \dot r=0\rightarrow \frac{dr}{dt}=0\rightarrow dr=0\rightarrow r=r_0. \end{align}
\begin{align} \rightarrow \dot \phi & = \Bigr<\frac{\varepsilon}{r} r^3\cos(t+\phi)\sin^2(t+\phi)\Bigr[\cos(t+\phi)\Bigr]\Bigr>_t \\ & = \varepsilon r^2\Bigr<\cos^2(t+\phi)\sin^2(t+\phi)\Bigr>_t \\ & = \varepsilon r^2\frac{1}{2\pi}\displaystyle \int_{t-\pi}^{t+\pi}\cos^2(t+\phi)\sin^2(t+\phi)dt \\ & = \varepsilon r^2\frac{1}{2\pi}\frac{\pi}{4}=\frac{\varepsilon r^2}{8} \\ & \rightarrow \dot \phi= \frac{\varepsilon r^2}{8}\rightarrow \frac{d\phi}{dt}=\frac{\varepsilon r^2}{8} \\ & \rightarrow d\phi=\frac{\varepsilon r^2}{8}dt \rightarrow \phi=\frac{\varepsilon r^2}{8}t+\phi_0. \end{align}
The amplitude of the closed orbit can be anything and the closed orbit is approximately circular.
$3)$
$$x(0)=a,$$
$$\dot x(0)=0.$$
$$\rightarrow r_0=\sqrt{x^2+y^2}=\sqrt{0+a^2}=a\rightarrow r=a.$$
$$\rightarrow \phi_0=\arctan\Bigr(\frac{0}{a}\Bigr)-0=0\rightarrow \phi=\frac{\varepsilon r^2}{8}t.$$
$4)$
$$x(t)=r(t)\cos(t+\phi)\rightarrow x(t)=a\cos\Bigr(t+\frac{\varepsilon r^2}{8}t\Bigr).$$