Integrand size = 9, antiderivative size = 20 \[ \int \coth ^{-1}(\tanh (a+b x))^n \, dx=\frac {\coth ^{-1}(\tanh (a+b x))^{1+n}}{b (1+n)} \]
[Out]
Time = 0.01 (sec) , antiderivative size = 20, normalized size of antiderivative = 1.00, number of steps used = 2, number of rules used = 2, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.222, Rules used = {2188, 30} \[ \int \coth ^{-1}(\tanh (a+b x))^n \, dx=\frac {\coth ^{-1}(\tanh (a+b x))^{n+1}}{b (n+1)} \]
[In]
[Out]
Rule 30
Rule 2188
Rubi steps \begin{align*} \text {integral}& = \frac {\text {Subst}\left (\int x^n \, dx,x,\coth ^{-1}(\tanh (a+b x))\right )}{b} \\ & = \frac {\coth ^{-1}(\tanh (a+b x))^{1+n}}{b (1+n)} \\ \end{align*}
Time = 0.01 (sec) , antiderivative size = 20, normalized size of antiderivative = 1.00 \[ \int \coth ^{-1}(\tanh (a+b x))^n \, dx=\frac {\coth ^{-1}(\tanh (a+b x))^{1+n}}{b (1+n)} \]
[In]
[Out]
Time = 9.14 (sec) , antiderivative size = 21, normalized size of antiderivative = 1.05
method | result | size |
derivativedivides | \(\frac {\operatorname {arccoth}\left (\tanh \left (b x +a \right )\right )^{1+n}}{b \left (1+n \right )}\) | \(21\) |
default | \(\frac {\operatorname {arccoth}\left (\tanh \left (b x +a \right )\right )^{1+n}}{b \left (1+n \right )}\) | \(21\) |
parallelrisch | \(\frac {\operatorname {arccoth}\left (\tanh \left (b x +a \right )\right )^{n} \operatorname {arccoth}\left (\tanh \left (b x +a \right )\right )}{b \left (1+n \right )}\) | \(26\) |
risch | \(\frac {\left (\frac {1}{2}\right )^{n} {\left (2 \ln \left ({\mathrm e}^{b x +a}\right )-\frac {i \pi \,\operatorname {csgn}\left (i {\mathrm e}^{2 b x +2 a}\right ) {\left (-\operatorname {csgn}\left (i {\mathrm e}^{2 b x +2 a}\right )+\operatorname {csgn}\left (i {\mathrm e}^{b x +a}\right )\right )}^{2}}{2}-\frac {i \pi \,\operatorname {csgn}\left (\frac {i {\mathrm e}^{2 b x +2 a}}{{\mathrm e}^{2 b x +2 a}+1}\right ) \left (-\operatorname {csgn}\left (\frac {i {\mathrm e}^{2 b x +2 a}}{{\mathrm e}^{2 b x +2 a}+1}\right )+\operatorname {csgn}\left (i {\mathrm e}^{2 b x +2 a}\right )\right ) \left (-\operatorname {csgn}\left (\frac {i {\mathrm e}^{2 b x +2 a}}{{\mathrm e}^{2 b x +2 a}+1}\right )+\operatorname {csgn}\left (\frac {i}{{\mathrm e}^{2 b x +2 a}+1}\right )\right )}{2}-i \pi -i \pi \operatorname {csgn}\left (\frac {i}{{\mathrm e}^{2 b x +2 a}+1}\right )^{2} \left (\operatorname {csgn}\left (\frac {i}{{\mathrm e}^{2 b x +2 a}+1}\right )-1\right )\right )}^{1+n}}{2 b \left (1+n \right )}\) | \(237\) |
[In]
[Out]
Result contains complex when optimal does not.
Time = 0.25 (sec) , antiderivative size = 58, normalized size of antiderivative = 2.90 \[ \int \coth ^{-1}(\tanh (a+b x))^n \, dx=\frac {{\left (i \, \pi + 2 \, b x + 2 \, a\right )} \cosh \left (n \log \left (\frac {1}{2} i \, \pi + b x + a\right )\right ) + {\left (i \, \pi + 2 \, b x + 2 \, a\right )} \sinh \left (n \log \left (\frac {1}{2} i \, \pi + b x + a\right )\right )}{2 \, {\left (b n + b\right )}} \]
[In]
[Out]
Leaf count of result is larger than twice the leaf count of optimal. 51 vs. \(2 (15) = 30\).
Time = 0.27 (sec) , antiderivative size = 51, normalized size of antiderivative = 2.55 \[ \int \coth ^{-1}(\tanh (a+b x))^n \, dx=\begin {cases} \frac {x}{\operatorname {acoth}{\left (\tanh {\left (a \right )} \right )}} & \text {for}\: b = 0 \wedge n = -1 \\x \operatorname {acoth}^{n}{\left (\tanh {\left (a \right )} \right )} & \text {for}\: b = 0 \\\frac {\log {\left (\operatorname {acoth}{\left (\tanh {\left (a + b x \right )} \right )} \right )}}{b} & \text {for}\: n = -1 \\\frac {\operatorname {acoth}{\left (\tanh {\left (a + b x \right )} \right )} \operatorname {acoth}^{n}{\left (\tanh {\left (a + b x \right )} \right )}}{b n + b} & \text {otherwise} \end {cases} \]
[In]
[Out]
Result contains complex when optimal does not.
Time = 0.35 (sec) , antiderivative size = 65, normalized size of antiderivative = 3.25 \[ \int \coth ^{-1}(\tanh (a+b x))^n \, dx=\frac {{\left (-i \, \pi + 2 \, b x + 2 \, a\right )} {\left (\cosh \left (-n \log \left (-i \, \pi + 2 \, b x + 2 \, a\right )\right ) - \sinh \left (-n \log \left (-i \, \pi + 2 \, b x + 2 \, a\right )\right )\right )}}{{\left (2^{n + 1} n + 2^{n + 1}\right )} b} \]
[In]
[Out]
none
Time = 0.27 (sec) , antiderivative size = 27, normalized size of antiderivative = 1.35 \[ \int \coth ^{-1}(\tanh (a+b x))^n \, dx=\frac {\left (\frac {1}{2} \, \log \left (-e^{\left (2 \, b x + 2 \, a\right )}\right )\right )^{n + 1}}{b {\left (n + 1\right )}} \]
[In]
[Out]
Time = 3.89 (sec) , antiderivative size = 121, normalized size of antiderivative = 6.05 \[ \int \coth ^{-1}(\tanh (a+b x))^n \, dx={\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 \]
[In]
[Out]