Optimal. Leaf size=19 \[ -\frac{\coth ^2(x)}{2 b (a \coth (x)+b)^2} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.030686, antiderivative size = 19, 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 = {3088, 37} \[ -\frac{\coth ^2(x)}{2 b (a \coth (x)+b)^2} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 3088
Rule 37
Rubi steps
\begin{align*} \int \frac{\cosh (x)}{(a \cosh (x)+b \sinh (x))^3} \, dx &=i \operatorname{Subst}\left (\int \frac{x}{(-i b+a x)^3} \, dx,x,-i \coth (x)\right )\\ &=-\frac{\coth ^2(x)}{2 b (b+a \coth (x))^2}\\ \end{align*}
Mathematica [B] time = 0.0576048, size = 40, normalized size = 2.11 \[ \frac{a \sinh (2 x)+b \cosh (2 x)}{2 (a-b) (a+b) (a \cosh (x)+b \sinh (x))^2} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [B] time = 0.065, size = 55, normalized size = 2.9 \begin{align*} -2\,{\frac{1}{ \left ( a+2\,\tanh \left ( x/2 \right ) b+a \left ( \tanh \left ( x/2 \right ) \right ) ^{2} \right ) ^{2}} \left ( -{\frac{ \left ( \tanh \left ( x/2 \right ) \right ) ^{3}}{a}}-{\frac{ \left ( \tanh \left ( x/2 \right ) \right ) ^{2}b}{{a}^{2}}}-{\frac{\tanh \left ( x/2 \right ) }{a}} \right ) } \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [B] time = 1.26434, size = 225, normalized size = 11.84 \begin{align*} \frac{2 \,{\left (a - b\right )} e^{\left (-2 \, x\right )}}{a^{4} - 2 \, a^{2} b^{2} + b^{4} + 2 \,{\left (a^{4} - 2 \, a^{3} b + 2 \, a b^{3} - b^{4}\right )} e^{\left (-2 \, x\right )} +{\left (a^{4} - 4 \, a^{3} b + 6 \, a^{2} b^{2} - 4 \, a b^{3} + b^{4}\right )} e^{\left (-4 \, x\right )}} + \frac{2 \, a}{a^{4} - 2 \, a^{2} b^{2} + b^{4} + 2 \,{\left (a^{4} - 2 \, a^{3} b + 2 \, a b^{3} - b^{4}\right )} e^{\left (-2 \, x\right )} +{\left (a^{4} - 4 \, a^{3} b + 6 \, a^{2} b^{2} - 4 \, a b^{3} + b^{4}\right )} e^{\left (-4 \, x\right )}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [B] time = 1.72395, size = 518, normalized size = 27.26 \begin{align*} -\frac{2 \,{\left ({\left (2 \, a + b\right )} \cosh \left (x\right ) + b \sinh \left (x\right )\right )}}{{\left (a^{4} + 4 \, a^{3} b + 6 \, a^{2} b^{2} + 4 \, a b^{3} + b^{4}\right )} \cosh \left (x\right )^{3} + 3 \,{\left (a^{4} + 4 \, a^{3} b + 6 \, a^{2} b^{2} + 4 \, a b^{3} + b^{4}\right )} \cosh \left (x\right ) \sinh \left (x\right )^{2} +{\left (a^{4} + 4 \, a^{3} b + 6 \, a^{2} b^{2} + 4 \, a b^{3} + b^{4}\right )} \sinh \left (x\right )^{3} +{\left (3 \, a^{4} + 4 \, a^{3} b - 2 \, a^{2} b^{2} - 4 \, a b^{3} - b^{4}\right )} \cosh \left (x\right ) +{\left (a^{4} + 4 \, a^{3} b + 2 \, a^{2} b^{2} - 4 \, a b^{3} - 3 \, b^{4} + 3 \,{\left (a^{4} + 4 \, a^{3} b + 6 \, a^{2} b^{2} + 4 \, a b^{3} + b^{4}\right )} \cosh \left (x\right )^{2}\right )} \sinh \left (x\right )} \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 [B] time = 1.14773, size = 65, normalized size = 3.42 \begin{align*} -\frac{2 \,{\left (a e^{\left (2 \, x\right )} + b e^{\left (2 \, x\right )} + a\right )}}{{\left (a^{2} + 2 \, a b + b^{2}\right )}{\left (a e^{\left (2 \, x\right )} + b e^{\left (2 \, x\right )} + a - b\right )}^{2}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]