Optimal. Leaf size=44 \[ -\frac{2 \tanh ^{-1}\left (\frac{b-2 a \tanh (c+d x)}{\sqrt{4 a^2+b^2}}\right )}{d \sqrt{4 a^2+b^2}} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.123194, antiderivative size = 44, normalized size of antiderivative = 1., number of steps used = 4, number of rules used = 4, integrand size = 18, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.222, Rules used = {2666, 2660, 618, 204} \[ -\frac{2 \tanh ^{-1}\left (\frac{b-2 a \tanh (c+d x)}{\sqrt{4 a^2+b^2}}\right )}{d \sqrt{4 a^2+b^2}} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 2666
Rule 2660
Rule 618
Rule 204
Rubi steps
\begin{align*} \int \frac{1}{a+b \cosh (c+d x) \sinh (c+d x)} \, dx &=\int \frac{1}{a+\frac{1}{2} b \sinh (2 c+2 d x)} \, dx\\ &=-\frac{i \operatorname{Subst}\left (\int \frac{1}{a-i b x+a x^2} \, dx,x,\tan \left (\frac{1}{2} (2 i c+2 i d x)\right )\right )}{d}\\ &=\frac{(2 i) \operatorname{Subst}\left (\int \frac{1}{-4 a^2-b^2-x^2} \, dx,x,-i b+2 a \tan \left (\frac{1}{2} (2 i c+2 i d x)\right )\right )}{d}\\ &=-\frac{2 \tanh ^{-1}\left (\frac{b-2 a \tanh (c+d x)}{\sqrt{4 a^2+b^2}}\right )}{\sqrt{4 a^2+b^2} d}\\ \end{align*}
Mathematica [A] time = 0.0795756, size = 48, normalized size = 1.09 \[ \frac{2 \tan ^{-1}\left (\frac{b-2 a \tanh (c+d x)}{\sqrt{-4 a^2-b^2}}\right )}{d \sqrt{-4 a^2-b^2}} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [B] time = 0.087, size = 207, normalized size = 4.7 \begin{align*}{\frac{1}{d}\ln \left ( \left ( \tanh \left ({\frac{dx}{2}}+{\frac{c}{2}} \right ) \right ) ^{2}a+\sqrt{4\,{a}^{2}+{b}^{2}}\tanh \left ({\frac{dx}{2}}+{\frac{c}{2}} \right ) +b\tanh \left ({\frac{dx}{2}}+{\frac{c}{2}} \right ) +a \right ){\frac{1}{\sqrt{4\,{a}^{2}+{b}^{2}}}}}-4\,{\frac{{a}^{2}\ln \left ( - \left ( \tanh \left ( 1/2\,dx+c/2 \right ) \right ) ^{2}a+\sqrt{4\,{a}^{2}+{b}^{2}}\tanh \left ( 1/2\,dx+c/2 \right ) -b\tanh \left ( 1/2\,dx+c/2 \right ) -a \right ) }{d \left ( 4\,{a}^{2}+{b}^{2} \right ) ^{3/2}}}-{\frac{{b}^{2}}{d}\ln \left ( - \left ( \tanh \left ({\frac{dx}{2}}+{\frac{c}{2}} \right ) \right ) ^{2}a+\sqrt{4\,{a}^{2}+{b}^{2}}\tanh \left ({\frac{dx}{2}}+{\frac{c}{2}} \right ) -b\tanh \left ({\frac{dx}{2}}+{\frac{c}{2}} \right ) -a \right ) \left ( 4\,{a}^{2}+{b}^{2} \right ) ^{-{\frac{3}{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 = 2.3383, size = 772, normalized size = 17.55 \begin{align*} \frac{\log \left (\frac{b^{2} \cosh \left (d x + c\right )^{4} + 4 \, b^{2} \cosh \left (d x + c\right ) \sinh \left (d x + c\right )^{3} + b^{2} \sinh \left (d x + c\right )^{4} + 4 \, a b \cosh \left (d x + c\right )^{2} + 2 \,{\left (3 \, b^{2} \cosh \left (d x + c\right )^{2} + 2 \, a b\right )} \sinh \left (d x + c\right )^{2} + 8 \, a^{2} + b^{2} + 4 \,{\left (b^{2} \cosh \left (d x + c\right )^{3} + 2 \, a b \cosh \left (d x + c\right )\right )} \sinh \left (d x + c\right ) - 2 \,{\left (b \cosh \left (d x + c\right )^{2} + 2 \, b \cosh \left (d x + c\right ) \sinh \left (d x + c\right ) + b \sinh \left (d x + c\right )^{2} + 2 \, a\right )} \sqrt{4 \, a^{2} + b^{2}}}{b \cosh \left (d x + c\right )^{4} + 4 \, b \cosh \left (d x + c\right ) \sinh \left (d x + c\right )^{3} + b \sinh \left (d x + c\right )^{4} + 4 \, a \cosh \left (d x + c\right )^{2} + 2 \,{\left (3 \, b \cosh \left (d x + c\right )^{2} + 2 \, a\right )} \sinh \left (d x + c\right )^{2} + 4 \,{\left (b \cosh \left (d x + c\right )^{3} + 2 \, a \cosh \left (d x + c\right )\right )} \sinh \left (d x + c\right ) - b}\right )}{\sqrt{4 \, a^{2} + b^{2}} d} \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.18213, size = 107, normalized size = 2.43 \begin{align*} \frac{\log \left (\frac{{\left | 2 \, b e^{\left (2 \, d x + 2 \, c\right )} + 4 \, a - 2 \, \sqrt{4 \, a^{2} + b^{2}} \right |}}{{\left | 2 \, b e^{\left (2 \, d x + 2 \, c\right )} + 4 \, a + 2 \, \sqrt{4 \, a^{2} + b^{2}} \right |}}\right )}{\sqrt{4 \, a^{2} + b^{2}} d} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]