Optimal. Leaf size=26 \[ -x+5 \left (e^3-\log \left (4 (3-x) \log \left (-1+e^x\right )\right )\right ) \]
________________________________________________________________________________________
Rubi [A] time = 0.28, antiderivative size = 21, normalized size of antiderivative = 0.81, number of steps used = 8, number of rules used = 6, integrand size = 52, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.115, Rules used = {6688, 43, 2282, 2390, 2302, 29} \begin {gather*} -x-5 \log (3-x)-5 \log \left (\log \left (e^x-1\right )\right ) \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 29
Rule 43
Rule 2282
Rule 2302
Rule 2390
Rule 6688
Rubi steps
\begin {gather*} \begin {aligned} \text {integral} &=\int \left (\frac {2+x}{3-x}-\frac {5 e^x}{\left (-1+e^x\right ) \log \left (-1+e^x\right )}\right ) \, dx\\ &=-\left (5 \int \frac {e^x}{\left (-1+e^x\right ) \log \left (-1+e^x\right )} \, dx\right )+\int \frac {2+x}{3-x} \, dx\\ &=-\left (5 \operatorname {Subst}\left (\int \frac {1}{(-1+x) \log (-1+x)} \, dx,x,e^x\right )\right )+\int \left (-1-\frac {5}{-3+x}\right ) \, dx\\ &=-x-5 \log (3-x)-5 \operatorname {Subst}\left (\int \frac {1}{x \log (x)} \, dx,x,-1+e^x\right )\\ &=-x-5 \log (3-x)-5 \operatorname {Subst}\left (\int \frac {1}{x} \, dx,x,\log \left (-1+e^x\right )\right )\\ &=-x-5 \log (3-x)-5 \log \left (\log \left (-1+e^x\right )\right )\\ \end {aligned} \end {gather*}
________________________________________________________________________________________
Mathematica [A] time = 0.04, size = 21, normalized size = 0.81 \begin {gather*} -x-5 \log (3-x)-5 \log \left (\log \left (-1+e^x\right )\right ) \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [A] time = 0.76, size = 18, normalized size = 0.69 \begin {gather*} -x - 5 \, \log \left (x - 3\right ) - 5 \, \log \left (\log \left (e^{x} - 1\right )\right ) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [A] time = 0.29, size = 18, normalized size = 0.69 \begin {gather*} -x - 5 \, \log \left (x - 3\right ) - 5 \, \log \left (\log \left (e^{x} - 1\right )\right ) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [A] time = 0.04, size = 19, normalized size = 0.73
method | result | size |
norman | \(-x -5 \ln \left (\ln \left ({\mathrm e}^{x}-1\right )\right )-5 \ln \left (x -3\right )\) | \(19\) |
risch | \(-x -5 \ln \left (\ln \left ({\mathrm e}^{x}-1\right )\right )-5 \ln \left (x -3\right )\) | \(19\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [A] time = 0.42, size = 18, normalized size = 0.69 \begin {gather*} -x - 5 \, \log \left (x - 3\right ) - 5 \, \log \left (\log \left (e^{x} - 1\right )\right ) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [B] time = 5.92, size = 18, normalized size = 0.69 \begin {gather*} -x-5\,\ln \left (\ln \left ({\mathrm {e}}^x-1\right )\right )-5\,\ln \left (x-3\right ) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [A] time = 0.17, size = 19, normalized size = 0.73 \begin {gather*} - x - 5 \log {\left (x - 3 \right )} - 5 \log {\left (\log {\left (e^{x} - 1 \right )} \right )} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________