Integrand size = 13, antiderivative size = 71 \[ \int x^m \coth ^{-1}(\tanh (a+b x))^2 \, dx=\frac {2 b^2 x^{3+m}}{6+11 m+6 m^2+m^3}-\frac {2 b x^{2+m} \coth ^{-1}(\tanh (a+b x))}{2+3 m+m^2}+\frac {x^{1+m} \coth ^{-1}(\tanh (a+b x))^2}{1+m} \]
[Out]
Time = 0.03 (sec) , antiderivative size = 71, normalized size of antiderivative = 1.00, number of steps used = 3, number of rules used = 2, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.154, Rules used = {2199, 30} \[ \int x^m \coth ^{-1}(\tanh (a+b x))^2 \, dx=-\frac {2 b x^{m+2} \coth ^{-1}(\tanh (a+b x))}{m^2+3 m+2}+\frac {x^{m+1} \coth ^{-1}(\tanh (a+b x))^2}{m+1}+\frac {2 b^2 x^{m+3}}{m^3+6 m^2+11 m+6} \]
[In]
[Out]
Rule 30
Rule 2199
Rubi steps \begin{align*} \text {integral}& = \frac {x^{1+m} \coth ^{-1}(\tanh (a+b x))^2}{1+m}-\frac {(2 b) \int x^{1+m} \coth ^{-1}(\tanh (a+b x)) \, dx}{1+m} \\ & = -\frac {2 b x^{2+m} \coth ^{-1}(\tanh (a+b x))}{2+3 m+m^2}+\frac {x^{1+m} \coth ^{-1}(\tanh (a+b x))^2}{1+m}+\frac {\left (2 b^2\right ) \int x^{2+m} \, dx}{2+3 m+m^2} \\ & = \frac {2 b^2 x^{3+m}}{6+11 m+6 m^2+m^3}-\frac {2 b x^{2+m} \coth ^{-1}(\tanh (a+b x))}{2+3 m+m^2}+\frac {x^{1+m} \coth ^{-1}(\tanh (a+b x))^2}{1+m} \\ \end{align*}
Time = 0.12 (sec) , antiderivative size = 62, normalized size of antiderivative = 0.87 \[ \int x^m \coth ^{-1}(\tanh (a+b x))^2 \, dx=\frac {x^{1+m} \left (2 b^2 x^2-2 b (3+m) x \coth ^{-1}(\tanh (a+b x))+\left (6+5 m+m^2\right ) \coth ^{-1}(\tanh (a+b x))^2\right )}{(1+m) (2+m) (3+m)} \]
[In]
[Out]
Time = 0.73 (sec) , antiderivative size = 112, normalized size of antiderivative = 1.58
method | result | size |
parallelrisch | \(-\frac {6 b \,\operatorname {arccoth}\left (\tanh \left (b x +a \right )\right ) x^{m} x^{2}-x \,x^{m} \operatorname {arccoth}\left (\tanh \left (b x +a \right )\right )^{2} m^{2}-5 x \,x^{m} \operatorname {arccoth}\left (\tanh \left (b x +a \right )\right )^{2} m +2 x^{2} x^{m} \operatorname {arccoth}\left (\tanh \left (b x +a \right )\right ) b m -2 b^{2} x^{m} x^{3}-6 \operatorname {arccoth}\left (\tanh \left (b x +a \right )\right )^{2} x \,x^{m}}{\left (1+m \right ) \left (2+m \right ) \left (3+m \right )}\) | \(112\) |
risch | \(\text {Expression too large to display}\) | \(9175\) |
[In]
[Out]
Result contains complex when optimal does not.
Time = 0.25 (sec) , antiderivative size = 264, normalized size of antiderivative = 3.72 \[ \int x^m \coth ^{-1}(\tanh (a+b x))^2 \, dx=-\frac {{\left (\pi ^{2} {\left (m^{2} + 5 \, m + 6\right )} x - 4 \, {\left (b^{2} m^{2} + 3 \, b^{2} m + 2 \, b^{2}\right )} x^{3} - 8 \, {\left (a b m^{2} + 4 \, a b m + 3 \, a b\right )} x^{2} - 4 i \, \pi {\left ({\left (b m^{2} + 4 \, b m + 3 \, b\right )} x^{2} + {\left (a m^{2} + 5 \, a m + 6 \, a\right )} x\right )} - 4 \, {\left (a^{2} m^{2} + 5 \, a^{2} m + 6 \, a^{2}\right )} x\right )} \cosh \left (m \log \left (x\right )\right ) + {\left (\pi ^{2} {\left (m^{2} + 5 \, m + 6\right )} x - 4 \, {\left (b^{2} m^{2} + 3 \, b^{2} m + 2 \, b^{2}\right )} x^{3} - 8 \, {\left (a b m^{2} + 4 \, a b m + 3 \, a b\right )} x^{2} - 4 i \, \pi {\left ({\left (b m^{2} + 4 \, b m + 3 \, b\right )} x^{2} + {\left (a m^{2} + 5 \, a m + 6 \, a\right )} x\right )} - 4 \, {\left (a^{2} m^{2} + 5 \, a^{2} m + 6 \, a^{2}\right )} x\right )} \sinh \left (m \log \left (x\right )\right )}{4 \, {\left (m^{3} + 6 \, m^{2} + 11 \, m + 6\right )}} \]
[In]
[Out]
\[ \int x^m \coth ^{-1}(\tanh (a+b x))^2 \, dx=\begin {cases} b^{2} \log {\left (x \right )} - \frac {b \operatorname {acoth}{\left (\tanh {\left (a + b x \right )} \right )}}{x} - \frac {\operatorname {acoth}^{2}{\left (\tanh {\left (a + b x \right )} \right )}}{2 x^{2}} & \text {for}\: m = -3 \\\int \frac {\operatorname {acoth}^{2}{\left (\tanh {\left (a + b x \right )} \right )}}{x^{2}}\, dx & \text {for}\: m = -2 \\\int \frac {\operatorname {acoth}^{2}{\left (\tanh {\left (a + b x \right )} \right )}}{x}\, dx & \text {for}\: m = -1 \\\frac {2 b^{2} x^{3} x^{m}}{m^{3} + 6 m^{2} + 11 m + 6} - \frac {2 b m x^{2} x^{m} \operatorname {acoth}{\left (\tanh {\left (a + b x \right )} \right )}}{m^{3} + 6 m^{2} + 11 m + 6} - \frac {6 b x^{2} x^{m} \operatorname {acoth}{\left (\tanh {\left (a + b x \right )} \right )}}{m^{3} + 6 m^{2} + 11 m + 6} + \frac {m^{2} x x^{m} \operatorname {acoth}^{2}{\left (\tanh {\left (a + b x \right )} \right )}}{m^{3} + 6 m^{2} + 11 m + 6} + \frac {5 m x x^{m} \operatorname {acoth}^{2}{\left (\tanh {\left (a + b x \right )} \right )}}{m^{3} + 6 m^{2} + 11 m + 6} + \frac {6 x x^{m} \operatorname {acoth}^{2}{\left (\tanh {\left (a + b x \right )} \right )}}{m^{3} + 6 m^{2} + 11 m + 6} & \text {otherwise} \end {cases} \]
[In]
[Out]
none
Time = 0.27 (sec) , antiderivative size = 73, normalized size of antiderivative = 1.03 \[ \int x^m \coth ^{-1}(\tanh (a+b x))^2 \, dx=\frac {2 \, b^{2} x^{3} x^{m}}{{\left (m + 3\right )} {\left (m + 2\right )} {\left (m + 1\right )}} - \frac {2 \, b x^{2} x^{m} \operatorname {arcoth}\left (\tanh \left (b x + a\right )\right )}{{\left (m + 2\right )} {\left (m + 1\right )}} + \frac {x^{m + 1} \operatorname {arcoth}\left (\tanh \left (b x + a\right )\right )^{2}}{m + 1} \]
[In]
[Out]
\[ \int x^m \coth ^{-1}(\tanh (a+b x))^2 \, dx=\int { x^{m} \operatorname {arcoth}\left (\tanh \left (b x + a\right )\right )^{2} \,d x } \]
[In]
[Out]
Time = 4.01 (sec) , antiderivative size = 203, normalized size of antiderivative = 2.86 \[ \int x^m \coth ^{-1}(\tanh (a+b x))^2 \, dx=\frac {4\,b^2\,x^m\,x^3\,\left (m^2+3\,m+2\right )}{4\,m^3+24\,m^2+44\,m+24}+\frac {x\,x^m\,{\left (\ln \left (-\frac {2}{{\mathrm {e}}^{2\,a}\,{\mathrm {e}}^{2\,b\,x}-1}\right )-\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\right )}^2\,\left (m^2+5\,m+6\right )}{4\,m^3+24\,m^2+44\,m+24}-\frac {4\,b\,x^m\,x^2\,\left (\ln \left (-\frac {2}{{\mathrm {e}}^{2\,a}\,{\mathrm {e}}^{2\,b\,x}-1}\right )-\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\right )\,\left (m^2+4\,m+3\right )}{4\,m^3+24\,m^2+44\,m+24} \]
[In]
[Out]