Optimal. Leaf size=86 \[ \frac{2 a \tanh ^{-1}\left (\frac{\sqrt{a-b} \tanh \left (\frac{1}{2} (c+d x)\right )}{\sqrt{a+b}}\right )}{d (a-b)^{3/2} (a+b)^{3/2}}-\frac{b \sinh (c+d x)}{d \left (a^2-b^2\right ) (a+b \cosh (c+d x))} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.0840867, antiderivative size = 86, normalized size of antiderivative = 1., number of steps used = 4, number of rules used = 4, integrand size = 12, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.333, Rules used = {2664, 12, 2659, 205} \[ \frac{2 a \tanh ^{-1}\left (\frac{\sqrt{a-b} \tanh \left (\frac{1}{2} (c+d x)\right )}{\sqrt{a+b}}\right )}{d (a-b)^{3/2} (a+b)^{3/2}}-\frac{b \sinh (c+d x)}{d \left (a^2-b^2\right ) (a+b \cosh (c+d x))} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 2664
Rule 12
Rule 2659
Rule 205
Rubi steps
\begin{align*} \int \frac{1}{(a+b \cosh (c+d x))^2} \, dx &=-\frac{b \sinh (c+d x)}{\left (a^2-b^2\right ) d (a+b \cosh (c+d x))}-\frac{\int \frac{a}{a+b \cosh (c+d x)} \, dx}{-a^2+b^2}\\ &=-\frac{b \sinh (c+d x)}{\left (a^2-b^2\right ) d (a+b \cosh (c+d x))}+\frac{a \int \frac{1}{a+b \cosh (c+d x)} \, dx}{a^2-b^2}\\ &=-\frac{b \sinh (c+d x)}{\left (a^2-b^2\right ) d (a+b \cosh (c+d x))}-\frac{(2 i a) \operatorname{Subst}\left (\int \frac{1}{a+b+(a-b) x^2} \, dx,x,\tan \left (\frac{1}{2} (i c+i d x)\right )\right )}{\left (a^2-b^2\right ) d}\\ &=\frac{2 a \tanh ^{-1}\left (\frac{\sqrt{a-b} \tanh \left (\frac{1}{2} (c+d x)\right )}{\sqrt{a+b}}\right )}{(a-b)^{3/2} (a+b)^{3/2} d}-\frac{b \sinh (c+d x)}{\left (a^2-b^2\right ) d (a+b \cosh (c+d x))}\\ \end{align*}
Mathematica [A] time = 0.206597, size = 84, normalized size = 0.98 \[ \frac{\frac{2 a \tan ^{-1}\left (\frac{(a-b) \tanh \left (\frac{1}{2} (c+d x)\right )}{\sqrt{b^2-a^2}}\right )}{\left (b^2-a^2\right )^{3/2}}-\frac{b \sinh (c+d x)}{(a-b) (a+b) (a+b \cosh (c+d x))}}{d} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A] time = 0.02, size = 118, normalized size = 1.4 \begin{align*}{\frac{1}{d} \left ( 2\,{\frac{b\tanh \left ( 1/2\,dx+c/2 \right ) }{ \left ({a}^{2}-{b}^{2} \right ) \left ( a \left ( \tanh \left ( 1/2\,dx+c/2 \right ) \right ) ^{2}- \left ( \tanh \left ( 1/2\,dx+c/2 \right ) \right ) ^{2}b-a-b \right ) }}+2\,{\frac{a}{ \left ( a+b \right ) \left ( a-b \right ) \sqrt{ \left ( a+b \right ) \left ( a-b \right ) }}{\it Artanh} \left ({\frac{ \left ( a-b \right ) \tanh \left ( 1/2\,dx+c/2 \right ) }{\sqrt{ \left ( a+b \right ) \left ( a-b \right ) }}} \right ) } \right ) } \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 = 2.41934, size = 1787, normalized size = 20.78 \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.23238, size = 138, normalized size = 1.6 \begin{align*} \frac{2 \, a \arctan \left (\frac{b e^{\left (d x + c\right )} + a}{\sqrt{-a^{2} + b^{2}}}\right )}{{\left (a^{2} d - b^{2} d\right )} \sqrt{-a^{2} + b^{2}}} + \frac{2 \,{\left (a e^{\left (d x + c\right )} + b\right )}}{{\left (a^{2} d - b^{2} d\right )}{\left (b e^{\left (2 \, d x + 2 \, c\right )} + 2 \, a e^{\left (d x + c\right )} + b\right )}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]