Optimal. Leaf size=152 \[ -\frac {2 \sinh (x) (A b-a B)}{\left (a^2-b^2\right ) \sqrt {a+b \cosh (x)}}-\frac {2 i (A b-a B) \sqrt {a+b \cosh (x)} E\left (\frac {i x}{2}|\frac {2 b}{a+b}\right )}{b \left (a^2-b^2\right ) \sqrt {\frac {a+b \cosh (x)}{a+b}}}-\frac {2 i 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)}} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.20, antiderivative size = 152, normalized size of antiderivative = 1.00, number of steps used = 6, number of rules used = 6, integrand size = 17, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.353, Rules used = {2754, 2752, 2663, 2661, 2655, 2653} \[ -\frac {2 \sinh (x) (A b-a B)}{\left (a^2-b^2\right ) \sqrt {a+b \cosh (x)}}-\frac {2 i (A b-a B) \sqrt {a+b \cosh (x)} E\left (\frac {i x}{2}|\frac {2 b}{a+b}\right )}{b \left (a^2-b^2\right ) \sqrt {\frac {a+b \cosh (x)}{a+b}}}-\frac {2 i 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)}} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 2653
Rule 2655
Rule 2661
Rule 2663
Rule 2752
Rule 2754
Rubi steps
\begin {align*} \int \frac {A+B \cosh (x)}{(a+b \cosh (x))^{3/2}} \, dx &=-\frac {2 (A b-a B) \sinh (x)}{\left (a^2-b^2\right ) \sqrt {a+b \cosh (x)}}-\frac {2 \int \frac {\frac {1}{2} (-a A+b B)-\frac {1}{2} (A b-a B) \cosh (x)}{\sqrt {a+b \cosh (x)}} \, dx}{a^2-b^2}\\ &=-\frac {2 (A b-a B) \sinh (x)}{\left (a^2-b^2\right ) \sqrt {a+b \cosh (x)}}+\frac {B \int \frac {1}{\sqrt {a+b \cosh (x)}} \, dx}{b}+\frac {(A b-a B) \int \sqrt {a+b \cosh (x)} \, dx}{b \left (a^2-b^2\right )}\\ &=-\frac {2 (A b-a B) \sinh (x)}{\left (a^2-b^2\right ) \sqrt {a+b \cosh (x)}}+\frac {\left ((A b-a B) \sqrt {a+b \cosh (x)}\right ) \int \sqrt {\frac {a}{a+b}+\frac {b \cosh (x)}{a+b}} \, dx}{b \left (a^2-b^2\right ) \sqrt {\frac {a+b \cosh (x)}{a+b}}}+\frac {\left (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 (A b-a B) \sqrt {a+b \cosh (x)} E\left (\frac {i x}{2}|\frac {2 b}{a+b}\right )}{b \left (a^2-b^2\right ) \sqrt {\frac {a+b \cosh (x)}{a+b}}}-\frac {2 i 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 (A b-a B) \sinh (x)}{\left (a^2-b^2\right ) \sqrt {a+b \cosh (x)}}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A] time = 0.38, size = 133, normalized size = 0.88 \[ \frac {-2 i B \left (a^2-b^2\right ) \sqrt {\frac {a+b \cosh (x)}{a+b}} F\left (\frac {i x}{2}|\frac {2 b}{a+b}\right )+2 b \sinh (x) (a B-A b)+2 i (a+b) (a B-A b) \sqrt {\frac {a+b \cosh (x)}{a+b}} E\left (\frac {i x}{2}|\frac {2 b}{a+b}\right )}{b (a-b) (a+b) \sqrt {a+b \cosh (x)}} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [F] time = 0.77, size = 0, normalized size = 0.00 \[ {\rm integral}\left (\frac {{\left (B \cosh \relax (x) + A\right )} \sqrt {b \cosh \relax (x) + a}}{b^{2} \cosh \relax (x)^{2} + 2 \, a b \cosh \relax (x) + a^{2}}, 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}{{\left (b \cosh \relax (x) + a\right )}^{\frac {3}{2}}}\,{d x} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [B] time = 1.05, size = 483, normalized size = 3.18 \[ \frac {\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 )}\, \left (\frac {2 B \sqrt {\frac {2 b \left (\cosh ^{2}\left (\frac {x}{2}\right )\right )+a -b}{a -b}}\, \sqrt {-\left (\sinh ^{2}\left (\frac {x}{2}\right )\right )}\, \EllipticF \left (\cosh \left (\frac {x}{2}\right ) \sqrt {-\frac {2 b}{a -b}}, \frac {\sqrt {\frac {-2 a +2 b}{b}}}{2}\right )}{b \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 )}}+\frac {2 \left (A b -a B \right ) \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 )}\, \left (-2 \sqrt {-\frac {2 b}{a -b}}\, b \cosh \left (\frac {x}{2}\right ) \left (\sinh ^{2}\left (\frac {x}{2}\right )\right )+\sqrt {-\left (\sinh ^{2}\left (\frac {x}{2}\right )\right )}\, \EllipticF \left (\cosh \left (\frac {x}{2}\right ) \sqrt {-\frac {2 b}{a -b}}, \frac {\sqrt {\frac {-2 a +2 b}{b}}}{2}\right ) \sqrt {\frac {2 b \left (\sinh ^{2}\left (\frac {x}{2}\right )\right )}{a -b}+\frac {a +b}{a -b}}\, a +\sqrt {-\left (\sinh ^{2}\left (\frac {x}{2}\right )\right )}\, \EllipticF \left (\cosh \left (\frac {x}{2}\right ) \sqrt {-\frac {2 b}{a -b}}, \frac {\sqrt {\frac {-2 a +2 b}{b}}}{2}\right ) \sqrt {\frac {2 b \left (\sinh ^{2}\left (\frac {x}{2}\right )\right )}{a -b}+\frac {a +b}{a -b}}\, b -2 \sqrt {-\left (\sinh ^{2}\left (\frac {x}{2}\right )\right )}\, \EllipticE \left (\cosh \left (\frac {x}{2}\right ) \sqrt {-\frac {2 b}{a -b}}, \frac {\sqrt {\frac {-2 a +2 b}{b}}}{2}\right ) \sqrt {\frac {2 b \left (\sinh ^{2}\left (\frac {x}{2}\right )\right )}{a -b}+\frac {a +b}{a -b}}\, b \right )}{b \sinh \left (\frac {x}{2}\right )^{2} \left (2 b \left (\sinh ^{2}\left (\frac {x}{2}\right )\right )+a +b \right ) \sqrt {-\frac {2 b}{a -b}}\, \left (a^{2}-b^{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}{{\left (b \cosh \relax (x) + a\right )}^{\frac {3}{2}}}\,{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)}{{\left (a+b\,\mathrm {cosh}\relax (x)\right )}^{3/2}} \,d x \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [F(-1)] time = 0.00, size = 0, normalized size = 0.00 \[ \text {Timed out} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________