3.80.87 \(\int \frac {-1-2 x^2+e^x (-x+2 x^3)}{-x+2 x^3} \, dx\)

Optimal. Leaf size=21 \[ e^3+e^x-\log \left (\frac {1}{2 x}-x\right ) \]

________________________________________________________________________________________

Rubi [A]  time = 0.19, antiderivative size = 16, normalized size of antiderivative = 0.76, number of steps used = 7, number of rules used = 5, integrand size = 32, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.156, Rules used = {1593, 6688, 2194, 446, 72} \begin {gather*} -\log \left (1-2 x^2\right )+e^x+\log (x) \end {gather*}

Antiderivative was successfully verified.

[In]

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

[Out]

E^x + Log[x] - Log[1 - 2*x^2]

Rule 72

Int[((e_.) + (f_.)*(x_))^(p_.)/(((a_.) + (b_.)*(x_))*((c_.) + (d_.)*(x_))), x_Symbol] :> Int[ExpandIntegrand[(
e + f*x)^p/((a + b*x)*(c + d*x)), x], x] /; FreeQ[{a, b, c, d, e, f}, x] && IntegerQ[p]

Rule 446

Int[(x_)^(m_.)*((a_) + (b_.)*(x_)^(n_))^(p_.)*((c_) + (d_.)*(x_)^(n_))^(q_.), x_Symbol] :> Dist[1/n, Subst[Int
[x^(Simplify[(m + 1)/n] - 1)*(a + b*x)^p*(c + d*x)^q, x], x, x^n], x] /; FreeQ[{a, b, c, d, m, n, p, q}, x] &&
 NeQ[b*c - a*d, 0] && IntegerQ[Simplify[(m + 1)/n]]

Rule 1593

Int[(u_.)*((a_.)*(x_)^(p_.) + (b_.)*(x_)^(q_.))^(n_.), x_Symbol] :> Int[u*x^(n*p)*(a + b*x^(q - p))^n, x] /; F
reeQ[{a, b, p, q}, x] && IntegerQ[n] && PosQ[q - p]

Rule 2194

Int[((F_)^((c_.)*((a_.) + (b_.)*(x_))))^(n_.), x_Symbol] :> Simp[(F^(c*(a + b*x)))^n/(b*c*n*Log[F]), x] /; Fre
eQ[{F, a, b, c, n}, x]

Rule 6688

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

Rubi steps

\begin {gather*} \begin {aligned} \text {integral} &=\int \frac {-1-2 x^2+e^x \left (-x+2 x^3\right )}{x \left (-1+2 x^2\right )} \, dx\\ &=\int \left (e^x+\frac {1+2 x^2}{x \left (1-2 x^2\right )}\right ) \, dx\\ &=\int e^x \, dx+\int \frac {1+2 x^2}{x \left (1-2 x^2\right )} \, dx\\ &=e^x+\frac {1}{2} \operatorname {Subst}\left (\int \frac {1+2 x}{(1-2 x) x} \, dx,x,x^2\right )\\ &=e^x+\frac {1}{2} \operatorname {Subst}\left (\int \left (\frac {1}{x}-\frac {4}{-1+2 x}\right ) \, dx,x,x^2\right )\\ &=e^x+\log (x)-\log \left (1-2 x^2\right )\\ \end {aligned} \end {gather*}

________________________________________________________________________________________

Mathematica [A]  time = 0.05, size = 16, normalized size = 0.76 \begin {gather*} e^x+\log (x)-\log \left (1-2 x^2\right ) \end {gather*}

Antiderivative was successfully verified.

[In]

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

[Out]

E^x + Log[x] - Log[1 - 2*x^2]

________________________________________________________________________________________

fricas [A]  time = 0.89, size = 15, normalized size = 0.71 \begin {gather*} e^{x} - \log \left (2 \, x^{2} - 1\right ) + \log \relax (x) \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(((2*x^3-x)*exp(x)-2*x^2-1)/(2*x^3-x),x, algorithm="fricas")

[Out]

e^x - log(2*x^2 - 1) + log(x)

________________________________________________________________________________________

giac [A]  time = 0.14, size = 15, normalized size = 0.71 \begin {gather*} e^{x} - \log \left (2 \, x^{2} - 1\right ) + \log \relax (x) \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(((2*x^3-x)*exp(x)-2*x^2-1)/(2*x^3-x),x, algorithm="giac")

[Out]

e^x - log(2*x^2 - 1) + log(x)

________________________________________________________________________________________

maple [A]  time = 0.29, size = 16, normalized size = 0.76




method result size



default \(\ln \relax (x )-\ln \left (2 x^{2}-1\right )+{\mathrm e}^{x}\) \(16\)
norman \(\ln \relax (x )-\ln \left (2 x^{2}-1\right )+{\mathrm e}^{x}\) \(16\)
risch \(\ln \relax (x )-\ln \left (2 x^{2}-1\right )+{\mathrm e}^{x}\) \(16\)



Verification of antiderivative is not currently implemented for this CAS.

[In]

int(((2*x^3-x)*exp(x)-2*x^2-1)/(2*x^3-x),x,method=_RETURNVERBOSE)

[Out]

ln(x)-ln(2*x^2-1)+exp(x)

________________________________________________________________________________________

maxima [A]  time = 0.39, size = 15, normalized size = 0.71 \begin {gather*} e^{x} - \log \left (2 \, x^{2} - 1\right ) + \log \relax (x) \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(((2*x^3-x)*exp(x)-2*x^2-1)/(2*x^3-x),x, algorithm="maxima")

[Out]

e^x - log(2*x^2 - 1) + log(x)

________________________________________________________________________________________

mupad [B]  time = 0.18, size = 13, normalized size = 0.62 \begin {gather*} {\mathrm {e}}^x-\ln \left (x^2-\frac {1}{2}\right )+\ln \relax (x) \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

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

[Out]

exp(x) - log(x^2 - 1/2) + log(x)

________________________________________________________________________________________

sympy [A]  time = 0.13, size = 14, normalized size = 0.67 \begin {gather*} e^{x} + \log {\relax (x )} - \log {\left (2 x^{2} - 1 \right )} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

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

[Out]

exp(x) + log(x) - log(2*x**2 - 1)

________________________________________________________________________________________