Integrate[(tanh(x)^2+coth(x)^2) dx A, B ]