3.94.46 \(\int \frac {1}{15} (-4+42 x+75 x^2+e^4 (-4+50 x)) \, dx\) [9346]

Optimal. Leaf size=18 \[ \frac {1}{3} x \left (1+e^4+x\right ) \left (-\frac {4}{5}+5 x\right ) \]

[Out]

(1/3*exp(4)+1/3*x+1/3)*x*(5*x-4/5)

________________________________________________________________________________________

Rubi [A]
time = 0.01, antiderivative size = 34, normalized size of antiderivative = 1.89, number of steps used = 2, number of rules used = 1, integrand size = 23, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.043, Rules used = {12} \begin {gather*} \frac {5 x^3}{3}+\frac {7 x^2}{5}-\frac {4 x}{15}+\frac {1}{375} e^4 (2-25 x)^2 \end {gather*}

Antiderivative was successfully verified.

[In]

Int[(-4 + 42*x + 75*x^2 + E^4*(-4 + 50*x))/15,x]

[Out]

(E^4*(2 - 25*x)^2)/375 - (4*x)/15 + (7*x^2)/5 + (5*x^3)/3

Rule 12

Int[(a_)*(u_), x_Symbol] :> Dist[a, Int[u, x], x] /; FreeQ[a, x] &&  !MatchQ[u, (b_)*(v_) /; FreeQ[b, x]]

Rubi steps

\begin {gather*} \begin {aligned} \text {integral} &=\frac {1}{15} \int \left (-4+42 x+75 x^2+e^4 (-4+50 x)\right ) \, dx\\ &=\frac {1}{375} e^4 (2-25 x)^2-\frac {4 x}{15}+\frac {7 x^2}{5}+\frac {5 x^3}{3}\\ \end {aligned} \end {gather*}

________________________________________________________________________________________

Mathematica [A]
time = 0.00, size = 32, normalized size = 1.78 \begin {gather*} \frac {1}{15} \left (-4 x-4 e^4 x+21 x^2+25 e^4 x^2+25 x^3\right ) \end {gather*}

Antiderivative was successfully verified.

[In]

Integrate[(-4 + 42*x + 75*x^2 + E^4*(-4 + 50*x))/15,x]

[Out]

(-4*x - 4*E^4*x + 21*x^2 + 25*E^4*x^2 + 25*x^3)/15

________________________________________________________________________________________

Maple [A]
time = 0.31, size = 27, normalized size = 1.50

method result size
gosper \(\frac {x \left (25 x \,{\mathrm e}^{4}+25 x^{2}-4 \,{\mathrm e}^{4}+21 x -4\right )}{15}\) \(23\)
norman \(\left (-\frac {4 \,{\mathrm e}^{4}}{15}-\frac {4}{15}\right ) x +\left (\frac {5 \,{\mathrm e}^{4}}{3}+\frac {7}{5}\right ) x^{2}+\frac {5 x^{3}}{3}\) \(25\)
default \(\frac {5 x^{2} {\mathrm e}^{4}}{3}-\frac {4 x \,{\mathrm e}^{4}}{15}+\frac {5 x^{3}}{3}+\frac {7 x^{2}}{5}-\frac {4 x}{15}\) \(27\)
risch \(\frac {5 x^{2} {\mathrm e}^{4}}{3}-\frac {4 x \,{\mathrm e}^{4}}{15}+\frac {5 x^{3}}{3}+\frac {7 x^{2}}{5}-\frac {4 x}{15}\) \(27\)

Verification of antiderivative is not currently implemented for this CAS.

[In]

int(1/15*(50*x-4)*exp(4)+5*x^2+14/5*x-4/15,x,method=_RETURNVERBOSE)

[Out]

5/3*x^2*exp(4)-4/15*x*exp(4)+5/3*x^3+7/5*x^2-4/15*x

________________________________________________________________________________________

Maxima [B] Leaf count of result is larger than twice the leaf count of optimal. 27 vs. \(2 (13) = 26\).
time = 0.26, size = 27, normalized size = 1.50 \begin {gather*} \frac {5}{3} \, x^{3} + \frac {7}{5} \, x^{2} + \frac {1}{15} \, {\left (25 \, x^{2} - 4 \, x\right )} e^{4} - \frac {4}{15} \, x \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(1/15*(50*x-4)*exp(4)+5*x^2+14/5*x-4/15,x, algorithm="maxima")

[Out]

5/3*x^3 + 7/5*x^2 + 1/15*(25*x^2 - 4*x)*e^4 - 4/15*x

________________________________________________________________________________________

Fricas [B] Leaf count of result is larger than twice the leaf count of optimal. 27 vs. \(2 (13) = 26\).
time = 0.36, size = 27, normalized size = 1.50 \begin {gather*} \frac {5}{3} \, x^{3} + \frac {7}{5} \, x^{2} + \frac {1}{15} \, {\left (25 \, x^{2} - 4 \, x\right )} e^{4} - \frac {4}{15} \, x \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(1/15*(50*x-4)*exp(4)+5*x^2+14/5*x-4/15,x, algorithm="fricas")

[Out]

5/3*x^3 + 7/5*x^2 + 1/15*(25*x^2 - 4*x)*e^4 - 4/15*x

________________________________________________________________________________________

Sympy [A]
time = 0.01, size = 32, normalized size = 1.78 \begin {gather*} \frac {5 x^{3}}{3} + x^{2} \cdot \left (\frac {7}{5} + \frac {5 e^{4}}{3}\right ) + x \left (- \frac {4 e^{4}}{15} - \frac {4}{15}\right ) \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(1/15*(50*x-4)*exp(4)+5*x**2+14/5*x-4/15,x)

[Out]

5*x**3/3 + x**2*(7/5 + 5*exp(4)/3) + x*(-4*exp(4)/15 - 4/15)

________________________________________________________________________________________

Giac [B] Leaf count of result is larger than twice the leaf count of optimal. 27 vs. \(2 (13) = 26\).
time = 0.41, size = 27, normalized size = 1.50 \begin {gather*} \frac {5}{3} \, x^{3} + \frac {7}{5} \, x^{2} + \frac {1}{15} \, {\left (25 \, x^{2} - 4 \, x\right )} e^{4} - \frac {4}{15} \, x \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(1/15*(50*x-4)*exp(4)+5*x^2+14/5*x-4/15,x, algorithm="giac")

[Out]

5/3*x^3 + 7/5*x^2 + 1/15*(25*x^2 - 4*x)*e^4 - 4/15*x

________________________________________________________________________________________

Mupad [B]
time = 0.04, size = 13, normalized size = 0.72 \begin {gather*} \frac {x\,\left (25\,x-4\right )\,\left (x+{\mathrm {e}}^4+1\right )}{15} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

int((14*x)/5 + 5*x^2 + (exp(4)*(50*x - 4))/15 - 4/15,x)

[Out]

(x*(25*x - 4)*(x + exp(4) + 1))/15

________________________________________________________________________________________