Optimal. Leaf size=108 \[ -\frac {2 i (A b-a B) \sqrt {\frac {a+b \cosh (x)}{a+b}} F\left (\frac {i x}{2}|\frac {2 b}{a+b}\right )}{b \sqrt {a+b \cosh (x)}}-\frac {2 i B \sqrt {a+b \cosh (x)} E\left (\frac {i x}{2}|\frac {2 b}{a+b}\right )}{b \sqrt {\frac {a+b \cosh (x)}{a+b}}} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.11, antiderivative size = 108, normalized size of antiderivative = 1.00, number of steps used = 5, number of rules used = 5, integrand size = 17, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.294, Rules used = {2752, 2663, 2661, 2655, 2653} \[ -\frac {2 i (A b-a B) \sqrt {\frac {a+b \cosh (x)}{a+b}} F\left (\frac {i x}{2}|\frac {2 b}{a+b}\right )}{b \sqrt {a+b \cosh (x)}}-\frac {2 i B \sqrt {a+b \cosh (x)} E\left (\frac {i x}{2}|\frac {2 b}{a+b}\right )}{b \sqrt {\frac {a+b \cosh (x)}{a+b}}} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 2653
Rule 2655
Rule 2661
Rule 2663
Rule 2752
Rubi steps
\begin {align*} \int \frac {A+B \cosh (x)}{\sqrt {a+b \cosh (x)}} \, dx &=\frac {B \int \sqrt {a+b \cosh (x)} \, dx}{b}+\frac {(A b-a B) \int \frac {1}{\sqrt {a+b \cosh (x)}} \, dx}{b}\\ &=\frac {\left (B \sqrt {a+b \cosh (x)}\right ) \int \sqrt {\frac {a}{a+b}+\frac {b \cosh (x)}{a+b}} \, dx}{b \sqrt {\frac {a+b \cosh (x)}{a+b}}}+\frac {\left ((A b-a B) \sqrt {\frac {a+b \cosh (x)}{a+b}}\right ) \int \frac {1}{\sqrt {\frac {a}{a+b}+\frac {b \cosh (x)}{a+b}}} \, dx}{b \sqrt {a+b \cosh (x)}}\\ &=-\frac {2 i B \sqrt {a+b \cosh (x)} E\left (\frac {i x}{2}|\frac {2 b}{a+b}\right )}{b \sqrt {\frac {a+b \cosh (x)}{a+b}}}-\frac {2 i (A b-a B) \sqrt {\frac {a+b \cosh (x)}{a+b}} F\left (\frac {i x}{2}|\frac {2 b}{a+b}\right )}{b \sqrt {a+b \cosh (x)}}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A] time = 0.48, size = 80, normalized size = 0.74 \[ -\frac {2 i \sqrt {\frac {a+b \cosh (x)}{a+b}} \left ((A b-a B) F\left (\frac {i x}{2}|\frac {2 b}{a+b}\right )+B (a+b) E\left (\frac {i x}{2}|\frac {2 b}{a+b}\right )\right )}{b \sqrt {a+b \cosh (x)}} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [F] time = 0.72, size = 0, normalized size = 0.00 \[ {\rm integral}\left (\frac {B \cosh \relax (x) + A}{\sqrt {b \cosh \relax (x) + a}}, x\right ) \]
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 \cosh \relax (x) + A}{\sqrt {b \cosh \relax (x) + a}}\,{d x} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [A] time = 0.46, size = 218, normalized size = 2.02 \[ \frac {2 \left (A \EllipticF \left (\cosh \left (\frac {x}{2}\right ) \sqrt {-\frac {2 b}{a -b}}, \frac {\sqrt {-\frac {2 \left (a -b \right )}{b}}}{2}\right )+B \EllipticF \left (\cosh \left (\frac {x}{2}\right ) \sqrt {-\frac {2 b}{a -b}}, \frac {\sqrt {-\frac {2 \left (a -b \right )}{b}}}{2}\right )-2 B \EllipticE \left (\cosh \left (\frac {x}{2}\right ) \sqrt {-\frac {2 b}{a -b}}, \frac {\sqrt {-\frac {2 \left (a -b \right )}{b}}}{2}\right )\right ) \sqrt {-\left (\sinh ^{2}\left (\frac {x}{2}\right )\right )}\, \sqrt {\frac {2 b \left (\cosh ^{2}\left (\frac {x}{2}\right )\right )+a -b}{a -b}}\, \sqrt {\left (2 b \left (\cosh ^{2}\left (\frac {x}{2}\right )\right )+a -b \right ) \left (\sinh ^{2}\left (\frac {x}{2}\right )\right )}}{\sqrt {-\frac {2 b}{a -b}}\, \sqrt {2 b \left (\sinh ^{4}\left (\frac {x}{2}\right )\right )+\left (a +b \right ) \left (\sinh ^{2}\left (\frac {x}{2}\right )\right )}\, \sinh \left (\frac {x}{2}\right ) \sqrt {2 b \left (\sinh ^{2}\left (\frac {x}{2}\right )\right )+a +b}} \]
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 \cosh \relax (x) + A}{\sqrt {b \cosh \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.01 \[ \int \frac {A+B\,\mathrm {cosh}\relax (x)}{\sqrt {a+b\,\mathrm {cosh}\relax (x)}} \,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 \cosh {\relax (x )}}{\sqrt {a + b \cosh {\relax (x )}}}\, dx \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________