3.2.29 \(\int \frac {4-4 x^2+6 x^3-8 x^5+e^x (-x^3+x^4+x^5-x^6)+(-x^3+x^5) \log (-x+x^3)}{-x^5+x^7} \, dx\)

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

________________________________________________________________________________________

Rubi [A]  time = 0.70, antiderivative size = 33, normalized size of antiderivative = 1.18, number of steps used = 16, number of rules used = 9, integrand size = 68, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.132, Rules used = {1593, 6725, 2197, 207, 266, 44, 325, 2525, 453} \begin {gather*} \frac {1}{x^4}-\frac {\log \left (-x \left (1-x^2\right )\right )}{x}-\frac {e^x}{x}+\frac {5}{x} \end {gather*}

Antiderivative was successfully verified.

[In]

Int[(4 - 4*x^2 + 6*x^3 - 8*x^5 + E^x*(-x^3 + x^4 + x^5 - x^6) + (-x^3 + x^5)*Log[-x + x^3])/(-x^5 + x^7),x]

[Out]

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

Rule 44

Int[((a_) + (b_.)*(x_))^(m_.)*((c_.) + (d_.)*(x_))^(n_.), x_Symbol] :> Int[ExpandIntegrand[(a + b*x)^m*(c + d*
x)^n, x], x] /; FreeQ[{a, b, c, d}, x] && NeQ[b*c - a*d, 0] && ILtQ[m, 0] && IntegerQ[n] &&  !(IGtQ[n, 0] && L
tQ[m + n + 2, 0])

Rule 207

Int[((a_) + (b_.)*(x_)^2)^(-1), x_Symbol] :> -Simp[ArcTanh[(Rt[b, 2]*x)/Rt[-a, 2]]/(Rt[-a, 2]*Rt[b, 2]), x] /;
 FreeQ[{a, b}, x] && NegQ[a/b] && (LtQ[a, 0] || GtQ[b, 0])

Rule 266

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

Rule 325

Int[((c_.)*(x_))^(m_)*((a_) + (b_.)*(x_)^(n_))^(p_), x_Symbol] :> Simp[((c*x)^(m + 1)*(a + b*x^n)^(p + 1))/(a*
c*(m + 1)), x] - Dist[(b*(m + n*(p + 1) + 1))/(a*c^n*(m + 1)), Int[(c*x)^(m + n)*(a + b*x^n)^p, x], x] /; Free
Q[{a, b, c, p}, x] && IGtQ[n, 0] && LtQ[m, -1] && IntBinomialQ[a, b, c, n, m, p, x]

Rule 453

Int[((e_.)*(x_))^(m_.)*((a_) + (b_.)*(x_)^(n_))^(p_.)*((c_) + (d_.)*(x_)^(n_)), x_Symbol] :> Simp[(c*(e*x)^(m
+ 1)*(a + b*x^n)^(p + 1))/(a*e*(m + 1)), x] + Dist[(a*d*(m + 1) - b*c*(m + n*(p + 1) + 1))/(a*e^n*(m + 1)), In
t[(e*x)^(m + n)*(a + b*x^n)^p, x], x] /; FreeQ[{a, b, c, d, e, p}, x] && NeQ[b*c - a*d, 0] && (IntegerQ[n] ||
GtQ[e, 0]) && ((GtQ[n, 0] && LtQ[m, -1]) || (LtQ[n, 0] && GtQ[m + n, -1])) &&  !ILtQ[p, -1]

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 2197

Int[(F_)^((c_.)*(v_))*(u_)^(m_.)*(w_), x_Symbol] :> With[{b = Coefficient[v, x, 1], d = Coefficient[u, x, 0],
e = Coefficient[u, x, 1], f = Coefficient[w, x, 0], g = Coefficient[w, x, 1]}, Simp[(g*u^(m + 1)*F^(c*v))/(b*c
*e*Log[F]), x] /; EqQ[e*g*(m + 1) - b*c*(e*f - d*g)*Log[F], 0]] /; FreeQ[{F, c, m}, x] && LinearQ[{u, v, w}, x
]

Rule 2525

Int[((a_.) + Log[(c_.)*(RFx_)^(p_.)]*(b_.))^(n_.)*((d_.) + (e_.)*(x_))^(m_.), x_Symbol] :> Simp[((d + e*x)^(m
+ 1)*(a + b*Log[c*RFx^p])^n)/(e*(m + 1)), x] - Dist[(b*n*p)/(e*(m + 1)), Int[SimplifyIntegrand[((d + e*x)^(m +
 1)*(a + b*Log[c*RFx^p])^(n - 1)*D[RFx, x])/RFx, x], x], x] /; FreeQ[{a, b, c, d, e, m, p}, x] && RationalFunc
tionQ[RFx, x] && IGtQ[n, 0] && (EqQ[n, 1] || IntegerQ[m]) && NeQ[m, -1]

Rule 6725

Int[(u_)/((a_) + (b_.)*(x_)^(n_)), x_Symbol] :> With[{v = RationalFunctionExpand[u/(a + b*x^n), x]}, Int[v, x]
 /; SumQ[v]] /; FreeQ[{a, b}, x] && IGtQ[n, 0]

Rubi steps

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

________________________________________________________________________________________

Mathematica [C]  time = 0.18, size = 50, normalized size = 1.79 \begin {gather*} \frac {1}{x^4}-\frac {1}{x}-\frac {e^x}{x}+6 \tanh ^{-1}(x)+\frac {6 \, _2F_1\left (-\frac {1}{2},1;\frac {1}{2};x^2\right )}{x}-\frac {\log \left (x \left (-1+x^2\right )\right )}{x} \end {gather*}

Antiderivative was successfully verified.

[In]

Integrate[(4 - 4*x^2 + 6*x^3 - 8*x^5 + E^x*(-x^3 + x^4 + x^5 - x^6) + (-x^3 + x^5)*Log[-x + x^3])/(-x^5 + x^7)
,x]

[Out]

x^(-4) - x^(-1) - E^x/x + 6*ArcTanh[x] + (6*Hypergeometric2F1[-1/2, 1, 1/2, x^2])/x - Log[x*(-1 + x^2)]/x

________________________________________________________________________________________

fricas [A]  time = 0.67, size = 30, normalized size = 1.07 \begin {gather*} -\frac {x^{3} e^{x} + x^{3} \log \left (x^{3} - x\right ) - 5 \, x^{3} - 1}{x^{4}} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(((x^5-x^3)*log(x^3-x)+(-x^6+x^5+x^4-x^3)*exp(x)-8*x^5+6*x^3-4*x^2+4)/(x^7-x^5),x, algorithm="fricas"
)

[Out]

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

________________________________________________________________________________________

giac [A]  time = 0.48, size = 30, normalized size = 1.07 \begin {gather*} -\frac {x^{3} e^{x} + x^{3} \log \left (x^{3} - x\right ) - 5 \, x^{3} - 1}{x^{4}} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(((x^5-x^3)*log(x^3-x)+(-x^6+x^5+x^4-x^3)*exp(x)-8*x^5+6*x^3-4*x^2+4)/(x^7-x^5),x, algorithm="giac")

[Out]

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

________________________________________________________________________________________

maple [A]  time = 0.11, size = 30, normalized size = 1.07




method result size



default \(-\frac {\ln \left (x^{3}-x \right )}{x}+\frac {5}{x}-\frac {{\mathrm e}^{x}}{x}+\frac {1}{x^{4}}\) \(30\)
risch \(-\frac {\ln \left (x^{2}-1\right )}{x}-\frac {-i \pi \,x^{3} \mathrm {csgn}\left (i x \right ) \mathrm {csgn}\left (i \left (x^{2}-1\right )\right ) \mathrm {csgn}\left (i x \left (x^{2}-1\right )\right )+i \pi \,x^{3} \mathrm {csgn}\left (i x \right ) \mathrm {csgn}\left (i x \left (x^{2}-1\right )\right )^{2}+i \pi \,x^{3} \mathrm {csgn}\left (i \left (x^{2}-1\right )\right ) \mathrm {csgn}\left (i x \left (x^{2}-1\right )\right )^{2}-i \pi \,x^{3} \mathrm {csgn}\left (i x \left (x^{2}-1\right )\right )^{3}+2 \,{\mathrm e}^{x} x^{3}+2 x^{3} \ln \relax (x )-10 x^{3}-2}{2 x^{4}}\) \(141\)



Verification of antiderivative is not currently implemented for this CAS.

[In]

int(((x^5-x^3)*ln(x^3-x)+(-x^6+x^5+x^4-x^3)*exp(x)-8*x^5+6*x^3-4*x^2+4)/(x^7-x^5),x,method=_RETURNVERBOSE)

[Out]

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

________________________________________________________________________________________

maxima [B]  time = 0.50, size = 60, normalized size = 2.14 \begin {gather*} -\frac {{\left (x + 1\right )} \log \left (x + 1\right ) - {\left (x - 1\right )} \log \left (x - 1\right ) + e^{x} + \log \relax (x) + 1}{x} + \frac {6}{x} - \frac {2}{x^{2}} + \frac {2 \, x^{2} + 1}{x^{4}} + \log \left (x + 1\right ) - \log \left (x - 1\right ) \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(((x^5-x^3)*log(x^3-x)+(-x^6+x^5+x^4-x^3)*exp(x)-8*x^5+6*x^3-4*x^2+4)/(x^7-x^5),x, algorithm="maxima"
)

[Out]

-((x + 1)*log(x + 1) - (x - 1)*log(x - 1) + e^x + log(x) + 1)/x + 6/x - 2/x^2 + (2*x^2 + 1)/x^4 + log(x + 1) -
 log(x - 1)

________________________________________________________________________________________

mupad [B]  time = 0.42, size = 30, normalized size = 1.07 \begin {gather*} -\frac {x^3\,{\mathrm {e}}^x+x^3\,\ln \left (x^3-x\right )-5\,x^3-1}{x^4} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

int((log(x^3 - x)*(x^3 - x^5) + exp(x)*(x^3 - x^4 - x^5 + x^6) + 4*x^2 - 6*x^3 + 8*x^5 - 4)/(x^5 - x^7),x)

[Out]

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

________________________________________________________________________________________

sympy [A]  time = 0.40, size = 26, normalized size = 0.93 \begin {gather*} - \frac {e^{x}}{x} - \frac {\log {\left (x^{3} - x \right )}}{x} - \frac {- 5 x^{3} - 1}{x^{4}} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(((x**5-x**3)*ln(x**3-x)+(-x**6+x**5+x**4-x**3)*exp(x)-8*x**5+6*x**3-4*x**2+4)/(x**7-x**5),x)

[Out]

-exp(x)/x - log(x**3 - x)/x - (-5*x**3 - 1)/x**4

________________________________________________________________________________________