3.89.89 \(\int \frac {-12-4 x-3 x^2+e^{5 x} (2+13 x)}{-4+e^{5 x} x-x^2} \, dx\)

Optimal. Leaf size=23 \[ -4+x+\log (3)+2 \left (x+\log \left (4+x \left (-e^{5 x}+x\right )\right )\right ) \]

________________________________________________________________________________________

Rubi [F]  time = 0.57, antiderivative size = 0, normalized size of antiderivative = 0.00, number of steps used = 0, number of rules used = 0, integrand size = 0, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.000, Rules used = {} \begin {gather*} \int \frac {-12-4 x-3 x^2+e^{5 x} (2+13 x)}{-4+e^{5 x} x-x^2} \, dx \end {gather*}

Verification is not applicable to the result.

[In]

Int[(-12 - 4*x - 3*x^2 + E^(5*x)*(2 + 13*x))/(-4 + E^(5*x)*x - x^2),x]

[Out]

13*x + 2*Log[x] + 40*Defer[Int][(-4 + E^(5*x)*x - x^2)^(-1), x] - 8*Defer[Int][1/(x*(4 - E^(5*x)*x + x^2)), x]
 + 2*Defer[Int][x/(4 - E^(5*x)*x + x^2), x] - 10*Defer[Int][x^2/(4 - E^(5*x)*x + x^2), x]

Rubi steps

\begin {gather*} \begin {aligned} \text {integral} &=\int \left (\frac {2+13 x}{x}-\frac {2 \left (4+20 x-x^2+5 x^3\right )}{x \left (4-e^{5 x} x+x^2\right )}\right ) \, dx\\ &=-\left (2 \int \frac {4+20 x-x^2+5 x^3}{x \left (4-e^{5 x} x+x^2\right )} \, dx\right )+\int \frac {2+13 x}{x} \, dx\\ &=-\left (2 \int \left (-\frac {20}{-4+e^{5 x} x-x^2}+\frac {4}{x \left (4-e^{5 x} x+x^2\right )}-\frac {x}{4-e^{5 x} x+x^2}+\frac {5 x^2}{4-e^{5 x} x+x^2}\right ) \, dx\right )+\int \left (13+\frac {2}{x}\right ) \, dx\\ &=13 x+2 \log (x)+2 \int \frac {x}{4-e^{5 x} x+x^2} \, dx-8 \int \frac {1}{x \left (4-e^{5 x} x+x^2\right )} \, dx-10 \int \frac {x^2}{4-e^{5 x} x+x^2} \, dx+40 \int \frac {1}{-4+e^{5 x} x-x^2} \, dx\\ \end {aligned} \end {gather*}

________________________________________________________________________________________

Mathematica [A]  time = 0.15, size = 20, normalized size = 0.87 \begin {gather*} 3 x+2 \log \left (4-e^{5 x} x+x^2\right ) \end {gather*}

Antiderivative was successfully verified.

[In]

Integrate[(-12 - 4*x - 3*x^2 + E^(5*x)*(2 + 13*x))/(-4 + E^(5*x)*x - x^2),x]

[Out]

3*x + 2*Log[4 - E^(5*x)*x + x^2]

________________________________________________________________________________________

fricas [A]  time = 0.52, size = 28, normalized size = 1.22 \begin {gather*} 3 \, x + 2 \, \log \relax (x) + 2 \, \log \left (-\frac {x^{2} - x e^{\left (5 \, x\right )} + 4}{x}\right ) \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(((13*x+2)*exp(5*x)-3*x^2-4*x-12)/(x*exp(5*x)-x^2-4),x, algorithm="fricas")

[Out]

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

________________________________________________________________________________________

giac [A]  time = 0.21, size = 20, normalized size = 0.87 \begin {gather*} 3 \, x + 2 \, \log \left (-x^{2} + x e^{\left (5 \, x\right )} - 4\right ) \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(((13*x+2)*exp(5*x)-3*x^2-4*x-12)/(x*exp(5*x)-x^2-4),x, algorithm="giac")

[Out]

3*x + 2*log(-x^2 + x*e^(5*x) - 4)

________________________________________________________________________________________

maple [A]  time = 0.07, size = 20, normalized size = 0.87




method result size



norman \(3 x +2 \ln \left (x^{2}-x \,{\mathrm e}^{5 x}+4\right )\) \(20\)
risch \(3 x +2 \ln \relax (x )+2 \ln \left ({\mathrm e}^{5 x}-\frac {x^{2}+4}{x}\right )\) \(27\)



Verification of antiderivative is not currently implemented for this CAS.

[In]

int(((13*x+2)*exp(5*x)-3*x^2-4*x-12)/(x*exp(5*x)-x^2-4),x,method=_RETURNVERBOSE)

[Out]

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

________________________________________________________________________________________

maxima [A]  time = 0.40, size = 28, normalized size = 1.22 \begin {gather*} 3 \, x + 2 \, \log \relax (x) + 2 \, \log \left (-\frac {x^{2} - x e^{\left (5 \, x\right )} + 4}{x}\right ) \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(((13*x+2)*exp(5*x)-3*x^2-4*x-12)/(x*exp(5*x)-x^2-4),x, algorithm="maxima")

[Out]

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

________________________________________________________________________________________

mupad [B]  time = 5.59, size = 19, normalized size = 0.83 \begin {gather*} 3\,x+2\,\ln \left (x^2-x\,{\mathrm {e}}^{5\,x}+4\right ) \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

int((4*x - exp(5*x)*(13*x + 2) + 3*x^2 + 12)/(x^2 - x*exp(5*x) + 4),x)

[Out]

3*x + 2*log(x^2 - x*exp(5*x) + 4)

________________________________________________________________________________________

sympy [A]  time = 0.20, size = 24, normalized size = 1.04 \begin {gather*} 3 x + 2 \log {\relax (x )} + 2 \log {\left (e^{5 x} + \frac {- x^{2} - 4}{x} \right )} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(((13*x+2)*exp(5*x)-3*x**2-4*x-12)/(x*exp(5*x)-x**2-4),x)

[Out]

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

________________________________________________________________________________________