Optimal. Leaf size=29 \[ \frac{\cosh (a+b x)}{b}-\frac{\sinh (a-c) \tan ^{-1}(\sinh (b x+c))}{b} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.0193314, antiderivative size = 29, normalized size of antiderivative = 1., number of steps used = 3, number of rules used = 3, integrand size = 13, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.231, Rules used = {5623, 2638, 3770} \[ \frac{\cosh (a+b x)}{b}-\frac{\sinh (a-c) \tan ^{-1}(\sinh (b x+c))}{b} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 5623
Rule 2638
Rule 3770
Rubi steps
\begin{align*} \int \cosh (a+b x) \tanh (c+b x) \, dx &=-(\sinh (a-c) \int \text{sech}(c+b x) \, dx)+\int \sinh (a+b x) \, dx\\ &=\frac{\cosh (a+b x)}{b}-\frac{\tan ^{-1}(\sinh (c+b x)) \sinh (a-c)}{b}\\ \end{align*}
Mathematica [B] time = 0.057125, size = 86, normalized size = 2.97 \[ -\frac{2 \sinh (a-c) \tan ^{-1}\left (\frac{(\cosh (c)-\sinh (c)) \left (\sinh (c) \cosh \left (\frac{b x}{2}\right )+\cosh (c) \sinh \left (\frac{b x}{2}\right )\right )}{\cosh (c) \cosh \left (\frac{b x}{2}\right )-\sinh (c) \cosh \left (\frac{b x}{2}\right )}\right )}{b}+\frac{\sinh (a) \sinh (b x)}{b}+\frac{\cosh (a) \cosh (b x)}{b} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [C] time = 0.08, size = 167, normalized size = 5.8 \begin{align*}{\frac{{{\rm e}^{bx+a}}}{2\,b}}+{\frac{{{\rm e}^{-bx-a}}}{2\,b}}+{\frac{{\frac{i}{2}}\ln \left ({{\rm e}^{bx+a}}-i{{\rm e}^{a-c}} \right ){{\rm e}^{-a-c}} \left ({{\rm e}^{a}} \right ) ^{2}}{b}}-{\frac{{\frac{i}{2}}\ln \left ({{\rm e}^{bx+a}}-i{{\rm e}^{a-c}} \right ){{\rm e}^{-a-c}} \left ({{\rm e}^{c}} \right ) ^{2}}{b}}-{\frac{{\frac{i}{2}}\ln \left ({{\rm e}^{bx+a}}+i{{\rm e}^{a-c}} \right ){{\rm e}^{-a-c}} \left ({{\rm e}^{a}} \right ) ^{2}}{b}}+{\frac{{\frac{i}{2}}\ln \left ({{\rm e}^{bx+a}}+i{{\rm e}^{a-c}} \right ){{\rm e}^{-a-c}} \left ({{\rm e}^{c}} \right ) ^{2}}{b}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [B] time = 1.64584, size = 80, normalized size = 2.76 \begin{align*} \frac{{\left (e^{\left (2 \, a\right )} - e^{\left (2 \, c\right )}\right )} \arctan \left (e^{\left (-b x - c\right )}\right ) e^{\left (-a - c\right )}}{b} + \frac{e^{\left (b x + a\right )}}{2 \, b} + \frac{e^{\left (-b x - a\right )}}{2 \, b} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [B] time = 2.15508, size = 914, normalized size = 31.52 \begin{align*} \frac{\cosh \left (b x + c\right )^{2} \cosh \left (-a + c\right )^{2} - 2 \, \cosh \left (b x + c\right )^{2} \cosh \left (-a + c\right ) \sinh \left (-a + c\right ) + \cosh \left (b x + c\right )^{2} \sinh \left (-a + c\right )^{2} +{\left (\cosh \left (-a + c\right )^{2} - 2 \, \cosh \left (-a + c\right ) \sinh \left (-a + c\right ) + \sinh \left (-a + c\right )^{2}\right )} \sinh \left (b x + c\right )^{2} + 2 \,{\left (2 \, \cosh \left (b x + c\right ) \cosh \left (-a + c\right ) \sinh \left (-a + c\right ) - \cosh \left (b x + c\right ) \sinh \left (-a + c\right )^{2} -{\left (\cosh \left (-a + c\right )^{2} - 1\right )} \cosh \left (b x + c\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 )} \sinh \left (b x + c\right )\right )} \arctan \left (\cosh \left (b x + c\right ) + \sinh \left (b x + c\right )\right ) + 2 \,{\left (\cosh \left (b x + c\right ) \cosh \left (-a + c\right )^{2} - 2 \, \cosh \left (b x + c\right ) \cosh \left (-a + c\right ) \sinh \left (-a + c\right ) + \cosh \left (b x + c\right ) \sinh \left (-a + c\right )^{2}\right )} \sinh \left (b x + c\right ) + 1}{2 \,{\left (b \cosh \left (b x + c\right ) \cosh \left (-a + c\right ) - b \cosh \left (b x + c\right ) \sinh \left (-a + c\right ) +{\left (b \cosh \left (-a + c\right ) - b \sinh \left (-a + c\right )\right )} \sinh \left (b x + c\right )\right )}} \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 \cosh{\left (a + b x \right )} \tanh{\left (b x + c \right )}\, dx \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A] time = 1.18435, size = 72, normalized size = 2.48 \begin{align*} -\frac{2 \,{\left (e^{\left (2 \, a\right )} - e^{\left (2 \, c\right )}\right )} \arctan \left (e^{\left (b x + c\right )}\right ) e^{\left (-a - c\right )} - e^{\left (b x + a\right )} - e^{\left (-b x - a\right )}}{2 \, b} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]