\(\int \frac {x+e^5 (-9-23 x-7 x^2)+e^5 (-6 x-2 x^2) \log (x)}{e^5 x} \, dx\) [5628]

   Optimal result
   Rubi [A] (verified)
   Mathematica [A] (verified)
   Maple [A] (verified)
   Fricas [A] (verification not implemented)
   Sympy [A] (verification not implemented)
   Maxima [B] (verification not implemented)
   Giac [A] (verification not implemented)
   Mupad [B] (verification not implemented)

Optimal result

Integrand size = 38, antiderivative size = 25 \[ \int \frac {x+e^5 \left (-9-23 x-7 x^2\right )+e^5 \left (-6 x-2 x^2\right ) \log (x)}{e^5 x} \, dx=-16+x+\frac {x}{e^5}-\log ^2(2)-(3+x)^2 (3+\log (x)) \]

[Out]

x-ln(2)^2+x/exp(5)-(3+ln(x))*(3+x)^2-16

Rubi [A] (verified)

Time = 0.03 (sec) , antiderivative size = 43, normalized size of antiderivative = 1.72, number of steps used = 7, number of rules used = 4, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.105, Rules used = {12, 14, 2350, 9} \[ \int \frac {x+e^5 \left (-9-23 x-7 x^2\right )+e^5 \left (-6 x-2 x^2\right ) \log (x)}{e^5 x} \, dx=-\frac {7 x^2}{2}+x^2 (-\log (x))-\left (23-\frac {1}{e^5}\right ) x+\frac {1}{2} (x+6)^2-6 x \log (x)-9 \log (x) \]

[In]

Int[(x + E^5*(-9 - 23*x - 7*x^2) + E^5*(-6*x - 2*x^2)*Log[x])/(E^5*x),x]

[Out]

-((23 - E^(-5))*x) - (7*x^2)/2 + (6 + x)^2/2 - 9*Log[x] - 6*x*Log[x] - x^2*Log[x]

Rule 9

Int[(a_)*((b_) + (c_.)*(x_)), x_Symbol] :> Simp[a*((b + c*x)^2/(2*c)), x] /; FreeQ[{a, b, c}, x]

Rule 12

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

Rule 14

Int[(u_)*((c_.)*(x_))^(m_.), x_Symbol] :> Int[ExpandIntegrand[(c*x)^m*u, x], x] /; FreeQ[{c, m}, x] && SumQ[u]
 &&  !LinearQ[u, x] &&  !MatchQ[u, (a_) + (b_.)*(v_) /; FreeQ[{a, b}, x] && InverseFunctionQ[v]]

Rule 2350

Int[((a_.) + Log[(c_.)*(x_)^(n_.)]*(b_.))*((d_) + (e_.)*(x_)^(r_.))^(q_.), x_Symbol] :> With[{u = IntHide[(d +
 e*x^r)^q, x]}, Dist[a + b*Log[c*x^n], u, x] - Dist[b*n, Int[SimplifyIntegrand[u/x, x], x], x]] /; FreeQ[{a, b
, c, d, e, n, r}, x] && IGtQ[q, 0]

Rubi steps \begin{align*} \text {integral}& = \frac {\int \frac {x+e^5 \left (-9-23 x-7 x^2\right )+e^5 \left (-6 x-2 x^2\right ) \log (x)}{x} \, dx}{e^5} \\ & = \frac {\int \left (\frac {-9 e^5+\left (1-23 e^5\right ) x-7 e^5 x^2}{x}-2 e^5 (3+x) \log (x)\right ) \, dx}{e^5} \\ & = -(2 \int (3+x) \log (x) \, dx)+\frac {\int \frac {-9 e^5+\left (1-23 e^5\right ) x-7 e^5 x^2}{x} \, dx}{e^5} \\ & = -6 x \log (x)-x^2 \log (x)+2 \int \frac {6+x}{2} \, dx+\frac {\int \left (1-23 e^5-\frac {9 e^5}{x}-7 e^5 x\right ) \, dx}{e^5} \\ & = -\left (\left (23-\frac {1}{e^5}\right ) x\right )-\frac {7 x^2}{2}+\frac {1}{2} (6+x)^2-9 \log (x)-6 x \log (x)-x^2 \log (x) \\ \end{align*}

Mathematica [A] (verified)

Time = 0.01 (sec) , antiderivative size = 30, normalized size of antiderivative = 1.20 \[ \int \frac {x+e^5 \left (-9-23 x-7 x^2\right )+e^5 \left (-6 x-2 x^2\right ) \log (x)}{e^5 x} \, dx=-17 x+\frac {x}{e^5}-3 x^2-9 \log (x)-6 x \log (x)-x^2 \log (x) \]

[In]

Integrate[(x + E^5*(-9 - 23*x - 7*x^2) + E^5*(-6*x - 2*x^2)*Log[x])/(E^5*x),x]

[Out]

-17*x + x/E^5 - 3*x^2 - 9*Log[x] - 6*x*Log[x] - x^2*Log[x]

Maple [A] (verified)

Time = 0.11 (sec) , antiderivative size = 26, normalized size of antiderivative = 1.04

method result size
risch \(-\left (6+x \right ) x \ln \left (x \right )-3 x^{2}-17 x +{\mathrm e}^{-5} x -9 \ln \left (x \right )\) \(26\)
parts \(-x^{2} \ln \left (x \right )+{\mathrm e}^{-5} x -6 x \ln \left (x \right )-3 x^{2}-9 \ln \left (x \right )-17 x\) \(32\)
norman \(-9 \ln \left (x \right )-3 x^{2}-6 x \ln \left (x \right )-x^{2} \ln \left (x \right )-{\mathrm e}^{-5} \left (-1+17 \,{\mathrm e}^{5}\right ) x\) \(36\)
parallelrisch \({\mathrm e}^{-5} \left (-x^{2} {\mathrm e}^{5} \ln \left (x \right )-3 x^{2} {\mathrm e}^{5}-6 x \,{\mathrm e}^{5} \ln \left (x \right )-17 x \,{\mathrm e}^{5}-9 \,{\mathrm e}^{5} \ln \left (x \right )+x \right )\) \(42\)
default \({\mathrm e}^{-5} \left (-2 \,{\mathrm e}^{5} \left (\frac {x^{2} \ln \left (x \right )}{2}-\frac {x^{2}}{4}\right )-6 \,{\mathrm e}^{5} \left (x \ln \left (x \right )-x \right )-\frac {7 x^{2} {\mathrm e}^{5}}{2}-23 x \,{\mathrm e}^{5}-9 \,{\mathrm e}^{5} \ln \left (x \right )+x \right )\) \(55\)

[In]

int(((-2*x^2-6*x)*exp(5)*ln(x)+(-7*x^2-23*x-9)*exp(5)+x)/x/exp(5),x,method=_RETURNVERBOSE)

[Out]

-(6+x)*x*ln(x)-3*x^2-17*x+exp(-5)*x-9*ln(x)

Fricas [A] (verification not implemented)

none

Time = 0.26 (sec) , antiderivative size = 33, normalized size of antiderivative = 1.32 \[ \int \frac {x+e^5 \left (-9-23 x-7 x^2\right )+e^5 \left (-6 x-2 x^2\right ) \log (x)}{e^5 x} \, dx=-{\left ({\left (x^{2} + 6 \, x + 9\right )} e^{5} \log \left (x\right ) + {\left (3 \, x^{2} + 17 \, x\right )} e^{5} - x\right )} e^{\left (-5\right )} \]

[In]

integrate(((-2*x^2-6*x)*exp(5)*log(x)+(-7*x^2-23*x-9)*exp(5)+x)/x/exp(5),x, algorithm="fricas")

[Out]

-((x^2 + 6*x + 9)*e^5*log(x) + (3*x^2 + 17*x)*e^5 - x)*e^(-5)

Sympy [A] (verification not implemented)

Time = 0.11 (sec) , antiderivative size = 41, normalized size of antiderivative = 1.64 \[ \int \frac {x+e^5 \left (-9-23 x-7 x^2\right )+e^5 \left (-6 x-2 x^2\right ) \log (x)}{e^5 x} \, dx=\left (- x^{2} - 6 x\right ) \log {\left (x \right )} + \frac {- 3 x^{2} e^{5} - x \left (-1 + 17 e^{5}\right ) - 9 e^{5} \log {\left (x \right )}}{e^{5}} \]

[In]

integrate(((-2*x**2-6*x)*exp(5)*ln(x)+(-7*x**2-23*x-9)*exp(5)+x)/x/exp(5),x)

[Out]

(-x**2 - 6*x)*log(x) + (-3*x**2*exp(5) - x*(-1 + 17*exp(5)) - 9*exp(5)*log(x))*exp(-5)

Maxima [B] (verification not implemented)

Leaf count of result is larger than twice the leaf count of optimal. 54 vs. \(2 (24) = 48\).

Time = 0.19 (sec) , antiderivative size = 54, normalized size of antiderivative = 2.16 \[ \int \frac {x+e^5 \left (-9-23 x-7 x^2\right )+e^5 \left (-6 x-2 x^2\right ) \log (x)}{e^5 x} \, dx=-\frac {1}{2} \, {\left (7 \, x^{2} e^{5} + {\left (2 \, x^{2} \log \left (x\right ) - x^{2}\right )} e^{5} + 12 \, {\left (x \log \left (x\right ) - x\right )} e^{5} + 46 \, x e^{5} + 18 \, e^{5} \log \left (x\right ) - 2 \, x\right )} e^{\left (-5\right )} \]

[In]

integrate(((-2*x^2-6*x)*exp(5)*log(x)+(-7*x^2-23*x-9)*exp(5)+x)/x/exp(5),x, algorithm="maxima")

[Out]

-1/2*(7*x^2*e^5 + (2*x^2*log(x) - x^2)*e^5 + 12*(x*log(x) - x)*e^5 + 46*x*e^5 + 18*e^5*log(x) - 2*x)*e^(-5)

Giac [A] (verification not implemented)

none

Time = 0.27 (sec) , antiderivative size = 41, normalized size of antiderivative = 1.64 \[ \int \frac {x+e^5 \left (-9-23 x-7 x^2\right )+e^5 \left (-6 x-2 x^2\right ) \log (x)}{e^5 x} \, dx=-{\left (x^{2} e^{5} \log \left (x\right ) + 3 \, x^{2} e^{5} + 6 \, x e^{5} \log \left (x\right ) + 17 \, x e^{5} + 9 \, e^{5} \log \left (x\right ) - x\right )} e^{\left (-5\right )} \]

[In]

integrate(((-2*x^2-6*x)*exp(5)*log(x)+(-7*x^2-23*x-9)*exp(5)+x)/x/exp(5),x, algorithm="giac")

[Out]

-(x^2*e^5*log(x) + 3*x^2*e^5 + 6*x*e^5*log(x) + 17*x*e^5 + 9*e^5*log(x) - x)*e^(-5)

Mupad [B] (verification not implemented)

Time = 10.92 (sec) , antiderivative size = 29, normalized size of antiderivative = 1.16 \[ \int \frac {x+e^5 \left (-9-23 x-7 x^2\right )+e^5 \left (-6 x-2 x^2\right ) \log (x)}{e^5 x} \, dx=x\,{\mathrm {e}}^{-5}-9\,\ln \left (x\right )-x^2\,\ln \left (x\right )-17\,x-6\,x\,\ln \left (x\right )-3\,x^2 \]

[In]

int(-(exp(-5)*(exp(5)*(23*x + 7*x^2 + 9) - x + exp(5)*log(x)*(6*x + 2*x^2)))/x,x)

[Out]

x*exp(-5) - 9*log(x) - x^2*log(x) - 17*x - 6*x*log(x) - 3*x^2