As per title, I am looking for the solution of the integral involving the trigonometric cot function.
The problem comes from a differential equation that I derived for a time-dependent variable $x\equiv x(t)$, \begin{equation} x' = 2 B_1 x - \sum_{k=1}^n (-1)^k \frac{2^{2k}B_{2k}}{(2k)!} x^{2k} = x - x \, \text{cot}(x) + 1, \end{equation} where $B_j$ are Bernoulli numbers, $B_1=1/2$ and we used the connection to the series expansion of cot. Proceeding with the separation of variables we obtain \begin{equation} \int \frac{1}{x-x \, \text{cot}(x)+1} \, dx = \int dt= t+ C, \end{equation}
Similarly, if we consider $B_1=-1/2$ (the first Bernoulli number can be either positive or negative) we obtain (up to a global minus sign) the slightly different variant of the LHS, namely, \begin{equation} \int \frac{1}{x+x \, \text{cot}(x)-1} \, dx . \end{equation} Online calculators have not been helpful and no valid approach to tackle the integrals comes to my mind. Is at least one of these two integrals solvable?
edit: what I find surprising is that substituting cot with coth Wolfram outputs an explicit solution: \begin{equation} \int \frac{1}{x-x \, \text{coth}(x)+1} \, dx = 1/2 [x + \log(x \, \text{cosh}(x) - (1 + x)\, \text{sinh}(x))]+C \end{equation}
Can this somehow help? (considering $\text{coth}(x) = i \text{cot}(ix)$)
and that is not even an indefinite integral.
Nevertheless I will try to solve this one ...
– mick Oct 08 '24 at 18:33