I have arrived at a differential equation and I need to solve for $x$. $$ \frac{\mathrm{d}^2x}{\mathrm{d}E^2}+Hx =A\left(1-\frac{J}{2x^2}\right) $$ where $H$, $A$, and $J$ are constants.
I know that I can use elliptic integrals, but I need some help with the integration steps from here on.
Hint
Solve the equation with the RHS equal to zero and then use the variation of parameters method.
https://en.m.wikipedia.org/wiki/Variation_of_parameters