Optimal. Leaf size=26 \[ (-1+i) e^{(1+i) x} \, _2F_1\left (1-i,2;2-i;e^{i x}\right ) \]
________________________________________________________________________________________
Rubi [A] time = 0.03, antiderivative size = 26, normalized size of antiderivative = 1.00, number of steps used = 2, number of rules used = 2, integrand size = 12, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.167, Rules used = {4458, 4453} \[ (-1+i) e^{(1+i) x} \text {Hypergeometric2F1}\left (1-i,2,2-i,e^{i x}\right ) \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 4453
Rule 4458
Rubi steps
\begin {align*} \int \frac {e^x}{1-\cos (x)} \, dx &=\frac {1}{2} \int e^x \csc ^2\left (\frac {x}{2}\right ) \, dx\\ &=(-1+i) e^{(1+i) x} \, _2F_1\left (1-i,2;2-i;e^{i x}\right )\\ \end {align*}
________________________________________________________________________________________
Mathematica [B] time = 0.08, size = 84, normalized size = 3.23 \[ \frac {(1+i) e^x \sin \left (\frac {x}{2}\right ) \left ((1+i) \, _2F_1\left (-i,1;1-i;e^{i x}\right ) \sin \left (\frac {x}{2}\right )+e^{i x} \, _2F_1\left (1,1-i;2-i;e^{i x}\right ) \sin \left (\frac {x}{2}\right )+(1-i) \cos \left (\frac {x}{2}\right )\right )}{\cos (x)-1} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
IntegrateAlgebraic [F] time = 0.00, size = 0, normalized size = 0.00 \[ \int \frac {e^x}{1-\cos (x)} \, dx \]
Verification is Not applicable to the result.
[In]
[Out]
________________________________________________________________________________________
fricas [F] time = 1.15, size = 0, normalized size = 0.00 \[ {\rm integral}\left (-\frac {e^{x}}{\cos \relax (x) - 1}, x\right ) \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [F] time = 0.00, size = 0, normalized size = 0.00 \[ \int -\frac {e^{x}}{\cos \relax (x) - 1}\,{d x} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [F] time = 0.02, size = 0, normalized size = 0.00 \[\int \frac {{\mathrm e}^{x}}{1-\cos \relax (x )}\, dx\]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [F] time = 0.00, size = 0, normalized size = 0.00 \[ \frac {2 \, {\left ({\left (\cos \relax (x)^{2} + \sin \relax (x)^{2} - 2 \, \cos \relax (x) + 1\right )} \int \frac {e^{x} \sin \relax (x)}{\cos \relax (x)^{2} + \sin \relax (x)^{2} - 2 \, \cos \relax (x) + 1}\,{d x} - e^{x} \sin \relax (x)\right )}}{\cos \relax (x)^{2} + \sin \relax (x)^{2} - 2 \, \cos \relax (x) + 1} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [F] time = 0.00, size = -1, normalized size = -0.04 \[ -\int \frac {{\mathrm {e}}^x}{\cos \relax (x)-1} \,d x \]
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}}{\cos {\relax (x )} - 1}\, dx \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________