$\newcommand{\angles}[1]{\left\langle\, #1 \,\right\rangle}
\newcommand{\braces}[1]{\left\lbrace\, #1 \,\right\rbrace}
\newcommand{\bracks}[1]{\left\lbrack\, #1 \,\right\rbrack}
\newcommand{\ceil}[1]{\,\left\lceil\, #1 \,\right\rceil\,}
\newcommand{\dd}{{\rm d}}
\newcommand{\ds}[1]{\displaystyle{#1}}
\newcommand{\expo}[1]{\,{\rm e}^{#1}\,}
\newcommand{\fermi}{\,{\rm f}}
\newcommand{\floor}[1]{\,\left\lfloor #1 \right\rfloor\,}
\newcommand{\half}{{1 \over 2}}
\newcommand{\ic}{{\rm i}}
\newcommand{\iff}{\Longleftrightarrow}
\newcommand{\imp}{\Longrightarrow}
\newcommand{\pars}[1]{\left(\, #1 \,\right)}
\newcommand{\partiald}[3][]{\frac{\partial^{#1} #2}{\partial #3^{#1}}}
\newcommand{\pp}{{\cal P}}
\newcommand{\root}[2][]{\,\sqrt[#1]{\vphantom{\large A}\,#2\,}\,}
\newcommand{\sech}{\,{\rm sech}}
\newcommand{\sgn}{\,{\rm sgn}}
\newcommand{\totald}[3][]{\frac{{\rm d}^{#1} #2}{{\rm d} #3^{#1}}}
\newcommand{\verts}[1]{\left\vert\, #1 \,\right\vert}$
Note that ( this appears in any ${\tt\mbox{Classical Mechanics}}$ book ):
$$
\totald[2]{\bf q}{t}=-\,{{\bf q} \over \verts{\bf q}^{3}}
=\nabla_{\bf q}{1 \over \verts{\bf q}}
$$
which is derived from the Lagrangian
$\ds{L = \half\,\pars{\totald{\bf q}{t}}^{2} - {1 \over q}\ \mbox{where}\
q \equiv \verts{\bf q}}$. Now, write the Lagrangian in Cylindrical Coordinates ( we can choose $\ds{z = 0}$ ):
$$
L = \half\pars{\dot{q}^2 + q^{2}\dot{\theta}^{2}} - {1 \over q}
$$
From this equation we see that $\ds{p_{\theta} = \partiald{L}{\dot{\theta}} = q^{2}\dot{\theta}}$ is time independent such that $\ds{L}$ becomes:
$$
L=\half\,\dot{q}^{2} + \half\,q^{2}\pars{p_{\theta} \over q^{2}}^{2} - {1 \over q}
=\half\,\dot{q}^{2} - \pars{{1 \over q} - {p_{\theta}^{2} \over 2q^{2}}}
$$
With Euler-Lagrange equations:
$$
\totald{}{t}\pars{\partiald{L}{\dot{q}}}
=\partiald{}{q}\pars{{1 \over q} - {p_{\theta}^{2} \over 2q^{2}}}
\ \imp\ \ddot{q}=-\,{1 \over q^{2}} + {p_{\theta}^{2} \over q^{3}}
$$
Also
\begin{align}
\dot{q}&=\dot{\theta}\,\totald{q}{\theta}
={p_{\theta} \over q^{2}}\,\totald{q}{\theta}
=-p_{\theta}\,\totald{\pars{1/q}}{\theta}=
-p_{\theta}\,\totald{\xi}{\theta}\,,\qquad\xi \equiv {1 \over q}
\\[3mm]
\ddot{q}&=-p_{\theta}\dot{\theta}\,\totald[2]{\xi}{\theta}
=-\,{p_{\theta}^{2} \over q^{2}}\,\totald[2]{\xi}{\theta}
=-p_{\theta}^{2}\xi^{2}\,\totald[2]{\xi}{\theta}\ \imp\
-p_{\theta}^{2}\xi^{2}\,\totald[2]{\xi}{\theta}
=-\xi^{2} + p_{\theta}^{2}\xi^{3}
\end{align}
$$
\totald[2]{\xi}{\theta} + \xi={1 \over p_{\theta}^{2}}
$$