3.3.14 \(\int \frac {\coth ^3(x)}{i+\sinh (x)} \, dx\) [214]

Optimal. Leaf size=15 \[ -\text {csch}(x)+\frac {1}{2} i \text {csch}^2(x) \]

[Out]

-csch(x)+1/2*I*csch(x)^2

________________________________________________________________________________________

Rubi [A]
time = 0.04, antiderivative size = 15, normalized size of antiderivative = 1.00, number of steps used = 5, number of rules used = 4, integrand size = 13, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.308, Rules used = {2785, 2686, 30, 8} \begin {gather*} -\text {csch}(x)+\frac {1}{2} i \text {csch}^2(x) \end {gather*}

Antiderivative was successfully verified.

[In]

Int[Coth[x]^3/(I + Sinh[x]),x]

[Out]

-Csch[x] + (I/2)*Csch[x]^2

Rule 8

Int[a_, x_Symbol] :> Simp[a*x, x] /; FreeQ[a, x]

Rule 30

Int[(x_)^(m_.), x_Symbol] :> Simp[x^(m + 1)/(m + 1), x] /; FreeQ[m, x] && NeQ[m, -1]

Rule 2686

Int[((a_.)*sec[(e_.) + (f_.)*(x_)])^(m_.)*((b_.)*tan[(e_.) + (f_.)*(x_)])^(n_.), x_Symbol] :> Dist[a/f, Subst[
Int[(a*x)^(m - 1)*(-1 + x^2)^((n - 1)/2), x], x, Sec[e + f*x]], x] /; FreeQ[{a, e, f, m}, x] && IntegerQ[(n -
1)/2] &&  !(IntegerQ[m/2] && LtQ[0, m, n + 1])

Rule 2785

Int[((g_.)*tan[(e_.) + (f_.)*(x_)])^(p_.)/((a_) + (b_.)*sin[(e_.) + (f_.)*(x_)]), x_Symbol] :> Dist[1/a, Int[S
ec[e + f*x]^2*(g*Tan[e + f*x])^p, x], x] - Dist[1/(b*g), Int[Sec[e + f*x]*(g*Tan[e + f*x])^(p + 1), x], x] /;
FreeQ[{a, b, e, f, g, p}, x] && EqQ[a^2 - b^2, 0] && NeQ[p, -1]

Rubi steps

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

________________________________________________________________________________________

Mathematica [A]
time = 0.01, size = 15, normalized size = 1.00 \begin {gather*} -\text {csch}(x)+\frac {1}{2} i \text {csch}^2(x) \end {gather*}

Antiderivative was successfully verified.

[In]

Integrate[Coth[x]^3/(I + Sinh[x]),x]

[Out]

-Csch[x] + (I/2)*Csch[x]^2

________________________________________________________________________________________

Maple [B] Both result and optimal contain complex but leaf count of result is larger than twice the leaf count of optimal. 33 vs. \(2 (12 ) = 24\).
time = 0.61, size = 34, normalized size = 2.27

method result size
risch \(-\frac {2 \,{\mathrm e}^{x} \left (-i {\mathrm e}^{x}+{\mathrm e}^{2 x}-1\right )}{\left ({\mathrm e}^{2 x}-1\right )^{2}}\) \(24\)
default \(\frac {\tanh \left (\frac {x}{2}\right )}{2}+\frac {i \left (\tanh ^{2}\left (\frac {x}{2}\right )\right )}{8}-\frac {1}{2 \tanh \left (\frac {x}{2}\right )}+\frac {i}{8 \tanh \left (\frac {x}{2}\right )^{2}}\) \(34\)

Verification of antiderivative is not currently implemented for this CAS.

[In]

int(coth(x)^3/(I+sinh(x)),x,method=_RETURNVERBOSE)

[Out]

1/2*tanh(1/2*x)+1/8*I*tanh(1/2*x)^2-1/2/tanh(1/2*x)+1/8*I/tanh(1/2*x)^2

________________________________________________________________________________________

Maxima [B] Both result and optimal contain complex but leaf count of result is larger than twice the leaf count of optimal. 67 vs. \(2 (11) = 22\).
time = 0.28, size = 67, normalized size = 4.47 \begin {gather*} \frac {2 \, e^{\left (-x\right )}}{2 \, e^{\left (-2 \, x\right )} - e^{\left (-4 \, x\right )} - 1} - \frac {2 i \, e^{\left (-2 \, x\right )}}{2 \, e^{\left (-2 \, x\right )} - e^{\left (-4 \, x\right )} - 1} - \frac {2 \, e^{\left (-3 \, x\right )}}{2 \, e^{\left (-2 \, x\right )} - e^{\left (-4 \, x\right )} - 1} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(coth(x)^3/(I+sinh(x)),x, algorithm="maxima")

[Out]

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

________________________________________________________________________________________

Fricas [B] Both result and optimal contain complex but leaf count of result is larger than twice the leaf count of optimal. 31 vs. \(2 (11) = 22\).
time = 0.41, size = 31, normalized size = 2.07 \begin {gather*} -\frac {2 \, {\left (e^{\left (3 \, x\right )} - i \, e^{\left (2 \, x\right )} - e^{x}\right )}}{e^{\left (4 \, x\right )} - 2 \, e^{\left (2 \, x\right )} + 1} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(coth(x)^3/(I+sinh(x)),x, algorithm="fricas")

[Out]

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

________________________________________________________________________________________

Sympy [B] Both result and optimal contain complex but leaf count of result is larger than twice the leaf count of optimal. 32 vs. \(2 (10) = 20\).
time = 0.06, size = 32, normalized size = 2.13 \begin {gather*} \frac {- 2 e^{3 x} + 2 i e^{2 x} + 2 e^{x}}{e^{4 x} - 2 e^{2 x} + 1} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(coth(x)**3/(I+sinh(x)),x)

[Out]

(-2*exp(3*x) + 2*I*exp(2*x) + 2*exp(x))/(exp(4*x) - 2*exp(2*x) + 1)

________________________________________________________________________________________

Giac [B] Both result and optimal contain complex but leaf count of result is larger than twice the leaf count of optimal. 23 vs. \(2 (11) = 22\).
time = 0.42, size = 23, normalized size = 1.53 \begin {gather*} \frac {2 \, {\left (e^{\left (-x\right )} - e^{x} + i\right )}}{{\left (e^{\left (-x\right )} - e^{x}\right )}^{2}} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(coth(x)^3/(I+sinh(x)),x, algorithm="giac")

[Out]

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

________________________________________________________________________________________

Mupad [B]
time = 0.57, size = 25, normalized size = 1.67 \begin {gather*} \frac {2\,{\mathrm {e}}^x\,\left (1-{\mathrm {e}}^{2\,x}+{\mathrm {e}}^x\,1{}\mathrm {i}\right )}{{\left ({\mathrm {e}}^{2\,x}-1\right )}^2} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

int(coth(x)^3/(sinh(x) + 1i),x)

[Out]

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

________________________________________________________________________________________