Optimal. Leaf size=102 \[ -\frac{2 i \sqrt{\frac{a+b \cosh (x)+c \sinh (x)}{a+\sqrt{b^2-c^2}}} \text{EllipticF}\left (\frac{1}{2} \left (i x-\tan ^{-1}(b,-i c)\right ),\frac{2 \sqrt{b^2-c^2}}{a+\sqrt{b^2-c^2}}\right )}{\sqrt{a+b \cosh (x)+c \sinh (x)}} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.0713375, antiderivative size = 102, normalized size of antiderivative = 1., number of steps used = 2, number of rules used = 2, integrand size = 14, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.143, Rules used = {3127, 2661} \[ -\frac{2 i \sqrt{\frac{a+b \cosh (x)+c \sinh (x)}{a+\sqrt{b^2-c^2}}} F\left (\frac{1}{2} \left (i x-\tan ^{-1}(b,-i c)\right )|\frac{2 \sqrt{b^2-c^2}}{a+\sqrt{b^2-c^2}}\right )}{\sqrt{a+b \cosh (x)+c \sinh (x)}} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 3127
Rule 2661
Rubi steps
\begin{align*} \int \frac{1}{\sqrt{a+b \cosh (x)+c \sinh (x)}} \, dx &=\frac{\sqrt{\frac{a+b \cosh (x)+c \sinh (x)}{a+\sqrt{b^2-c^2}}} \int \frac{1}{\sqrt{\frac{a}{a+\sqrt{b^2-c^2}}+\frac{\sqrt{b^2-c^2} \cosh \left (x+i \tan ^{-1}(b,-i c)\right )}{a+\sqrt{b^2-c^2}}}} \, dx}{\sqrt{a+b \cosh (x)+c \sinh (x)}}\\ &=-\frac{2 i F\left (\frac{1}{2} \left (i x-\tan ^{-1}(b,-i c)\right )|\frac{2 \sqrt{b^2-c^2}}{a+\sqrt{b^2-c^2}}\right ) \sqrt{\frac{a+b \cosh (x)+c \sinh (x)}{a+\sqrt{b^2-c^2}}}}{\sqrt{a+b \cosh (x)+c \sinh (x)}}\\ \end{align*}
Mathematica [C] time = 0.482625, size = 237, normalized size = 2.32 \[ \frac{2 \text{sech}\left (\tanh ^{-1}\left (\frac{b}{c}\right )+x\right ) \sqrt{a+b \cosh (x)+c \sinh (x)} \sqrt{-\frac{-i c \sqrt{1-\frac{b^2}{c^2}}+b \cosh (x)+c \sinh (x)}{a+i c \sqrt{1-\frac{b^2}{c^2}}}} \sqrt{-\frac{i c \sqrt{1-\frac{b^2}{c^2}}+b \cosh (x)+c \sinh (x)}{a-i c \sqrt{1-\frac{b^2}{c^2}}}} F_1\left (\frac{1}{2};\frac{1}{2},\frac{1}{2};\frac{3}{2};\frac{a+b \cosh (x)+c \sinh (x)}{a+i \sqrt{1-\frac{b^2}{c^2}} c},\frac{a+b \cosh (x)+c \sinh (x)}{a-i \sqrt{1-\frac{b^2}{c^2}} c}\right )}{c \sqrt{1-\frac{b^2}{c^2}}} \]
Warning: Unable to verify antiderivative.
[In]
[Out]
________________________________________________________________________________________
Maple [A] time = 0.244, size = 248, normalized size = 2.4 \begin{align*}{\frac{1}{\sinh \left ( x \right ) }\sqrt{{ \left ( \sinh \left ( x \right ) \right ) ^{2} \left ( -\sinh \left ( x \right ){b}^{2}+\sinh \left ( x \right ){c}^{2}+a\sqrt{{b}^{2}-{c}^{2}} \right ){\frac{1}{\sqrt{{b}^{2}-{c}^{2}}}}}}\ln \left ({ \left ( \cosh \left ( x \right ) \sinh \left ( x \right ) \left ( -{b}^{2}+{c}^{2} \right ) +\cosh \left ( x \right ) \sqrt{{b}^{2}-{c}^{2}}a+\sqrt{{ \left ( -{b}^{2}+{c}^{2} \right ) \left ( \sinh \left ( x \right ) \right ) ^{3}{\frac{1}{\sqrt{{b}^{2}-{c}^{2}}}}}+a \left ( \sinh \left ( x \right ) \right ) ^{2}}\sqrt{{b}^{2}-{c}^{2}}\sqrt{{ \left ( -{b}^{2}+{c}^{2} \right ) \sinh \left ( x \right ){\frac{1}{\sqrt{{b}^{2}-{c}^{2}}}}}+a} \right ){\frac{1}{\sqrt{{b}^{2}-{c}^{2}}}}{\frac{1}{\sqrt{{ \left ( -\sinh \left ( x \right ){b}^{2}+\sinh \left ( x \right ){c}^{2}+a\sqrt{{b}^{2}-{c}^{2}} \right ){\frac{1}{\sqrt{{b}^{2}-{c}^{2}}}}}}}}} \right ) \sqrt{{b}^{2}-{c}^{2}} \left ( -\sinh \left ( x \right ){b}^{2}+\sinh \left ( x \right ){c}^{2}+a\sqrt{{b}^{2}-{c}^{2}} \right ) ^{-1}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int \frac{1}{\sqrt{b \cosh \left (x\right ) + c \sinh \left (x\right ) + a}}\,{d x} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [F] time = 0., size = 0, normalized size = 0. \begin{align*}{\rm integral}\left (\frac{1}{\sqrt{b \cosh \left (x\right ) + c \sinh \left (x\right ) + a}}, x\right ) \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int \frac{1}{\sqrt{a + b \cosh{\left (x \right )} + c \sinh{\left (x \right )}}}\, dx \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int \frac{1}{\sqrt{b \cosh \left (x\right ) + c \sinh \left (x\right ) + a}}\,{d x} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]