\(\int \frac {-30+384 e^4-165 x-80 x^2}{-25+384 e^4-5 x-80 x^2} \, dx\) [171]

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

Optimal result

Integrand size = 33, antiderivative size = 25 \[ \int \frac {-30+384 e^4-165 x-80 x^2}{-25+384 e^4-5 x-80 x^2} \, dx=x+\log \left (1+\frac {1+x}{4}+4 \left (-\frac {24 e^4}{5}+x^2\right )\right ) \]

[Out]

x+ln(5/4+4*x^2-96/5*exp(4)+1/4*x)

Rubi [A] (verified)

Time = 0.02 (sec) , antiderivative size = 18, normalized size of antiderivative = 0.72, number of steps used = 3, number of rules used = 2, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.061, Rules used = {1671, 642} \[ \int \frac {-30+384 e^4-165 x-80 x^2}{-25+384 e^4-5 x-80 x^2} \, dx=\log \left (80 x^2+5 x-384 e^4+25\right )+x \]

[In]

Int[(-30 + 384*E^4 - 165*x - 80*x^2)/(-25 + 384*E^4 - 5*x - 80*x^2),x]

[Out]

x + Log[25 - 384*E^4 + 5*x + 80*x^2]

Rule 642

Int[((d_) + (e_.)*(x_))/((a_.) + (b_.)*(x_) + (c_.)*(x_)^2), x_Symbol] :> Simp[d*(Log[RemoveContent[a + b*x +
c*x^2, x]]/b), x] /; FreeQ[{a, b, c, d, e}, x] && EqQ[2*c*d - b*e, 0]

Rule 1671

Int[(Pq_)*((a_) + (b_.)*(x_) + (c_.)*(x_)^2)^(p_.), x_Symbol] :> Int[ExpandIntegrand[Pq*(a + b*x + c*x^2)^p, x
], x] /; FreeQ[{a, b, c}, x] && PolyQ[Pq, x] && IGtQ[p, -2]

Rubi steps \begin{align*} \text {integral}& = \int \left (1-\frac {5 (1+32 x)}{-25+384 e^4-5 x-80 x^2}\right ) \, dx \\ & = x-5 \int \frac {1+32 x}{-25+384 e^4-5 x-80 x^2} \, dx \\ & = x+\log \left (25-384 e^4+5 x+80 x^2\right ) \\ \end{align*}

Mathematica [A] (verified)

Time = 0.01 (sec) , antiderivative size = 18, normalized size of antiderivative = 0.72 \[ \int \frac {-30+384 e^4-165 x-80 x^2}{-25+384 e^4-5 x-80 x^2} \, dx=x+\log \left (25-384 e^4+5 x+80 x^2\right ) \]

[In]

Integrate[(-30 + 384*E^4 - 165*x - 80*x^2)/(-25 + 384*E^4 - 5*x - 80*x^2),x]

[Out]

x + Log[25 - 384*E^4 + 5*x + 80*x^2]

Maple [A] (verified)

Time = 0.13 (sec) , antiderivative size = 16, normalized size of antiderivative = 0.64

method result size
parallelrisch \(x +\ln \left (-\frac {24 \,{\mathrm e}^{4}}{5}+x^{2}+\frac {x}{16}+\frac {5}{16}\right )\) \(16\)
default \(x +\ln \left (-384 \,{\mathrm e}^{4}+80 x^{2}+5 x +25\right )\) \(18\)
norman \(x +\ln \left (384 \,{\mathrm e}^{4}-80 x^{2}-5 x -25\right )\) \(18\)
risch \(x +\ln \left (-384 \,{\mathrm e}^{4}+80 x^{2}+5 x +25\right )\) \(18\)

[In]

int((384*exp(4)-80*x^2-165*x-30)/(384*exp(4)-80*x^2-5*x-25),x,method=_RETURNVERBOSE)

[Out]

x+ln(-24/5*exp(4)+x^2+1/16*x+5/16)

Fricas [A] (verification not implemented)

none

Time = 0.24 (sec) , antiderivative size = 17, normalized size of antiderivative = 0.68 \[ \int \frac {-30+384 e^4-165 x-80 x^2}{-25+384 e^4-5 x-80 x^2} \, dx=x + \log \left (80 \, x^{2} + 5 \, x - 384 \, e^{4} + 25\right ) \]

[In]

integrate((384*exp(4)-80*x^2-165*x-30)/(384*exp(4)-80*x^2-5*x-25),x, algorithm="fricas")

[Out]

x + log(80*x^2 + 5*x - 384*e^4 + 25)

Sympy [A] (verification not implemented)

Time = 0.10 (sec) , antiderivative size = 17, normalized size of antiderivative = 0.68 \[ \int \frac {-30+384 e^4-165 x-80 x^2}{-25+384 e^4-5 x-80 x^2} \, dx=x + \log {\left (80 x^{2} + 5 x - 384 e^{4} + 25 \right )} \]

[In]

integrate((384*exp(4)-80*x**2-165*x-30)/(384*exp(4)-80*x**2-5*x-25),x)

[Out]

x + log(80*x**2 + 5*x - 384*exp(4) + 25)

Maxima [A] (verification not implemented)

none

Time = 0.17 (sec) , antiderivative size = 17, normalized size of antiderivative = 0.68 \[ \int \frac {-30+384 e^4-165 x-80 x^2}{-25+384 e^4-5 x-80 x^2} \, dx=x + \log \left (80 \, x^{2} + 5 \, x - 384 \, e^{4} + 25\right ) \]

[In]

integrate((384*exp(4)-80*x^2-165*x-30)/(384*exp(4)-80*x^2-5*x-25),x, algorithm="maxima")

[Out]

x + log(80*x^2 + 5*x - 384*e^4 + 25)

Giac [A] (verification not implemented)

none

Time = 0.24 (sec) , antiderivative size = 18, normalized size of antiderivative = 0.72 \[ \int \frac {-30+384 e^4-165 x-80 x^2}{-25+384 e^4-5 x-80 x^2} \, dx=x + \log \left ({\left | 80 \, x^{2} + 5 \, x - 384 \, e^{4} + 25 \right |}\right ) \]

[In]

integrate((384*exp(4)-80*x^2-165*x-30)/(384*exp(4)-80*x^2-5*x-25),x, algorithm="giac")

[Out]

x + log(abs(80*x^2 + 5*x - 384*e^4 + 25))

Mupad [B] (verification not implemented)

Time = 0.09 (sec) , antiderivative size = 17, normalized size of antiderivative = 0.68 \[ \int \frac {-30+384 e^4-165 x-80 x^2}{-25+384 e^4-5 x-80 x^2} \, dx=x+\ln \left (80\,x^2+5\,x-384\,{\mathrm {e}}^4+25\right ) \]

[In]

int((165*x - 384*exp(4) + 80*x^2 + 30)/(5*x - 384*exp(4) + 80*x^2 + 25),x)

[Out]

x + log(5*x - 384*exp(4) + 80*x^2 + 25)