Optimal. Leaf size=66 \[ \frac {\sqrt {2} (-B+i A) \tanh ^{-1}\left (\frac {\sqrt {a} \cosh (x)}{\sqrt {2} \sqrt {a+i a \sinh (x)}}\right )}{\sqrt {a}}+\frac {2 B \cosh (x)}{\sqrt {a+i a \sinh (x)}} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.07, antiderivative size = 66, normalized size of antiderivative = 1.00, number of steps used = 3, number of rules used = 3, integrand size = 20, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.150, Rules used = {2751, 2649, 206} \[ \frac {\sqrt {2} (-B+i A) \tanh ^{-1}\left (\frac {\sqrt {a} \cosh (x)}{\sqrt {2} \sqrt {a+i a \sinh (x)}}\right )}{\sqrt {a}}+\frac {2 B \cosh (x)}{\sqrt {a+i a \sinh (x)}} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 206
Rule 2649
Rule 2751
Rubi steps
\begin {align*} \int \frac {A+B \sinh (x)}{\sqrt {a+i a \sinh (x)}} \, dx &=\frac {2 B \cosh (x)}{\sqrt {a+i a \sinh (x)}}+(A+i B) \int \frac {1}{\sqrt {a+i a \sinh (x)}} \, dx\\ &=\frac {2 B \cosh (x)}{\sqrt {a+i a \sinh (x)}}+(2 (i A-B)) \operatorname {Subst}\left (\int \frac {1}{2 a-x^2} \, dx,x,\frac {a \cosh (x)}{\sqrt {a+i a \sinh (x)}}\right )\\ &=\frac {\sqrt {2} (i A-B) \tanh ^{-1}\left (\frac {\sqrt {a} \cosh (x)}{\sqrt {2} \sqrt {a+i a \sinh (x)}}\right )}{\sqrt {a}}+\frac {2 B \cosh (x)}{\sqrt {a+i a \sinh (x)}}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A] time = 0.12, size = 85, normalized size = 1.29 \[ \frac {2 \left (\cosh \left (\frac {x}{2}\right )+i \sinh \left (\frac {x}{2}\right )\right ) \left ((1+i) \sqrt [4]{-1} (B-i A) \tan ^{-1}\left (\frac {\tanh \left (\frac {x}{4}\right )+i}{\sqrt {2}}\right )-i B \sinh \left (\frac {x}{2}\right )+B \cosh \left (\frac {x}{2}\right )\right )}{\sqrt {a+i a \sinh (x)}} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [B] time = 0.48, size = 186, normalized size = 2.82 \[ \frac {a \sqrt {-\frac {8 \, A^{2} + 16 i \, A B - 8 \, B^{2}}{a}} \log \left (-\frac {4 \, \sqrt {\frac {1}{2} i \, a e^{\left (-x\right )}} {\left (i \, A - B\right )} + a \sqrt {-\frac {8 \, A^{2} + 16 i \, A B - 8 \, B^{2}}{a}}}{-4 i \, A + 4 \, B}\right ) - a \sqrt {-\frac {8 \, A^{2} + 16 i \, A B - 8 \, B^{2}}{a}} \log \left (-\frac {4 \, \sqrt {\frac {1}{2} i \, a e^{\left (-x\right )}} {\left (i \, A - B\right )} - a \sqrt {-\frac {8 \, A^{2} + 16 i \, A B - 8 \, B^{2}}{a}}}{-4 i \, A + 4 \, B}\right ) - 4 \, \sqrt {\frac {1}{2} i \, a e^{\left (-x\right )}} {\left (i \, B e^{x} - B\right )}}{2 \, a} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [F] time = 0.00, size = 0, normalized size = 0.00 \[ \int \frac {B \sinh \relax (x) + A}{\sqrt {i \, a \sinh \relax (x) + a}}\,{d x} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [F] time = 0.15, size = 0, normalized size = 0.00 \[ \int \frac {A +B \sinh \relax (x )}{\sqrt {a +i a \sinh \relax (x )}}\, dx \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [F] time = 0.00, size = 0, normalized size = 0.00 \[ \int \frac {B \sinh \relax (x) + A}{\sqrt {i \, a \sinh \relax (x) + a}}\,{d x} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [F] time = 0.00, size = -1, normalized size = -0.02 \[ \int \frac {A+B\,\mathrm {sinh}\relax (x)}{\sqrt {a+a\,\mathrm {sinh}\relax (x)\,1{}\mathrm {i}}} \,d x \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [F] time = 0.00, size = 0, normalized size = 0.00 \[ \int \frac {A + B \sinh {\relax (x )}}{\sqrt {i a \left (\sinh {\relax (x )} - i\right )}}\, dx \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________