Optimal. Leaf size=77 \[ -\frac{\sin (1) \text{CosIntegral}(1-\tanh (a+b x))}{2 b}-\frac{\sin (1) \text{CosIntegral}(\tanh (a+b x)+1)}{2 b}+\frac{\cos (1) \text{Si}(1-\tanh (a+b x))}{2 b}+\frac{\cos (1) \text{Si}(\tanh (a+b x)+1)}{2 b} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.145559, antiderivative size = 77, normalized size of antiderivative = 1., number of steps used = 9, number of rules used = 4, integrand size = 7, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.571, Rules used = {3333, 3303, 3299, 3302} \[ -\frac{\sin (1) \text{CosIntegral}(1-\tanh (a+b x))}{2 b}-\frac{\sin (1) \text{CosIntegral}(\tanh (a+b x)+1)}{2 b}+\frac{\cos (1) \text{Si}(1-\tanh (a+b x))}{2 b}+\frac{\cos (1) \text{Si}(\tanh (a+b x)+1)}{2 b} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 3333
Rule 3303
Rule 3299
Rule 3302
Rubi steps
\begin{align*} \int \sin (\tanh (a+b x)) \, dx &=\frac{\operatorname{Subst}\left (\int \frac{\sin (x)}{1-x^2} \, dx,x,\tanh (a+b x)\right )}{b}\\ &=\frac{\operatorname{Subst}\left (\int \left (\frac{\sin (x)}{2 (1-x)}+\frac{\sin (x)}{2 (1+x)}\right ) \, dx,x,\tanh (a+b x)\right )}{b}\\ &=\frac{\operatorname{Subst}\left (\int \frac{\sin (x)}{1-x} \, dx,x,\tanh (a+b x)\right )}{2 b}+\frac{\operatorname{Subst}\left (\int \frac{\sin (x)}{1+x} \, dx,x,\tanh (a+b x)\right )}{2 b}\\ &=-\frac{\cos (1) \operatorname{Subst}\left (\int \frac{\sin (1-x)}{1-x} \, dx,x,\tanh (a+b x)\right )}{2 b}+\frac{\cos (1) \operatorname{Subst}\left (\int \frac{\sin (1+x)}{1+x} \, dx,x,\tanh (a+b x)\right )}{2 b}+\frac{\sin (1) \operatorname{Subst}\left (\int \frac{\cos (1-x)}{1-x} \, dx,x,\tanh (a+b x)\right )}{2 b}-\frac{\sin (1) \operatorname{Subst}\left (\int \frac{\cos (1+x)}{1+x} \, dx,x,\tanh (a+b x)\right )}{2 b}\\ &=-\frac{\text{Ci}(1-\tanh (a+b x)) \sin (1)}{2 b}-\frac{\text{Ci}(1+\tanh (a+b x)) \sin (1)}{2 b}+\frac{\cos (1) \text{Si}(1-\tanh (a+b x))}{2 b}+\frac{\cos (1) \text{Si}(1+\tanh (a+b x))}{2 b}\\ \end{align*}
Mathematica [A] time = 0.125437, size = 59, normalized size = 0.77 \[ -\frac{\sin (1) \text{CosIntegral}(1-\tanh (a+b x))+\sin (1) \text{CosIntegral}(\tanh (a+b x)+1)-\cos (1) (\text{Si}(1-\tanh (a+b x))+\text{Si}(\tanh (a+b x)+1))}{2 b} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A] time = 0.017, size = 58, normalized size = 0.8 \begin{align*}{\frac{1}{b} \left ({\frac{{\it Si} \left ( 1+\tanh \left ( bx+a \right ) \right ) \cos \left ( 1 \right ) }{2}}-{\frac{{\it Ci} \left ( 1+\tanh \left ( bx+a \right ) \right ) \sin \left ( 1 \right ) }{2}}-{\frac{{\it Si} \left ( -1+\tanh \left ( bx+a \right ) \right ) \cos \left ( 1 \right ) }{2}}-{\frac{{\it Ci} \left ( -1+\tanh \left ( bx+a \right ) \right ) \sin \left ( 1 \right ) }{2}} \right ) } \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int \sin \left (\tanh \left (b x + a\right )\right )\,{d x} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [B] time = 2.20098, size = 464, normalized size = 6.03 \begin{align*} -\frac{\operatorname{Ci}\left (\frac{2 \, e^{\left (2 \, b x + 2 \, a\right )}}{e^{\left (2 \, b x + 2 \, a\right )} + 1}\right ) \sin \left (1\right ) + \operatorname{Ci}\left (-\frac{2 \, e^{\left (2 \, b x + 2 \, a\right )}}{e^{\left (2 \, b x + 2 \, a\right )} + 1}\right ) \sin \left (1\right ) + \operatorname{Ci}\left (\frac{2}{e^{\left (2 \, b x + 2 \, a\right )} + 1}\right ) \sin \left (1\right ) + \operatorname{Ci}\left (-\frac{2}{e^{\left (2 \, b x + 2 \, a\right )} + 1}\right ) \sin \left (1\right ) - 2 \, \cos \left (1\right ) \operatorname{Si}\left (\frac{2 \, e^{\left (2 \, b x + 2 \, a\right )}}{e^{\left (2 \, b x + 2 \, a\right )} + 1}\right ) - 2 \, \cos \left (1\right ) \operatorname{Si}\left (\frac{2}{e^{\left (2 \, b x + 2 \, a\right )} + 1}\right )}{4 \, b} \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 \sin{\left (\tanh{\left (a + b x \right )} \right )}\, dx \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int \sin \left (\tanh \left (b x + a\right )\right )\,{d x} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]