Optimal. Leaf size=50 \[ -\frac {5 i x}{16}+\frac {\cosh ^7(x)}{7}-\frac {5}{16} i \cosh (x) \sinh (x)-\frac {5}{24} i \cosh ^3(x) \sinh (x)-\frac {1}{6} i \cosh ^5(x) \sinh (x) \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.04, antiderivative size = 50, normalized size of antiderivative = 1.00, number of steps
used = 5, number of rules used = 3, integrand size = 13, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.231, Rules used = {2761, 2715, 8}
\begin {gather*} -\frac {5 i x}{16}+\frac {\cosh ^7(x)}{7}-\frac {1}{6} i \sinh (x) \cosh ^5(x)-\frac {5}{24} i \sinh (x) \cosh ^3(x)-\frac {5}{16} i \sinh (x) \cosh (x) \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 8
Rule 2715
Rule 2761
Rubi steps
\begin {align*} \int \frac {\cosh ^8(x)}{i+\sinh (x)} \, dx &=\frac {\cosh ^7(x)}{7}-i \int \cosh ^6(x) \, dx\\ &=\frac {\cosh ^7(x)}{7}-\frac {1}{6} i \cosh ^5(x) \sinh (x)-\frac {5}{6} i \int \cosh ^4(x) \, dx\\ &=\frac {\cosh ^7(x)}{7}-\frac {5}{24} i \cosh ^3(x) \sinh (x)-\frac {1}{6} i \cosh ^5(x) \sinh (x)-\frac {5}{8} i \int \cosh ^2(x) \, dx\\ &=\frac {\cosh ^7(x)}{7}-\frac {5}{16} i \cosh (x) \sinh (x)-\frac {5}{24} i \cosh ^3(x) \sinh (x)-\frac {1}{6} i \cosh ^5(x) \sinh (x)-\frac {5}{16} i \int 1 \, dx\\ &=-\frac {5 i x}{16}+\frac {\cosh ^7(x)}{7}-\frac {5}{16} i \cosh (x) \sinh (x)-\frac {5}{24} i \cosh ^3(x) \sinh (x)-\frac {1}{6} i \cosh ^5(x) \sinh (x)\\ \end {align*}
________________________________________________________________________________________
Mathematica [B] Both result and optimal contain complex but leaf count is larger than twice
the leaf count of optimal. \(219\) vs. \(2(50)=100\).
time = 0.13, size = 219, normalized size = 4.38 \begin {gather*} \frac {\cosh ^9(x) \left (6 i \left (35 \text {ArcSin}\left (\frac {\sqrt {1-i \sinh (x)}}{\sqrt {2}}\right ) \sqrt {1-i \sinh (x)}+8 \sqrt {1+i \sinh (x)}\right )+279 \sqrt {1+i \sinh (x)} \sinh (x)-87 i \sqrt {1+i \sinh (x)} \sinh ^2(x)+326 \sqrt {1+i \sinh (x)} \sinh ^3(x)-38 i \sqrt {1+i \sinh (x)} \sinh ^4(x)+200 \sqrt {1+i \sinh (x)} \sinh ^5(x)-8 i \sqrt {1+i \sinh (x)} \sinh ^6(x)+48 \sqrt {1+i \sinh (x)} \sinh ^7(x)\right )}{336 \sqrt {1+i \sinh (x)} (-i+\sinh (x))^4 (i+\sinh (x))^5} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [B] Both result and optimal contain complex but leaf count of result is larger than twice
the leaf count of optimal. 185 vs. \(2 (36 ) = 72\).
time = 0.60, size = 186, normalized size = 3.72
method | result | size |
risch | \(-\frac {5 i x}{16}+\frac {{\mathrm e}^{7 x}}{896}-\frac {i {\mathrm e}^{6 x}}{384}+\frac {{\mathrm e}^{5 x}}{128}-\frac {3 i {\mathrm e}^{4 x}}{128}+\frac {3 \,{\mathrm e}^{3 x}}{128}-\frac {15 i {\mathrm e}^{2 x}}{128}+\frac {5 \,{\mathrm e}^{x}}{128}+\frac {5 \,{\mathrm e}^{-x}}{128}+\frac {15 i {\mathrm e}^{-2 x}}{128}+\frac {3 \,{\mathrm e}^{-3 x}}{128}+\frac {3 i {\mathrm e}^{-4 x}}{128}+\frac {{\mathrm e}^{-5 x}}{128}+\frac {i {\mathrm e}^{-6 x}}{384}+\frac {{\mathrm e}^{-7 x}}{896}\) | \(94\) |
default | \(\frac {-\frac {5}{16}-\frac {11 i}{16}}{\tanh \left (\frac {x}{2}\right )-1}+\frac {-\frac {1}{2}-\frac {i}{6}}{\left (\tanh \left (\frac {x}{2}\right )-1\right )^{6}}+\frac {5 i \ln \left (\tanh \left (\frac {x}{2}\right )-1\right )}{16}+\frac {-\frac {1}{2}+\frac {i}{6}}{\left (\tanh \left (\frac {x}{2}\right )+1\right )^{6}}+\frac {-\frac {9}{8}-\frac {7 i}{6}}{\left (\tanh \left (\frac {x}{2}\right )-1\right )^{3}}+\frac {-\frac {5}{4}+i}{\left (\tanh \left (\frac {x}{2}\right )+1\right )^{4}}+\frac {-\frac {5}{4}-i}{\left (\tanh \left (\frac {x}{2}\right )-1\right )^{4}}+\frac {1}{7 \left (\tanh \left (\frac {x}{2}\right )+1\right )^{7}}-\frac {5 i \ln \left (\tanh \left (\frac {x}{2}\right )+1\right )}{16}+\frac {1-\frac {i}{2}}{\left (\tanh \left (\frac {x}{2}\right )+1\right )^{5}}+\frac {-1-\frac {i}{2}}{\left (\tanh \left (\frac {x}{2}\right )-1\right )^{5}}+\frac {-\frac {11}{16}+\frac {19 i}{16}}{\left (\tanh \left (\frac {x}{2}\right )+1\right )^{2}}+\frac {-\frac {11}{16}-\frac {19 i}{16}}{\left (\tanh \left (\frac {x}{2}\right )-1\right )^{2}}+\frac {\frac {9}{8}-\frac {7 i}{6}}{\left (\tanh \left (\frac {x}{2}\right )+1\right )^{3}}+\frac {\frac {5}{16}-\frac {11 i}{16}}{\tanh \left (\frac {x}{2}\right )+1}-\frac {1}{7 \left (\tanh \left (\frac {x}{2}\right )-1\right )^{7}}\) | \(186\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [B] Both result and optimal contain complex but leaf count of result is larger than
twice the leaf count of optimal. 90 vs. \(2 (32) = 64\).
time = 0.29, size = 90, normalized size = 1.80 \begin {gather*} -\frac {1}{2688} \, {\left (7 i \, e^{\left (-x\right )} - 21 \, e^{\left (-2 \, x\right )} + 63 i \, e^{\left (-3 \, x\right )} - 63 \, e^{\left (-4 \, x\right )} + 315 i \, e^{\left (-5 \, x\right )} - 105 \, e^{\left (-6 \, x\right )} - 3\right )} e^{\left (7 \, x\right )} - \frac {5}{16} i \, x + \frac {5}{128} \, e^{\left (-x\right )} + \frac {15}{128} i \, e^{\left (-2 \, x\right )} + \frac {3}{128} \, e^{\left (-3 \, x\right )} + \frac {3}{128} i \, e^{\left (-4 \, x\right )} + \frac {1}{128} \, e^{\left (-5 \, x\right )} + \frac {1}{384} i \, e^{\left (-6 \, x\right )} + \frac {1}{896} \, e^{\left (-7 \, x\right )} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [B] Both result and optimal contain complex but leaf count of result is larger than twice
the leaf count of optimal. 91 vs. \(2 (32) = 64\).
time = 0.36, size = 91, normalized size = 1.82 \begin {gather*} \frac {1}{2688} \, {\left (-840 i \, x e^{\left (7 \, x\right )} + 3 \, e^{\left (14 \, x\right )} - 7 i \, e^{\left (13 \, x\right )} + 21 \, e^{\left (12 \, x\right )} - 63 i \, e^{\left (11 \, x\right )} + 63 \, e^{\left (10 \, x\right )} - 315 i \, e^{\left (9 \, x\right )} + 105 \, e^{\left (8 \, x\right )} + 105 \, e^{\left (6 \, x\right )} + 315 i \, e^{\left (5 \, x\right )} + 63 \, e^{\left (4 \, x\right )} + 63 i \, e^{\left (3 \, x\right )} + 21 \, e^{\left (2 \, x\right )} + 7 i \, e^{x} + 3\right )} e^{\left (-7 \, x\right )} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [B] Both result and optimal contain complex but leaf count of result is larger than twice
the leaf count of optimal. 124 vs. \(2 (49) = 98\).
time = 0.14, size = 124, normalized size = 2.48 \begin {gather*} - \frac {5 i x}{16} + \frac {e^{7 x}}{896} - \frac {i e^{6 x}}{384} + \frac {e^{5 x}}{128} - \frac {3 i e^{4 x}}{128} + \frac {3 e^{3 x}}{128} - \frac {15 i e^{2 x}}{128} + \frac {5 e^{x}}{128} + \frac {5 e^{- x}}{128} + \frac {15 i e^{- 2 x}}{128} + \frac {3 e^{- 3 x}}{128} + \frac {3 i e^{- 4 x}}{128} + \frac {e^{- 5 x}}{128} + \frac {i e^{- 6 x}}{384} + \frac {e^{- 7 x}}{896} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [B] Both result and optimal contain complex but leaf count of result is larger than twice
the leaf count of optimal. 86 vs. \(2 (32) = 64\).
time = 0.43, size = 86, normalized size = 1.72 \begin {gather*} \frac {1}{2688} \, {\left (105 \, e^{\left (6 \, x\right )} + 315 i \, e^{\left (5 \, x\right )} + 63 \, e^{\left (4 \, x\right )} + 63 i \, e^{\left (3 \, x\right )} + 21 \, e^{\left (2 \, x\right )} + 7 i \, e^{x} + 3\right )} e^{\left (-7 \, x\right )} - \frac {5}{16} i \, x + \frac {1}{896} \, e^{\left (7 \, x\right )} - \frac {1}{384} i \, e^{\left (6 \, x\right )} + \frac {1}{128} \, e^{\left (5 \, x\right )} - \frac {3}{128} i \, e^{\left (4 \, x\right )} + \frac {3}{128} \, e^{\left (3 \, x\right )} - \frac {15}{128} i \, e^{\left (2 \, x\right )} + \frac {5}{128} \, e^{x} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [B]
time = 0.78, size = 93, normalized size = 1.86 \begin {gather*} \frac {5\,{\mathrm {e}}^{-x}}{128}+\frac {3\,{\mathrm {e}}^{-3\,x}}{128}+\frac {3\,{\mathrm {e}}^{3\,x}}{128}+\frac {{\mathrm {e}}^{-5\,x}}{128}+\frac {{\mathrm {e}}^{5\,x}}{128}+\frac {{\mathrm {e}}^{-7\,x}}{896}+\frac {{\mathrm {e}}^{7\,x}}{896}+\frac {5\,{\mathrm {e}}^x}{128}-\frac {x\,5{}\mathrm {i}}{16}+\frac {{\mathrm {e}}^{-2\,x}\,15{}\mathrm {i}}{128}-\frac {{\mathrm {e}}^{2\,x}\,15{}\mathrm {i}}{128}+\frac {{\mathrm {e}}^{-4\,x}\,3{}\mathrm {i}}{128}-\frac {{\mathrm {e}}^{4\,x}\,3{}\mathrm {i}}{128}+\frac {{\mathrm {e}}^{-6\,x}\,1{}\mathrm {i}}{384}-\frac {{\mathrm {e}}^{6\,x}\,1{}\mathrm {i}}{384} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________