Optimal. Leaf size=21 \[ -\frac {e^{a x}}{a^2}+\frac {e^{a x} x}{a} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.01, antiderivative size = 21, normalized size of antiderivative = 1.00, number of steps
used = 2, number of rules used = 2, integrand size = 7, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.286, Rules used = {2207, 2225}
\begin {gather*} \frac {x e^{a x}}{a}-\frac {e^{a x}}{a^2} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 2207
Rule 2225
Rubi steps
\begin {align*} \int e^{a x} x \, dx &=\frac {e^{a x} x}{a}-\frac {\int e^{a x} \, dx}{a}\\ &=-\frac {e^{a x}}{a^2}+\frac {e^{a x} x}{a}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.01, size = 14, normalized size = 0.67 \begin {gather*} \frac {e^{a x} (-1+a x)}{a^2} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Mathics [C] Result contains higher order function than in optimal. Order 9 vs. order 3 in
optimal.
time = 1.95, size = 27, normalized size = 1.29 \begin {gather*} \text {Piecewise}\left [\left \{\left \{\frac {\left (-1+a x\right ) E^{a x}}{a^2},a^2\text {!=}0\right \}\right \},\frac {x^2}{2}\right ] \end {gather*}
Warning: Unable to verify antiderivative.
[In]
[Out]
________________________________________________________________________________________
Maple [A]
time = 0.01, size = 19, normalized size = 0.90
method | result | size |
gosper | \(\frac {\left (a x -1\right ) {\mathrm e}^{a x}}{a^{2}}\) | \(14\) |
risch | \(\frac {\left (a x -1\right ) {\mathrm e}^{a x}}{a^{2}}\) | \(14\) |
derivativedivides | \(\frac {a \,{\mathrm e}^{a x} x -{\mathrm e}^{a x}}{a^{2}}\) | \(19\) |
default | \(\frac {a \,{\mathrm e}^{a x} x -{\mathrm e}^{a x}}{a^{2}}\) | \(19\) |
meijerg | \(\frac {1-\frac {\left (-2 a x +2\right ) {\mathrm e}^{a x}}{2}}{a^{2}}\) | \(19\) |
norman | \(-\frac {{\mathrm e}^{a x}}{a^{2}}+\frac {{\mathrm e}^{a x} x}{a}\) | \(20\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A]
time = 0.26, size = 13, normalized size = 0.62 \begin {gather*} \frac {{\left (a x - 1\right )} e^{\left (a x\right )}}{a^{2}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A]
time = 0.31, size = 13, normalized size = 0.62 \begin {gather*} \frac {{\left (a x - 1\right )} e^{\left (a x\right )}}{a^{2}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [A]
time = 0.05, size = 19, normalized size = 0.90 \begin {gather*} \begin {cases} \frac {\left (a x - 1\right ) e^{a x}}{a^{2}} & \text {for}\: a^{2} \neq 0 \\\frac {x^{2}}{2} & \text {otherwise} \end {cases} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A]
time = 0.00, size = 14, normalized size = 0.67 \begin {gather*} \frac {\left (x a-1\right ) \mathrm {e}^{a x}}{a^{2}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [B]
time = 0.03, size = 13, normalized size = 0.62 \begin {gather*} \frac {{\mathrm {e}}^{a\,x}\,\left (a\,x-1\right )}{a^2} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________