Optimal. Leaf size=37 \[ -\frac{\coth (a-c) \log (\sinh (a+b x))}{b}+\frac{\coth (a-c) \log (\sinh (b x+c))}{b}+x \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.0347978, antiderivative size = 37, normalized size of antiderivative = 1., number of steps used = 4, number of rules used = 3, integrand size = 13, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.231, Rules used = {5647, 5645, 3475} \[ -\frac{\coth (a-c) \log (\sinh (a+b x))}{b}+\frac{\coth (a-c) \log (\sinh (b x+c))}{b}+x \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 5647
Rule 5645
Rule 3475
Rubi steps
\begin{align*} \int \coth (a+b x) \coth (c+b x) \, dx &=x+\cosh (a-c) \int \text{csch}(a+b x) \text{csch}(c+b x) \, dx\\ &=x-\coth (a-c) \int \coth (a+b x) \, dx+\coth (a-c) \int \coth (c+b x) \, dx\\ &=x-\frac{\coth (a-c) \log (\sinh (a+b x))}{b}+\frac{\coth (a-c) \log (\sinh (c+b x))}{b}\\ \end{align*}
Mathematica [A] time = 0.461867, size = 29, normalized size = 0.78 \[ \frac{\coth (a-c) (\log (\sinh (b x+c))-\log (\sinh (a+b x)))}{b}+x \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [B] time = 0.047, size = 155, normalized size = 4.2 \begin{align*} x-{\frac{\ln \left ({{\rm e}^{2\,bx+2\,a}}-1 \right ){{\rm e}^{2\,a}}}{b \left ({{\rm e}^{2\,a}}-{{\rm e}^{2\,c}} \right ) }}-{\frac{\ln \left ({{\rm e}^{2\,bx+2\,a}}-1 \right ){{\rm e}^{2\,c}}}{b \left ({{\rm e}^{2\,a}}-{{\rm e}^{2\,c}} \right ) }}+{\frac{\ln \left ({{\rm e}^{2\,bx+2\,a}}-{{\rm e}^{2\,a-2\,c}} \right ){{\rm e}^{2\,a}}}{b \left ({{\rm e}^{2\,a}}-{{\rm e}^{2\,c}} \right ) }}+{\frac{\ln \left ({{\rm e}^{2\,bx+2\,a}}-{{\rm e}^{2\,a-2\,c}} \right ){{\rm e}^{2\,c}}}{b \left ({{\rm e}^{2\,a}}-{{\rm e}^{2\,c}} \right ) }} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [B] time = 1.19917, size = 212, normalized size = 5.73 \begin{align*} x + \frac{a}{b} - \frac{{\left (e^{\left (2 \, a\right )} + e^{\left (2 \, c\right )}\right )} \log \left (e^{\left (-b x - a\right )} + 1\right )}{b{\left (e^{\left (2 \, a\right )} - e^{\left (2 \, c\right )}\right )}} - \frac{{\left (e^{\left (2 \, a\right )} + e^{\left (2 \, c\right )}\right )} \log \left (e^{\left (-b x - a\right )} - 1\right )}{b{\left (e^{\left (2 \, a\right )} - e^{\left (2 \, c\right )}\right )}} + \frac{{\left (e^{\left (2 \, a\right )} + e^{\left (2 \, c\right )}\right )} \log \left (e^{\left (-b x\right )} + e^{c}\right )}{b{\left (e^{\left (2 \, a\right )} - e^{\left (2 \, c\right )}\right )}} + \frac{{\left (e^{\left (2 \, a\right )} + e^{\left (2 \, c\right )}\right )} \log \left (e^{\left (-b x\right )} - e^{c}\right )}{b{\left (e^{\left (2 \, a\right )} - e^{\left (2 \, c\right )}\right )}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [B] time = 1.96398, size = 701, normalized size = 18.95 \begin{align*} \frac{b x \cosh \left (-a + c\right )^{2} - 2 \, b x \cosh \left (-a + c\right ) \sinh \left (-a + c\right ) + b x \sinh \left (-a + c\right )^{2} - b x -{\left (\cosh \left (-a + c\right )^{2} - 2 \, \cosh \left (-a + c\right ) \sinh \left (-a + c\right ) + \sinh \left (-a + c\right )^{2} + 1\right )} \log \left (\frac{2 \,{\left (\cosh \left (-a + c\right ) \sinh \left (b x + c\right ) - \cosh \left (b x + c\right ) \sinh \left (-a + c\right )\right )}}{\cosh \left (b x + c\right ) \cosh \left (-a + c\right ) -{\left (\cosh \left (-a + c\right ) + \sinh \left (-a + c\right )\right )} \sinh \left (b x + c\right ) + \cosh \left (b x + c\right ) \sinh \left (-a + c\right )}\right ) +{\left (\cosh \left (-a + c\right )^{2} - 2 \, \cosh \left (-a + c\right ) \sinh \left (-a + c\right ) + \sinh \left (-a + c\right )^{2} + 1\right )} \log \left (\frac{2 \, \sinh \left (b x + c\right )}{\cosh \left (b x + c\right ) - \sinh \left (b x + c\right )}\right )}{b \cosh \left (-a + c\right )^{2} - 2 \, b \cosh \left (-a + c\right ) \sinh \left (-a + c\right ) + b \sinh \left (-a + c\right )^{2} - b} \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 [B] time = 1.20971, size = 159, normalized size = 4.3 \begin{align*} \frac{b x + \frac{{\left (e^{\left (2 \, a\right )} + e^{\left (2 \, c\right )}\right )} \log \left (\frac{{\left | -{\left | e^{\left (2 \, a\right )} - e^{\left (2 \, c\right )} \right |} + 2 \, e^{\left (2 \, b x + 2 \, a + 2 \, c\right )} - e^{\left (2 \, a\right )} - e^{\left (2 \, c\right )} \right |}}{{\left |{\left | e^{\left (2 \, a\right )} - e^{\left (2 \, c\right )} \right |} + 2 \, e^{\left (2 \, b x + 2 \, a + 2 \, c\right )} - e^{\left (2 \, a\right )} - e^{\left (2 \, c\right )} \right |}}\right )}{{\left | e^{\left (2 \, a\right )} - e^{\left (2 \, c\right )} \right |}}}{b} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]