Integrand size = 11, antiderivative size = 28 \[ \int \frac {x}{\coth ^{-1}(\tanh (a+b x))^2} \, dx=-\frac {x}{b \coth ^{-1}(\tanh (a+b x))}+\frac {\log \left (\coth ^{-1}(\tanh (a+b x))\right )}{b^2} \]
[Out]
Time = 0.01 (sec) , antiderivative size = 28, normalized size of antiderivative = 1.00, number of steps used = 3, number of rules used = 3, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.273, Rules used = {2199, 2188, 29} \[ \int \frac {x}{\coth ^{-1}(\tanh (a+b x))^2} \, dx=\frac {\log \left (\coth ^{-1}(\tanh (a+b x))\right )}{b^2}-\frac {x}{b \coth ^{-1}(\tanh (a+b x))} \]
[In]
[Out]
Rule 29
Rule 2188
Rule 2199
Rubi steps \begin{align*} \text {integral}& = -\frac {x}{b \coth ^{-1}(\tanh (a+b x))}+\frac {\int \frac {1}{\coth ^{-1}(\tanh (a+b x))} \, dx}{b} \\ & = -\frac {x}{b \coth ^{-1}(\tanh (a+b x))}+\frac {\text {Subst}\left (\int \frac {1}{x} \, dx,x,\coth ^{-1}(\tanh (a+b x))\right )}{b^2} \\ & = -\frac {x}{b \coth ^{-1}(\tanh (a+b x))}+\frac {\log \left (\coth ^{-1}(\tanh (a+b x))\right )}{b^2} \\ \end{align*}
Time = 0.12 (sec) , antiderivative size = 27, normalized size of antiderivative = 0.96 \[ \int \frac {x}{\coth ^{-1}(\tanh (a+b x))^2} \, dx=\frac {1-\frac {b x}{\coth ^{-1}(\tanh (a+b x))}+\log \left (\coth ^{-1}(\tanh (a+b x))\right )}{b^2} \]
[In]
[Out]
Time = 0.14 (sec) , antiderivative size = 35, normalized size of antiderivative = 1.25
method | result | size |
parallelrisch | \(\frac {\ln \left (\operatorname {arccoth}\left (\tanh \left (b x +a \right )\right )\right ) \operatorname {arccoth}\left (\tanh \left (b x +a \right )\right )-b x}{b^{2} \operatorname {arccoth}\left (\tanh \left (b x +a \right )\right )}\) | \(35\) |
risch | \(-\frac {4 i x}{b \left (\pi \operatorname {csgn}\left (i {\mathrm e}^{2 b x +2 a}\right )^{3}-2 \pi \,\operatorname {csgn}\left (i {\mathrm e}^{b x +a}\right ) \operatorname {csgn}\left (i {\mathrm e}^{2 b x +2 a}\right )^{2}-\pi \,\operatorname {csgn}\left (i {\mathrm e}^{2 b x +2 a}\right ) \operatorname {csgn}\left (\frac {i {\mathrm e}^{2 b x +2 a}}{{\mathrm e}^{2 b x +2 a}+1}\right )^{2}+\pi \,\operatorname {csgn}\left (\frac {i}{{\mathrm e}^{2 b x +2 a}+1}\right ) \operatorname {csgn}\left (i {\mathrm e}^{2 b x +2 a}\right ) \operatorname {csgn}\left (\frac {i {\mathrm e}^{2 b x +2 a}}{{\mathrm e}^{2 b x +2 a}+1}\right )+\pi \operatorname {csgn}\left (i {\mathrm e}^{b x +a}\right )^{2} \operatorname {csgn}\left (i {\mathrm e}^{2 b x +2 a}\right )+\pi \operatorname {csgn}\left (\frac {i {\mathrm e}^{2 b x +2 a}}{{\mathrm e}^{2 b x +2 a}+1}\right )^{3}-\pi \,\operatorname {csgn}\left (\frac {i}{{\mathrm e}^{2 b x +2 a}+1}\right ) \operatorname {csgn}\left (\frac {i {\mathrm e}^{2 b x +2 a}}{{\mathrm e}^{2 b x +2 a}+1}\right )^{2}+2 \pi \operatorname {csgn}\left (\frac {i}{{\mathrm e}^{2 b x +2 a}+1}\right )^{3}-2 \pi \operatorname {csgn}\left (\frac {i}{{\mathrm e}^{2 b x +2 a}+1}\right )^{2}+4 i \ln \left ({\mathrm e}^{b x +a}\right )+2 \pi \right )}+\frac {\ln \left (\ln \left ({\mathrm e}^{b x +a}\right )-\frac {i \pi \left (\operatorname {csgn}\left (\frac {i}{{\mathrm e}^{2 b x +2 a}+1}\right ) \operatorname {csgn}\left (i {\mathrm e}^{2 b x +2 a}\right ) \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 ) \operatorname {csgn}\left (\frac {i {\mathrm e}^{2 b x +2 a}}{{\mathrm e}^{2 b x +2 a}+1}\right )^{2}+2 \operatorname {csgn}\left (\frac {i}{{\mathrm e}^{2 b x +2 a}+1}\right )^{3}-2 \operatorname {csgn}\left (\frac {i}{{\mathrm e}^{2 b x +2 a}+1}\right )^{2}+\operatorname {csgn}\left (i {\mathrm e}^{b x +a}\right )^{2} \operatorname {csgn}\left (i {\mathrm e}^{2 b x +2 a}\right )-2 \,\operatorname {csgn}\left (i {\mathrm e}^{b x +a}\right ) \operatorname {csgn}\left (i {\mathrm e}^{2 b x +2 a}\right )^{2}+\operatorname {csgn}\left (i {\mathrm e}^{2 b x +2 a}\right )^{3}-\operatorname {csgn}\left (i {\mathrm e}^{2 b x +2 a}\right ) \operatorname {csgn}\left (\frac {i {\mathrm e}^{2 b x +2 a}}{{\mathrm e}^{2 b x +2 a}+1}\right )^{2}+\operatorname {csgn}\left (\frac {i {\mathrm e}^{2 b x +2 a}}{{\mathrm e}^{2 b x +2 a}+1}\right )^{3}+2\right )}{4}\right )}{b^{2}}\) | \(625\) |
[In]
[Out]
Result contains complex when optimal does not.
Time = 0.26 (sec) , antiderivative size = 53, normalized size of antiderivative = 1.89 \[ \int \frac {x}{\coth ^{-1}(\tanh (a+b x))^2} \, dx=\frac {i \, \pi + {\left (i \, \pi + 2 \, b x + 2 \, a\right )} \log \left (i \, \pi + 2 \, b x + 2 \, a\right ) + 2 \, a}{2 \, b^{3} x + i \, \pi b^{2} + 2 \, a b^{2}} \]
[In]
[Out]
Time = 12.37 (sec) , antiderivative size = 36, normalized size of antiderivative = 1.29 \[ \int \frac {x}{\coth ^{-1}(\tanh (a+b x))^2} \, dx=\begin {cases} - \frac {x}{b \operatorname {acoth}{\left (\tanh {\left (a + b x \right )} \right )}} + \frac {\log {\left (\operatorname {acoth}{\left (\tanh {\left (a + b x \right )} \right )} \right )}}{b^{2}} & \text {for}\: b \neq 0 \\\frac {x^{2}}{2 \operatorname {acoth}^{2}{\left (\tanh {\left (a \right )} \right )}} & \text {otherwise} \end {cases} \]
[In]
[Out]
Result contains complex when optimal does not.
Time = 0.54 (sec) , antiderivative size = 46, normalized size of antiderivative = 1.64 \[ \int \frac {x}{\coth ^{-1}(\tanh (a+b x))^2} \, dx=\frac {-i \, \pi + 2 \, a}{2 \, b^{3} x - i \, \pi b^{2} + 2 \, a b^{2}} + \frac {\log \left (-i \, \pi + 2 \, b x + 2 \, a\right )}{b^{2}} \]
[In]
[Out]
Result contains complex when optimal does not.
Time = 0.29 (sec) , antiderivative size = 47, normalized size of antiderivative = 1.68 \[ \int \frac {x}{\coth ^{-1}(\tanh (a+b x))^2} \, dx=-\frac {-i \, \pi - 2 \, a}{2 \, b^{3} x + i \, \pi b^{2} + 2 \, a b^{2}} + \frac {\log \left (i \, \pi + 2 \, b x + 2 \, a\right )}{b^{2}} \]
[In]
[Out]
Time = 0.10 (sec) , antiderivative size = 28, normalized size of antiderivative = 1.00 \[ \int \frac {x}{\coth ^{-1}(\tanh (a+b x))^2} \, dx=\frac {\ln \left (\mathrm {acoth}\left (\mathrm {tanh}\left (a+b\,x\right )\right )\right )}{b^2}-\frac {x}{b\,\mathrm {acoth}\left (\mathrm {tanh}\left (a+b\,x\right )\right )} \]
[In]
[Out]