3.1186 \(\int e^{4 \tanh ^{-1}(a x)} (c-a^2 c x^2) \, dx\)

Optimal. Leaf size=36 \[ -\frac {1}{3} a^2 c x^3-2 a c x^2-\frac {8 c \log (1-a x)}{a}-7 c x \]

[Out]

-7*c*x-2*a*c*x^2-1/3*a^2*c*x^3-8*c*ln(-a*x+1)/a

________________________________________________________________________________________

Rubi [A]  time = 0.03, antiderivative size = 46, normalized size of antiderivative = 1.28, number of steps used = 3, number of rules used = 2, integrand size = 20, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.100, Rules used = {6140, 43} \[ -\frac {c (a x+1)^3}{3 a}-\frac {c (a x+1)^2}{a}-\frac {8 c \log (1-a x)}{a}-4 c x \]

Antiderivative was successfully verified.

[In]

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

[Out]

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

Rule 43

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, n}, x] && NeQ[b*c - a*d, 0] && IGtQ[m, 0] && ( !IntegerQ[n] || (EqQ[c, 0]
&& LeQ[7*m + 4*n + 4, 0]) || LtQ[9*m + 5*(n + 1), 0] || GtQ[m + n + 2, 0])

Rule 6140

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

Rubi steps

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

________________________________________________________________________________________

Mathematica [A]  time = 0.01, size = 36, normalized size = 1.00 \[ -\frac {1}{3} a^2 c x^3-2 a c x^2-\frac {8 c \log (1-a x)}{a}-7 c x \]

Antiderivative was successfully verified.

[In]

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

[Out]

-7*c*x - 2*a*c*x^2 - (a^2*c*x^3)/3 - (8*c*Log[1 - a*x])/a

________________________________________________________________________________________

fricas [A]  time = 0.63, size = 37, normalized size = 1.03 \[ -\frac {a^{3} c x^{3} + 6 \, a^{2} c x^{2} + 21 \, a c x + 24 \, c \log \left (a x - 1\right )}{3 \, a} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

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

[Out]

-1/3*(a^3*c*x^3 + 6*a^2*c*x^2 + 21*a*c*x + 24*c*log(a*x - 1))/a

________________________________________________________________________________________

giac [A]  time = 0.34, size = 44, normalized size = 1.22 \[ -\frac {8 \, c \log \left ({\left | a x - 1 \right |}\right )}{a} - \frac {a^{5} c x^{3} + 6 \, a^{4} c x^{2} + 21 \, a^{3} c x}{3 \, a^{3}} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

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

[Out]

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

________________________________________________________________________________________

maple [A]  time = 0.03, size = 34, normalized size = 0.94 \[ -\frac {a^{2} c \,x^{3}}{3}-2 a c \,x^{2}-7 c x -\frac {8 c \ln \left (a x -1\right )}{a} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

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

[Out]

-1/3*a^2*c*x^3-2*a*c*x^2-7*c*x-8*c/a*ln(a*x-1)

________________________________________________________________________________________

maxima [A]  time = 0.32, size = 33, normalized size = 0.92 \[ -\frac {1}{3} \, a^{2} c x^{3} - 2 \, a c x^{2} - 7 \, c x - \frac {8 \, c \log \left (a x - 1\right )}{a} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

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

[Out]

-1/3*a^2*c*x^3 - 2*a*c*x^2 - 7*c*x - 8*c*log(a*x - 1)/a

________________________________________________________________________________________

mupad [B]  time = 0.05, size = 33, normalized size = 0.92 \[ -7\,c\,x-\frac {a^2\,c\,x^3}{3}-\frac {8\,c\,\ln \left (a\,x-1\right )}{a}-2\,a\,c\,x^2 \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

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

[Out]

- 7*c*x - (a^2*c*x^3)/3 - (8*c*log(a*x - 1))/a - 2*a*c*x^2

________________________________________________________________________________________

sympy [A]  time = 0.21, size = 36, normalized size = 1.00 \[ - \frac {a^{2} c x^{3}}{3} - 2 a c x^{2} - 7 c x - \frac {8 c \log {\left (a x - 1 \right )}}{a} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

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

[Out]

-a**2*c*x**3/3 - 2*a*c*x**2 - 7*c*x - 8*c*log(a*x - 1)/a

________________________________________________________________________________________