Well, in general, if is the integrand of your functional , then the Euler-Lagrange equations are

I get

the same as you. To integrate this, I would multiply through by and then integrate once. You might be able to integrate the resulting first-order DE at that point. Make sense?