Optimal. Leaf size=93 \[ \frac{(3 A+5 B) \tan ^{-1}\left (\frac{\sqrt{a} \sinh (x)}{\sqrt{2} \sqrt{a \cosh (x)+a}}\right )}{16 \sqrt{2} a^{5/2}}+\frac{(3 A+5 B) \sinh (x)}{16 a (a \cosh (x)+a)^{3/2}}+\frac{(A-B) \sinh (x)}{4 (a \cosh (x)+a)^{5/2}} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.0885073, antiderivative size = 93, normalized size of antiderivative = 1., number of steps used = 4, number of rules used = 4, integrand size = 17, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.235, Rules used = {2750, 2650, 2649, 206} \[ \frac{(3 A+5 B) \tan ^{-1}\left (\frac{\sqrt{a} \sinh (x)}{\sqrt{2} \sqrt{a \cosh (x)+a}}\right )}{16 \sqrt{2} a^{5/2}}+\frac{(3 A+5 B) \sinh (x)}{16 a (a \cosh (x)+a)^{3/2}}+\frac{(A-B) \sinh (x)}{4 (a \cosh (x)+a)^{5/2}} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 2750
Rule 2650
Rule 2649
Rule 206
Rubi steps
\begin{align*} \int \frac{A+B \cosh (x)}{(a+a \cosh (x))^{5/2}} \, dx &=\frac{(A-B) \sinh (x)}{4 (a+a \cosh (x))^{5/2}}+\frac{(3 A+5 B) \int \frac{1}{(a+a \cosh (x))^{3/2}} \, dx}{8 a}\\ &=\frac{(A-B) \sinh (x)}{4 (a+a \cosh (x))^{5/2}}+\frac{(3 A+5 B) \sinh (x)}{16 a (a+a \cosh (x))^{3/2}}+\frac{(3 A+5 B) \int \frac{1}{\sqrt{a+a \cosh (x)}} \, dx}{32 a^2}\\ &=\frac{(A-B) \sinh (x)}{4 (a+a \cosh (x))^{5/2}}+\frac{(3 A+5 B) \sinh (x)}{16 a (a+a \cosh (x))^{3/2}}+\frac{(i (3 A+5 B)) \operatorname{Subst}\left (\int \frac{1}{2 a-x^2} \, dx,x,-\frac{i a \sinh (x)}{\sqrt{a+a \cosh (x)}}\right )}{16 a^2}\\ &=\frac{(3 A+5 B) \tan ^{-1}\left (\frac{\sqrt{a} \sinh (x)}{\sqrt{2} \sqrt{a+a \cosh (x)}}\right )}{16 \sqrt{2} a^{5/2}}+\frac{(A-B) \sinh (x)}{4 (a+a \cosh (x))^{5/2}}+\frac{(3 A+5 B) \sinh (x)}{16 a (a+a \cosh (x))^{3/2}}\\ \end{align*}
Mathematica [A] time = 0.153856, size = 57, normalized size = 0.61 \[ \frac{\sinh (x) ((3 A+5 B) \cosh (x)+7 A+B)+4 (3 A+5 B) \cosh ^5\left (\frac{x}{2}\right ) \tan ^{-1}\left (\sinh \left (\frac{x}{2}\right )\right )}{16 (a (\cosh (x)+1))^{5/2}} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [B] time = 0.065, size = 209, normalized size = 2.3 \begin{align*} -{\frac{\sqrt{2}}{32\,{a}^{3}}\sqrt{ \left ( \sinh \left ({\frac{x}{2}} \right ) \right ) ^{2}a} \left ( 3\,A\ln \left ( 2\,{\frac{\sqrt{ \left ( \sinh \left ( x/2 \right ) \right ) ^{2}a}\sqrt{-a}-a}{\cosh \left ( x/2 \right ) }} \right ) \left ( \cosh \left ( x/2 \right ) \right ) ^{4}a+5\,B\ln \left ( 2\,{\frac{\sqrt{ \left ( \sinh \left ( x/2 \right ) \right ) ^{2}a}\sqrt{-a}-a}{\cosh \left ( x/2 \right ) }} \right ) \left ( \cosh \left ( x/2 \right ) \right ) ^{4}a-3\,A\sqrt{ \left ( \sinh \left ( x/2 \right ) \right ) ^{2}a}\sqrt{-a} \left ( \cosh \left ( x/2 \right ) \right ) ^{2}-5\,B\sqrt{ \left ( \sinh \left ( x/2 \right ) \right ) ^{2}a}\sqrt{-a} \left ( \cosh \left ( x/2 \right ) \right ) ^{2}-2\,A\sqrt{-a}\sqrt{ \left ( \sinh \left ( x/2 \right ) \right ) ^{2}a}+2\,B\sqrt{ \left ( \sinh \left ( x/2 \right ) \right ) ^{2}a}\sqrt{-a} \right ) \left ( \cosh \left ({\frac{x}{2}} \right ) \right ) ^{-3}{\frac{1}{\sqrt{-a}}} \left ( \sinh \left ({\frac{x}{2}} \right ) \right ) ^{-1}{\frac{1}{\sqrt{a \left ( \cosh \left ({\frac{x}{2}} \right ) \right ) ^{2}}}}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [B] time = 2.0715, size = 576, normalized size = 6.19 \begin{align*} \text{result too large to display} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [B] time = 2.24973, size = 1453, normalized size = 15.62 \begin{align*} \text{result too large to display} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F(-1)] time = 0., size = 0, normalized size = 0. \begin{align*} \text{Timed out} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A] time = 1.41516, size = 159, normalized size = 1.71 \begin{align*} \frac{\sqrt{2}{\left (3 \, A + 5 \, B\right )} \arctan \left (e^{\left (\frac{1}{2} \, x\right )}\right )}{16 \, a^{\frac{5}{2}}} + \frac{\sqrt{2}{\left (3 \, A a^{\frac{7}{2}} e^{\left (\frac{7}{2} \, x\right )} + 5 \, B a^{\frac{7}{2}} e^{\left (\frac{7}{2} \, x\right )} + 11 \, A a^{\frac{7}{2}} e^{\left (\frac{5}{2} \, x\right )} - 3 \, B a^{\frac{7}{2}} e^{\left (\frac{5}{2} \, x\right )} - 11 \, A a^{\frac{7}{2}} e^{\left (\frac{3}{2} \, x\right )} + 3 \, B a^{\frac{7}{2}} e^{\left (\frac{3}{2} \, x\right )} - 3 \, A a^{\frac{7}{2}} e^{\left (\frac{1}{2} \, x\right )} - 5 \, B a^{\frac{7}{2}} e^{\left (\frac{1}{2} \, x\right )}\right )}}{16 \,{\left (a e^{x} + a\right )}^{4} a^{2}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]