Optimal. Leaf size=52 \[ \frac {i \sqrt {2} \tanh ^{-1}\left (\frac {\sqrt {a} \cosh (c+d x)}{\sqrt {2} \sqrt {a+i a \sinh (c+d x)}}\right )}{\sqrt {a} d} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.02, antiderivative size = 52, normalized size of antiderivative = 1.00, number of steps
used = 2, number of rules used = 2, integrand size = 17, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.118, Rules used = {2728, 212}
\begin {gather*} \frac {i \sqrt {2} \tanh ^{-1}\left (\frac {\sqrt {a} \cosh (c+d x)}{\sqrt {2} \sqrt {a+i a \sinh (c+d x)}}\right )}{\sqrt {a} d} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 212
Rule 2728
Rubi steps
\begin {align*} \int \frac {1}{\sqrt {a+i a \sinh (c+d x)}} \, dx &=\frac {(2 i) \text {Subst}\left (\int \frac {1}{2 a-x^2} \, dx,x,\frac {a \cosh (c+d x)}{\sqrt {a+i a \sinh (c+d x)}}\right )}{d}\\ &=\frac {i \sqrt {2} \tanh ^{-1}\left (\frac {\sqrt {a} \cosh (c+d x)}{\sqrt {2} \sqrt {a+i a \sinh (c+d x)}}\right )}{\sqrt {a} d}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.07, size = 84, normalized size = 1.62 \begin {gather*} \frac {(2+2 i) \sqrt [4]{-1} \text {ArcTan}\left (\left (\frac {1}{2}+\frac {i}{2}\right ) \sqrt [4]{-1} \left (1-i \tanh \left (\frac {1}{4} (c+d x)\right )\right )\right ) \left (-i \cosh \left (\frac {1}{2} (c+d x)\right )+\sinh \left (\frac {1}{2} (c+d x)\right )\right )}{d \sqrt {a+i a \sinh (c+d x)}} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [F]
time = 1.73, size = 0, normalized size = 0.00 \[\int \frac {1}{\sqrt {a +i a \sinh \left (d x +c \right )}}\, 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] Both result and optimal contain complex but leaf count of result is larger than twice
the leaf count of optimal. 93 vs. \(2 (39) = 78\).
time = 0.39, size = 93, normalized size = 1.79 \begin {gather*} i \, \sqrt {2} \sqrt {\frac {1}{a d^{2}}} \log \left (\frac {1}{2} \, \sqrt {2} a d \sqrt {\frac {1}{a d^{2}}} + \sqrt {\frac {1}{2} i \, a e^{\left (-d x - c\right )}}\right ) - i \, \sqrt {2} \sqrt {\frac {1}{a d^{2}}} \log \left (-\frac {1}{2} \, \sqrt {2} a d \sqrt {\frac {1}{a d^{2}}} + \sqrt {\frac {1}{2} i \, a e^{\left (-d x - c\right )}}\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 {i a \sinh {\left (c + d x \right )} + a}}\, 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 {a+a\,\mathrm {sinh}\left (c+d\,x\right )\,1{}\mathrm {i}}} \,d x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________