\(\int \frac {\cosh ^6(x)}{i+\sinh (x)} \, dx\) [160]

   Optimal result
   Rubi [A] (verified)
   Mathematica [B] (verified)
   Maple [B] (verified)
   Fricas [B] (verification not implemented)
   Sympy [B] (verification not implemented)
   Maxima [B] (verification not implemented)
   Giac [B] (verification not implemented)
   Mupad [B] (verification not implemented)

Optimal result

Integrand size = 13, antiderivative size = 38 \[ \int \frac {\cosh ^6(x)}{i+\sinh (x)} \, dx=-\frac {3 i x}{8}+\frac {\cosh ^5(x)}{5}-\frac {3}{8} i \cosh (x) \sinh (x)-\frac {1}{4} i \cosh ^3(x) \sinh (x) \]

[Out]

-3/8*I*x+1/5*cosh(x)^5-3/8*I*cosh(x)*sinh(x)-1/4*I*cosh(x)^3*sinh(x)

Rubi [A] (verified)

Time = 0.03 (sec) , antiderivative size = 38, normalized size of antiderivative = 1.00, number of steps used = 4, number of rules used = 3, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.231, Rules used = {2761, 2715, 8} \[ \int \frac {\cosh ^6(x)}{i+\sinh (x)} \, dx=-\frac {3 i x}{8}+\frac {\cosh ^5(x)}{5}-\frac {1}{4} i \sinh (x) \cosh ^3(x)-\frac {3}{8} i \sinh (x) \cosh (x) \]

[In]

Int[Cosh[x]^6/(I + Sinh[x]),x]

[Out]

((-3*I)/8)*x + Cosh[x]^5/5 - ((3*I)/8)*Cosh[x]*Sinh[x] - (I/4)*Cosh[x]^3*Sinh[x]

Rule 8

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

Rule 2715

Int[((b_.)*sin[(c_.) + (d_.)*(x_)])^(n_), x_Symbol] :> Simp[(-b)*Cos[c + d*x]*((b*Sin[c + d*x])^(n - 1)/(d*n))
, x] + Dist[b^2*((n - 1)/n), Int[(b*Sin[c + d*x])^(n - 2), x], x] /; FreeQ[{b, c, d}, x] && GtQ[n, 1] && Integ
erQ[2*n]

Rule 2761

Int[(cos[(e_.) + (f_.)*(x_)]*(g_.))^(p_)/((a_) + (b_.)*sin[(e_.) + (f_.)*(x_)]), x_Symbol] :> Simp[g*((g*Cos[e
 + f*x])^(p - 1)/(b*f*(p - 1))), x] + Dist[g^2/a, Int[(g*Cos[e + f*x])^(p - 2), x], x] /; FreeQ[{a, b, e, f, g
}, x] && EqQ[a^2 - b^2, 0] && GtQ[p, 1] && IntegerQ[2*p]

Rubi steps \begin{align*} \text {integral}& = \frac {\cosh ^5(x)}{5}-i \int \cosh ^4(x) \, dx \\ & = \frac {\cosh ^5(x)}{5}-\frac {1}{4} i \cosh ^3(x) \sinh (x)-\frac {3}{4} i \int \cosh ^2(x) \, dx \\ & = \frac {\cosh ^5(x)}{5}-\frac {3}{8} i \cosh (x) \sinh (x)-\frac {1}{4} i \cosh ^3(x) \sinh (x)-\frac {3}{8} i \int 1 \, dx \\ & = -\frac {3 i x}{8}+\frac {\cosh ^5(x)}{5}-\frac {3}{8} i \cosh (x) \sinh (x)-\frac {1}{4} i \cosh ^3(x) \sinh (x) \\ \end{align*}

Mathematica [B] (verified)

Both result and optimal contain complex but leaf count is larger than twice the leaf count of optimal. \(131\) vs. \(2(38)=76\).

Time = 0.19 (sec) , antiderivative size = 131, normalized size of antiderivative = 3.45 \[ \int \frac {\cosh ^6(x)}{i+\sinh (x)} \, dx=-\frac {i \cosh ^7(x) \left (8 i+\frac {30 i \arcsin \left (\frac {\sqrt {1-i \sinh (x)}}{\sqrt {2}}\right ) \sqrt {1-i \sinh (x)}}{\sqrt {1+i \sinh (x)}}+33 \sinh (x)-9 i \sinh ^2(x)+26 \sinh ^3(x)-2 i \sinh ^4(x)+8 \sinh ^5(x)\right )}{40 \left (\cosh \left (\frac {x}{2}\right )-i \sinh \left (\frac {x}{2}\right )\right )^8 \left (\cosh \left (\frac {x}{2}\right )+i \sinh \left (\frac {x}{2}\right )\right )^6} \]

[In]

Integrate[Cosh[x]^6/(I + Sinh[x]),x]

[Out]

((-1/40*I)*Cosh[x]^7*(8*I + ((30*I)*ArcSin[Sqrt[1 - I*Sinh[x]]/Sqrt[2]]*Sqrt[1 - I*Sinh[x]])/Sqrt[1 + I*Sinh[x
]] + 33*Sinh[x] - (9*I)*Sinh[x]^2 + 26*Sinh[x]^3 - (2*I)*Sinh[x]^4 + 8*Sinh[x]^5))/((Cosh[x/2] - I*Sinh[x/2])^
8*(Cosh[x/2] + I*Sinh[x/2])^6)

Maple [B] (verified)

Both result and optimal contain complex but leaf count of result is larger than twice the leaf count of optimal. 137 vs. \(2 (27 ) = 54\).

Time = 0.35 (sec) , antiderivative size = 138, normalized size of antiderivative = 3.63

\[\frac {3 i \ln \left (\tanh \left (\frac {x}{2}\right )-1\right )}{8}+\frac {-\frac {1}{2}-\frac {i}{4}}{\left (\tanh \left (\frac {x}{2}\right )-1\right )^{4}}+\frac {-\frac {3}{8}-\frac {5 i}{8}}{\tanh \left (\frac {x}{2}\right )-1}+\frac {-\frac {5}{8}-\frac {7 i}{8}}{\left (\tanh \left (\frac {x}{2}\right )-1\right )^{2}}+\frac {-\frac {3}{4}-\frac {i}{2}}{\left (\tanh \left (\frac {x}{2}\right )-1\right )^{3}}-\frac {1}{5 \left (\tanh \left (\frac {x}{2}\right )-1\right )^{5}}-\frac {3 i \ln \left (\tanh \left (\frac {x}{2}\right )+1\right )}{8}+\frac {-\frac {1}{2}+\frac {i}{4}}{\left (\tanh \left (\frac {x}{2}\right )+1\right )^{4}}+\frac {\frac {3}{4}-\frac {i}{2}}{\left (\tanh \left (\frac {x}{2}\right )+1\right )^{3}}+\frac {\frac {3}{8}-\frac {5 i}{8}}{\tanh \left (\frac {x}{2}\right )+1}+\frac {-\frac {5}{8}+\frac {7 i}{8}}{\left (\tanh \left (\frac {x}{2}\right )+1\right )^{2}}+\frac {1}{5 \left (\tanh \left (\frac {x}{2}\right )+1\right )^{5}}\]

[In]

int(cosh(x)^6/(I+sinh(x)),x)

[Out]

3/8*I*ln(tanh(1/2*x)-1)-(1/2+1/4*I)/(tanh(1/2*x)-1)^4-(3/8+5/8*I)/(tanh(1/2*x)-1)-(5/8+7/8*I)/(tanh(1/2*x)-1)^
2-(3/4+1/2*I)/(tanh(1/2*x)-1)^3-1/5/(tanh(1/2*x)-1)^5-3/8*I*ln(tanh(1/2*x)+1)+(-1/2+1/4*I)/(tanh(1/2*x)+1)^4+(
3/4-1/2*I)/(tanh(1/2*x)+1)^3+(3/8-5/8*I)/(tanh(1/2*x)+1)+(-5/8+7/8*I)/(tanh(1/2*x)+1)^2+1/5/(tanh(1/2*x)+1)^5

Fricas [B] (verification not implemented)

Both result and optimal contain complex but leaf count of result is larger than twice the leaf count of optimal. 67 vs. \(2 (24) = 48\).

Time = 0.27 (sec) , antiderivative size = 67, normalized size of antiderivative = 1.76 \[ \int \frac {\cosh ^6(x)}{i+\sinh (x)} \, dx=\frac {1}{320} \, {\left (-120 i \, x e^{\left (5 \, x\right )} + 2 \, e^{\left (10 \, x\right )} - 5 i \, e^{\left (9 \, x\right )} + 10 \, e^{\left (8 \, x\right )} - 40 i \, e^{\left (7 \, x\right )} + 20 \, e^{\left (6 \, x\right )} + 20 \, e^{\left (4 \, x\right )} + 40 i \, e^{\left (3 \, x\right )} + 10 \, e^{\left (2 \, x\right )} + 5 i \, e^{x} + 2\right )} e^{\left (-5 \, x\right )} \]

[In]

integrate(cosh(x)^6/(I+sinh(x)),x, algorithm="fricas")

[Out]

1/320*(-120*I*x*e^(5*x) + 2*e^(10*x) - 5*I*e^(9*x) + 10*e^(8*x) - 40*I*e^(7*x) + 20*e^(6*x) + 20*e^(4*x) + 40*
I*e^(3*x) + 10*e^(2*x) + 5*I*e^x + 2)*e^(-5*x)

Sympy [B] (verification not implemented)

Both result and optimal contain complex but leaf count of result is larger than twice the leaf count of optimal. 82 vs. \(2 (36) = 72\).

Time = 0.11 (sec) , antiderivative size = 82, normalized size of antiderivative = 2.16 \[ \int \frac {\cosh ^6(x)}{i+\sinh (x)} \, dx=- \frac {3 i x}{8} + \frac {e^{5 x}}{160} - \frac {i e^{4 x}}{64} + \frac {e^{3 x}}{32} - \frac {i e^{2 x}}{8} + \frac {e^{x}}{16} + \frac {e^{- x}}{16} + \frac {i e^{- 2 x}}{8} + \frac {e^{- 3 x}}{32} + \frac {i e^{- 4 x}}{64} + \frac {e^{- 5 x}}{160} \]

[In]

integrate(cosh(x)**6/(I+sinh(x)),x)

[Out]

-3*I*x/8 + exp(5*x)/160 - I*exp(4*x)/64 + exp(3*x)/32 - I*exp(2*x)/8 + exp(x)/16 + exp(-x)/16 + I*exp(-2*x)/8
+ exp(-3*x)/32 + I*exp(-4*x)/64 + exp(-5*x)/160

Maxima [B] (verification not implemented)

Both result and optimal contain complex but leaf count of result is larger than twice the leaf count of optimal. 66 vs. \(2 (24) = 48\).

Time = 0.20 (sec) , antiderivative size = 66, normalized size of antiderivative = 1.74 \[ \int \frac {\cosh ^6(x)}{i+\sinh (x)} \, dx=-\frac {1}{320} \, {\left (5 i \, e^{\left (-x\right )} - 10 \, e^{\left (-2 \, x\right )} + 40 i \, e^{\left (-3 \, x\right )} - 20 \, e^{\left (-4 \, x\right )} - 2\right )} e^{\left (5 \, x\right )} - \frac {3}{8} i \, x + \frac {1}{16} \, e^{\left (-x\right )} + \frac {1}{8} i \, e^{\left (-2 \, x\right )} + \frac {1}{32} \, e^{\left (-3 \, x\right )} + \frac {1}{64} i \, e^{\left (-4 \, x\right )} + \frac {1}{160} \, e^{\left (-5 \, x\right )} \]

[In]

integrate(cosh(x)^6/(I+sinh(x)),x, algorithm="maxima")

[Out]

-1/320*(5*I*e^(-x) - 10*e^(-2*x) + 40*I*e^(-3*x) - 20*e^(-4*x) - 2)*e^(5*x) - 3/8*I*x + 1/16*e^(-x) + 1/8*I*e^
(-2*x) + 1/32*e^(-3*x) + 1/64*I*e^(-4*x) + 1/160*e^(-5*x)

Giac [B] (verification not implemented)

Both result and optimal contain complex but leaf count of result is larger than twice the leaf count of optimal. 62 vs. \(2 (24) = 48\).

Time = 0.27 (sec) , antiderivative size = 62, normalized size of antiderivative = 1.63 \[ \int \frac {\cosh ^6(x)}{i+\sinh (x)} \, dx=\frac {1}{320} \, {\left (20 \, e^{\left (4 \, x\right )} + 40 i \, e^{\left (3 \, x\right )} + 10 \, e^{\left (2 \, x\right )} + 5 i \, e^{x} + 2\right )} e^{\left (-5 \, x\right )} - \frac {3}{8} i \, x + \frac {1}{160} \, e^{\left (5 \, x\right )} - \frac {1}{64} i \, e^{\left (4 \, x\right )} + \frac {1}{32} \, e^{\left (3 \, x\right )} - \frac {1}{8} i \, e^{\left (2 \, x\right )} + \frac {1}{16} \, e^{x} \]

[In]

integrate(cosh(x)^6/(I+sinh(x)),x, algorithm="giac")

[Out]

1/320*(20*e^(4*x) + 40*I*e^(3*x) + 10*e^(2*x) + 5*I*e^x + 2)*e^(-5*x) - 3/8*I*x + 1/160*e^(5*x) - 1/64*I*e^(4*
x) + 1/32*e^(3*x) - 1/8*I*e^(2*x) + 1/16*e^x

Mupad [B] (verification not implemented)

Time = 1.30 (sec) , antiderivative size = 67, normalized size of antiderivative = 1.76 \[ \int \frac {\cosh ^6(x)}{i+\sinh (x)} \, dx=\frac {{\mathrm {e}}^{-x}}{16}+\frac {{\mathrm {e}}^{-3\,x}}{32}+\frac {{\mathrm {e}}^{3\,x}}{32}+\frac {{\mathrm {e}}^{-5\,x}}{160}+\frac {{\mathrm {e}}^{5\,x}}{160}+\frac {{\mathrm {e}}^x}{16}-\frac {x\,3{}\mathrm {i}}{8}+\frac {{\mathrm {e}}^{-2\,x}\,1{}\mathrm {i}}{8}-\frac {{\mathrm {e}}^{2\,x}\,1{}\mathrm {i}}{8}+\frac {{\mathrm {e}}^{-4\,x}\,1{}\mathrm {i}}{64}-\frac {{\mathrm {e}}^{4\,x}\,1{}\mathrm {i}}{64} \]

[In]

int(cosh(x)^6/(sinh(x) + 1i),x)

[Out]

exp(-x)/16 - (x*3i)/8 + (exp(-2*x)*1i)/8 - (exp(2*x)*1i)/8 + exp(-3*x)/32 + exp(3*x)/32 + (exp(-4*x)*1i)/64 -
(exp(4*x)*1i)/64 + exp(-5*x)/160 + exp(5*x)/160 + exp(x)/16