Optimal. Leaf size=39 \[ \frac {(1-a x)^{-\frac {n}{2}-1} (a x+1)^{\frac {n+2}{2}}}{a c^2 (n+2)} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.04, antiderivative size = 39, normalized size of antiderivative = 1.00, number of steps used = 2, number of rules used = 2, integrand size = 18, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.111, Rules used = {6129, 37} \[ \frac {(1-a x)^{-\frac {n}{2}-1} (a x+1)^{\frac {n+2}{2}}}{a c^2 (n+2)} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 37
Rule 6129
Rubi steps
\begin {align*} \int \frac {e^{n \tanh ^{-1}(a x)}}{(c-a c x)^2} \, dx &=\frac {\int (1-a x)^{-2-\frac {n}{2}} (1+a x)^{n/2} \, dx}{c^2}\\ &=\frac {(1-a x)^{-1-\frac {n}{2}} (1+a x)^{\frac {2+n}{2}}}{a c^2 (2+n)}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A] time = 0.02, size = 39, normalized size = 1.00 \[ \frac {(1-a x)^{-\frac {n}{2}-1} (a x+1)^{\frac {n}{2}+1}}{a c^2 (n+2)} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [A] time = 0.60, size = 58, normalized size = 1.49 \[ \frac {{\left (a x + 1\right )} \left (\frac {a x + 1}{a x - 1}\right )^{\frac {1}{2} \, n}}{a c^{2} n + 2 \, a c^{2} - {\left (a^{2} c^{2} n + 2 \, a^{2} c^{2}\right )} x} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [F] time = 0.00, size = 0, normalized size = 0.00 \[ \int \frac {\left (\frac {a x + 1}{a x - 1}\right )^{\frac {1}{2} \, n}}{{\left (a c x - c\right )}^{2}}\,{d x} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [A] time = 0.03, size = 33, normalized size = 0.85 \[ -\frac {{\mathrm e}^{n \arctanh \left (a x \right )} \left (a x +1\right )}{\left (a x -1\right ) c^{2} \left (2+n \right ) a} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [F] time = 0.00, size = 0, normalized size = 0.00 \[ \int \frac {\left (\frac {a x + 1}{a x - 1}\right )^{\frac {1}{2} \, n}}{{\left (a c x - c\right )}^{2}}\,{d x} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [B] time = 1.10, size = 37, normalized size = 0.95 \[ \frac {{\left (a\,x+1\right )}^{\frac {n}{2}+1}}{a\,c^2\,{\left (1-a\,x\right )}^{\frac {n}{2}+1}\,\left (n+2\right )} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [F] time = 0.00, size = 0, normalized size = 0.00 \[ \begin {cases} \text {NaN} & \text {for}\: a = \frac {1}{x} \wedge c = 0 \wedge n = -2 \\\tilde {\infty } x e^{\infty n} & \text {for}\: a = \frac {1}{x} \\\tilde {\infty } \int e^{n \operatorname {atanh}{\left (a x \right )}}\, dx & \text {for}\: c = 0 \\- \frac {a x \operatorname {atanh}{\left (a x \right )}}{a^{2} c^{2} x e^{2 \operatorname {atanh}{\left (a x \right )}} - a c^{2} e^{2 \operatorname {atanh}{\left (a x \right )}}} - \frac {\operatorname {atanh}{\left (a x \right )}}{a^{2} c^{2} x e^{2 \operatorname {atanh}{\left (a x \right )}} - a c^{2} e^{2 \operatorname {atanh}{\left (a x \right )}}} & \text {for}\: n = -2 \\- \frac {a x e^{n \operatorname {atanh}{\left (a x \right )}}}{a^{2} c^{2} n x + 2 a^{2} c^{2} x - a c^{2} n - 2 a c^{2}} - \frac {e^{n \operatorname {atanh}{\left (a x \right )}}}{a^{2} c^{2} n x + 2 a^{2} c^{2} x - a c^{2} n - 2 a c^{2}} & \text {otherwise} \end {cases} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________