Integrand size = 18, antiderivative size = 194 \[ \int (e+f x) \left (a+b \text {csch}^{-1}(c+d x)\right )^2 \, dx=\frac {b f (c+d x) \sqrt {1+\frac {1}{(c+d x)^2}} \left (a+b \text {csch}^{-1}(c+d x)\right )}{d^2}-\frac {(d e-c f)^2 \left (a+b \text {csch}^{-1}(c+d x)\right )^2}{2 d^2 f}+\frac {(e+f x)^2 \left (a+b \text {csch}^{-1}(c+d x)\right )^2}{2 f}+\frac {4 b (d e-c f) \left (a+b \text {csch}^{-1}(c+d x)\right ) \text {arctanh}\left (e^{\text {csch}^{-1}(c+d x)}\right )}{d^2}+\frac {b^2 f \log (c+d x)}{d^2}+\frac {2 b^2 (d e-c f) \operatorname {PolyLog}\left (2,-e^{\text {csch}^{-1}(c+d x)}\right )}{d^2}-\frac {2 b^2 (d e-c f) \operatorname {PolyLog}\left (2,e^{\text {csch}^{-1}(c+d x)}\right )}{d^2} \]
[Out]
Time = 0.21 (sec) , antiderivative size = 194, normalized size of antiderivative = 1.00, number of steps used = 11, number of rules used = 8, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.444, Rules used = {6457, 5577, 4275, 4267, 2317, 2438, 4269, 3556} \[ \int (e+f x) \left (a+b \text {csch}^{-1}(c+d x)\right )^2 \, dx=\frac {4 b (d e-c f) \text {arctanh}\left (e^{\text {csch}^{-1}(c+d x)}\right ) \left (a+b \text {csch}^{-1}(c+d x)\right )}{d^2}-\frac {(d e-c f)^2 \left (a+b \text {csch}^{-1}(c+d x)\right )^2}{2 d^2 f}+\frac {b f (c+d x) \sqrt {\frac {1}{(c+d x)^2}+1} \left (a+b \text {csch}^{-1}(c+d x)\right )}{d^2}+\frac {(e+f x)^2 \left (a+b \text {csch}^{-1}(c+d x)\right )^2}{2 f}+\frac {2 b^2 (d e-c f) \operatorname {PolyLog}\left (2,-e^{\text {csch}^{-1}(c+d x)}\right )}{d^2}-\frac {2 b^2 (d e-c f) \operatorname {PolyLog}\left (2,e^{\text {csch}^{-1}(c+d x)}\right )}{d^2}+\frac {b^2 f \log (c+d x)}{d^2} \]
[In]
[Out]
Rule 2317
Rule 2438
Rule 3556
Rule 4267
Rule 4269
Rule 4275
Rule 5577
Rule 6457
Rubi steps \begin{align*} \text {integral}& = -\frac {\text {Subst}\left (\int (a+b x)^2 \coth (x) \text {csch}(x) (d e-c f+f \text {csch}(x)) \, dx,x,\text {csch}^{-1}(c+d x)\right )}{d^2} \\ & = \frac {(e+f x)^2 \left (a+b \text {csch}^{-1}(c+d x)\right )^2}{2 f}-\frac {b \text {Subst}\left (\int (a+b x) (d e-c f+f \text {csch}(x))^2 \, dx,x,\text {csch}^{-1}(c+d x)\right )}{d^2 f} \\ & = \frac {(e+f x)^2 \left (a+b \text {csch}^{-1}(c+d x)\right )^2}{2 f}-\frac {b \text {Subst}\left (\int \left (d^2 e^2 \left (1+\frac {c f (-2 d e+c f)}{d^2 e^2}\right ) (a+b x)+2 d e f \left (1-\frac {c f}{d e}\right ) (a+b x) \text {csch}(x)+f^2 (a+b x) \text {csch}^2(x)\right ) \, dx,x,\text {csch}^{-1}(c+d x)\right )}{d^2 f} \\ & = -\frac {(d e-c f)^2 \left (a+b \text {csch}^{-1}(c+d x)\right )^2}{2 d^2 f}+\frac {(e+f x)^2 \left (a+b \text {csch}^{-1}(c+d x)\right )^2}{2 f}-\frac {(b f) \text {Subst}\left (\int (a+b x) \text {csch}^2(x) \, dx,x,\text {csch}^{-1}(c+d x)\right )}{d^2}-\frac {(2 b (d e-c f)) \text {Subst}\left (\int (a+b x) \text {csch}(x) \, dx,x,\text {csch}^{-1}(c+d x)\right )}{d^2} \\ & = \frac {b f (c+d x) \sqrt {1+\frac {1}{(c+d x)^2}} \left (a+b \text {csch}^{-1}(c+d x)\right )}{d^2}-\frac {(d e-c f)^2 \left (a+b \text {csch}^{-1}(c+d x)\right )^2}{2 d^2 f}+\frac {(e+f x)^2 \left (a+b \text {csch}^{-1}(c+d x)\right )^2}{2 f}+\frac {4 b (d e-c f) \left (a+b \text {csch}^{-1}(c+d x)\right ) \text {arctanh}\left (e^{\text {csch}^{-1}(c+d x)}\right )}{d^2}-\frac {\left (b^2 f\right ) \text {Subst}\left (\int \coth (x) \, dx,x,\text {csch}^{-1}(c+d x)\right )}{d^2}+\frac {\left (2 b^2 (d e-c f)\right ) \text {Subst}\left (\int \log \left (1-e^x\right ) \, dx,x,\text {csch}^{-1}(c+d x)\right )}{d^2}-\frac {\left (2 b^2 (d e-c f)\right ) \text {Subst}\left (\int \log \left (1+e^x\right ) \, dx,x,\text {csch}^{-1}(c+d x)\right )}{d^2} \\ & = \frac {b f (c+d x) \sqrt {1+\frac {1}{(c+d x)^2}} \left (a+b \text {csch}^{-1}(c+d x)\right )}{d^2}-\frac {(d e-c f)^2 \left (a+b \text {csch}^{-1}(c+d x)\right )^2}{2 d^2 f}+\frac {(e+f x)^2 \left (a+b \text {csch}^{-1}(c+d x)\right )^2}{2 f}+\frac {4 b (d e-c f) \left (a+b \text {csch}^{-1}(c+d x)\right ) \text {arctanh}\left (e^{\text {csch}^{-1}(c+d x)}\right )}{d^2}+\frac {b^2 f \log (c+d x)}{d^2}+\frac {\left (2 b^2 (d e-c f)\right ) \text {Subst}\left (\int \frac {\log (1-x)}{x} \, dx,x,e^{\text {csch}^{-1}(c+d x)}\right )}{d^2}-\frac {\left (2 b^2 (d e-c f)\right ) \text {Subst}\left (\int \frac {\log (1+x)}{x} \, dx,x,e^{\text {csch}^{-1}(c+d x)}\right )}{d^2} \\ & = \frac {b f (c+d x) \sqrt {1+\frac {1}{(c+d x)^2}} \left (a+b \text {csch}^{-1}(c+d x)\right )}{d^2}-\frac {(d e-c f)^2 \left (a+b \text {csch}^{-1}(c+d x)\right )^2}{2 d^2 f}+\frac {(e+f x)^2 \left (a+b \text {csch}^{-1}(c+d x)\right )^2}{2 f}+\frac {4 b (d e-c f) \left (a+b \text {csch}^{-1}(c+d x)\right ) \text {arctanh}\left (e^{\text {csch}^{-1}(c+d x)}\right )}{d^2}+\frac {b^2 f \log (c+d x)}{d^2}+\frac {2 b^2 (d e-c f) \operatorname {PolyLog}\left (2,-e^{\text {csch}^{-1}(c+d x)}\right )}{d^2}-\frac {2 b^2 (d e-c f) \operatorname {PolyLog}\left (2,e^{\text {csch}^{-1}(c+d x)}\right )}{d^2} \\ \end{align*}
Leaf count is larger than twice the leaf count of optimal. \(427\) vs. \(2(194)=388\).
Time = 2.96 (sec) , antiderivative size = 427, normalized size of antiderivative = 2.20 \[ \int (e+f x) \left (a+b \text {csch}^{-1}(c+d x)\right )^2 \, dx=\frac {2 a^2 (d e-c f) (c+d x)+a^2 f (c+d x)^2+2 a b f (c+d x) \left (\sqrt {1+\frac {1}{(c+d x)^2}}+(c+d x) \text {csch}^{-1}(c+d x)\right )+2 b^2 f \left ((c+d x) \sqrt {1+\frac {1}{(c+d x)^2}} \text {csch}^{-1}(c+d x)+\frac {1}{2} (c+d x)^2 \text {csch}^{-1}(c+d x)^2-\log \left (\frac {1}{c+d x}\right )\right )+4 a b d e \left ((c+d x) \text {csch}^{-1}(c+d x)+\log \left (\frac {\text {csch}\left (\frac {1}{2} \text {csch}^{-1}(c+d x)\right )}{2 (c+d x)}\right )-\log \left (\sinh \left (\frac {1}{2} \text {csch}^{-1}(c+d x)\right )\right )\right )-4 a b c f \left ((c+d x) \text {csch}^{-1}(c+d x)+\log \left (\frac {\text {csch}\left (\frac {1}{2} \text {csch}^{-1}(c+d x)\right )}{2 (c+d x)}\right )-\log \left (\sinh \left (\frac {1}{2} \text {csch}^{-1}(c+d x)\right )\right )\right )+2 b^2 d e \left (\text {csch}^{-1}(c+d x) \left ((c+d x) \text {csch}^{-1}(c+d x)-2 \log \left (1-e^{-\text {csch}^{-1}(c+d x)}\right )+2 \log \left (1+e^{-\text {csch}^{-1}(c+d x)}\right )\right )-2 \operatorname {PolyLog}\left (2,-e^{-\text {csch}^{-1}(c+d x)}\right )+2 \operatorname {PolyLog}\left (2,e^{-\text {csch}^{-1}(c+d x)}\right )\right )-2 b^2 c f \left (\text {csch}^{-1}(c+d x) \left ((c+d x) \text {csch}^{-1}(c+d x)-2 \log \left (1-e^{-\text {csch}^{-1}(c+d x)}\right )+2 \log \left (1+e^{-\text {csch}^{-1}(c+d x)}\right )\right )-2 \operatorname {PolyLog}\left (2,-e^{-\text {csch}^{-1}(c+d x)}\right )+2 \operatorname {PolyLog}\left (2,e^{-\text {csch}^{-1}(c+d x)}\right )\right )}{2 d^2} \]
[In]
[Out]
\[\int \left (f x +e \right ) \left (a +b \,\operatorname {arccsch}\left (d x +c \right )\right )^{2}d x\]
[In]
[Out]
\[ \int (e+f x) \left (a+b \text {csch}^{-1}(c+d x)\right )^2 \, dx=\int { {\left (f x + e\right )} {\left (b \operatorname {arcsch}\left (d x + c\right ) + a\right )}^{2} \,d x } \]
[In]
[Out]
\[ \int (e+f x) \left (a+b \text {csch}^{-1}(c+d x)\right )^2 \, dx=\int \left (a + b \operatorname {acsch}{\left (c + d x \right )}\right )^{2} \left (e + f x\right )\, dx \]
[In]
[Out]
\[ \int (e+f x) \left (a+b \text {csch}^{-1}(c+d x)\right )^2 \, dx=\int { {\left (f x + e\right )} {\left (b \operatorname {arcsch}\left (d x + c\right ) + a\right )}^{2} \,d x } \]
[In]
[Out]
\[ \int (e+f x) \left (a+b \text {csch}^{-1}(c+d x)\right )^2 \, dx=\int { {\left (f x + e\right )} {\left (b \operatorname {arcsch}\left (d x + c\right ) + a\right )}^{2} \,d x } \]
[In]
[Out]
Timed out. \[ \int (e+f x) \left (a+b \text {csch}^{-1}(c+d x)\right )^2 \, dx=\int \left (e+f\,x\right )\,{\left (a+b\,\mathrm {asinh}\left (\frac {1}{c+d\,x}\right )\right )}^2 \,d x \]
[In]
[Out]