Integrand size = 7, antiderivative size = 16 \[ \int \coth ^{-1}(\tanh (a+b x)) \, dx=\frac {\coth ^{-1}(\tanh (a+b x))^2}{2 b} \]
[Out]
Time = 0.00 (sec) , antiderivative size = 16, 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.286, Rules used = {2188, 30} \[ \int \coth ^{-1}(\tanh (a+b x)) \, dx=\frac {\coth ^{-1}(\tanh (a+b x))^2}{2 b} \]
[In]
[Out]
Rule 30
Rule 2188
Rubi steps \begin{align*} \text {integral}& = \frac {\text {Subst}\left (\int x \, dx,x,\coth ^{-1}(\tanh (a+b x))\right )}{b} \\ & = \frac {\coth ^{-1}(\tanh (a+b x))^2}{2 b} \\ \end{align*}
Time = 0.01 (sec) , antiderivative size = 18, normalized size of antiderivative = 1.12 \[ \int \coth ^{-1}(\tanh (a+b x)) \, dx=-\frac {b x^2}{2}+x \coth ^{-1}(\tanh (a+b x)) \]
[In]
[Out]
Time = 0.56 (sec) , antiderivative size = 17, normalized size of antiderivative = 1.06
method | result | size |
parallelrisch | \(-\frac {b \,x^{2}}{2}+x \,\operatorname {arccoth}\left (\tanh \left (b x +a \right )\right )\) | \(17\) |
derivativedivides | \(\frac {\operatorname {arctanh}\left (\tanh \left (b x +a \right )\right ) \operatorname {arccoth}\left (\tanh \left (b x +a \right )\right )-\frac {\operatorname {arctanh}\left (\tanh \left (b x +a \right )\right )^{2}}{2}}{b}\) | \(32\) |
default | \(\frac {\operatorname {arctanh}\left (\tanh \left (b x +a \right )\right ) \operatorname {arccoth}\left (\tanh \left (b x +a \right )\right )-\frac {\operatorname {arctanh}\left (\tanh \left (b x +a \right )\right )^{2}}{2}}{b}\) | \(32\) |
parts | \(x \,\operatorname {arccoth}\left (\tanh \left (b x +a \right )\right )+\frac {-\frac {\left (b x +a \right )^{2}}{2}+\left (b x +a \right ) a}{b}\) | \(32\) |
risch | \(x \ln \left ({\mathrm e}^{b x +a}\right )-\frac {i \pi \operatorname {csgn}\left (\frac {i}{{\mathrm e}^{2 b x +2 a}+1}\right )^{3} x}{2}-\frac {i \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 ) x}{4}+\frac {i \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} x}{4}-\frac {i \pi \operatorname {csgn}\left (i {\mathrm e}^{2 b x +2 a}\right )^{3} x}{4}+\frac {i \pi \operatorname {csgn}\left (i {\mathrm e}^{2 b x +2 a}\right )^{2} \operatorname {csgn}\left (i {\mathrm e}^{b x +a}\right ) x}{2}+\frac {i \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} x}{4}-\frac {i \pi \,\operatorname {csgn}\left (i {\mathrm e}^{2 b x +2 a}\right ) \operatorname {csgn}\left (i {\mathrm e}^{b x +a}\right )^{2} x}{4}-\frac {i \pi \operatorname {csgn}\left (\frac {i {\mathrm e}^{2 b x +2 a}}{{\mathrm e}^{2 b x +2 a}+1}\right )^{3} x}{4}-\frac {b \,x^{2}}{2}+\frac {i \pi \operatorname {csgn}\left (\frac {i}{{\mathrm e}^{2 b x +2 a}+1}\right )^{2} x}{2}-\frac {i \pi x}{2}\) | \(340\) |
[In]
[Out]
Result contains complex when optimal does not.
Time = 0.25 (sec) , antiderivative size = 14, normalized size of antiderivative = 0.88 \[ \int \coth ^{-1}(\tanh (a+b x)) \, dx=\frac {1}{2} \, b x^{2} + \frac {1}{2} i \, \pi x + a x \]
[In]
[Out]
Time = 0.07 (sec) , antiderivative size = 19, normalized size of antiderivative = 1.19 \[ \int \coth ^{-1}(\tanh (a+b x)) \, dx=\begin {cases} \frac {\operatorname {acoth}^{2}{\left (\tanh {\left (a + b x \right )} \right )}}{2 b} & \text {for}\: b \neq 0 \\x \operatorname {acoth}{\left (\tanh {\left (a \right )} \right )} & \text {otherwise} \end {cases} \]
[In]
[Out]
none
Time = 0.25 (sec) , antiderivative size = 16, normalized size of antiderivative = 1.00 \[ \int \coth ^{-1}(\tanh (a+b x)) \, dx=-\frac {1}{2} \, b x^{2} + x \operatorname {arcoth}\left (\tanh \left (b x + a\right )\right ) \]
[In]
[Out]
Leaf count of result is larger than twice the leaf count of optimal. 69 vs. \(2 (14) = 28\).
Time = 0.26 (sec) , antiderivative size = 69, normalized size of antiderivative = 4.31 \[ \int \coth ^{-1}(\tanh (a+b x)) \, dx=-\frac {1}{2} \, b x^{2} + \frac {1}{2} \, x \log \left (-\frac {\frac {e^{\left (2 \, b x + 2 \, a\right )} + 1}{e^{\left (2 \, b x + 2 \, a\right )} - 1} + 1}{\frac {e^{\left (2 \, b x + 2 \, a\right )} + 1}{e^{\left (2 \, b x + 2 \, a\right )} - 1} - 1}\right ) \]
[In]
[Out]
Time = 3.75 (sec) , antiderivative size = 16, normalized size of antiderivative = 1.00 \[ \int \coth ^{-1}(\tanh (a+b x)) \, dx=x\,\mathrm {acoth}\left (\mathrm {tanh}\left (a+b\,x\right )\right )-\frac {b\,x^2}{2} \]
[In]
[Out]