I'm not that great at calculus, but I noticed your problem and think I may know the answer. The key is in the following:

Your integral is then:

You should be right integrating that simplified form, but just in case you need the answer for reference, it's: