Optimal. Leaf size=100 \[ \frac {2 i a \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 \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 = 100, normalized size of antiderivative = 1.00, number of steps used = 5, number of rules used = 5, integrand size = 13, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.385, Rules used = {2752, 2663, 2661, 2655, 2653} \[ \frac {2 i a \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 \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 {\cosh (x)}{\sqrt {a+b \cosh (x)}} \, dx &=\frac {\int \sqrt {a+b \cosh (x)} \, dx}{b}-\frac {a \int \frac {1}{\sqrt {a+b \cosh (x)}} \, dx}{b}\\ &=\frac {\sqrt {a+b \cosh (x)} \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 \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 \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 \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.38, size = 73, normalized size = 0.73 \[ -\frac {2 i \sqrt {\frac {a+b \cosh (x)}{a+b}} \left ((a+b) E\left (\frac {i x}{2}|\frac {2 b}{a+b}\right )-a F\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.75, size = 0, normalized size = 0.00 \[ {\rm integral}\left (\frac {\cosh \relax (x)}{\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 {\cosh \relax (x)}{\sqrt {b \cosh \relax (x) + a}}\,{d x} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [A] time = 0.42, size = 181, normalized size = 1.81 \[ \frac {2 \left (\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 \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 {\cosh \relax (x)}{\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 {\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 {\cosh {\relax (x )}}{\sqrt {a + b \cosh {\relax (x )}}}\, dx \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________