Optimal. Leaf size=34 \[ a^2 x-\frac{2 a b \tanh ^{-1}(\cosh (c+d x))}{d}-\frac{b^2 \coth (c+d x)}{d} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.0311796, antiderivative size = 34, 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 = {3773, 3770, 3767, 8} \[ a^2 x-\frac{2 a b \tanh ^{-1}(\cosh (c+d x))}{d}-\frac{b^2 \coth (c+d x)}{d} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 3773
Rule 3770
Rule 3767
Rule 8
Rubi steps
\begin{align*} \int (a+b \text{csch}(c+d x))^2 \, dx &=a^2 x+(2 a b) \int \text{csch}(c+d x) \, dx+b^2 \int \text{csch}^2(c+d x) \, dx\\ &=a^2 x-\frac{2 a b \tanh ^{-1}(\cosh (c+d x))}{d}-\frac{\left (i b^2\right ) \operatorname{Subst}(\int 1 \, dx,x,-i \coth (c+d x))}{d}\\ &=a^2 x-\frac{2 a b \tanh ^{-1}(\cosh (c+d x))}{d}-\frac{b^2 \coth (c+d x)}{d}\\ \end{align*}
Mathematica [A] time = 0.218753, size = 61, normalized size = 1.79 \[ -\frac{-2 a \left (a c+a d x+2 b \log \left (\tanh \left (\frac{1}{2} (c+d x)\right )\right )\right )+b^2 \tanh \left (\frac{1}{2} (c+d x)\right )+b^2 \coth \left (\frac{1}{2} (c+d x)\right )}{2 d} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A] time = 0.009, size = 37, normalized size = 1.1 \begin{align*}{\frac{{a}^{2} \left ( dx+c \right ) -4\,ab{\it Artanh} \left ({{\rm e}^{dx+c}} \right ) -{b}^{2}{\rm coth} \left (dx+c\right )}{d}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A] time = 1.04168, size = 59, normalized size = 1.74 \begin{align*} a^{2} x + \frac{2 \, a b \log \left (\tanh \left (\frac{1}{2} \, d x + \frac{1}{2} \, c\right )\right )}{d} + \frac{2 \, b^{2}}{d{\left (e^{\left (-2 \, d x - 2 \, c\right )} - 1\right )}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [B] time = 1.65717, size = 603, normalized size = 17.74 \begin{align*} \frac{a^{2} d x \cosh \left (d x + c\right )^{2} + 2 \, a^{2} d x \cosh \left (d x + c\right ) \sinh \left (d x + c\right ) + a^{2} d x \sinh \left (d x + c\right )^{2} - a^{2} d x - 2 \, b^{2} - 2 \,{\left (a b \cosh \left (d x + c\right )^{2} + 2 \, a b \cosh \left (d x + c\right ) \sinh \left (d x + c\right ) + a b \sinh \left (d x + c\right )^{2} - a b\right )} \log \left (\cosh \left (d x + c\right ) + \sinh \left (d x + c\right ) + 1\right ) + 2 \,{\left (a b \cosh \left (d x + c\right )^{2} + 2 \, a b \cosh \left (d x + c\right ) \sinh \left (d x + c\right ) + a b \sinh \left (d x + c\right )^{2} - a b\right )} \log \left (\cosh \left (d x + c\right ) + \sinh \left (d x + c\right ) - 1\right )}{d \cosh \left (d x + c\right )^{2} + 2 \, d \cosh \left (d x + c\right ) \sinh \left (d x + c\right ) + d \sinh \left (d x + c\right )^{2} - d} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int \left (a + b \operatorname{csch}{\left (c + d x \right )}\right )^{2}\, dx \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A] time = 1.17489, size = 90, normalized size = 2.65 \begin{align*} \frac{{\left (d x + c\right )} a^{2}}{d} - \frac{2 \, a b \log \left (e^{\left (d x + c\right )} + 1\right )}{d} + \frac{2 \, a b \log \left ({\left | e^{\left (d x + c\right )} - 1 \right |}\right )}{d} - \frac{2 \, b^{2}}{d{\left (e^{\left (2 \, d x + 2 \, c\right )} - 1\right )}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]