3.1045 \(\int \frac {e^{2 \tanh ^{-1}(a x)} (c-a^2 c x^2)^3}{x^2} \, dx\)

Optimal. Leaf size=76 \[ \frac {1}{5} a^6 c^3 x^5+\frac {1}{2} a^5 c^3 x^4-\frac {1}{3} a^4 c^3 x^3-2 a^3 c^3 x^2-a^2 c^3 x+2 a c^3 \log (x)-\frac {c^3}{x} \]

[Out]

-c^3/x-a^2*c^3*x-2*a^3*c^3*x^2-1/3*a^4*c^3*x^3+1/2*a^5*c^3*x^4+1/5*a^6*c^3*x^5+2*a*c^3*ln(x)

________________________________________________________________________________________

Rubi [A]  time = 0.09, antiderivative size = 76, normalized size of antiderivative = 1.00, number of steps used = 3, number of rules used = 2, integrand size = 25, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.080, Rules used = {6150, 88} \[ \frac {1}{5} a^6 c^3 x^5+\frac {1}{2} a^5 c^3 x^4-\frac {1}{3} a^4 c^3 x^3-2 a^3 c^3 x^2-a^2 c^3 x+2 a c^3 \log (x)-\frac {c^3}{x} \]

Antiderivative was successfully verified.

[In]

Int[(E^(2*ArcTanh[a*x])*(c - a^2*c*x^2)^3)/x^2,x]

[Out]

-(c^3/x) - a^2*c^3*x - 2*a^3*c^3*x^2 - (a^4*c^3*x^3)/3 + (a^5*c^3*x^4)/2 + (a^6*c^3*x^5)/5 + 2*a*c^3*Log[x]

Rule 88

Int[((a_.) + (b_.)*(x_))^(m_.)*((c_.) + (d_.)*(x_))^(n_.)*((e_.) + (f_.)*(x_))^(p_.), x_Symbol] :> Int[ExpandI
ntegrand[(a + b*x)^m*(c + d*x)^n*(e + f*x)^p, x], x] /; FreeQ[{a, b, c, d, e, f, p}, x] && IntegersQ[m, n] &&
(IntegerQ[p] || (GtQ[m, 0] && GeQ[n, -1]))

Rule 6150

Int[E^(ArcTanh[(a_.)*(x_)]*(n_.))*(x_)^(m_.)*((c_) + (d_.)*(x_)^2)^(p_.), x_Symbol] :> Dist[c^p, Int[x^m*(1 -
a*x)^(p - n/2)*(1 + a*x)^(p + n/2), x], x] /; FreeQ[{a, c, d, m, n, p}, x] && EqQ[a^2*c + d, 0] && (IntegerQ[p
] || GtQ[c, 0])

Rubi steps

\begin {align*} \int \frac {e^{2 \tanh ^{-1}(a x)} \left (c-a^2 c x^2\right )^3}{x^2} \, dx &=c^3 \int \frac {(1-a x)^2 (1+a x)^4}{x^2} \, dx\\ &=c^3 \int \left (-a^2+\frac {1}{x^2}+\frac {2 a}{x}-4 a^3 x-a^4 x^2+2 a^5 x^3+a^6 x^4\right ) \, dx\\ &=-\frac {c^3}{x}-a^2 c^3 x-2 a^3 c^3 x^2-\frac {1}{3} a^4 c^3 x^3+\frac {1}{2} a^5 c^3 x^4+\frac {1}{5} a^6 c^3 x^5+2 a c^3 \log (x)\\ \end {align*}

________________________________________________________________________________________

Mathematica [A]  time = 0.03, size = 59, normalized size = 0.78 \[ c^3 \left (\frac {a^6 x^5}{5}+\frac {a^5 x^4}{2}-\frac {a^4 x^3}{3}-2 a^3 x^2-a^2 x+2 a \log (x)-\frac {1}{x}\right ) \]

Antiderivative was successfully verified.

[In]

Integrate[(E^(2*ArcTanh[a*x])*(c - a^2*c*x^2)^3)/x^2,x]

[Out]

c^3*(-x^(-1) - a^2*x - 2*a^3*x^2 - (a^4*x^3)/3 + (a^5*x^4)/2 + (a^6*x^5)/5 + 2*a*Log[x])

________________________________________________________________________________________

fricas [A]  time = 0.68, size = 75, normalized size = 0.99 \[ \frac {6 \, a^{6} c^{3} x^{6} + 15 \, a^{5} c^{3} x^{5} - 10 \, a^{4} c^{3} x^{4} - 60 \, a^{3} c^{3} x^{3} - 30 \, a^{2} c^{3} x^{2} + 60 \, a c^{3} x \log \relax (x) - 30 \, c^{3}}{30 \, x} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

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

[Out]

1/30*(6*a^6*c^3*x^6 + 15*a^5*c^3*x^5 - 10*a^4*c^3*x^4 - 60*a^3*c^3*x^3 - 30*a^2*c^3*x^2 + 60*a*c^3*x*log(x) -
30*c^3)/x

________________________________________________________________________________________

giac [A]  time = 0.20, size = 71, normalized size = 0.93 \[ \frac {1}{5} \, a^{6} c^{3} x^{5} + \frac {1}{2} \, a^{5} c^{3} x^{4} - \frac {1}{3} \, a^{4} c^{3} x^{3} - 2 \, a^{3} c^{3} x^{2} - a^{2} c^{3} x + 2 \, a c^{3} \log \left ({\left | x \right |}\right ) - \frac {c^{3}}{x} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

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

[Out]

1/5*a^6*c^3*x^5 + 1/2*a^5*c^3*x^4 - 1/3*a^4*c^3*x^3 - 2*a^3*c^3*x^2 - a^2*c^3*x + 2*a*c^3*log(abs(x)) - c^3/x

________________________________________________________________________________________

maple [A]  time = 0.03, size = 71, normalized size = 0.93 \[ -\frac {c^{3}}{x}-a^{2} c^{3} x -2 a^{3} c^{3} x^{2}-\frac {a^{4} c^{3} x^{3}}{3}+\frac {a^{5} c^{3} x^{4}}{2}+\frac {a^{6} c^{3} x^{5}}{5}+2 a \,c^{3} \ln \relax (x ) \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

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

[Out]

-c^3/x-a^2*c^3*x-2*a^3*c^3*x^2-1/3*a^4*c^3*x^3+1/2*a^5*c^3*x^4+1/5*a^6*c^3*x^5+2*a*c^3*ln(x)

________________________________________________________________________________________

maxima [A]  time = 0.30, size = 70, normalized size = 0.92 \[ \frac {1}{5} \, a^{6} c^{3} x^{5} + \frac {1}{2} \, a^{5} c^{3} x^{4} - \frac {1}{3} \, a^{4} c^{3} x^{3} - 2 \, a^{3} c^{3} x^{2} - a^{2} c^{3} x + 2 \, a c^{3} \log \relax (x) - \frac {c^{3}}{x} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

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

[Out]

1/5*a^6*c^3*x^5 + 1/2*a^5*c^3*x^4 - 1/3*a^4*c^3*x^3 - 2*a^3*c^3*x^2 - a^2*c^3*x + 2*a*c^3*log(x) - c^3/x

________________________________________________________________________________________

mupad [B]  time = 0.04, size = 70, normalized size = 0.92 \[ 2\,a\,c^3\,\ln \relax (x)-a^2\,c^3\,x-\frac {c^3}{x}-2\,a^3\,c^3\,x^2-\frac {a^4\,c^3\,x^3}{3}+\frac {a^5\,c^3\,x^4}{2}+\frac {a^6\,c^3\,x^5}{5} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

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

[Out]

2*a*c^3*log(x) - a^2*c^3*x - c^3/x - 2*a^3*c^3*x^2 - (a^4*c^3*x^3)/3 + (a^5*c^3*x^4)/2 + (a^6*c^3*x^5)/5

________________________________________________________________________________________

sympy [A]  time = 0.17, size = 70, normalized size = 0.92 \[ \frac {a^{6} c^{3} x^{5}}{5} + \frac {a^{5} c^{3} x^{4}}{2} - \frac {a^{4} c^{3} x^{3}}{3} - 2 a^{3} c^{3} x^{2} - a^{2} c^{3} x + 2 a c^{3} \log {\relax (x )} - \frac {c^{3}}{x} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((a*x+1)**2/(-a**2*x**2+1)*(-a**2*c*x**2+c)**3/x**2,x)

[Out]

a**6*c**3*x**5/5 + a**5*c**3*x**4/2 - a**4*c**3*x**3/3 - 2*a**3*c**3*x**2 - a**2*c**3*x + 2*a*c**3*log(x) - c*
*3/x

________________________________________________________________________________________