Optimal. Leaf size=22 \[ -\frac {2}{1-e^x}-2 \log \left (1-e^x\right ) \]
________________________________________________________________________________________
Rubi [A] time = 0.02, antiderivative size = 22, normalized size of antiderivative = 1.00, number of steps used = 4, number of rules used = 3, integrand size = 12, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.250, Rules used = {2282, 12, 43} \[ -\frac {2}{1-e^x}-2 \log \left (1-e^x\right ) \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 12
Rule 43
Rule 2282
Rubi steps
\begin {align*} \int \frac {e^x}{1-\cosh (x)} \, dx &=\operatorname {Subst}\left (\int -\frac {2 x}{(1-x)^2} \, dx,x,e^x\right )\\ &=-\left (2 \operatorname {Subst}\left (\int \frac {x}{(1-x)^2} \, dx,x,e^x\right )\right )\\ &=-\left (2 \operatorname {Subst}\left (\int \left (\frac {1}{(-1+x)^2}+\frac {1}{-1+x}\right ) \, dx,x,e^x\right )\right )\\ &=-\frac {2}{1-e^x}-2 \log \left (1-e^x\right )\\ \end {align*}
________________________________________________________________________________________
Mathematica [A] time = 0.04, size = 36, normalized size = 1.64 \[ \frac {4 \left (\frac {1}{1-e^x}+\log \left (1-e^x\right )\right ) \sinh ^2\left (\frac {x}{2}\right )}{1-\cosh (x)} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
IntegrateAlgebraic [F] time = 0.00, size = 0, normalized size = 0.00 \[ \int \frac {e^x}{1-\cosh (x)} \, dx \]
Verification is Not applicable to the result.
[In]
[Out]
________________________________________________________________________________________
fricas [A] time = 0.96, size = 26, normalized size = 1.18 \[ -\frac {2 \, {\left ({\left (\cosh \relax (x) + \sinh \relax (x) - 1\right )} \log \left (\cosh \relax (x) + \sinh \relax (x) - 1\right ) - 1\right )}}{\cosh \relax (x) + \sinh \relax (x) - 1} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [A] time = 0.61, size = 17, normalized size = 0.77 \[ \frac {2}{e^{x} - 1} - 2 \, \log \left ({\left | e^{x} - 1 \right |}\right ) \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [A] time = 0.05, size = 17, normalized size = 0.77
method | result | size |
risch | \(\frac {2}{-1+{\mathrm e}^{x}}-2 \ln \left (-1+{\mathrm e}^{x}\right )\) | \(17\) |
default | \(2 \ln \left (\tanh \left (\frac {x}{2}\right )-1\right )+\frac {1}{\tanh \left (\frac {x}{2}\right )}-2 \ln \left (\tanh \left (\frac {x}{2}\right )\right )\) | \(24\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [A] time = 0.46, size = 16, normalized size = 0.73 \[ \frac {2}{e^{x} - 1} - 2 \, \log \left (e^{x} - 1\right ) \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [B] time = 0.06, size = 16, normalized size = 0.73 \[ \frac {2}{{\mathrm {e}}^x-1}-2\,\ln \left ({\mathrm {e}}^x-1\right ) \]
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 {e^{x}}{\cosh {\relax (x )} - 1}\, dx \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________