Neither of those equations is displaying for me. However, is the trig substitution that I know does works, and so I have modified your post and elaborated a bit so that it does display, as follows, for those who want to see the working:Here is how sub works out:
--- remove equation that is not displaying ---
Now I'm sure you can see how this works out from here - far from elegant but it still works!
As for another trig sub, maybe :
--- remove equation that is not displaying ---
I don't have time to look at the other solution at this moment, but will check it later today.