Integrand size = 13, antiderivative size = 20 \[ \int \frac {\cosh ^2(x)}{i+\text {csch}(x)} \, dx=\frac {i x}{2}+\cosh (x)-\frac {1}{2} i \cosh (x) \sinh (x) \]
[Out]
Time = 0.06 (sec) , antiderivative size = 20, normalized size of antiderivative = 1.00, number of steps used = 5, number of rules used = 5, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.385, Rules used = {3957, 2918, 2718, 2715, 8} \[ \int \frac {\cosh ^2(x)}{i+\text {csch}(x)} \, dx=\frac {i x}{2}+\cosh (x)-\frac {1}{2} i \sinh (x) \cosh (x) \]
[In]
[Out]
Rule 8
Rule 2715
Rule 2718
Rule 2918
Rule 3957
Rubi steps \begin{align*} \text {integral}& = i \int \frac {\cosh ^2(x) \sinh (x)}{i-\sinh (x)} \, dx \\ & = -\left (i \int \sinh ^2(x) \, dx\right )+\int \sinh (x) \, dx \\ & = \cosh (x)-\frac {1}{2} i \cosh (x) \sinh (x)+\frac {1}{2} i \int 1 \, dx \\ & = \frac {i x}{2}+\cosh (x)-\frac {1}{2} i \cosh (x) \sinh (x) \\ \end{align*}
Time = 0.04 (sec) , antiderivative size = 20, normalized size of antiderivative = 1.00 \[ \int \frac {\cosh ^2(x)}{i+\text {csch}(x)} \, dx=\frac {i x}{2}+\cosh (x)-\frac {1}{4} i \sinh (2 x) \]
[In]
[Out]
Both result and optimal contain complex but leaf count of result is larger than twice the leaf count of optimal. 29 vs. \(2 (14 ) = 28\).
Time = 9.22 (sec) , antiderivative size = 30, normalized size of antiderivative = 1.50
method | result | size |
risch | \(\frac {i x}{2}-\frac {i {\mathrm e}^{2 x}}{8}+\frac {{\mathrm e}^{x}}{2}+\frac {{\mathrm e}^{-x}}{2}+\frac {i {\mathrm e}^{-2 x}}{8}\) | \(30\) |
default | \(-\frac {i \ln \left (\tanh \left (\frac {x}{2}\right )-1\right )}{2}-\frac {i}{2 \left (\tanh \left (\frac {x}{2}\right )-1\right )^{2}}+\frac {-1-\frac {i}{2}}{\tanh \left (\frac {x}{2}\right )-1}+\frac {i}{2 \left (\tanh \left (\frac {x}{2}\right )+1\right )^{2}}+\frac {i \ln \left (\tanh \left (\frac {x}{2}\right )+1\right )}{2}+\frac {1-\frac {i}{2}}{\tanh \left (\frac {x}{2}\right )+1}\) | \(68\) |
[In]
[Out]
Both result and optimal contain complex but leaf count of result is larger than twice the leaf count of optimal. 31 vs. \(2 (12) = 24\).
Time = 0.25 (sec) , antiderivative size = 31, normalized size of antiderivative = 1.55 \[ \int \frac {\cosh ^2(x)}{i+\text {csch}(x)} \, dx=\frac {1}{8} \, {\left (4 i \, x e^{\left (2 \, x\right )} - i \, e^{\left (4 \, x\right )} + 4 \, e^{\left (3 \, x\right )} + 4 \, e^{x} + i\right )} e^{\left (-2 \, x\right )} \]
[In]
[Out]
\[ \int \frac {\cosh ^2(x)}{i+\text {csch}(x)} \, dx=\int \frac {\cosh ^{2}{\left (x \right )}}{\operatorname {csch}{\left (x \right )} + i}\, dx \]
[In]
[Out]
Both result and optimal contain complex but leaf count of result is larger than twice the leaf count of optimal. 30 vs. \(2 (12) = 24\).
Time = 0.17 (sec) , antiderivative size = 30, normalized size of antiderivative = 1.50 \[ \int \frac {\cosh ^2(x)}{i+\text {csch}(x)} \, dx=\frac {1}{8} \, {\left (4 \, e^{\left (-x\right )} - i\right )} e^{\left (2 \, x\right )} + \frac {1}{2} i \, x + \frac {1}{2} \, e^{\left (-x\right )} + \frac {1}{8} i \, e^{\left (-2 \, x\right )} \]
[In]
[Out]
Both result and optimal contain complex but leaf count of result is larger than twice the leaf count of optimal. 26 vs. \(2 (12) = 24\).
Time = 0.28 (sec) , antiderivative size = 26, normalized size of antiderivative = 1.30 \[ \int \frac {\cosh ^2(x)}{i+\text {csch}(x)} \, dx=\frac {1}{8} \, {\left (4 \, e^{x} + i\right )} e^{\left (-2 \, x\right )} + \frac {1}{2} i \, x - \frac {1}{8} i \, e^{\left (2 \, x\right )} + \frac {1}{2} \, e^{x} \]
[In]
[Out]
Time = 2.21 (sec) , antiderivative size = 29, normalized size of antiderivative = 1.45 \[ \int \frac {\cosh ^2(x)}{i+\text {csch}(x)} \, dx=\frac {{\mathrm {e}}^{-x}}{2}+\frac {{\mathrm {e}}^x}{2}+\frac {x\,1{}\mathrm {i}}{2}+\frac {{\mathrm {e}}^{-2\,x}\,1{}\mathrm {i}}{8}-\frac {{\mathrm {e}}^{2\,x}\,1{}\mathrm {i}}{8} \]
[In]
[Out]