\(\int \frac {1-3 x^2+e^x (-x+x^3)}{-3 x+3 x^3+e^5 (x-x^3)+e^x (-x+x^3)+(-x+x^3) \log (-\frac {3}{-x+x^3})} \, dx\) [9103]

   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 = 72, antiderivative size = 26 \[ \int \frac {1-3 x^2+e^x \left (-x+x^3\right )}{-3 x+3 x^3+e^5 \left (x-x^3\right )+e^x \left (-x+x^3\right )+\left (-x+x^3\right ) \log \left (-\frac {3}{-x+x^3}\right )} \, dx=\log \left (3-e^5+e^x+\log \left (\frac {3}{x \left (1-x^2\right )}\right )\right ) \]

[Out]

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

Rubi [A] (verified)

Time = 0.33 (sec) , antiderivative size = 23, normalized size of antiderivative = 0.88, number of steps used = 2, number of rules used = 2, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.028, Rules used = {6873, 6816} \[ \int \frac {1-3 x^2+e^x \left (-x+x^3\right )}{-3 x+3 x^3+e^5 \left (x-x^3\right )+e^x \left (-x+x^3\right )+\left (-x+x^3\right ) \log \left (-\frac {3}{-x+x^3}\right )} \, dx=\log \left (\log \left (\frac {3}{x-x^3}\right )+e^x-e^5+3\right ) \]

[In]

Int[(1 - 3*x^2 + E^x*(-x + x^3))/(-3*x + 3*x^3 + E^5*(x - x^3) + E^x*(-x + x^3) + (-x + x^3)*Log[-3/(-x + x^3)
]),x]

[Out]

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

Rule 6816

Int[(u_)/(y_), x_Symbol] :> With[{q = DerivativeDivides[y, u, x]}, Simp[q*Log[RemoveContent[y, x]], x] /;  !Fa
lseQ[q]]

Rule 6873

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

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

Mathematica [A] (verified)

Time = 2.01 (sec) , antiderivative size = 23, normalized size of antiderivative = 0.88 \[ \int \frac {1-3 x^2+e^x \left (-x+x^3\right )}{-3 x+3 x^3+e^5 \left (x-x^3\right )+e^x \left (-x+x^3\right )+\left (-x+x^3\right ) \log \left (-\frac {3}{-x+x^3}\right )} \, dx=\log \left (3-e^5+e^x+\log \left (\frac {3}{x-x^3}\right )\right ) \]

[In]

Integrate[(1 - 3*x^2 + E^x*(-x + x^3))/(-3*x + 3*x^3 + E^5*(x - x^3) + E^x*(-x + x^3) + (-x + x^3)*Log[-3/(-x
+ x^3)]),x]

[Out]

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

Maple [A] (verified)

Time = 2.23 (sec) , antiderivative size = 23, normalized size of antiderivative = 0.88

method result size
parallelrisch \(\ln \left (-{\mathrm e}^{5}+{\mathrm e}^{x}+\ln \left (-\frac {3}{x \left (x^{2}-1\right )}\right )+3\right )\) \(23\)
default \(\ln \left ({\mathrm e}^{5}-{\mathrm e}^{x}-\ln \left (-\frac {3}{x^{3}-x}\right )-3\right )\) \(24\)
norman \(\ln \left ({\mathrm e}^{5}-{\mathrm e}^{x}-\ln \left (-\frac {3}{x^{3}-x}\right )-3\right )\) \(24\)
risch \(\ln \left (-\frac {i \pi \,\operatorname {csgn}\left (\frac {i}{x^{2}-1}\right ) {\operatorname {csgn}\left (\frac {i}{x \left (x^{2}-1\right )}\right )}^{2}}{2}+\frac {i \pi \,\operatorname {csgn}\left (\frac {i}{x^{2}-1}\right ) \operatorname {csgn}\left (\frac {i}{x \left (x^{2}-1\right )}\right ) \operatorname {csgn}\left (\frac {i}{x}\right )}{2}-\frac {i \pi {\operatorname {csgn}\left (\frac {i}{x \left (x^{2}-1\right )}\right )}^{3}}{2}+i \pi {\operatorname {csgn}\left (\frac {i}{x \left (x^{2}-1\right )}\right )}^{2}-\frac {i \pi {\operatorname {csgn}\left (\frac {i}{x \left (x^{2}-1\right )}\right )}^{2} \operatorname {csgn}\left (\frac {i}{x}\right )}{2}-i \pi +{\mathrm e}^{5}-\ln \left (3\right )-{\mathrm e}^{x}+\ln \left (x \right )+\ln \left (x^{2}-1\right )-3\right )\) \(160\)

[In]

int(((x^3-x)*exp(x)-3*x^2+1)/((x^3-x)*ln(-3/(x^3-x))+(x^3-x)*exp(x)+(-x^3+x)*exp(5)+3*x^3-3*x),x,method=_RETUR
NVERBOSE)

[Out]

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

Fricas [A] (verification not implemented)

none

Time = 0.25 (sec) , antiderivative size = 21, normalized size of antiderivative = 0.81 \[ \int \frac {1-3 x^2+e^x \left (-x+x^3\right )}{-3 x+3 x^3+e^5 \left (x-x^3\right )+e^x \left (-x+x^3\right )+\left (-x+x^3\right ) \log \left (-\frac {3}{-x+x^3}\right )} \, dx=\log \left (-e^{5} + e^{x} + \log \left (-\frac {3}{x^{3} - x}\right ) + 3\right ) \]

[In]

integrate(((x^3-x)*exp(x)-3*x^2+1)/((x^3-x)*log(-3/(x^3-x))+(x^3-x)*exp(x)+(-x^3+x)*exp(5)+3*x^3-3*x),x, algor
ithm="fricas")

[Out]

log(-e^5 + e^x + log(-3/(x^3 - x)) + 3)

Sympy [A] (verification not implemented)

Time = 0.20 (sec) , antiderivative size = 19, normalized size of antiderivative = 0.73 \[ \int \frac {1-3 x^2+e^x \left (-x+x^3\right )}{-3 x+3 x^3+e^5 \left (x-x^3\right )+e^x \left (-x+x^3\right )+\left (-x+x^3\right ) \log \left (-\frac {3}{-x+x^3}\right )} \, dx=\log {\left (e^{x} + \log {\left (- \frac {3}{x^{3} - x} \right )} - e^{5} + 3 \right )} \]

[In]

integrate(((x**3-x)*exp(x)-3*x**2+1)/((x**3-x)*ln(-3/(x**3-x))+(x**3-x)*exp(x)+(-x**3+x)*exp(5)+3*x**3-3*x),x)

[Out]

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

Maxima [A] (verification not implemented)

none

Time = 0.32 (sec) , antiderivative size = 25, normalized size of antiderivative = 0.96 \[ \int \frac {1-3 x^2+e^x \left (-x+x^3\right )}{-3 x+3 x^3+e^5 \left (x-x^3\right )+e^x \left (-x+x^3\right )+\left (-x+x^3\right ) \log \left (-\frac {3}{-x+x^3}\right )} \, dx=\log \left (e^{5} - e^{x} - \log \left (3\right ) + \log \left (x + 1\right ) + \log \left (x\right ) + \log \left (-x + 1\right ) - 3\right ) \]

[In]

integrate(((x^3-x)*exp(x)-3*x^2+1)/((x^3-x)*log(-3/(x^3-x))+(x^3-x)*exp(x)+(-x^3+x)*exp(5)+3*x^3-3*x),x, algor
ithm="maxima")

[Out]

log(e^5 - e^x - log(3) + log(x + 1) + log(x) + log(-x + 1) - 3)

Giac [A] (verification not implemented)

none

Time = 0.30 (sec) , antiderivative size = 21, normalized size of antiderivative = 0.81 \[ \int \frac {1-3 x^2+e^x \left (-x+x^3\right )}{-3 x+3 x^3+e^5 \left (x-x^3\right )+e^x \left (-x+x^3\right )+\left (-x+x^3\right ) \log \left (-\frac {3}{-x+x^3}\right )} \, dx=\log \left (-e^{5} + e^{x} + \log \left (-\frac {3}{x^{3} - x}\right ) + 3\right ) \]

[In]

integrate(((x^3-x)*exp(x)-3*x^2+1)/((x^3-x)*log(-3/(x^3-x))+(x^3-x)*exp(x)+(-x^3+x)*exp(5)+3*x^3-3*x),x, algor
ithm="giac")

[Out]

log(-e^5 + e^x + log(-3/(x^3 - x)) + 3)

Mupad [B] (verification not implemented)

Time = 14.58 (sec) , antiderivative size = 21, normalized size of antiderivative = 0.81 \[ \int \frac {1-3 x^2+e^x \left (-x+x^3\right )}{-3 x+3 x^3+e^5 \left (x-x^3\right )+e^x \left (-x+x^3\right )+\left (-x+x^3\right ) \log \left (-\frac {3}{-x+x^3}\right )} \, dx=\ln \left (\ln \left (\frac {3}{x-x^3}\right )-{\mathrm {e}}^5+{\mathrm {e}}^x+3\right ) \]

[In]

int((exp(x)*(x - x^3) + 3*x^2 - 1)/(3*x + exp(x)*(x - x^3) + log(3/(x - x^3))*(x - x^3) - exp(5)*(x - x^3) - 3
*x^3),x)

[Out]

log(log(3/(x - x^3)) - exp(5) + exp(x) + 3)