Optimal. Leaf size=49 \[ -\frac {2}{3} \sin ^{-1}\left (\frac {\cosh (x)}{\sqrt {2}}\right )+\frac {1}{6} \text {sech}(x) \sqrt {1-\sinh ^2(x)}+\sin ^{-1}(\sinh (x)) \tanh (x)-\frac {1}{3} \sin ^{-1}(\sinh (x)) \tanh ^3(x) \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.10, antiderivative size = 49, normalized size of antiderivative = 1.00, number of steps
used = 5, number of rules used = 6, integrand size = 8, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.750, Rules used = {3852, 4928, 12,
4442, 462, 222} \begin {gather*} -\frac {2}{3} \text {ArcSin}\left (\frac {\cosh (x)}{\sqrt {2}}\right )-\frac {1}{3} \tanh ^3(x) \text {ArcSin}(\sinh (x))+\tanh (x) \text {ArcSin}(\sinh (x))+\frac {1}{6} \sqrt {2-\cosh ^2(x)} \text {sech}(x) \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 12
Rule 222
Rule 462
Rule 3852
Rule 4442
Rule 4928
Rubi steps
\begin {align*} \int \sin ^{-1}(\sinh (x)) \text {sech}^4(x) \, dx &=\sin ^{-1}(\sinh (x)) \tanh (x)-\frac {1}{3} \sin ^{-1}(\sinh (x)) \tanh ^3(x)-\int \frac {(2+\cosh (2 x)) \text {sech}(x) \tanh (x)}{3 \sqrt {1-\sinh ^2(x)}} \, dx\\ &=\sin ^{-1}(\sinh (x)) \tanh (x)-\frac {1}{3} \sin ^{-1}(\sinh (x)) \tanh ^3(x)-\frac {1}{3} \int \frac {(2+\cosh (2 x)) \text {sech}(x) \tanh (x)}{\sqrt {1-\sinh ^2(x)}} \, dx\\ &=\sin ^{-1}(\sinh (x)) \tanh (x)-\frac {1}{3} \sin ^{-1}(\sinh (x)) \tanh ^3(x)-\frac {1}{3} \text {Subst}\left (\int \frac {1+2 x^2}{x^2 \sqrt {2-x^2}} \, dx,x,\cosh (x)\right )\\ &=\frac {1}{6} \sqrt {2-\cosh ^2(x)} \text {sech}(x)+\sin ^{-1}(\sinh (x)) \tanh (x)-\frac {1}{3} \sin ^{-1}(\sinh (x)) \tanh ^3(x)-\frac {2}{3} \text {Subst}\left (\int \frac {1}{\sqrt {2-x^2}} \, dx,x,\cosh (x)\right )\\ &=-\frac {2}{3} \sin ^{-1}\left (\frac {\cosh (x)}{\sqrt {2}}\right )+\frac {1}{6} \sqrt {2-\cosh ^2(x)} \text {sech}(x)+\sin ^{-1}(\sinh (x)) \tanh (x)-\frac {1}{3} \sin ^{-1}(\sinh (x)) \tanh ^3(x)\\ \end {align*}
________________________________________________________________________________________
Mathematica [C] Result contains complex when optimal does not.
time = 0.16, size = 66, normalized size = 1.35 \begin {gather*} \frac {1}{12} \left (8 i \log \left (i \sqrt {2} \cosh (x)+\sqrt {3-\cosh (2 x)}\right )+\sqrt {6-2 \cosh (2 x)} \text {sech}(x)+4 \sin ^{-1}(\sinh (x)) (2+\cosh (2 x)) \text {sech}^2(x) \tanh (x)\right ) \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [F]
time = 0.04, size = 0, normalized size = 0.00 \[\int \arcsin \left (\sinh \left (x \right )\right ) \mathrm {sech}\left (x \right )^{4}\, dx\]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Failed to integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [B] Leaf count of result is larger than twice the leaf count of optimal. 519 vs.
\(2 (40) = 80\).
time = 0.62, size = 519, normalized size = 10.59 \begin {gather*} \frac {\sqrt {2} {\left (\cosh \left (x\right )^{4} + 4 \, \cosh \left (x\right ) \sinh \left (x\right )^{3} + \sinh \left (x\right )^{4} + 2 \, {\left (3 \, \cosh \left (x\right )^{2} + 1\right )} \sinh \left (x\right )^{2} + 2 \, \cosh \left (x\right )^{2} + 4 \, {\left (\cosh \left (x\right )^{3} + \cosh \left (x\right )\right )} \sinh \left (x\right ) + 1\right )} \sqrt {-\frac {\cosh \left (x\right )^{2} + \sinh \left (x\right )^{2} - 3}{\cosh \left (x\right )^{2} - 2 \, \cosh \left (x\right ) \sinh \left (x\right ) + \sinh \left (x\right )^{2}}} - 4 \, {\left (\cosh \left (x\right )^{6} + 6 \, \cosh \left (x\right ) \sinh \left (x\right )^{5} + \sinh \left (x\right )^{6} + 3 \, {\left (5 \, \cosh \left (x\right )^{2} + 1\right )} \sinh \left (x\right )^{4} + 3 \, \cosh \left (x\right )^{4} + 4 \, {\left (5 \, \cosh \left (x\right )^{3} + 3 \, \cosh \left (x\right )\right )} \sinh \left (x\right )^{3} + 3 \, {\left (5 \, \cosh \left (x\right )^{4} + 6 \, \cosh \left (x\right )^{2} + 1\right )} \sinh \left (x\right )^{2} + 3 \, \cosh \left (x\right )^{2} + 6 \, {\left (\cosh \left (x\right )^{5} + 2 \, \cosh \left (x\right )^{3} + \cosh \left (x\right )\right )} \sinh \left (x\right ) + 1\right )} \arctan \left (\frac {\sqrt {2} {\left (3 \, \cosh \left (x\right )^{2} + 6 \, \cosh \left (x\right ) \sinh \left (x\right ) + 3 \, \sinh \left (x\right )^{2} - 1\right )} \sqrt {-\frac {\cosh \left (x\right )^{2} + \sinh \left (x\right )^{2} - 3}{\cosh \left (x\right )^{2} - 2 \, \cosh \left (x\right ) \sinh \left (x\right ) + \sinh \left (x\right )^{2}}}}{\cosh \left (x\right )^{4} + 4 \, \cosh \left (x\right ) \sinh \left (x\right )^{3} + \sinh \left (x\right )^{4} + 6 \, {\left (\cosh \left (x\right )^{2} - 1\right )} \sinh \left (x\right )^{2} - 6 \, \cosh \left (x\right )^{2} + 4 \, {\left (\cosh \left (x\right )^{3} - 3 \, \cosh \left (x\right )\right )} \sinh \left (x\right ) + 1}\right ) + 8 \, {\left (3 \, \cosh \left (x\right )^{2} + 6 \, \cosh \left (x\right ) \sinh \left (x\right ) + 3 \, \sinh \left (x\right )^{2} + 1\right )} \arctan \left (\frac {\sqrt {2} {\left (\cosh \left (x\right )^{2} + 2 \, \cosh \left (x\right ) \sinh \left (x\right ) + \sinh \left (x\right )^{2} - 1\right )} \sqrt {-\frac {\cosh \left (x\right )^{2} + \sinh \left (x\right )^{2} - 3}{\cosh \left (x\right )^{2} - 2 \, \cosh \left (x\right ) \sinh \left (x\right ) + \sinh \left (x\right )^{2}}}}{\cosh \left (x\right )^{4} + 4 \, \cosh \left (x\right ) \sinh \left (x\right )^{3} + \sinh \left (x\right )^{4} + 6 \, {\left (\cosh \left (x\right )^{2} - 1\right )} \sinh \left (x\right )^{2} - 6 \, \cosh \left (x\right )^{2} + 4 \, {\left (\cosh \left (x\right )^{3} - 3 \, \cosh \left (x\right )\right )} \sinh \left (x\right ) + 1}\right )}{6 \, {\left (\cosh \left (x\right )^{6} + 6 \, \cosh \left (x\right ) \sinh \left (x\right )^{5} + \sinh \left (x\right )^{6} + 3 \, {\left (5 \, \cosh \left (x\right )^{2} + 1\right )} \sinh \left (x\right )^{4} + 3 \, \cosh \left (x\right )^{4} + 4 \, {\left (5 \, \cosh \left (x\right )^{3} + 3 \, \cosh \left (x\right )\right )} \sinh \left (x\right )^{3} + 3 \, {\left (5 \, \cosh \left (x\right )^{4} + 6 \, \cosh \left (x\right )^{2} + 1\right )} \sinh \left (x\right )^{2} + 3 \, \cosh \left (x\right )^{2} + 6 \, {\left (\cosh \left (x\right )^{5} + 2 \, \cosh \left (x\right )^{3} + \cosh \left (x\right )\right )} \sinh \left (x\right ) + 1\right )}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F(-1)] Timed out
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Timed out} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [C] Result contains complex when optimal does not.
time = 1.01, size = 218, normalized size = 4.45 \begin {gather*} -\frac {16 \, {\left (-8 i \, \sqrt {2} \arctan \left (-i\right ) - 3 \, \sqrt {2} + 32 \, \arctan \left (-i\right ) - 3 i\right )}}{96 i \, \sqrt {2} - 384} + \frac {\sqrt {2} + \frac {2 \, \sqrt {2} - \sqrt {-e^{\left (4 \, x\right )} + 6 \, e^{\left (2 \, x\right )} - 1}}{e^{\left (2 \, x\right )} - 3}}{6 \, {\left (\frac {\sqrt {2} {\left (2 \, \sqrt {2} - \sqrt {-e^{\left (4 \, x\right )} + 6 \, e^{\left (2 \, x\right )} - 1}\right )}}{e^{\left (2 \, x\right )} - 3} + \frac {{\left (2 \, \sqrt {2} - \sqrt {-e^{\left (4 \, x\right )} + 6 \, e^{\left (2 \, x\right )} - 1}\right )}^{2}}{{\left (e^{\left (2 \, x\right )} - 3\right )}^{2}} + 1\right )}} - \frac {4 \, {\left (3 \, e^{\left (2 \, x\right )} + 1\right )} \arcsin \left (\frac {1}{2} \, {\left (e^{\left (2 \, x\right )} - 1\right )} e^{\left (-x\right )}\right )}{3 \, {\left (e^{\left (2 \, x\right )} + 1\right )}^{3}} - \frac {4}{3} \, \arctan \left (-2 \, \sqrt {2} - \frac {3 \, {\left (2 \, \sqrt {2} - \sqrt {-e^{\left (4 \, x\right )} + 6 \, e^{\left (2 \, x\right )} - 1}\right )}}{e^{\left (2 \, x\right )} - 3}\right ) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [F]
time = 0.00, size = -1, normalized size = -0.02 \begin {gather*} \int \frac {\mathrm {asin}\left (\mathrm {sinh}\left (x\right )\right )}{{\mathrm {cosh}\left (x\right )}^4} \,d x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________