Optimal. Leaf size=19 \[ \frac {\tanh ^2(x)}{2 a (a+b \tanh (x))^2} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.02, antiderivative size = 19, normalized size of antiderivative = 1.00, 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 = {3166, 37}
\begin {gather*} \frac {\tanh ^2(x)}{2 a (a+b \tanh (x))^2} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 37
Rule 3166
Rubi steps
\begin {align*} \int \frac {\sinh (x)}{(a \cosh (x)+b \sinh (x))^3} \, dx &=-\text {Subst}\left (\int \frac {x}{(a-i b x)^3} \, dx,x,i \tanh (x)\right )\\ &=\frac {\tanh ^2(x)}{2 a (a+b \tanh (x))^2}\\ \end {align*}
________________________________________________________________________________________
Mathematica [B] Leaf count is larger than twice the leaf count of optimal. \(54\) vs. \(2(19)=38\).
time = 0.09, size = 54, normalized size = 2.84 \begin {gather*} -\frac {a^2-b^2+b^2 \cosh (2 x)+a b \sinh (2 x)}{2 a (a-b) (a+b) (a \cosh (x)+b \sinh (x))^2} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A]
time = 1.39, size = 31, normalized size = 1.63
method | result | size |
default | \(\frac {2 \left (\tanh ^{2}\left (\frac {x}{2}\right )\right )}{a \left (a +2 b \tanh \left (\frac {x}{2}\right )+a \left (\tanh ^{2}\left (\frac {x}{2}\right )\right )\right )^{2}}\) | \(31\) |
risch | \(-\frac {2 \left ({\mathrm e}^{2 x} a +b \,{\mathrm e}^{2 x}-b \right )}{\left ({\mathrm e}^{2 x} a +b \,{\mathrm e}^{2 x}+a -b \right )^{2} \left (a +b \right )^{2}}\) | \(43\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [B] Leaf count of result is larger than twice the leaf count of optimal. 167 vs.
\(2 (17) = 34\).
time = 0.27, size = 167, normalized size = 8.79 \begin {gather*} -\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 \, b}{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 {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [B] Leaf count of result is larger than twice the leaf count of optimal. 216 vs.
\(2 (17) = 34\).
time = 0.33, size = 216, normalized size = 11.37 \begin {gather*} -\frac {2 \, {\left (a \cosh \left (x\right ) + {\left (a + 2 \, b\right )} \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 {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F(-1)] Timed out
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Timed out} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [B] Leaf count of result is larger than twice the leaf count of optimal. 50 vs.
\(2 (17) = 34\).
time = 0.42, size = 50, normalized size = 2.63 \begin {gather*} -\frac {2 \, {\left (a e^{\left (2 \, x\right )} + b e^{\left (2 \, x\right )} - b\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 {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [B]
time = 1.60, size = 42, normalized size = 2.21 \begin {gather*} \frac {2\,b-{\mathrm {e}}^{2\,x}\,\left (2\,a+2\,b\right )}{{\left (a+b\right )}^2\,{\left (a-b+a\,{\mathrm {e}}^{2\,x}+b\,{\mathrm {e}}^{2\,x}\right )}^2} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________