integrate by parts (tanh(x))/(1+tan(x))