Yes there is an easier way - that is, if you're ok with partial fractions. Factorise the denominator...

... you just have to figure out A and B. Then you have a direct way to the log version of the integral that Wolfram presents as a re-writing of tanh.