The integral is .

According to Maple I should first rewrite it as and then solve it.

My problem is that I don't know how to rewrite it, after that I can solve it (I know how to use the rules for integration) but how to get there?

I would like a method which works all the time.