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.0568916, antiderivative size = 60, normalized size of antiderivative = 1., number of steps used = 3, number of rules used = 3, integrand size = 12, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.25, 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 5465
Rule 2659
Rule 208
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.124802, 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]
________________________________________________________________________________________
Maple [B] time = 0.069, size = 138, normalized size = 2.3 \begin{align*} -2\,{\frac{x{{\rm e}^{x}}}{b \left ( b{{\rm e}^{2\,x}}+2\,a{{\rm e}^{x}}+b \right ) }}+{\frac{1}{b}\ln \left ({{\rm e}^{x}}+{\frac{1}{b} \left ( a\sqrt{{a}^{2}-{b}^{2}}-{a}^{2}+{b}^{2} \right ){\frac{1}{\sqrt{{a}^{2}-{b}^{2}}}}} \right ){\frac{1}{\sqrt{{a}^{2}-{b}^{2}}}}}-{\frac{1}{b}\ln \left ({{\rm e}^{x}}+{\frac{1}{b} \left ( a\sqrt{{a}^{2}-{b}^{2}}+{a}^{2}-{b}^{2} \right ){\frac{1}{\sqrt{{a}^{2}-{b}^{2}}}}} \right ){\frac{1}{\sqrt{{a}^{2}-{b}^{2}}}}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F(-2)] time = 0., size = 0, normalized size = 0. \begin{align*} \text{Exception raised: ValueError} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [B] time = 1.93979, size = 1202, normalized size = 20.03 \begin{align*} \left [-\frac{2 \,{\left (a^{2} - b^{2}\right )} x \cosh \left (x\right ) + 2 \,{\left (a^{2} - b^{2}\right )} x \sinh \left (x\right ) -{\left (b \cosh \left (x\right )^{2} + b \sinh \left (x\right )^{2} + 2 \, a \cosh \left (x\right ) + 2 \,{\left (b \cosh \left (x\right ) + a\right )} \sinh \left (x\right ) + b\right )} \sqrt{a^{2} - b^{2}} \log \left (\frac{b^{2} \cosh \left (x\right )^{2} + b^{2} \sinh \left (x\right )^{2} + 2 \, a b \cosh \left (x\right ) + 2 \, a^{2} - b^{2} + 2 \,{\left (b^{2} \cosh \left (x\right ) + a b\right )} \sinh \left (x\right ) - 2 \, \sqrt{a^{2} - b^{2}}{\left (b \cosh \left (x\right ) + b \sinh \left (x\right ) + a\right )}}{b \cosh \left (x\right )^{2} + b \sinh \left (x\right )^{2} + 2 \, a \cosh \left (x\right ) + 2 \,{\left (b \cosh \left (x\right ) + a\right )} \sinh \left (x\right ) + b}\right )}{a^{2} b^{2} - b^{4} +{\left (a^{2} b^{2} - b^{4}\right )} \cosh \left (x\right )^{2} +{\left (a^{2} b^{2} - b^{4}\right )} \sinh \left (x\right )^{2} + 2 \,{\left (a^{3} b - a b^{3}\right )} \cosh \left (x\right ) + 2 \,{\left (a^{3} b - a b^{3} +{\left (a^{2} b^{2} - b^{4}\right )} \cosh \left (x\right )\right )} \sinh \left (x\right )}, -\frac{2 \,{\left ({\left (a^{2} - b^{2}\right )} x \cosh \left (x\right ) +{\left (a^{2} - b^{2}\right )} x \sinh \left (x\right ) +{\left (b \cosh \left (x\right )^{2} + b \sinh \left (x\right )^{2} + 2 \, a \cosh \left (x\right ) + 2 \,{\left (b \cosh \left (x\right ) + a\right )} \sinh \left (x\right ) + b\right )} \sqrt{-a^{2} + b^{2}} \arctan \left (-\frac{\sqrt{-a^{2} + b^{2}}{\left (b \cosh \left (x\right ) + b \sinh \left (x\right ) + a\right )}}{a^{2} - b^{2}}\right )\right )}}{a^{2} b^{2} - b^{4} +{\left (a^{2} b^{2} - b^{4}\right )} \cosh \left (x\right )^{2} +{\left (a^{2} b^{2} - b^{4}\right )} \sinh \left (x\right )^{2} + 2 \,{\left (a^{3} b - a b^{3}\right )} \cosh \left (x\right ) + 2 \,{\left (a^{3} b - a b^{3} +{\left (a^{2} b^{2} - b^{4}\right )} \cosh \left (x\right )\right )} \sinh \left (x\right )}\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 [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int \frac{x \sinh \left (x\right )}{{\left (b \cosh \left (x\right ) + a\right )}^{2}}\,{d x} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]