Optimal. Leaf size=20 \[ \frac {\tanh ^{-1}(\tanh (a+b x))^{n+1}}{b (n+1)} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.01, antiderivative size = 20, normalized size of antiderivative = 1.00, number of steps used = 2, number of rules used = 2, integrand size = 9, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.222, Rules used = {2157, 30} \[ \frac {\tanh ^{-1}(\tanh (a+b x))^{n+1}}{b (n+1)} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 30
Rule 2157
Rubi steps
\begin {align*} \int \tanh ^{-1}(\tanh (a+b x))^n \, dx &=\frac {\operatorname {Subst}\left (\int x^n \, dx,x,\tanh ^{-1}(\tanh (a+b x))\right )}{b}\\ &=\frac {\tanh ^{-1}(\tanh (a+b x))^{1+n}}{b (1+n)}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A] time = 0.02, size = 20, normalized size = 1.00 \[ \frac {\tanh ^{-1}(\tanh (a+b x))^{n+1}}{b (n+1)} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [A] time = 0.51, size = 39, normalized size = 1.95 \[ \frac {{\left (b x + a\right )} \cosh \left (n \log \left (b x + a\right )\right ) + {\left (b x + a\right )} \sinh \left (n \log \left (b x + a\right )\right )}{b n + b} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [A] time = 0.14, size = 28, normalized size = 1.40 \[ \frac {{\left (b x + a\right )}^{n} b x + {\left (b x + a\right )}^{n} a}{b n + b} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [A] time = 0.03, size = 21, normalized size = 1.05 \[ \frac {\arctanh \left (\tanh \left (b x +a \right )\right )^{1+n}}{b \left (1+n \right )} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [A] time = 0.50, size = 21, normalized size = 1.05 \[ \frac {{\left (b x + a\right )} {\left (b x + a\right )}^{n}}{b {\left (n + 1\right )}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [B] time = 1.18, size = 121, normalized size = 6.05 \[ {\left (\frac {1}{2}\right )}^n\,\left (\frac {x}{n+1}-\frac {\frac {\ln \left (\frac {2}{{\mathrm {e}}^{2\,a}\,{\mathrm {e}}^{2\,b\,x}+1}\right )}{2}-\frac {\ln \left (\frac {2\,{\mathrm {e}}^{2\,a}\,{\mathrm {e}}^{2\,b\,x}}{{\mathrm {e}}^{2\,a}\,{\mathrm {e}}^{2\,b\,x}+1}\right )}{2}+b\,x}{b\,\left (n+1\right )}\right )\,{\left (\ln \left (\frac {2\,{\mathrm {e}}^{2\,a}\,{\mathrm {e}}^{2\,b\,x}}{{\mathrm {e}}^{2\,a}\,{\mathrm {e}}^{2\,b\,x}+1}\right )-\ln \left (\frac {2}{{\mathrm {e}}^{2\,a}\,{\mathrm {e}}^{2\,b\,x}+1}\right )\right )}^n \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [A] time = 0.69, size = 51, normalized size = 2.55 \[ \begin {cases} \frac {x}{\operatorname {atanh}{\left (\tanh {\relax (a )} \right )}} & \text {for}\: b = 0 \wedge n = -1 \\x \operatorname {atanh}^{n}{\left (\tanh {\relax (a )} \right )} & \text {for}\: b = 0 \\\frac {\log {\left (\operatorname {atanh}{\left (\tanh {\left (a + b x \right )} \right )} \right )}}{b} & \text {for}\: n = -1 \\\frac {\operatorname {atanh}{\left (\tanh {\left (a + b x \right )} \right )} \operatorname {atanh}^{n}{\left (\tanh {\left (a + b x \right )} \right )}}{b n + b} & \text {otherwise} \end {cases} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________