3.67 \(\int \frac {\text {csch}^2(x)}{i+\text {csch}(x)} \, dx\)

Optimal. Leaf size=17 \[ -\tanh ^{-1}(\cosh (x))+\frac {\coth (x)}{\text {csch}(x)+i} \]

[Out]

-arctanh(cosh(x))+coth(x)/(I+csch(x))

________________________________________________________________________________________

Rubi [A]  time = 0.05, antiderivative size = 17, normalized size of antiderivative = 1.00, number of steps used = 3, number of rules used = 3, integrand size = 13, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.231, Rules used = {3789, 3770, 3794} \[ -\tanh ^{-1}(\cosh (x))+\frac {\coth (x)}{\text {csch}(x)+i} \]

Antiderivative was successfully verified.

[In]

Int[Csch[x]^2/(I + Csch[x]),x]

[Out]

-ArcTanh[Cosh[x]] + Coth[x]/(I + Csch[x])

Rule 3770

Int[csc[(c_.) + (d_.)*(x_)], x_Symbol] :> -Simp[ArcTanh[Cos[c + d*x]]/d, x] /; FreeQ[{c, d}, x]

Rule 3789

Int[csc[(e_.) + (f_.)*(x_)]^2/(csc[(e_.) + (f_.)*(x_)]*(b_.) + (a_)), x_Symbol] :> Dist[1/b, Int[Csc[e + f*x],
 x], x] - Dist[a/b, Int[Csc[e + f*x]/(a + b*Csc[e + f*x]), x], x] /; FreeQ[{a, b, e, f}, x]

Rule 3794

Int[csc[(e_.) + (f_.)*(x_)]/(csc[(e_.) + (f_.)*(x_)]*(b_.) + (a_)), x_Symbol] :> -Simp[Cot[e + f*x]/(f*(b + a*
Csc[e + f*x])), x] /; FreeQ[{a, b, e, f}, x] && EqQ[a^2 - b^2, 0]

Rubi steps

\begin {align*} \int \frac {\text {csch}^2(x)}{i+\text {csch}(x)} \, dx &=-\left (i \int \frac {\text {csch}(x)}{i+\text {csch}(x)} \, dx\right )+\int \text {csch}(x) \, dx\\ &=-\tanh ^{-1}(\cosh (x))+\frac {\coth (x)}{i+\text {csch}(x)}\\ \end {align*}

________________________________________________________________________________________

Mathematica [B]  time = 0.03, size = 37, normalized size = 2.18 \[ \log \left (\tanh \left (\frac {x}{2}\right )\right )-\frac {2 i \sinh \left (\frac {x}{2}\right )}{\cosh \left (\frac {x}{2}\right )+i \sinh \left (\frac {x}{2}\right )} \]

Antiderivative was successfully verified.

[In]

Integrate[Csch[x]^2/(I + Csch[x]),x]

[Out]

Log[Tanh[x/2]] - ((2*I)*Sinh[x/2])/(Cosh[x/2] + I*Sinh[x/2])

________________________________________________________________________________________

fricas [B]  time = 0.47, size = 31, normalized size = 1.82 \[ -\frac {{\left (e^{x} - i\right )} \log \left (e^{x} + 1\right ) - {\left (e^{x} - i\right )} \log \left (e^{x} - 1\right ) - 2}{e^{x} - i} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(csch(x)^2/(I+csch(x)),x, algorithm="fricas")

[Out]

-((e^x - I)*log(e^x + 1) - (e^x - I)*log(e^x - 1) - 2)/(e^x - I)

________________________________________________________________________________________

giac [A]  time = 0.12, size = 22, normalized size = 1.29 \[ \frac {2}{e^{x} - i} - \log \left (e^{x} + 1\right ) + \log \left ({\left | e^{x} - 1 \right |}\right ) \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(csch(x)^2/(I+csch(x)),x, algorithm="giac")

[Out]

2/(e^x - I) - log(e^x + 1) + log(abs(e^x - 1))

________________________________________________________________________________________

maple [A]  time = 0.10, size = 19, normalized size = 1.12 \[ -\frac {2 i}{\tanh \left (\frac {x}{2}\right )-i}+\ln \left (\tanh \left (\frac {x}{2}\right )\right ) \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

int(csch(x)^2/(I+csch(x)),x)

[Out]

-2*I/(tanh(1/2*x)-I)+ln(tanh(1/2*x))

________________________________________________________________________________________

maxima [A]  time = 0.31, size = 29, normalized size = 1.71 \[ \frac {4}{2 \, e^{\left (-x\right )} + 2 i} - \log \left (e^{\left (-x\right )} + 1\right ) + \log \left (e^{\left (-x\right )} - 1\right ) \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(csch(x)^2/(I+csch(x)),x, algorithm="maxima")

[Out]

4/(2*e^(-x) + 2*I) - log(e^(-x) + 1) + log(e^(-x) - 1)

________________________________________________________________________________________

mupad [B]  time = 0.22, size = 26, normalized size = 1.53 \[ \ln \left (2-2\,{\mathrm {e}}^x\right )-\ln \left (-2\,{\mathrm {e}}^x-2\right )+\frac {2}{{\mathrm {e}}^x-\mathrm {i}} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

int(1/(sinh(x)^2*(1/sinh(x) + 1i)),x)

[Out]

log(2 - 2*exp(x)) - log(- 2*exp(x) - 2) + 2/(exp(x) - 1i)

________________________________________________________________________________________

sympy [F]  time = 0.00, size = 0, normalized size = 0.00 \[ \int \frac {\operatorname {csch}^{2}{\relax (x )}}{\operatorname {csch}{\relax (x )} + i}\, dx \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(csch(x)**2/(I+csch(x)),x)

[Out]

Integral(csch(x)**2/(csch(x) + I), x)

________________________________________________________________________________________