Optimal. Leaf size=26 \[ 3-x+x^2-\left (2+\log \left (3-e^{e^x}+\log (3)\right )\right )^2 \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.64, antiderivative size = 25, normalized size of antiderivative = 0.96, number of steps
used = 7, number of rules used = 5, integrand size = 64, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.078, Rules used = {6873, 6874,
2320, 2437, 2338} \begin {gather*} x^2-x-\left (\log \left (-e^{e^x}+3+\log (3)\right )+2\right )^2 \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 2320
Rule 2338
Rule 2437
Rule 6873
Rule 6874
Rubi steps
\begin {gather*} \begin {aligned} \text {integral} &=\int \frac {3-6 x+e^{e^x} \left (-1-4 e^x+2 x\right )+(1-2 x) \log (3)-2 e^{e^x+x} \log \left (3-e^{e^x}+\log (3)\right )}{e^{e^x}-3 \left (1+\frac {\log (3)}{3}\right )} \, dx\\ &=\int \left (-1+2 x+\frac {2 e^{e^x+x} \left (-2-\log \left (3-e^{e^x}+\log (3)\right )\right )}{e^{e^x}-3 \left (1+\frac {\log (3)}{3}\right )}\right ) \, dx\\ &=-x+x^2+2 \int \frac {e^{e^x+x} \left (-2-\log \left (3-e^{e^x}+\log (3)\right )\right )}{e^{e^x}-3 \left (1+\frac {\log (3)}{3}\right )} \, dx\\ &=-x+x^2+2 \text {Subst}\left (\int \frac {e^x \left (-2-\log \left (3-e^x+\log (3)\right )\right )}{e^x-3 \left (1+\frac {\log (3)}{3}\right )} \, dx,x,e^x\right )\\ &=-x+x^2+2 \text {Subst}\left (\int \frac {2+\log (3-x+\log (3))}{3-x+\log (3)} \, dx,x,e^{e^x}\right )\\ &=-x+x^2-2 \text {Subst}\left (\int \frac {2+\log (x)}{x} \, dx,x,3-e^{e^x}+\log (3)\right )\\ &=-x+x^2-\left (2+\log \left (3-e^{e^x}+\log (3)\right )\right )^2\\ \end {aligned} \end {gather*}
________________________________________________________________________________________
Mathematica [A]
time = 0.27, size = 46, normalized size = 1.77 \begin {gather*} (-1+x) x-\frac {(12+\log (81)) \log \left (3-e^{e^x}+\log (3)\right )}{3+\log (3)}-\log ^2\left (3-e^{e^x}+\log (3)\right ) \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A]
time = 9.43, size = 34, normalized size = 1.31
method | result | size |
default | \(x^{2}-x -\ln \left (-{\mathrm e}^{{\mathrm e}^{x}}+3+\ln \left (3\right )\right )^{2}-4 \ln \left (-{\mathrm e}^{{\mathrm e}^{x}}+3+\ln \left (3\right )\right )\) | \(34\) |
norman | \(x^{2}-x -\ln \left (-{\mathrm e}^{{\mathrm e}^{x}}+3+\ln \left (3\right )\right )^{2}-4 \ln \left (-{\mathrm e}^{{\mathrm e}^{x}}+3+\ln \left (3\right )\right )\) | \(34\) |
risch | \(-\ln \left (-{\mathrm e}^{{\mathrm e}^{x}}+3+\ln \left (3\right )\right )^{2}+x^{2}-x -4 \ln \left ({\mathrm e}^{{\mathrm e}^{x}}-\ln \left (3\right )-3\right )\) | \(34\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A]
time = 0.54, size = 33, normalized size = 1.27 \begin {gather*} x^{2} - \log \left (-e^{\left (e^{x}\right )} + \log \left (3\right ) + 3\right )^{2} - x - 4 \, \log \left (-e^{\left (e^{x}\right )} + \log \left (3\right ) + 3\right ) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [B] Leaf count of result is larger than twice the leaf count of optimal. 55 vs.
\(2 (24) = 48\).
time = 0.36, size = 55, normalized size = 2.12 \begin {gather*} x^{2} - \log \left ({\left ({\left (\log \left (3\right ) + 3\right )} e^{x} - e^{\left (x + e^{x}\right )}\right )} e^{\left (-x\right )}\right )^{2} - x - 4 \, \log \left ({\left ({\left (\log \left (3\right ) + 3\right )} e^{x} - e^{\left (x + e^{x}\right )}\right )} e^{\left (-x\right )}\right ) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [A]
time = 0.20, size = 31, normalized size = 1.19 \begin {gather*} x^{2} - x - \log {\left (- e^{e^{x}} + \log {\left (3 \right )} + 3 \right )}^{2} - 4 \log {\left (e^{e^{x}} - 3 - \log {\left (3 \right )} \right )} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A]
time = 0.40, size = 33, normalized size = 1.27 \begin {gather*} x^{2} - \log \left (-e^{\left (e^{x}\right )} + \log \left (3\right ) + 3\right )^{2} - x - 4 \, \log \left (-e^{\left (e^{x}\right )} + \log \left (3\right ) + 3\right ) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [B]
time = 3.93, size = 43, normalized size = 1.65 \begin {gather*} x^2-{\ln \left (\ln \left (3\right )-{\mathrm {e}}^{{\mathrm {e}}^x}+3\right )}^2-x-\frac {\ln \left ({\mathrm {e}}^{{\mathrm {e}}^x}-\ln \left (3\right )-3\right )\,\left (\ln \left (81\right )+12\right )}{\ln \left (3\right )+3} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________