3.65.75 \(\int \frac {49-40 x+36 x^2+40 x^3-14 x^4+e^x (31-88 x-36 x^2+24 x^3-2 x^4)}{-49 x-40 x^2+12 x^3+8 x^4-2 x^5+e^x (49+40 x-12 x^2-8 x^3+2 x^4)} \, dx\)

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

________________________________________________________________________________________

Rubi [F]  time = 0.70, 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 {49-40 x+36 x^2+40 x^3-14 x^4+e^x \left (31-88 x-36 x^2+24 x^3-2 x^4\right )}{-49 x-40 x^2+12 x^3+8 x^4-2 x^5+e^x \left (49+40 x-12 x^2-8 x^3+2 x^4\right )} \, dx \end {gather*}

Verification is not applicable to the result.

[In]

Int[(49 - 40*x + 36*x^2 + 40*x^3 - 14*x^4 + E^x*(31 - 88*x - 36*x^2 + 24*x^3 - 2*x^4))/(-49*x - 40*x^2 + 12*x^
3 + 8*x^4 - 2*x^5 + E^x*(49 + 40*x - 12*x^2 - 8*x^3 + 2*x^4)),x]

[Out]

-x + 2*Log[71 - 24*(1 - x)^2 + 2*(1 - x)^4] + Defer[Int][(E^x - x)^(-1), x] + Defer[Int][x/(-E^x + x), x]

Rubi steps

\begin {gather*} \begin {aligned} \text {integral} &=\int \frac {49-40 x+36 x^2+40 x^3-14 x^4+e^x \left (31-88 x-36 x^2+24 x^3-2 x^4\right )}{\left (e^x-x\right ) \left (49+40 x-12 x^2-8 x^3+2 x^4\right )} \, dx\\ &=\int \left (\frac {-1+x}{-e^x+x}+\frac {31-88 x-36 x^2+24 x^3-2 x^4}{49+40 x-12 x^2-8 x^3+2 x^4}\right ) \, dx\\ &=\int \frac {-1+x}{-e^x+x} \, dx+\int \frac {31-88 x-36 x^2+24 x^3-2 x^4}{49+40 x-12 x^2-8 x^3+2 x^4} \, dx\\ &=\int \left (\frac {1}{e^x-x}+\frac {x}{-e^x+x}\right ) \, dx+\operatorname {Subst}\left (\int \frac {-71-96 x+24 x^2+16 x^3-2 x^4}{71-24 x^2+2 x^4} \, dx,x,-1+x\right )\\ &=\int \frac {1}{e^x-x} \, dx+\int \frac {x}{-e^x+x} \, dx+\operatorname {Subst}\left (\int \frac {x \left (-96+16 x^2\right )}{71-24 x^2+2 x^4} \, dx,x,-1+x\right )+\operatorname {Subst}\left (\int \frac {-71+24 x^2-2 x^4}{71-24 x^2+2 x^4} \, dx,x,-1+x\right )\\ &=\frac {1}{2} \operatorname {Subst}\left (\int \frac {-96+16 x}{71-24 x+2 x^2} \, dx,x,(-1+x)^2\right )+\int \frac {1}{e^x-x} \, dx+\int \frac {x}{-e^x+x} \, dx+\operatorname {Subst}(\int -1 \, dx,x,-1+x)\\ &=-x+2 \log \left (71-24 (1-x)^2+2 (1-x)^4\right )+\int \frac {1}{e^x-x} \, dx+\int \frac {x}{-e^x+x} \, dx\\ \end {aligned} \end {gather*}

________________________________________________________________________________________

Mathematica [A]  time = 0.23, size = 34, normalized size = 1.21 \begin {gather*} -\log \left (e^x-x\right )+2 \log \left (49+40 x-12 x^2-8 x^3+2 x^4\right ) \end {gather*}

Antiderivative was successfully verified.

[In]

Integrate[(49 - 40*x + 36*x^2 + 40*x^3 - 14*x^4 + E^x*(31 - 88*x - 36*x^2 + 24*x^3 - 2*x^4))/(-49*x - 40*x^2 +
 12*x^3 + 8*x^4 - 2*x^5 + E^x*(49 + 40*x - 12*x^2 - 8*x^3 + 2*x^4)),x]

[Out]

-Log[E^x - x] + 2*Log[49 + 40*x - 12*x^2 - 8*x^3 + 2*x^4]

________________________________________________________________________________________

fricas [A]  time = 0.64, size = 33, normalized size = 1.18 \begin {gather*} 2 \, \log \left (2 \, x^{4} - 8 \, x^{3} - 12 \, x^{2} + 40 \, x + 49\right ) - \log \left (-x + e^{x}\right ) \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(((-2*x^4+24*x^3-36*x^2-88*x+31)*exp(x)-14*x^4+40*x^3+36*x^2-40*x+49)/((2*x^4-8*x^3-12*x^2+40*x+49)*e
xp(x)-2*x^5+8*x^4+12*x^3-40*x^2-49*x),x, algorithm="fricas")

[Out]

2*log(2*x^4 - 8*x^3 - 12*x^2 + 40*x + 49) - log(-x + e^x)

________________________________________________________________________________________

giac [A]  time = 0.19, size = 33, normalized size = 1.18 \begin {gather*} 2 \, \log \left (2 \, x^{4} - 8 \, x^{3} - 12 \, x^{2} + 40 \, x + 49\right ) - \log \left (x - e^{x}\right ) \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(((-2*x^4+24*x^3-36*x^2-88*x+31)*exp(x)-14*x^4+40*x^3+36*x^2-40*x+49)/((2*x^4-8*x^3-12*x^2+40*x+49)*e
xp(x)-2*x^5+8*x^4+12*x^3-40*x^2-49*x),x, algorithm="giac")

[Out]

2*log(2*x^4 - 8*x^3 - 12*x^2 + 40*x + 49) - log(x - e^x)

________________________________________________________________________________________

maple [A]  time = 0.09, size = 34, normalized size = 1.21




method result size



norman \(-\ln \left (x -{\mathrm e}^{x}\right )+2 \ln \left (2 x^{4}-8 x^{3}-12 x^{2}+40 x +49\right )\) \(34\)
risch \(2 \ln \left (2 x^{4}-8 x^{3}-12 x^{2}+40 x +49\right )-\ln \left ({\mathrm e}^{x}-x \right )\) \(34\)



Verification of antiderivative is not currently implemented for this CAS.

[In]

int(((-2*x^4+24*x^3-36*x^2-88*x+31)*exp(x)-14*x^4+40*x^3+36*x^2-40*x+49)/((2*x^4-8*x^3-12*x^2+40*x+49)*exp(x)-
2*x^5+8*x^4+12*x^3-40*x^2-49*x),x,method=_RETURNVERBOSE)

[Out]

-ln(x-exp(x))+2*ln(2*x^4-8*x^3-12*x^2+40*x+49)

________________________________________________________________________________________

maxima [A]  time = 0.43, size = 33, normalized size = 1.18 \begin {gather*} 2 \, \log \left (2 \, x^{4} - 8 \, x^{3} - 12 \, x^{2} + 40 \, x + 49\right ) - \log \left (-x + e^{x}\right ) \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(((-2*x^4+24*x^3-36*x^2-88*x+31)*exp(x)-14*x^4+40*x^3+36*x^2-40*x+49)/((2*x^4-8*x^3-12*x^2+40*x+49)*e
xp(x)-2*x^5+8*x^4+12*x^3-40*x^2-49*x),x, algorithm="maxima")

[Out]

2*log(2*x^4 - 8*x^3 - 12*x^2 + 40*x + 49) - log(-x + e^x)

________________________________________________________________________________________

mupad [B]  time = 4.48, size = 31, normalized size = 1.11 \begin {gather*} 2\,\ln \left (x^4-4\,x^3-6\,x^2+20\,x+\frac {49}{2}\right )-\ln \left ({\mathrm {e}}^x-x\right ) \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

int((40*x + exp(x)*(88*x + 36*x^2 - 24*x^3 + 2*x^4 - 31) - 36*x^2 - 40*x^3 + 14*x^4 - 49)/(49*x - exp(x)*(40*x
 - 12*x^2 - 8*x^3 + 2*x^4 + 49) + 40*x^2 - 12*x^3 - 8*x^4 + 2*x^5),x)

[Out]

2*log(20*x - 6*x^2 - 4*x^3 + x^4 + 49/2) - log(exp(x) - x)

________________________________________________________________________________________

sympy [A]  time = 0.17, size = 29, normalized size = 1.04 \begin {gather*} - \log {\left (- x + e^{x} \right )} + 2 \log {\left (2 x^{4} - 8 x^{3} - 12 x^{2} + 40 x + 49 \right )} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(((-2*x**4+24*x**3-36*x**2-88*x+31)*exp(x)-14*x**4+40*x**3+36*x**2-40*x+49)/((2*x**4-8*x**3-12*x**2+4
0*x+49)*exp(x)-2*x**5+8*x**4+12*x**3-40*x**2-49*x),x)

[Out]

-log(-x + exp(x)) + 2*log(2*x**4 - 8*x**3 - 12*x**2 + 40*x + 49)

________________________________________________________________________________________