Integrand size = 11, antiderivative size = 17 \[ \int \frac {\sinh (x)}{a+a \text {sech}(x)} \, dx=\frac {\cosh (x)}{a}-\frac {\log (1+\cosh (x))}{a} \]
[Out]
Time = 0.05 (sec) , antiderivative size = 17, normalized size of antiderivative = 1.00, number of steps used = 5, number of rules used = 4, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.364, Rules used = {3957, 2912, 12, 45} \[ \int \frac {\sinh (x)}{a+a \text {sech}(x)} \, dx=\frac {\cosh (x)}{a}-\frac {\log (\cosh (x)+1)}{a} \]
[In]
[Out]
Rule 12
Rule 45
Rule 2912
Rule 3957
Rubi steps \begin{align*} \text {integral}& = -\int \frac {\cosh (x) \sinh (x)}{-a-a \cosh (x)} \, dx \\ & = -\frac {\text {Subst}\left (\int \frac {x}{a (-a+x)} \, dx,x,-a \cosh (x)\right )}{a} \\ & = -\frac {\text {Subst}\left (\int \frac {x}{-a+x} \, dx,x,-a \cosh (x)\right )}{a^2} \\ & = -\frac {\text {Subst}\left (\int \left (1-\frac {a}{a-x}\right ) \, dx,x,-a \cosh (x)\right )}{a^2} \\ & = \frac {\cosh (x)}{a}-\frac {\log (1+\cosh (x))}{a} \\ \end{align*}
Time = 0.02 (sec) , antiderivative size = 16, normalized size of antiderivative = 0.94 \[ \int \frac {\sinh (x)}{a+a \text {sech}(x)} \, dx=\frac {\cosh (x)-2 \log \left (\cosh \left (\frac {x}{2}\right )\right )}{a} \]
[In]
[Out]
Time = 0.25 (sec) , antiderivative size = 23, normalized size of antiderivative = 1.35
method | result | size |
derivativedivides | \(-\frac {\ln \left (1+\operatorname {sech}\left (x \right )\right )-\frac {1}{\operatorname {sech}\left (x \right )}-\ln \left (\operatorname {sech}\left (x \right )\right )}{a}\) | \(23\) |
default | \(-\frac {\ln \left (1+\operatorname {sech}\left (x \right )\right )-\frac {1}{\operatorname {sech}\left (x \right )}-\ln \left (\operatorname {sech}\left (x \right )\right )}{a}\) | \(23\) |
risch | \(\frac {x}{a}+\frac {{\mathrm e}^{x}}{2 a}+\frac {{\mathrm e}^{-x}}{2 a}-\frac {2 \ln \left ({\mathrm e}^{x}+1\right )}{a}\) | \(33\) |
[In]
[Out]
Leaf count of result is larger than twice the leaf count of optimal. 50 vs. \(2 (17) = 34\).
Time = 0.25 (sec) , antiderivative size = 50, normalized size of antiderivative = 2.94 \[ \int \frac {\sinh (x)}{a+a \text {sech}(x)} \, dx=\frac {2 \, x \cosh \left (x\right ) + \cosh \left (x\right )^{2} - 4 \, {\left (\cosh \left (x\right ) + \sinh \left (x\right )\right )} \log \left (\cosh \left (x\right ) + \sinh \left (x\right ) + 1\right ) + 2 \, {\left (x + \cosh \left (x\right )\right )} \sinh \left (x\right ) + \sinh \left (x\right )^{2} + 1}{2 \, {\left (a \cosh \left (x\right ) + a \sinh \left (x\right )\right )}} \]
[In]
[Out]
\[ \int \frac {\sinh (x)}{a+a \text {sech}(x)} \, dx=\frac {\int \frac {\sinh {\left (x \right )}}{\operatorname {sech}{\left (x \right )} + 1}\, dx}{a} \]
[In]
[Out]
Leaf count of result is larger than twice the leaf count of optimal. 35 vs. \(2 (17) = 34\).
Time = 0.20 (sec) , antiderivative size = 35, normalized size of antiderivative = 2.06 \[ \int \frac {\sinh (x)}{a+a \text {sech}(x)} \, dx=-\frac {x}{a} + \frac {e^{\left (-x\right )}}{2 \, a} + \frac {e^{x}}{2 \, a} - \frac {2 \, \log \left (e^{\left (-x\right )} + 1\right )}{a} \]
[In]
[Out]
none
Time = 0.28 (sec) , antiderivative size = 32, normalized size of antiderivative = 1.88 \[ \int \frac {\sinh (x)}{a+a \text {sech}(x)} \, dx=\frac {x}{a} + \frac {e^{\left (-x\right )}}{2 \, a} + \frac {e^{x}}{2 \, a} - \frac {2 \, \log \left (e^{x} + 1\right )}{a} \]
[In]
[Out]
Time = 0.06 (sec) , antiderivative size = 15, normalized size of antiderivative = 0.88 \[ \int \frac {\sinh (x)}{a+a \text {sech}(x)} \, dx=-\frac {\ln \left (\mathrm {cosh}\left (x\right )+1\right )-\mathrm {cosh}\left (x\right )}{a} \]
[In]
[Out]