Optimal. Leaf size=20 \[ \frac {i x}{2}+\cosh (x)-\frac {1}{2} i \sinh (x) \cosh (x) \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.09, antiderivative size = 20, normalized size of antiderivative = 1.00, number of steps used = 5, number of rules used = 5, integrand size = 13, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.385, Rules used = {3872, 2839, 2638, 2635, 8} \[ \frac {i x}{2}+\cosh (x)-\frac {1}{2} i \sinh (x) \cosh (x) \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 8
Rule 2635
Rule 2638
Rule 2839
Rule 3872
Rubi steps
\begin {align*} \int \frac {\cosh ^2(x)}{i+\text {csch}(x)} \, dx &=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*}
________________________________________________________________________________________
Mathematica [A] time = 0.03, size = 20, normalized size = 1.00 \[ \frac {i x}{2}-\frac {1}{4} i \sinh (2 x)+\cosh (x) \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [B] time = 0.46, size = 31, normalized size = 1.55 \[ \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 )} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [B] time = 0.14, size = 26, normalized size = 1.30 \[ \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} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [B] time = 0.12, size = 84, normalized size = 4.20 \[ -\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}{\tanh \left (\frac {x}{2}\right )-1}-\frac {i}{2 \left (\tanh \left (\frac {x}{2}\right )-1\right )}+\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}{\tanh \left (\frac {x}{2}\right )+1}-\frac {i}{2 \left (\tanh \left (\frac {x}{2}\right )+1\right )} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [B] time = 0.30, size = 30, normalized size = 1.50 \[ \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 )} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [B] time = 1.46, size = 29, normalized size = 1.45 \[ \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} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [F] time = 0.00, size = 0, normalized size = 0.00 \[ \int \frac {\cosh ^{2}{\relax (x )}}{\operatorname {csch}{\relax (x )} + i}\, dx \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________