Optimal. Leaf size=64 \[ 2 e^{a+b x+c x^2}-2 e^{a+b x+c x^2} \left (a+b x+c x^2\right )+e^{a+b x+c x^2} \left (a+b x+c x^2\right )^2 \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.11, antiderivative size = 64, normalized size of antiderivative = 1.00, number of steps
used = 4, number of rules used = 3, integrand size = 31, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.097, Rules used = {6839, 2207,
2225} \begin {gather*} e^{a+b x+c x^2} \left (a+b x+c x^2\right )^2-2 e^{a+b x+c x^2} \left (a+b x+c x^2\right )+2 e^{a+b x+c x^2} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 2207
Rule 2225
Rule 6839
Rubi steps
\begin {align*} \int e^{a+b x+c x^2} (b+2 c x) \left (a+b x+c x^2\right )^2 \, dx &=\text {Subst}\left (\int e^x x^2 \, dx,x,a+b x+c x^2\right )\\ &=e^{a+b x+c x^2} \left (a+b x+c x^2\right )^2-2 \text {Subst}\left (\int e^x x \, dx,x,a+b x+c x^2\right )\\ &=-2 e^{a+b x+c x^2} \left (a+b x+c x^2\right )+e^{a+b x+c x^2} \left (a+b x+c x^2\right )^2+2 \text {Subst}\left (\int e^x \, dx,x,a+b x+c x^2\right )\\ &=2 e^{a+b x+c x^2}-2 e^{a+b x+c x^2} \left (a+b x+c x^2\right )+e^{a+b x+c x^2} \left (a+b x+c x^2\right )^2\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.11, size = 36, normalized size = 0.56 \begin {gather*} e^{a+x (b+c x)} \left (2-2 (a+x (b+c x))+(a+x (b+c x))^2\right ) \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A]
time = 0.11, size = 62, normalized size = 0.97
method | result | size |
derivativedivides | \(2 \,{\mathrm e}^{c \,x^{2}+b x +a}-2 \,{\mathrm e}^{c \,x^{2}+b x +a} \left (c \,x^{2}+b x +a \right )+{\mathrm e}^{c \,x^{2}+b x +a} \left (c \,x^{2}+b x +a \right )^{2}\) | \(62\) |
default | \(2 \,{\mathrm e}^{c \,x^{2}+b x +a}-2 \,{\mathrm e}^{c \,x^{2}+b x +a} \left (c \,x^{2}+b x +a \right )+{\mathrm e}^{c \,x^{2}+b x +a} \left (c \,x^{2}+b x +a \right )^{2}\) | \(62\) |
gosper | \(\left (c^{2} x^{4}+2 b c \,x^{3}+2 a c \,x^{2}+b^{2} x^{2}+2 a b x -2 c \,x^{2}+a^{2}-2 b x -2 a +2\right ) {\mathrm e}^{c \,x^{2}+b x +a}\) | \(64\) |
risch | \(\left (c^{2} x^{4}+2 b c \,x^{3}+2 a c \,x^{2}+b^{2} x^{2}+2 a b x -2 c \,x^{2}+a^{2}-2 b x -2 a +2\right ) {\mathrm e}^{c \,x^{2}+b x +a}\) | \(64\) |
norman | \(\left (a^{2}-2 a +2\right ) {\mathrm e}^{c \,x^{2}+b x +a}+c^{2} x^{4} {\mathrm e}^{c \,x^{2}+b x +a}+\left (2 b a -2 b \right ) x \,{\mathrm e}^{c \,x^{2}+b x +a}+\left (2 c a +b^{2}-2 c \right ) x^{2} {\mathrm e}^{c \,x^{2}+b x +a}+2 b c \,x^{3} {\mathrm e}^{c \,x^{2}+b x +a}\) | \(105\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [C] Result contains higher order function than in optimal. Order 4 vs. order
3.
time = 0.60, size = 1223, normalized size = 19.11 \begin {gather*} \text {Too large to display} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A]
time = 0.39, size = 55, normalized size = 0.86 \begin {gather*} {\left (c^{2} x^{4} + 2 \, b c x^{3} + 2 \, {\left (a - 1\right )} b x + {\left (b^{2} + 2 \, {\left (a - 1\right )} c\right )} x^{2} + a^{2} - 2 \, a + 2\right )} e^{\left (c x^{2} + b x + a\right )} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [A]
time = 0.08, size = 68, normalized size = 1.06 \begin {gather*} \left (a^{2} + 2 a b x + 2 a c x^{2} - 2 a + b^{2} x^{2} + 2 b c x^{3} - 2 b x + c^{2} x^{4} - 2 c x^{2} + 2\right ) e^{a + b x + c x^{2}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A]
time = 3.30, size = 42, normalized size = 0.66 \begin {gather*} -{\left (2 \, c x^{2} - {\left (c x^{2} + b x + a\right )}^{2} + 2 \, b x + 2 \, a - 2\right )} e^{\left (c x^{2} + b x + a\right )} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [B]
time = 3.61, size = 64, normalized size = 1.00 \begin {gather*} {\mathrm {e}}^{b\,x}\,{\mathrm {e}}^a\,{\mathrm {e}}^{c\,x^2}\,\left (a^2+2\,a\,b\,x+2\,a\,c\,x^2-2\,a+b^2\,x^2+2\,b\,c\,x^3-2\,b\,x+c^2\,x^4-2\,c\,x^2+2\right ) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________