Optimal. Leaf size=20 \[ \frac{\tanh ^{-1}(\tanh (a+b x))^{n+1}}{b (n+1)} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.0067712, antiderivative size = 20, normalized size of antiderivative = 1., 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 2157
Rule 30
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.0147276, size = 20, normalized size = 1. \[ \frac{\tanh ^{-1}(\tanh (a+b x))^{n+1}}{b (n+1)} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A] time = 0.027, size = 21, normalized size = 1.1 \begin{align*}{\frac{ \left ({\it Artanh} \left ( \tanh \left ( bx+a \right ) \right ) \right ) ^{1+n}}{b \left ( 1+n \right ) }} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A] time = 1.69616, size = 28, normalized size = 1.4 \begin{align*} \frac{{\left (b x + a\right )}{\left (b x + a\right )}^{n}}{b{\left (n + 1\right )}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A] time = 2.33867, size = 104, normalized size = 5.2 \begin{align*} \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} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [A] time = 1.46915, size = 51, normalized size = 2.55 \begin{align*} \begin{cases} \frac{x}{\operatorname{atanh}{\left (\tanh{\left (a \right )} \right )}} & \text{for}\: b = 0 \wedge n = -1 \\x \operatorname{atanh}^{n}{\left (\tanh{\left (a \right )} \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} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A] time = 1.16034, size = 38, normalized size = 1.9 \begin{align*} \frac{{\left (b x + a\right )}^{n} b x +{\left (b x + a\right )}^{n} a}{b n + b} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]