Neither of those equations is displaying for me. However,Here is howsub 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.