Optimal. Leaf size=42 \[ -\frac {2 i E\left (\left .\frac {1}{2} i (c+d x)\right |2\right )}{d \sqrt {\cosh (c+d x)} \sqrt {b \text {sech}(c+d x)}} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.02, antiderivative size = 42, normalized size of antiderivative = 1.00, number of steps
used = 2, number of rules used = 2, integrand size = 12, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.167, Rules used = {3856, 2719}
\begin {gather*} -\frac {2 i E\left (\left .\frac {1}{2} i (c+d x)\right |2\right )}{d \sqrt {\cosh (c+d x)} \sqrt {b \text {sech}(c+d x)}} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 2719
Rule 3856
Rubi steps
\begin {align*} \int \frac {1}{\sqrt {b \text {sech}(c+d x)}} \, dx &=\frac {\int \sqrt {\cosh (c+d x)} \, dx}{\sqrt {\cosh (c+d x)} \sqrt {b \text {sech}(c+d x)}}\\ &=-\frac {2 i E\left (\left .\frac {1}{2} i (c+d x)\right |2\right )}{d \sqrt {\cosh (c+d x)} \sqrt {b \text {sech}(c+d x)}}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.03, size = 42, normalized size = 1.00 \begin {gather*} -\frac {2 i E\left (\left .\frac {1}{2} i (c+d x)\right |2\right )}{d \sqrt {\cosh (c+d x)} \sqrt {b \text {sech}(c+d x)}} \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. 243 vs. \(2 (64 ) = 128\).
time = 2.36, size = 244, normalized size = 5.81
method | result | size |
risch | \(\frac {\sqrt {2}}{d \sqrt {\frac {b \,{\mathrm e}^{d x +c}}{1+{\mathrm e}^{2 d x +2 c}}}}+\frac {\left (-\frac {2 \left (b \,{\mathrm e}^{2 d x +2 c}+b \right )}{b \sqrt {{\mathrm e}^{d x +c} \left (b \,{\mathrm e}^{2 d x +2 c}+b \right )}}+\frac {i \sqrt {-i \left ({\mathrm e}^{d x +c}+i\right )}\, \sqrt {2}\, \sqrt {i \left ({\mathrm e}^{d x +c}-i\right )}\, \sqrt {i {\mathrm e}^{d x +c}}\, \left (-2 i \EllipticE \left (\sqrt {-i \left ({\mathrm e}^{d x +c}+i\right )}, \frac {\sqrt {2}}{2}\right )+i \EllipticF \left (\sqrt {-i \left ({\mathrm e}^{d x +c}+i\right )}, \frac {\sqrt {2}}{2}\right )\right )}{\sqrt {b \,{\mathrm e}^{3 d x +3 c}+b \,{\mathrm e}^{d x +c}}}\right ) \sqrt {2}\, \sqrt {b \,{\mathrm e}^{d x +c} \left (1+{\mathrm e}^{2 d x +2 c}\right )}}{d \sqrt {\frac {b \,{\mathrm e}^{d x +c}}{1+{\mathrm e}^{2 d x +2 c}}}\, \left (1+{\mathrm e}^{2 d x +2 c}\right )}\) | \(244\) |
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 [C] Result contains higher order function than in optimal. Order 9 vs. order
4.
time = 0.08, size = 154, normalized size = 3.67 \begin {gather*} -\frac {2 \, \sqrt {2} \sqrt {b} {\left (\cosh \left (d x + c\right ) + \sinh \left (d x + c\right )\right )} {\rm weierstrassZeta}\left (-4, 0, {\rm weierstrassPInverse}\left (-4, 0, \cosh \left (d x + c\right ) + \sinh \left (d x + c\right )\right )\right ) + \sqrt {2} {\left (\cosh \left (d x + c\right )^{2} + 2 \, \cosh \left (d x + c\right ) \sinh \left (d x + c\right ) + \sinh \left (d x + c\right )^{2} + 1\right )} \sqrt {\frac {b \cosh \left (d x + c\right ) + b \sinh \left (d x + c\right )}{\cosh \left (d x + c\right )^{2} + 2 \, \cosh \left (d x + c\right ) \sinh \left (d x + c\right ) + \sinh \left (d x + c\right )^{2} + 1}}}{b d \cosh \left (d x + c\right ) + b d \sinh \left (d x + c\right )} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \int \frac {1}{\sqrt {b \operatorname {sech}{\left (c + d x \right )}}}\, dx \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {could not integrate} \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 {1}{\sqrt {\frac {b}{\mathrm {cosh}\left (c+d\,x\right )}}} \,d x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________