\(\int \frac {3 e^{10}+x+3 x^2+e^5 (7+6 x)+e^5 \log (x)}{10 e^{10}+20 e^5 x+10 x^2} \, dx\) [8513]

   Optimal result
   Rubi [B] (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 = 47, antiderivative size = 30 \[ \int \frac {3 e^{10}+x+3 x^2+e^5 (7+6 x)+e^5 \log (x)}{10 e^{10}+20 e^5 x+10 x^2} \, dx=\frac {2}{5} \left (x+\frac {1}{4} \left (-x+\frac {6+\log (x)}{1+\frac {e^5}{x}}\right )\right ) \]

[Out]

3/10*x+1/10*(ln(x)+6)/(1+exp(5)/x)

Rubi [B] (verified)

Leaf count is larger than twice the leaf count of optimal. \(69\) vs. \(2(30)=60\).

Time = 0.10 (sec) , antiderivative size = 69, normalized size of antiderivative = 2.30, number of steps used = 12, number of rules used = 6, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.128, Rules used = {27, 12, 6874, 45, 2351, 31} \[ \int \frac {3 e^{10}+x+3 x^2+e^5 (7+6 x)+e^5 \log (x)}{10 e^{10}+20 e^5 x+10 x^2} \, dx=\frac {3 x}{10}-\frac {e^5 \left (7-6 e^5\right )}{10 \left (x+e^5\right )}-\frac {3 e^{10}}{5 \left (x+e^5\right )}+\frac {e^5}{10 \left (x+e^5\right )}+\frac {x \log (x)}{10 \left (x+e^5\right )} \]

[In]

Int[(3*E^10 + x + 3*x^2 + E^5*(7 + 6*x) + E^5*Log[x])/(10*E^10 + 20*E^5*x + 10*x^2),x]

[Out]

(3*x)/10 + E^5/(10*(E^5 + x)) - (3*E^10)/(5*(E^5 + x)) - (E^5*(7 - 6*E^5))/(10*(E^5 + x)) + (x*Log[x])/(10*(E^
5 + 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 27

Int[(u_.)*((a_) + (b_.)*(x_) + (c_.)*(x_)^2)^(p_.), x_Symbol] :> Int[u*Cancel[(b/2 + c*x)^(2*p)/c^p], x] /; Fr
eeQ[{a, b, c}, x] && EqQ[b^2 - 4*a*c, 0] && IntegerQ[p]

Rule 31

Int[((a_) + (b_.)*(x_))^(-1), x_Symbol] :> Simp[Log[RemoveContent[a + b*x, x]]/b, x] /; FreeQ[{a, b}, x]

Rule 45

Int[((a_.) + (b_.)*(x_))^(m_.)*((c_.) + (d_.)*(x_))^(n_.), x_Symbol] :> Int[ExpandIntegrand[(a + b*x)^m*(c + d
*x)^n, x], x] /; FreeQ[{a, b, c, d, n}, x] && NeQ[b*c - a*d, 0] && IGtQ[m, 0] && ( !IntegerQ[n] || (EqQ[c, 0]
&& LeQ[7*m + 4*n + 4, 0]) || LtQ[9*m + 5*(n + 1), 0] || GtQ[m + n + 2, 0])

Rule 2351

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

Rule 6874

Int[u_, x_Symbol] :> With[{v = ExpandIntegrand[u, x]}, Int[v, x] /; SumQ[v]]

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

Mathematica [A] (verified)

Time = 0.05 (sec) , antiderivative size = 26, normalized size of antiderivative = 0.87 \[ \int \frac {3 e^{10}+x+3 x^2+e^5 (7+6 x)+e^5 \log (x)}{10 e^{10}+20 e^5 x+10 x^2} \, dx=\frac {1}{10} \left (3 x+\log (x)-\frac {e^5 (6+\log (x))}{e^5+x}\right ) \]

[In]

Integrate[(3*E^10 + x + 3*x^2 + E^5*(7 + 6*x) + E^5*Log[x])/(10*E^10 + 20*E^5*x + 10*x^2),x]

[Out]

(3*x + Log[x] - (E^5*(6 + Log[x]))/(E^5 + x))/10

Maple [A] (verified)

Time = 0.62 (sec) , antiderivative size = 29, normalized size of antiderivative = 0.97

method result size
norman \(\frac {\frac {3 x^{2}}{10}+\frac {x \ln \left (x \right )}{10}-\frac {3 \,{\mathrm e}^{10}}{10}-\frac {3 \,{\mathrm e}^{5}}{5}}{{\mathrm e}^{5}+x}\) \(29\)
parallelrisch \(-\frac {3 \,{\mathrm e}^{10}-3 x^{2}-x \ln \left (x \right )+6 \,{\mathrm e}^{5}}{10 \left ({\mathrm e}^{5}+x \right )}\) \(30\)
risch \(-\frac {{\mathrm e}^{5} \ln \left (x \right )}{10 \left ({\mathrm e}^{5}+x \right )}+\frac {{\mathrm e}^{5} \ln \left (x \right )+3 x \,{\mathrm e}^{5}+x \ln \left (x \right )+3 x^{2}-6 \,{\mathrm e}^{5}}{10 \,{\mathrm e}^{5}+10 x}\) \(46\)
parts \(\frac {\frac {3 x^{2}}{10}-\frac {3 \left ({\mathrm e}^{5}\right )^{2}}{10}-\frac {3 \,{\mathrm e}^{5}}{5}}{{\mathrm e}^{5}+x}+\frac {\ln \left ({\mathrm e}^{5}+x \right )}{10}+\frac {{\mathrm e}^{5} \left (\frac {\ln \left (x \right ) \left (\ln \left (\frac {{\mathrm e}^{5}-\sqrt {\left ({\mathrm e}^{5}\right )^{2}-{\mathrm e}^{10}}+x}{{\mathrm e}^{5}-\sqrt {\left ({\mathrm e}^{5}\right )^{2}-{\mathrm e}^{10}}}\right )-\ln \left (\frac {{\mathrm e}^{5}+\sqrt {\left ({\mathrm e}^{5}\right )^{2}-{\mathrm e}^{10}}+x}{{\mathrm e}^{5}+\sqrt {\left ({\mathrm e}^{5}\right )^{2}-{\mathrm e}^{10}}}\right )\right )}{2 \sqrt {\left ({\mathrm e}^{5}\right )^{2}-{\mathrm e}^{10}}}+\frac {\operatorname {dilog}\left (\frac {{\mathrm e}^{5}-\sqrt {\left ({\mathrm e}^{5}\right )^{2}-{\mathrm e}^{10}}+x}{{\mathrm e}^{5}-\sqrt {\left ({\mathrm e}^{5}\right )^{2}-{\mathrm e}^{10}}}\right )-\operatorname {dilog}\left (\frac {{\mathrm e}^{5}+\sqrt {\left ({\mathrm e}^{5}\right )^{2}-{\mathrm e}^{10}}+x}{{\mathrm e}^{5}+\sqrt {\left ({\mathrm e}^{5}\right )^{2}-{\mathrm e}^{10}}}\right )}{2 \sqrt {\left ({\mathrm e}^{5}\right )^{2}-{\mathrm e}^{10}}}\right )}{10}\) \(211\)
default \(\frac {3 x^{2}-3 \left ({\mathrm e}^{5}\right )^{2}-6 \,{\mathrm e}^{5}}{10 \,{\mathrm e}^{5}+10 x}+\frac {\ln \left ({\mathrm e}^{5}+x \right )}{10}+\frac {{\mathrm e}^{5} \left (\frac {\ln \left (x \right ) \left (\ln \left (\frac {{\mathrm e}^{5}-\sqrt {\left ({\mathrm e}^{5}\right )^{2}-{\mathrm e}^{10}}+x}{{\mathrm e}^{5}-\sqrt {\left ({\mathrm e}^{5}\right )^{2}-{\mathrm e}^{10}}}\right )-\ln \left (\frac {{\mathrm e}^{5}+\sqrt {\left ({\mathrm e}^{5}\right )^{2}-{\mathrm e}^{10}}+x}{{\mathrm e}^{5}+\sqrt {\left ({\mathrm e}^{5}\right )^{2}-{\mathrm e}^{10}}}\right )\right )}{2 \sqrt {\left ({\mathrm e}^{5}\right )^{2}-{\mathrm e}^{10}}}+\frac {\operatorname {dilog}\left (\frac {{\mathrm e}^{5}-\sqrt {\left ({\mathrm e}^{5}\right )^{2}-{\mathrm e}^{10}}+x}{{\mathrm e}^{5}-\sqrt {\left ({\mathrm e}^{5}\right )^{2}-{\mathrm e}^{10}}}\right )-\operatorname {dilog}\left (\frac {{\mathrm e}^{5}+\sqrt {\left ({\mathrm e}^{5}\right )^{2}-{\mathrm e}^{10}}+x}{{\mathrm e}^{5}+\sqrt {\left ({\mathrm e}^{5}\right )^{2}-{\mathrm e}^{10}}}\right )}{2 \sqrt {\left ({\mathrm e}^{5}\right )^{2}-{\mathrm e}^{10}}}\right )}{10}\) \(212\)

[In]

int((exp(5)*ln(x)+3*exp(5)^2+(6*x+7)*exp(5)+3*x^2+x)/(10*exp(5)^2+20*x*exp(5)+10*x^2),x,method=_RETURNVERBOSE)

[Out]

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

Fricas [A] (verification not implemented)

none

Time = 0.26 (sec) , antiderivative size = 25, normalized size of antiderivative = 0.83 \[ \int \frac {3 e^{10}+x+3 x^2+e^5 (7+6 x)+e^5 \log (x)}{10 e^{10}+20 e^5 x+10 x^2} \, dx=\frac {3 \, x^{2} + 3 \, {\left (x - 2\right )} e^{5} + x \log \left (x\right )}{10 \, {\left (x + e^{5}\right )}} \]

[In]

integrate((exp(5)*log(x)+3*exp(5)^2+(6*x+7)*exp(5)+3*x^2+x)/(10*exp(5)^2+20*x*exp(5)+10*x^2),x, algorithm="fri
cas")

[Out]

1/10*(3*x^2 + 3*(x - 2)*e^5 + x*log(x))/(x + e^5)

Sympy [A] (verification not implemented)

Time = 0.14 (sec) , antiderivative size = 37, normalized size of antiderivative = 1.23 \[ \int \frac {3 e^{10}+x+3 x^2+e^5 (7+6 x)+e^5 \log (x)}{10 e^{10}+20 e^5 x+10 x^2} \, dx=\frac {3 x}{10} + \frac {\log {\left (x \right )}}{10} - \frac {e^{5} \log {\left (x \right )}}{10 x + 10 e^{5}} - \frac {3 e^{5}}{5 x + 5 e^{5}} \]

[In]

integrate((exp(5)*ln(x)+3*exp(5)**2+(6*x+7)*exp(5)+3*x**2+x)/(10*exp(5)**2+20*x*exp(5)+10*x**2),x)

[Out]

3*x/10 + log(x)/10 - exp(5)*log(x)/(10*x + 10*exp(5)) - 3*exp(5)/(5*x + 5*exp(5))

Maxima [B] (verification not implemented)

Leaf count of result is larger than twice the leaf count of optimal. 87 vs. \(2 (20) = 40\).

Time = 0.20 (sec) , antiderivative size = 87, normalized size of antiderivative = 2.90 \[ \int \frac {3 e^{10}+x+3 x^2+e^5 (7+6 x)+e^5 \log (x)}{10 e^{10}+20 e^5 x+10 x^2} \, dx=-\frac {1}{10} \, {\left (e^{\left (-5\right )} \log \left (x + e^{5}\right ) - e^{\left (-5\right )} \log \left (x\right ) + \frac {\log \left (x\right )}{x + e^{5}}\right )} e^{5} + \frac {3}{5} \, {\left (\frac {e^{5}}{x + e^{5}} + \log \left (x + e^{5}\right )\right )} e^{5} - \frac {3}{5} \, e^{5} \log \left (x + e^{5}\right ) + \frac {3}{10} \, x - \frac {3 \, e^{10}}{5 \, {\left (x + e^{5}\right )}} - \frac {3 \, e^{5}}{5 \, {\left (x + e^{5}\right )}} + \frac {1}{10} \, \log \left (x + e^{5}\right ) \]

[In]

integrate((exp(5)*log(x)+3*exp(5)^2+(6*x+7)*exp(5)+3*x^2+x)/(10*exp(5)^2+20*x*exp(5)+10*x^2),x, algorithm="max
ima")

[Out]

-1/10*(e^(-5)*log(x + e^5) - e^(-5)*log(x) + log(x)/(x + e^5))*e^5 + 3/5*(e^5/(x + e^5) + log(x + e^5))*e^5 -
3/5*e^5*log(x + e^5) + 3/10*x - 3/5*e^10/(x + e^5) - 3/5*e^5/(x + e^5) + 1/10*log(x + e^5)

Giac [A] (verification not implemented)

none

Time = 0.27 (sec) , antiderivative size = 27, normalized size of antiderivative = 0.90 \[ \int \frac {3 e^{10}+x+3 x^2+e^5 (7+6 x)+e^5 \log (x)}{10 e^{10}+20 e^5 x+10 x^2} \, dx=\frac {3 \, x^{2} + 3 \, x e^{5} + x \log \left (x\right ) - 6 \, e^{5}}{10 \, {\left (x + e^{5}\right )}} \]

[In]

integrate((exp(5)*log(x)+3*exp(5)^2+(6*x+7)*exp(5)+3*x^2+x)/(10*exp(5)^2+20*x*exp(5)+10*x^2),x, algorithm="gia
c")

[Out]

1/10*(3*x^2 + 3*x*e^5 + x*log(x) - 6*e^5)/(x + e^5)

Mupad [B] (verification not implemented)

Time = 13.07 (sec) , antiderivative size = 23, normalized size of antiderivative = 0.77 \[ \int \frac {3 e^{10}+x+3 x^2+e^5 (7+6 x)+e^5 \log (x)}{10 e^{10}+20 e^5 x+10 x^2} \, dx=\frac {x\,\left (3\,x+3\,{\mathrm {e}}^5+\ln \left (x\right )+6\right )}{10\,\left (x+{\mathrm {e}}^5\right )} \]

[In]

int((x + 3*exp(10) + exp(5)*log(x) + 3*x^2 + exp(5)*(6*x + 7))/(10*exp(10) + 20*x*exp(5) + 10*x^2),x)

[Out]

(x*(3*x + 3*exp(5) + log(x) + 6))/(10*(x + exp(5)))