Optimal. Leaf size=60 \[ \frac {2 \tanh ^{-1}\left (\frac {\sqrt {a-b} \tanh \left (\frac {x}{2}\right )}{\sqrt {a+b}}\right )}{b \sqrt {a-b} \sqrt {a+b}}-\frac {x}{b (a+b \cosh (x))} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.06, antiderivative size = 60, normalized size of antiderivative = 1.00, number of steps used = 3, number of rules used = 3, integrand size = 12, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.250, Rules used = {5465, 2659, 208} \[ \frac {2 \tanh ^{-1}\left (\frac {\sqrt {a-b} \tanh \left (\frac {x}{2}\right )}{\sqrt {a+b}}\right )}{b \sqrt {a-b} \sqrt {a+b}}-\frac {x}{b (a+b \cosh (x))} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 208
Rule 2659
Rule 5465
Rubi steps
\begin {align*} \int \frac {x \sinh (x)}{(a+b \cosh (x))^2} \, dx &=-\frac {x}{b (a+b \cosh (x))}+\frac {\int \frac {1}{a+b \cosh (x)} \, dx}{b}\\ &=-\frac {x}{b (a+b \cosh (x))}+\frac {2 \operatorname {Subst}\left (\int \frac {1}{a+b-(a-b) x^2} \, dx,x,\tanh \left (\frac {x}{2}\right )\right )}{b}\\ &=\frac {2 \tanh ^{-1}\left (\frac {\sqrt {a-b} \tanh \left (\frac {x}{2}\right )}{\sqrt {a+b}}\right )}{\sqrt {a-b} b \sqrt {a+b}}-\frac {x}{b (a+b \cosh (x))}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A] time = 0.14, size = 59, normalized size = 0.98 \[ -\frac {2 \tan ^{-1}\left (\frac {(a-b) \tanh \left (\frac {x}{2}\right )}{\sqrt {b^2-a^2}}\right )}{b \sqrt {b^2-a^2}}-\frac {x}{b (a+b \cosh (x))} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [B] time = 0.50, size = 480, normalized size = 8.00 \[ \left [-\frac {2 \, {\left (a^{2} - b^{2}\right )} x \cosh \relax (x) + 2 \, {\left (a^{2} - b^{2}\right )} x \sinh \relax (x) - {\left (b \cosh \relax (x)^{2} + b \sinh \relax (x)^{2} + 2 \, a \cosh \relax (x) + 2 \, {\left (b \cosh \relax (x) + a\right )} \sinh \relax (x) + b\right )} \sqrt {a^{2} - b^{2}} \log \left (\frac {b^{2} \cosh \relax (x)^{2} + b^{2} \sinh \relax (x)^{2} + 2 \, a b \cosh \relax (x) + 2 \, a^{2} - b^{2} + 2 \, {\left (b^{2} \cosh \relax (x) + a b\right )} \sinh \relax (x) - 2 \, \sqrt {a^{2} - b^{2}} {\left (b \cosh \relax (x) + b \sinh \relax (x) + a\right )}}{b \cosh \relax (x)^{2} + b \sinh \relax (x)^{2} + 2 \, a \cosh \relax (x) + 2 \, {\left (b \cosh \relax (x) + a\right )} \sinh \relax (x) + b}\right )}{a^{2} b^{2} - b^{4} + {\left (a^{2} b^{2} - b^{4}\right )} \cosh \relax (x)^{2} + {\left (a^{2} b^{2} - b^{4}\right )} \sinh \relax (x)^{2} + 2 \, {\left (a^{3} b - a b^{3}\right )} \cosh \relax (x) + 2 \, {\left (a^{3} b - a b^{3} + {\left (a^{2} b^{2} - b^{4}\right )} \cosh \relax (x)\right )} \sinh \relax (x)}, -\frac {2 \, {\left ({\left (a^{2} - b^{2}\right )} x \cosh \relax (x) + {\left (a^{2} - b^{2}\right )} x \sinh \relax (x) + {\left (b \cosh \relax (x)^{2} + b \sinh \relax (x)^{2} + 2 \, a \cosh \relax (x) + 2 \, {\left (b \cosh \relax (x) + a\right )} \sinh \relax (x) + b\right )} \sqrt {-a^{2} + b^{2}} \arctan \left (-\frac {\sqrt {-a^{2} + b^{2}} {\left (b \cosh \relax (x) + b \sinh \relax (x) + a\right )}}{a^{2} - b^{2}}\right )\right )}}{a^{2} b^{2} - b^{4} + {\left (a^{2} b^{2} - b^{4}\right )} \cosh \relax (x)^{2} + {\left (a^{2} b^{2} - b^{4}\right )} \sinh \relax (x)^{2} + 2 \, {\left (a^{3} b - a b^{3}\right )} \cosh \relax (x) + 2 \, {\left (a^{3} b - a b^{3} + {\left (a^{2} b^{2} - b^{4}\right )} \cosh \relax (x)\right )} \sinh \relax (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 {x \sinh \relax (x)}{{\left (b \cosh \relax (x) + a\right )}^{2}}\,{d x} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [B] time = 0.18, size = 138, normalized size = 2.30 \[ -\frac {2 x \,{\mathrm e}^{x}}{b \left (b \,{\mathrm e}^{2 x}+2 a \,{\mathrm e}^{x}+b \right )}+\frac {\ln \left ({\mathrm e}^{x}+\frac {a \sqrt {a^{2}-b^{2}}-a^{2}+b^{2}}{\sqrt {a^{2}-b^{2}}\, b}\right )}{\sqrt {a^{2}-b^{2}}\, b}-\frac {\ln \left ({\mathrm e}^{x}+\frac {a \sqrt {a^{2}-b^{2}}+a^{2}-b^{2}}{\sqrt {a^{2}-b^{2}}\, b}\right )}{\sqrt {a^{2}-b^{2}}\, b} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [F(-2)] time = 0.00, size = 0, normalized size = 0.00 \[ \text {Exception raised: ValueError} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [B] time = 1.09, size = 110, normalized size = 1.83 \[ \frac {2\,\mathrm {atan}\left (\frac {{\mathrm {e}}^x\,\left (b^4-a^2\,b^2\right )+a\,b^3+a^2\,b^2\,{\mathrm {e}}^x}{b^2\,\sqrt {b^4-a^2\,b^2}}\right )}{\sqrt {b^4-a^2\,b^2}}-\frac {2\,{\mathrm {e}}^x\,\left (a^2\,x-b^2\,x\right )}{\left (a^2\,b-b^3\right )\,\left (b+2\,a\,{\mathrm {e}}^x+b\,{\mathrm {e}}^{2\,x}\right )} \]
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]
________________________________________________________________________________________