Optimal. Leaf size=28 \[ x-\left (7+\frac {1}{4} \left (-3-e^{3-x}-x+\log (3)\right )\right )^2 \]
________________________________________________________________________________________
Rubi [B] time = 0.03, antiderivative size = 57, normalized size of antiderivative = 2.04, number of steps used = 5, number of rules used = 3, integrand size = 33, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.091, Rules used = {12, 2194, 2176} \begin {gather*} -\frac {x^2}{16}-\frac {1}{16} e^{6-2 x}-\frac {e^{3-x}}{8}+\frac {1}{8} x (33+\log (3))+\frac {1}{8} e^{3-x} (-x+26+\log (3)) \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 12
Rule 2176
Rule 2194
Rubi steps
\begin {gather*} \begin {aligned} \text {integral} &=\frac {1}{8} \int \left (33+e^{6-2 x}-x+e^{3-x} (-26+x-\log (3))+\log (3)\right ) \, dx\\ &=-\frac {x^2}{16}+\frac {1}{8} x (33+\log (3))+\frac {1}{8} \int e^{6-2 x} \, dx+\frac {1}{8} \int e^{3-x} (-26+x-\log (3)) \, dx\\ &=-\frac {1}{16} e^{6-2 x}-\frac {x^2}{16}+\frac {1}{8} x (33+\log (3))+\frac {1}{8} e^{3-x} (26-x+\log (3))+\frac {1}{8} \int e^{3-x} \, dx\\ &=-\frac {1}{16} e^{6-2 x}-\frac {e^{3-x}}{8}-\frac {x^2}{16}+\frac {1}{8} x (33+\log (3))+\frac {1}{8} e^{3-x} (26-x+\log (3))\\ \end {aligned} \end {gather*}
________________________________________________________________________________________
Mathematica [A] time = 0.07, size = 51, normalized size = 1.82 \begin {gather*} \frac {1}{8} \left (-\frac {1}{2} e^{6-2 x}+33 x-\frac {x^2}{2}+x \log (3)+e^{-x} \left (-e^3 x+e^3 (25+\log (3))\right )\right ) \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [A] time = 0.57, size = 37, normalized size = 1.32 \begin {gather*} -\frac {1}{16} \, x^{2} - \frac {1}{8} \, {\left (x - \log \relax (3) - 25\right )} e^{\left (-x + 3\right )} + \frac {1}{8} \, x \log \relax (3) + \frac {33}{8} \, x - \frac {1}{16} \, e^{\left (-2 \, x + 6\right )} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [A] time = 0.24, size = 37, normalized size = 1.32 \begin {gather*} -\frac {1}{16} \, x^{2} - \frac {1}{8} \, {\left (x - \log \relax (3) - 25\right )} e^{\left (-x + 3\right )} + \frac {1}{8} \, x \log \relax (3) + \frac {33}{8} \, x - \frac {1}{16} \, e^{\left (-2 \, x + 6\right )} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [A] time = 0.05, size = 38, normalized size = 1.36
method | result | size |
risch | \(-\frac {{\mathrm e}^{6-2 x}}{16}+\frac {\left (\ln \relax (3)+25-x \right ) {\mathrm e}^{3-x}}{8}+\frac {x \ln \relax (3)}{8}-\frac {x^{2}}{16}+\frac {33 x}{8}\) | \(38\) |
norman | \(\left (\frac {25}{8}+\frac {\ln \relax (3)}{8}\right ) {\mathrm e}^{3-x}+\left (\frac {\ln \relax (3)}{8}+\frac {33}{8}\right ) x -\frac {x^{2}}{16}-\frac {{\mathrm e}^{6-2 x}}{16}-\frac {x \,{\mathrm e}^{3-x}}{8}\) | \(47\) |
default | \(\frac {33 x}{8}-\frac {x^{2}}{16}-\frac {{\mathrm e}^{6-2 x}}{16}+\frac {{\mathrm e}^{3-x} \left (3-x \right )}{8}+\frac {11 \,{\mathrm e}^{3-x}}{4}+\frac {{\mathrm e}^{3-x} \ln \relax (3)}{8}+\frac {x \ln \relax (3)}{8}\) | \(56\) |
derivativedivides | \(-\frac {45}{4}+\frac {15 x}{4}-\frac {\left (3-x \right )^{2}}{16}-\frac {{\mathrm e}^{6-2 x}}{16}+\frac {{\mathrm e}^{3-x} \left (3-x \right )}{8}+\frac {11 \,{\mathrm e}^{3-x}}{4}+\frac {{\mathrm e}^{3-x} \ln \relax (3)}{8}-\frac {\ln \relax (3) \left (3-x \right )}{8}\) | \(65\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [B] time = 0.46, size = 41, normalized size = 1.46 \begin {gather*} -\frac {1}{16} \, x^{2} - \frac {1}{8} \, {\left (x e^{3} - {\left (\log \relax (3) + 25\right )} e^{3}\right )} e^{\left (-x\right )} + \frac {1}{8} \, x \log \relax (3) + \frac {33}{8} \, x - \frac {1}{16} \, e^{\left (-2 \, x + 6\right )} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [B] time = 3.24, size = 44, normalized size = 1.57 \begin {gather*} x\,\left (\frac {\ln \relax (3)}{8}+\frac {33}{8}\right )-\frac {{\mathrm {e}}^{6-2\,x}}{16}+{\mathrm {e}}^{3-x}\,\left (\frac {\ln \relax (3)}{8}+\frac {25}{8}\right )-\frac {x\,{\mathrm {e}}^{3-x}}{8}-\frac {x^2}{16} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [A] time = 0.14, size = 39, normalized size = 1.39 \begin {gather*} - \frac {x^{2}}{16} + x \left (\frac {\log {\relax (3 )}}{8} + \frac {33}{8}\right ) + \frac {\left (- 16 x + 16 \log {\relax (3 )} + 400\right ) e^{3 - x}}{128} - \frac {e^{6 - 2 x}}{16} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________