Integrand size = 26, antiderivative size = 294 \[ \int \frac {(e+f x) \coth ^2(c+d x)}{a+b \sinh (c+d x)} \, dx=\frac {2 b (e+f x) \text {arctanh}\left (e^{c+d x}\right )}{a^2 d}-\frac {(e+f x) \coth (c+d x)}{a d}+\frac {\sqrt {a^2+b^2} (e+f x) \log \left (1+\frac {b e^{c+d x}}{a-\sqrt {a^2+b^2}}\right )}{a^2 d}-\frac {\sqrt {a^2+b^2} (e+f x) \log \left (1+\frac {b e^{c+d x}}{a+\sqrt {a^2+b^2}}\right )}{a^2 d}+\frac {f \log (\sinh (c+d x))}{a d^2}+\frac {b f \operatorname {PolyLog}\left (2,-e^{c+d x}\right )}{a^2 d^2}-\frac {b f \operatorname {PolyLog}\left (2,e^{c+d x}\right )}{a^2 d^2}+\frac {\sqrt {a^2+b^2} f \operatorname {PolyLog}\left (2,-\frac {b e^{c+d x}}{a-\sqrt {a^2+b^2}}\right )}{a^2 d^2}-\frac {\sqrt {a^2+b^2} f \operatorname {PolyLog}\left (2,-\frac {b e^{c+d x}}{a+\sqrt {a^2+b^2}}\right )}{a^2 d^2} \] Output:
2*b*(f*x+e)*arctanh(exp(d*x+c))/a^2/d-(f*x+e)*coth(d*x+c)/a/d+(a^2+b^2)^(1 /2)*(f*x+e)*ln(1+b*exp(d*x+c)/(a-(a^2+b^2)^(1/2)))/a^2/d-(a^2+b^2)^(1/2)*( f*x+e)*ln(1+b*exp(d*x+c)/(a+(a^2+b^2)^(1/2)))/a^2/d+f*ln(sinh(d*x+c))/a/d^ 2+b*f*polylog(2,-exp(d*x+c))/a^2/d^2-b*f*polylog(2,exp(d*x+c))/a^2/d^2+(a^ 2+b^2)^(1/2)*f*polylog(2,-b*exp(d*x+c)/(a-(a^2+b^2)^(1/2)))/a^2/d^2-(a^2+b ^2)^(1/2)*f*polylog(2,-b*exp(d*x+c)/(a+(a^2+b^2)^(1/2)))/a^2/d^2
Time = 3.11 (sec) , antiderivative size = 347, normalized size of antiderivative = 1.18 \[ \int \frac {(e+f x) \coth ^2(c+d x)}{a+b \sinh (c+d x)} \, dx=-\frac {a d (e+f x) \coth \left (\frac {1}{2} (c+d x)\right )-2 \left (a f (c+d x)+(a f-b d (e+f x)) \log \left (1-e^{-c-d x}\right )+(a f+b d (e+f x)) \log \left (1+e^{-c-d x}\right )-b f \operatorname {PolyLog}\left (2,-e^{-c-d x}\right )+b f \operatorname {PolyLog}\left (2,e^{-c-d x}\right )\right )-2 \sqrt {a^2+b^2} \left (-2 d e \text {arctanh}\left (\frac {a+b e^{c+d x}}{\sqrt {a^2+b^2}}\right )+2 c f \text {arctanh}\left (\frac {a+b e^{c+d x}}{\sqrt {a^2+b^2}}\right )+f (c+d x) \log \left (1+\frac {b e^{c+d x}}{a-\sqrt {a^2+b^2}}\right )-f (c+d x) \log \left (1+\frac {b e^{c+d x}}{a+\sqrt {a^2+b^2}}\right )+f \operatorname {PolyLog}\left (2,\frac {b e^{c+d x}}{-a+\sqrt {a^2+b^2}}\right )-f \operatorname {PolyLog}\left (2,-\frac {b e^{c+d x}}{a+\sqrt {a^2+b^2}}\right )\right )+a d (e+f x) \tanh \left (\frac {1}{2} (c+d x)\right )}{2 a^2 d^2} \] Input:
Integrate[((e + f*x)*Coth[c + d*x]^2)/(a + b*Sinh[c + d*x]),x]
Output:
-1/2*(a*d*(e + f*x)*Coth[(c + d*x)/2] - 2*(a*f*(c + d*x) + (a*f - b*d*(e + f*x))*Log[1 - E^(-c - d*x)] + (a*f + b*d*(e + f*x))*Log[1 + E^(-c - d*x)] - b*f*PolyLog[2, -E^(-c - d*x)] + b*f*PolyLog[2, E^(-c - d*x)]) - 2*Sqrt[ a^2 + b^2]*(-2*d*e*ArcTanh[(a + b*E^(c + d*x))/Sqrt[a^2 + b^2]] + 2*c*f*Ar cTanh[(a + b*E^(c + d*x))/Sqrt[a^2 + b^2]] + f*(c + d*x)*Log[1 + (b*E^(c + d*x))/(a - Sqrt[a^2 + b^2])] - f*(c + d*x)*Log[1 + (b*E^(c + d*x))/(a + S qrt[a^2 + b^2])] + f*PolyLog[2, (b*E^(c + d*x))/(-a + Sqrt[a^2 + b^2])] - f*PolyLog[2, -((b*E^(c + d*x))/(a + Sqrt[a^2 + b^2]))]) + a*d*(e + f*x)*Ta nh[(c + d*x)/2])/(a^2*d^2)
Below are the steps used by Rubi to obtain the solution. The rule number used for the transformation is given above next to the arrow. The rules definitions used are listed below.
\(\displaystyle \int \frac {(e+f x) \coth ^2(c+d x)}{a+b \sinh (c+d x)} \, dx\) |
\(\Big \downarrow \) 6103 |
\(\displaystyle \frac {\int (e+f x) \coth ^2(c+d x)dx}{a}-\frac {b \int \frac {(e+f x) \cosh (c+d x) \coth (c+d x)}{a+b \sinh (c+d x)}dx}{a}\) |
\(\Big \downarrow \) 3042 |
\(\displaystyle -\frac {b \int \frac {(e+f x) \cosh (c+d x) \coth (c+d x)}{a+b \sinh (c+d x)}dx}{a}+\frac {\int -\left ((e+f x) \tan \left (i c+i d x+\frac {\pi }{2}\right )^2\right )dx}{a}\) |
\(\Big \downarrow \) 25 |
\(\displaystyle -\frac {b \int \frac {(e+f x) \cosh (c+d x) \coth (c+d x)}{a+b \sinh (c+d x)}dx}{a}-\frac {\int (e+f x) \tan \left (\frac {1}{2} (2 i c+\pi )+i d x\right )^2dx}{a}\) |
\(\Big \downarrow \) 4203 |
\(\displaystyle -\frac {b \int \frac {(e+f x) \cosh (c+d x) \coth (c+d x)}{a+b \sinh (c+d x)}dx}{a}-\frac {\frac {i f \int i \coth (c+d x)dx}{d}-\int (e+f x)dx+\frac {(e+f x) \coth (c+d x)}{d}}{a}\) |
\(\Big \downarrow \) 17 |
\(\displaystyle -\frac {b \int \frac {(e+f x) \cosh (c+d x) \coth (c+d x)}{a+b \sinh (c+d x)}dx}{a}-\frac {\frac {i f \int i \coth (c+d x)dx}{d}+\frac {(e+f x) \coth (c+d x)}{d}-\frac {(e+f x)^2}{2 f}}{a}\) |
\(\Big \downarrow \) 26 |
\(\displaystyle -\frac {b \int \frac {(e+f x) \cosh (c+d x) \coth (c+d x)}{a+b \sinh (c+d x)}dx}{a}-\frac {-\frac {f \int \coth (c+d x)dx}{d}+\frac {(e+f x) \coth (c+d x)}{d}-\frac {(e+f x)^2}{2 f}}{a}\) |
\(\Big \downarrow \) 3042 |
\(\displaystyle -\frac {b \int \frac {(e+f x) \cosh (c+d x) \coth (c+d x)}{a+b \sinh (c+d x)}dx}{a}-\frac {-\frac {f \int -i \tan \left (i c+i d x+\frac {\pi }{2}\right )dx}{d}+\frac {(e+f x) \coth (c+d x)}{d}-\frac {(e+f x)^2}{2 f}}{a}\) |
\(\Big \downarrow \) 26 |
\(\displaystyle -\frac {b \int \frac {(e+f x) \cosh (c+d x) \coth (c+d x)}{a+b \sinh (c+d x)}dx}{a}-\frac {\frac {i f \int \tan \left (\frac {1}{2} (2 i c+\pi )+i d x\right )dx}{d}+\frac {(e+f x) \coth (c+d x)}{d}-\frac {(e+f x)^2}{2 f}}{a}\) |
\(\Big \downarrow \) 3956 |
\(\displaystyle -\frac {b \int \frac {(e+f x) \cosh (c+d x) \coth (c+d x)}{a+b \sinh (c+d x)}dx}{a}-\frac {-\frac {f \log (-i \sinh (c+d x))}{d^2}+\frac {(e+f x) \coth (c+d x)}{d}-\frac {(e+f x)^2}{2 f}}{a}\) |
\(\Big \downarrow \) 6119 |
\(\displaystyle -\frac {b \left (\frac {\int (e+f x) \cosh (c+d x) \coth (c+d x)dx}{a}-\frac {b \int \frac {(e+f x) \cosh ^2(c+d x)}{a+b \sinh (c+d x)}dx}{a}\right )}{a}-\frac {-\frac {f \log (-i \sinh (c+d x))}{d^2}+\frac {(e+f x) \coth (c+d x)}{d}-\frac {(e+f x)^2}{2 f}}{a}\) |
\(\Big \downarrow \) 5973 |
\(\displaystyle -\frac {b \left (\frac {\int (e+f x) \sinh (c+d x)dx+\int (e+f x) \text {csch}(c+d x)dx}{a}-\frac {b \int \frac {(e+f x) \cosh ^2(c+d x)}{a+b \sinh (c+d x)}dx}{a}\right )}{a}-\frac {-\frac {f \log (-i \sinh (c+d x))}{d^2}+\frac {(e+f x) \coth (c+d x)}{d}-\frac {(e+f x)^2}{2 f}}{a}\) |
\(\Big \downarrow \) 3042 |
\(\displaystyle -\frac {b \left (-\frac {b \int \frac {(e+f x) \cosh ^2(c+d x)}{a+b \sinh (c+d x)}dx}{a}+\frac {\int -i (e+f x) \sin (i c+i d x)dx+\int i (e+f x) \csc (i c+i d x)dx}{a}\right )}{a}-\frac {-\frac {f \log (-i \sinh (c+d x))}{d^2}+\frac {(e+f x) \coth (c+d x)}{d}-\frac {(e+f x)^2}{2 f}}{a}\) |
\(\Big \downarrow \) 26 |
\(\displaystyle -\frac {b \left (-\frac {b \int \frac {(e+f x) \cosh ^2(c+d x)}{a+b \sinh (c+d x)}dx}{a}+\frac {i \int (e+f x) \csc (i c+i d x)dx-i \int (e+f x) \sin (i c+i d x)dx}{a}\right )}{a}-\frac {-\frac {f \log (-i \sinh (c+d x))}{d^2}+\frac {(e+f x) \coth (c+d x)}{d}-\frac {(e+f x)^2}{2 f}}{a}\) |
\(\Big \downarrow \) 3777 |
\(\displaystyle -\frac {b \left (-\frac {b \int \frac {(e+f x) \cosh ^2(c+d x)}{a+b \sinh (c+d x)}dx}{a}+\frac {i \int (e+f x) \csc (i c+i d x)dx-i \left (\frac {i (e+f x) \cosh (c+d x)}{d}-\frac {i f \int \cosh (c+d x)dx}{d}\right )}{a}\right )}{a}-\frac {-\frac {f \log (-i \sinh (c+d x))}{d^2}+\frac {(e+f x) \coth (c+d x)}{d}-\frac {(e+f x)^2}{2 f}}{a}\) |
\(\Big \downarrow \) 3042 |
\(\displaystyle -\frac {b \left (-\frac {b \int \frac {(e+f x) \cosh ^2(c+d x)}{a+b \sinh (c+d x)}dx}{a}+\frac {i \int (e+f x) \csc (i c+i d x)dx-i \left (\frac {i (e+f x) \cosh (c+d x)}{d}-\frac {i f \int \sin \left (i c+i d x+\frac {\pi }{2}\right )dx}{d}\right )}{a}\right )}{a}-\frac {-\frac {f \log (-i \sinh (c+d x))}{d^2}+\frac {(e+f x) \coth (c+d x)}{d}-\frac {(e+f x)^2}{2 f}}{a}\) |
\(\Big \downarrow \) 3117 |
\(\displaystyle -\frac {b \left (-\frac {b \int \frac {(e+f x) \cosh ^2(c+d x)}{a+b \sinh (c+d x)}dx}{a}+\frac {i \int (e+f x) \csc (i c+i d x)dx-i \left (\frac {i (e+f x) \cosh (c+d x)}{d}-\frac {i f \sinh (c+d x)}{d^2}\right )}{a}\right )}{a}-\frac {-\frac {f \log (-i \sinh (c+d x))}{d^2}+\frac {(e+f x) \coth (c+d x)}{d}-\frac {(e+f x)^2}{2 f}}{a}\) |
\(\Big \downarrow \) 4670 |
\(\displaystyle -\frac {b \left (-\frac {b \int \frac {(e+f x) \cosh ^2(c+d x)}{a+b \sinh (c+d x)}dx}{a}+\frac {i \left (\frac {i f \int \log \left (1-e^{c+d x}\right )dx}{d}-\frac {i f \int \log \left (1+e^{c+d x}\right )dx}{d}+\frac {2 i (e+f x) \text {arctanh}\left (e^{c+d x}\right )}{d}\right )-i \left (\frac {i (e+f x) \cosh (c+d x)}{d}-\frac {i f \sinh (c+d x)}{d^2}\right )}{a}\right )}{a}-\frac {-\frac {f \log (-i \sinh (c+d x))}{d^2}+\frac {(e+f x) \coth (c+d x)}{d}-\frac {(e+f x)^2}{2 f}}{a}\) |
\(\Big \downarrow \) 2715 |
\(\displaystyle -\frac {b \left (-\frac {b \int \frac {(e+f x) \cosh ^2(c+d x)}{a+b \sinh (c+d x)}dx}{a}+\frac {i \left (\frac {i f \int e^{-c-d x} \log \left (1-e^{c+d x}\right )de^{c+d x}}{d^2}-\frac {i f \int e^{-c-d x} \log \left (1+e^{c+d x}\right )de^{c+d x}}{d^2}+\frac {2 i (e+f x) \text {arctanh}\left (e^{c+d x}\right )}{d}\right )-i \left (\frac {i (e+f x) \cosh (c+d x)}{d}-\frac {i f \sinh (c+d x)}{d^2}\right )}{a}\right )}{a}-\frac {-\frac {f \log (-i \sinh (c+d x))}{d^2}+\frac {(e+f x) \coth (c+d x)}{d}-\frac {(e+f x)^2}{2 f}}{a}\) |
\(\Big \downarrow \) 2838 |
\(\displaystyle -\frac {b \left (-\frac {b \int \frac {(e+f x) \cosh ^2(c+d x)}{a+b \sinh (c+d x)}dx}{a}+\frac {i \left (\frac {2 i (e+f x) \text {arctanh}\left (e^{c+d x}\right )}{d}+\frac {i f \operatorname {PolyLog}\left (2,-e^{c+d x}\right )}{d^2}-\frac {i f \operatorname {PolyLog}\left (2,e^{c+d x}\right )}{d^2}\right )-i \left (\frac {i (e+f x) \cosh (c+d x)}{d}-\frac {i f \sinh (c+d x)}{d^2}\right )}{a}\right )}{a}-\frac {-\frac {f \log (-i \sinh (c+d x))}{d^2}+\frac {(e+f x) \coth (c+d x)}{d}-\frac {(e+f x)^2}{2 f}}{a}\) |
\(\Big \downarrow \) 6099 |
\(\displaystyle -\frac {b \left (-\frac {b \left (\frac {\left (a^2+b^2\right ) \int \frac {e+f x}{a+b \sinh (c+d x)}dx}{b^2}-\frac {a \int (e+f x)dx}{b^2}+\frac {\int (e+f x) \sinh (c+d x)dx}{b}\right )}{a}+\frac {i \left (\frac {2 i (e+f x) \text {arctanh}\left (e^{c+d x}\right )}{d}+\frac {i f \operatorname {PolyLog}\left (2,-e^{c+d x}\right )}{d^2}-\frac {i f \operatorname {PolyLog}\left (2,e^{c+d x}\right )}{d^2}\right )-i \left (\frac {i (e+f x) \cosh (c+d x)}{d}-\frac {i f \sinh (c+d x)}{d^2}\right )}{a}\right )}{a}-\frac {-\frac {f \log (-i \sinh (c+d x))}{d^2}+\frac {(e+f x) \coth (c+d x)}{d}-\frac {(e+f x)^2}{2 f}}{a}\) |
\(\Big \downarrow \) 17 |
\(\displaystyle -\frac {b \left (-\frac {b \left (\frac {\left (a^2+b^2\right ) \int \frac {e+f x}{a+b \sinh (c+d x)}dx}{b^2}+\frac {\int (e+f x) \sinh (c+d x)dx}{b}-\frac {a (e+f x)^2}{2 b^2 f}\right )}{a}+\frac {i \left (\frac {2 i (e+f x) \text {arctanh}\left (e^{c+d x}\right )}{d}+\frac {i f \operatorname {PolyLog}\left (2,-e^{c+d x}\right )}{d^2}-\frac {i f \operatorname {PolyLog}\left (2,e^{c+d x}\right )}{d^2}\right )-i \left (\frac {i (e+f x) \cosh (c+d x)}{d}-\frac {i f \sinh (c+d x)}{d^2}\right )}{a}\right )}{a}-\frac {-\frac {f \log (-i \sinh (c+d x))}{d^2}+\frac {(e+f x) \coth (c+d x)}{d}-\frac {(e+f x)^2}{2 f}}{a}\) |
\(\Big \downarrow \) 3042 |
\(\displaystyle -\frac {b \left (\frac {i \left (\frac {2 i (e+f x) \text {arctanh}\left (e^{c+d x}\right )}{d}+\frac {i f \operatorname {PolyLog}\left (2,-e^{c+d x}\right )}{d^2}-\frac {i f \operatorname {PolyLog}\left (2,e^{c+d x}\right )}{d^2}\right )-i \left (\frac {i (e+f x) \cosh (c+d x)}{d}-\frac {i f \sinh (c+d x)}{d^2}\right )}{a}-\frac {b \left (\frac {\left (a^2+b^2\right ) \int \frac {e+f x}{a-i b \sin (i c+i d x)}dx}{b^2}+\frac {\int -i (e+f x) \sin (i c+i d x)dx}{b}-\frac {a (e+f x)^2}{2 b^2 f}\right )}{a}\right )}{a}-\frac {-\frac {f \log (-i \sinh (c+d x))}{d^2}+\frac {(e+f x) \coth (c+d x)}{d}-\frac {(e+f x)^2}{2 f}}{a}\) |
\(\Big \downarrow \) 26 |
\(\displaystyle -\frac {b \left (\frac {i \left (\frac {2 i (e+f x) \text {arctanh}\left (e^{c+d x}\right )}{d}+\frac {i f \operatorname {PolyLog}\left (2,-e^{c+d x}\right )}{d^2}-\frac {i f \operatorname {PolyLog}\left (2,e^{c+d x}\right )}{d^2}\right )-i \left (\frac {i (e+f x) \cosh (c+d x)}{d}-\frac {i f \sinh (c+d x)}{d^2}\right )}{a}-\frac {b \left (\frac {\left (a^2+b^2\right ) \int \frac {e+f x}{a-i b \sin (i c+i d x)}dx}{b^2}-\frac {i \int (e+f x) \sin (i c+i d x)dx}{b}-\frac {a (e+f x)^2}{2 b^2 f}\right )}{a}\right )}{a}-\frac {-\frac {f \log (-i \sinh (c+d x))}{d^2}+\frac {(e+f x) \coth (c+d x)}{d}-\frac {(e+f x)^2}{2 f}}{a}\) |
\(\Big \downarrow \) 3777 |
\(\displaystyle -\frac {b \left (\frac {i \left (\frac {2 i (e+f x) \text {arctanh}\left (e^{c+d x}\right )}{d}+\frac {i f \operatorname {PolyLog}\left (2,-e^{c+d x}\right )}{d^2}-\frac {i f \operatorname {PolyLog}\left (2,e^{c+d x}\right )}{d^2}\right )-i \left (\frac {i (e+f x) \cosh (c+d x)}{d}-\frac {i f \sinh (c+d x)}{d^2}\right )}{a}-\frac {b \left (\frac {\left (a^2+b^2\right ) \int \frac {e+f x}{a-i b \sin (i c+i d x)}dx}{b^2}-\frac {i \left (\frac {i (e+f x) \cosh (c+d x)}{d}-\frac {i f \int \cosh (c+d x)dx}{d}\right )}{b}-\frac {a (e+f x)^2}{2 b^2 f}\right )}{a}\right )}{a}-\frac {-\frac {f \log (-i \sinh (c+d x))}{d^2}+\frac {(e+f x) \coth (c+d x)}{d}-\frac {(e+f x)^2}{2 f}}{a}\) |
\(\Big \downarrow \) 3042 |
\(\displaystyle -\frac {b \left (\frac {i \left (\frac {2 i (e+f x) \text {arctanh}\left (e^{c+d x}\right )}{d}+\frac {i f \operatorname {PolyLog}\left (2,-e^{c+d x}\right )}{d^2}-\frac {i f \operatorname {PolyLog}\left (2,e^{c+d x}\right )}{d^2}\right )-i \left (\frac {i (e+f x) \cosh (c+d x)}{d}-\frac {i f \sinh (c+d x)}{d^2}\right )}{a}-\frac {b \left (\frac {\left (a^2+b^2\right ) \int \frac {e+f x}{a-i b \sin (i c+i d x)}dx}{b^2}-\frac {i \left (\frac {i (e+f x) \cosh (c+d x)}{d}-\frac {i f \int \sin \left (i c+i d x+\frac {\pi }{2}\right )dx}{d}\right )}{b}-\frac {a (e+f x)^2}{2 b^2 f}\right )}{a}\right )}{a}-\frac {-\frac {f \log (-i \sinh (c+d x))}{d^2}+\frac {(e+f x) \coth (c+d x)}{d}-\frac {(e+f x)^2}{2 f}}{a}\) |
\(\Big \downarrow \) 3117 |
\(\displaystyle -\frac {b \left (\frac {i \left (\frac {2 i (e+f x) \text {arctanh}\left (e^{c+d x}\right )}{d}+\frac {i f \operatorname {PolyLog}\left (2,-e^{c+d x}\right )}{d^2}-\frac {i f \operatorname {PolyLog}\left (2,e^{c+d x}\right )}{d^2}\right )-i \left (\frac {i (e+f x) \cosh (c+d x)}{d}-\frac {i f \sinh (c+d x)}{d^2}\right )}{a}-\frac {b \left (\frac {\left (a^2+b^2\right ) \int \frac {e+f x}{a-i b \sin (i c+i d x)}dx}{b^2}-\frac {a (e+f x)^2}{2 b^2 f}-\frac {i \left (\frac {i (e+f x) \cosh (c+d x)}{d}-\frac {i f \sinh (c+d x)}{d^2}\right )}{b}\right )}{a}\right )}{a}-\frac {-\frac {f \log (-i \sinh (c+d x))}{d^2}+\frac {(e+f x) \coth (c+d x)}{d}-\frac {(e+f x)^2}{2 f}}{a}\) |
\(\Big \downarrow \) 3803 |
\(\displaystyle -\frac {b \left (\frac {i \left (\frac {2 i (e+f x) \text {arctanh}\left (e^{c+d x}\right )}{d}+\frac {i f \operatorname {PolyLog}\left (2,-e^{c+d x}\right )}{d^2}-\frac {i f \operatorname {PolyLog}\left (2,e^{c+d x}\right )}{d^2}\right )-i \left (\frac {i (e+f x) \cosh (c+d x)}{d}-\frac {i f \sinh (c+d x)}{d^2}\right )}{a}-\frac {b \left (\frac {2 \left (a^2+b^2\right ) \int -\frac {e^{c+d x} (e+f x)}{-2 e^{c+d x} a-b e^{2 (c+d x)}+b}dx}{b^2}-\frac {a (e+f x)^2}{2 b^2 f}-\frac {i \left (\frac {i (e+f x) \cosh (c+d x)}{d}-\frac {i f \sinh (c+d x)}{d^2}\right )}{b}\right )}{a}\right )}{a}-\frac {-\frac {f \log (-i \sinh (c+d x))}{d^2}+\frac {(e+f x) \coth (c+d x)}{d}-\frac {(e+f x)^2}{2 f}}{a}\) |
\(\Big \downarrow \) 25 |
\(\displaystyle -\frac {b \left (\frac {i \left (\frac {2 i (e+f x) \text {arctanh}\left (e^{c+d x}\right )}{d}+\frac {i f \operatorname {PolyLog}\left (2,-e^{c+d x}\right )}{d^2}-\frac {i f \operatorname {PolyLog}\left (2,e^{c+d x}\right )}{d^2}\right )-i \left (\frac {i (e+f x) \cosh (c+d x)}{d}-\frac {i f \sinh (c+d x)}{d^2}\right )}{a}-\frac {b \left (-\frac {2 \left (a^2+b^2\right ) \int \frac {e^{c+d x} (e+f x)}{-2 e^{c+d x} a-b e^{2 (c+d x)}+b}dx}{b^2}-\frac {a (e+f x)^2}{2 b^2 f}-\frac {i \left (\frac {i (e+f x) \cosh (c+d x)}{d}-\frac {i f \sinh (c+d x)}{d^2}\right )}{b}\right )}{a}\right )}{a}-\frac {-\frac {f \log (-i \sinh (c+d x))}{d^2}+\frac {(e+f x) \coth (c+d x)}{d}-\frac {(e+f x)^2}{2 f}}{a}\) |
\(\Big \downarrow \) 2694 |
\(\displaystyle -\frac {b \left (\frac {i \left (\frac {2 i (e+f x) \text {arctanh}\left (e^{c+d x}\right )}{d}+\frac {i f \operatorname {PolyLog}\left (2,-e^{c+d x}\right )}{d^2}-\frac {i f \operatorname {PolyLog}\left (2,e^{c+d x}\right )}{d^2}\right )-i \left (\frac {i (e+f x) \cosh (c+d x)}{d}-\frac {i f \sinh (c+d x)}{d^2}\right )}{a}-\frac {b \left (-\frac {2 \left (a^2+b^2\right ) \left (\frac {b \int -\frac {e^{c+d x} (e+f x)}{2 \left (a+b e^{c+d x}-\sqrt {a^2+b^2}\right )}dx}{\sqrt {a^2+b^2}}-\frac {b \int -\frac {e^{c+d x} (e+f x)}{2 \left (a+b e^{c+d x}+\sqrt {a^2+b^2}\right )}dx}{\sqrt {a^2+b^2}}\right )}{b^2}-\frac {a (e+f x)^2}{2 b^2 f}-\frac {i \left (\frac {i (e+f x) \cosh (c+d x)}{d}-\frac {i f \sinh (c+d x)}{d^2}\right )}{b}\right )}{a}\right )}{a}-\frac {-\frac {f \log (-i \sinh (c+d x))}{d^2}+\frac {(e+f x) \coth (c+d x)}{d}-\frac {(e+f x)^2}{2 f}}{a}\) |
\(\Big \downarrow \) 27 |
\(\displaystyle -\frac {b \left (\frac {i \left (\frac {2 i (e+f x) \text {arctanh}\left (e^{c+d x}\right )}{d}+\frac {i f \operatorname {PolyLog}\left (2,-e^{c+d x}\right )}{d^2}-\frac {i f \operatorname {PolyLog}\left (2,e^{c+d x}\right )}{d^2}\right )-i \left (\frac {i (e+f x) \cosh (c+d x)}{d}-\frac {i f \sinh (c+d x)}{d^2}\right )}{a}-\frac {b \left (-\frac {2 \left (a^2+b^2\right ) \left (\frac {b \int \frac {e^{c+d x} (e+f x)}{a+b e^{c+d x}+\sqrt {a^2+b^2}}dx}{2 \sqrt {a^2+b^2}}-\frac {b \int \frac {e^{c+d x} (e+f x)}{a+b e^{c+d x}-\sqrt {a^2+b^2}}dx}{2 \sqrt {a^2+b^2}}\right )}{b^2}-\frac {a (e+f x)^2}{2 b^2 f}-\frac {i \left (\frac {i (e+f x) \cosh (c+d x)}{d}-\frac {i f \sinh (c+d x)}{d^2}\right )}{b}\right )}{a}\right )}{a}-\frac {-\frac {f \log (-i \sinh (c+d x))}{d^2}+\frac {(e+f x) \coth (c+d x)}{d}-\frac {(e+f x)^2}{2 f}}{a}\) |
Input:
Int[((e + f*x)*Coth[c + d*x]^2)/(a + b*Sinh[c + d*x]),x]
Output:
$Aborted
Leaf count of result is larger than twice the leaf count of optimal. \(1016\) vs. \(2(271)=542\).
Time = 0.72 (sec) , antiderivative size = 1017, normalized size of antiderivative = 3.46
Input:
int((f*x+e)*coth(d*x+c)^2/(a+b*sinh(d*x+c)),x,method=_RETURNVERBOSE)
Output:
-2/a^2/d*b^2*e/(a^2+b^2)^(1/2)*arctanh(1/2*(2*b*exp(d*x+c)+2*a)/(a^2+b^2)^ (1/2))+1/a^2/d^2*b^2*f/(a^2+b^2)^(1/2)*dilog((-b*exp(d*x+c)+(a^2+b^2)^(1/2 )-a)/(-a+(a^2+b^2)^(1/2)))-1/a^2/d^2*b^2*f/(a^2+b^2)^(1/2)*dilog((b*exp(d* x+c)+(a^2+b^2)^(1/2)+a)/(a+(a^2+b^2)^(1/2)))+2/d^2*c*f/(a^2+b^2)^(1/2)*arc tanh(1/2*(2*b*exp(d*x+c)+2*a)/(a^2+b^2)^(1/2))-1/d*f/(a^2+b^2)^(1/2)*ln((b *exp(d*x+c)+(a^2+b^2)^(1/2)+a)/(a+(a^2+b^2)^(1/2)))*x+1/d^2*f/(a^2+b^2)^(1 /2)*ln((-b*exp(d*x+c)+(a^2+b^2)^(1/2)-a)/(-a+(a^2+b^2)^(1/2)))*c-1/d^2*f/( a^2+b^2)^(1/2)*ln((b*exp(d*x+c)+(a^2+b^2)^(1/2)+a)/(a+(a^2+b^2)^(1/2)))*c- 2/d*(f*x+e)/a/(exp(2*d*x+2*c)-1)+1/a^2/d^2*b^2*f/(a^2+b^2)^(1/2)*ln((-b*ex p(d*x+c)+(a^2+b^2)^(1/2)-a)/(-a+(a^2+b^2)^(1/2)))*c-1/a^2/d^2*b^2*f/(a^2+b ^2)^(1/2)*ln((b*exp(d*x+c)+(a^2+b^2)^(1/2)+a)/(a+(a^2+b^2)^(1/2)))*c+1/a^2 /d*b^2*f/(a^2+b^2)^(1/2)*ln((-b*exp(d*x+c)+(a^2+b^2)^(1/2)-a)/(-a+(a^2+b^2 )^(1/2)))*x+1/a/d^2*f*ln(exp(d*x+c)-1)+1/a/d^2*f*ln(exp(d*x+c)+1)+1/a^2/d* b*f*ln(exp(d*x+c)+1)*x+1/a^2/d^2*c*b*f*ln(exp(d*x+c)-1)-1/a^2/d*b^2*f/(a^2 +b^2)^(1/2)*ln((b*exp(d*x+c)+(a^2+b^2)^(1/2)+a)/(a+(a^2+b^2)^(1/2)))*x+2/a ^2/d^2*c*b^2*f/(a^2+b^2)^(1/2)*arctanh(1/2*(2*b*exp(d*x+c)+2*a)/(a^2+b^2)^ (1/2))-2/d*e/(a^2+b^2)^(1/2)*arctanh(1/2*(2*b*exp(d*x+c)+2*a)/(a^2+b^2)^(1 /2))-1/d^2*f/(a^2+b^2)^(1/2)*dilog((b*exp(d*x+c)+(a^2+b^2)^(1/2)+a)/(a+(a^ 2+b^2)^(1/2)))+1/d^2*f/(a^2+b^2)^(1/2)*dilog((-b*exp(d*x+c)+(a^2+b^2)^(1/2 )-a)/(-a+(a^2+b^2)^(1/2)))-2/a/d^2*f*ln(exp(d*x+c))+1/a^2/d^2*b*f*dilog...
Leaf count of result is larger than twice the leaf count of optimal. 1338 vs. \(2 (267) = 534\).
Time = 0.13 (sec) , antiderivative size = 1338, normalized size of antiderivative = 4.55 \[ \int \frac {(e+f x) \coth ^2(c+d x)}{a+b \sinh (c+d x)} \, dx=\text {Too large to display} \] Input:
integrate((f*x+e)*coth(d*x+c)^2/(a+b*sinh(d*x+c)),x, algorithm="fricas")
Output:
-(2*a*d*e - 2*a*c*f + 2*(a*d*f*x + a*c*f)*cosh(d*x + c)^2 + 4*(a*d*f*x + a *c*f)*cosh(d*x + c)*sinh(d*x + c) + 2*(a*d*f*x + a*c*f)*sinh(d*x + c)^2 - (b*f*cosh(d*x + c)^2 + 2*b*f*cosh(d*x + c)*sinh(d*x + c) + b*f*sinh(d*x + c)^2 - b*f)*sqrt((a^2 + b^2)/b^2)*dilog((a*cosh(d*x + c) + a*sinh(d*x + c) + (b*cosh(d*x + c) + b*sinh(d*x + c))*sqrt((a^2 + b^2)/b^2) - b)/b + 1) + (b*f*cosh(d*x + c)^2 + 2*b*f*cosh(d*x + c)*sinh(d*x + c) + b*f*sinh(d*x + c)^2 - b*f)*sqrt((a^2 + b^2)/b^2)*dilog((a*cosh(d*x + c) + a*sinh(d*x + c ) - (b*cosh(d*x + c) + b*sinh(d*x + c))*sqrt((a^2 + b^2)/b^2) - b)/b + 1) - (b*d*e - b*c*f - (b*d*e - b*c*f)*cosh(d*x + c)^2 - 2*(b*d*e - b*c*f)*cos h(d*x + c)*sinh(d*x + c) - (b*d*e - b*c*f)*sinh(d*x + c)^2)*sqrt((a^2 + b^ 2)/b^2)*log(2*b*cosh(d*x + c) + 2*b*sinh(d*x + c) + 2*b*sqrt((a^2 + b^2)/b ^2) + 2*a) + (b*d*e - b*c*f - (b*d*e - b*c*f)*cosh(d*x + c)^2 - 2*(b*d*e - b*c*f)*cosh(d*x + c)*sinh(d*x + c) - (b*d*e - b*c*f)*sinh(d*x + c)^2)*sqr t((a^2 + b^2)/b^2)*log(2*b*cosh(d*x + c) + 2*b*sinh(d*x + c) - 2*b*sqrt((a ^2 + b^2)/b^2) + 2*a) + (b*d*f*x + b*c*f - (b*d*f*x + b*c*f)*cosh(d*x + c) ^2 - 2*(b*d*f*x + b*c*f)*cosh(d*x + c)*sinh(d*x + c) - (b*d*f*x + b*c*f)*s inh(d*x + c)^2)*sqrt((a^2 + b^2)/b^2)*log(-(a*cosh(d*x + c) + a*sinh(d*x + c) + (b*cosh(d*x + c) + b*sinh(d*x + c))*sqrt((a^2 + b^2)/b^2) - b)/b) - (b*d*f*x + b*c*f - (b*d*f*x + b*c*f)*cosh(d*x + c)^2 - 2*(b*d*f*x + b*c*f) *cosh(d*x + c)*sinh(d*x + c) - (b*d*f*x + b*c*f)*sinh(d*x + c)^2)*sqrt(...
\[ \int \frac {(e+f x) \coth ^2(c+d x)}{a+b \sinh (c+d x)} \, dx=\int \frac {\left (e + f x\right ) \coth ^{2}{\left (c + d x \right )}}{a + b \sinh {\left (c + d x \right )}}\, dx \] Input:
integrate((f*x+e)*coth(d*x+c)**2/(a+b*sinh(d*x+c)),x)
Output:
Integral((e + f*x)*coth(c + d*x)**2/(a + b*sinh(c + d*x)), x)
\[ \int \frac {(e+f x) \coth ^2(c+d x)}{a+b \sinh (c+d x)} \, dx=\int { \frac {{\left (f x + e\right )} \coth \left (d x + c\right )^{2}}{b \sinh \left (d x + c\right ) + a} \,d x } \] Input:
integrate((f*x+e)*coth(d*x+c)^2/(a+b*sinh(d*x+c)),x, algorithm="maxima")
Output:
-(b*d*integrate(x/(a^2*d*e^(d*x + c) + a^2*d), x) + b*d*integrate(x/(a^2*d *e^(d*x + c) - a^2*d), x) + a*((d*x + c)/(a^2*d^2) - log(e^(d*x + c) + 1)/ (a^2*d^2)) + a*((d*x + c)/(a^2*d^2) - log(e^(d*x + c) - 1)/(a^2*d^2)) - 2* (a^2*e^c + b^2*e^c)*integrate(x*e^(d*x)/(a^2*b*e^(2*d*x + 2*c) + 2*a^3*e^( d*x + c) - a^2*b), x) + 2*x/(a*d*e^(2*d*x + 2*c) - a*d))*f + e*(b*log(e^(- d*x - c) + 1)/(a^2*d) - b*log(e^(-d*x - c) - 1)/(a^2*d) + sqrt(a^2 + b^2)* log((b*e^(-d*x - c) - a - sqrt(a^2 + b^2))/(b*e^(-d*x - c) - a + sqrt(a^2 + b^2)))/(a^2*d) + 2/((a*e^(-2*d*x - 2*c) - a)*d))
Timed out. \[ \int \frac {(e+f x) \coth ^2(c+d x)}{a+b \sinh (c+d x)} \, dx=\text {Timed out} \] Input:
integrate((f*x+e)*coth(d*x+c)^2/(a+b*sinh(d*x+c)),x, algorithm="giac")
Output:
Timed out
Timed out. \[ \int \frac {(e+f x) \coth ^2(c+d x)}{a+b \sinh (c+d x)} \, dx=\int \frac {{\mathrm {coth}\left (c+d\,x\right )}^2\,\left (e+f\,x\right )}{a+b\,\mathrm {sinh}\left (c+d\,x\right )} \,d x \] Input:
int((coth(c + d*x)^2*(e + f*x))/(a + b*sinh(c + d*x)),x)
Output:
int((coth(c + d*x)^2*(e + f*x))/(a + b*sinh(c + d*x)), x)
\[ \int \frac {(e+f x) \coth ^2(c+d x)}{a+b \sinh (c+d x)} \, dx =\text {Too large to display} \] Input:
int((f*x+e)*coth(d*x+c)^2/(a+b*sinh(d*x+c)),x)
Output:
(2*e**(2*c + 2*d*x)*sqrt(a**2 + b**2)*atan((e**(c + d*x)*b*i + a*i)/sqrt(a **2 + b**2))*b**2*d*e*i - 2*sqrt(a**2 + b**2)*atan((e**(c + d*x)*b*i + a*i )/sqrt(a**2 + b**2))*b**2*d*e*i + 8*e**(5*c + 2*d*x)*int((e**(3*d*x)*x)/(e **(6*c + 6*d*x)*b + 2*e**(5*c + 5*d*x)*a - 3*e**(4*c + 4*d*x)*b - 4*e**(3* c + 3*d*x)*a + 3*e**(2*c + 2*d*x)*b + 2*e**(c + d*x)*a - b),x)*a**4*d**2*f + 4*e**(5*c + 2*d*x)*int((e**(3*d*x)*x)/(e**(6*c + 6*d*x)*b + 2*e**(5*c + 5*d*x)*a - 3*e**(4*c + 4*d*x)*b - 4*e**(3*c + 3*d*x)*a + 3*e**(2*c + 2*d* x)*b + 2*e**(c + d*x)*a - b),x)*a**2*b**2*d**2*f - 8*e**(4*c + 2*d*x)*int( (e**(2*d*x)*x)/(e**(6*c + 6*d*x)*b + 2*e**(5*c + 5*d*x)*a - 3*e**(4*c + 4* d*x)*b - 4*e**(3*c + 3*d*x)*a + 3*e**(2*c + 2*d*x)*b + 2*e**(c + d*x)*a - b),x)*a**3*b*d**2*f + 4*e**(3*c + 2*d*x)*int((e**(d*x)*x)/(e**(6*c + 6*d*x )*b + 2*e**(5*c + 5*d*x)*a - 3*e**(4*c + 4*d*x)*b - 4*e**(3*c + 3*d*x)*a + 3*e**(2*c + 2*d*x)*b + 2*e**(c + d*x)*a - b),x)*a**2*b**2*d**2*f - e**(2* c + 2*d*x)*log(e**(c + d*x) - 1)*a**3*f + e**(2*c + 2*d*x)*log(e**(c + d*x ) - 1)*a**2*b*f - e**(2*c + 2*d*x)*log(e**(c + d*x) - 1)*b**3*d*e - e**(2* c + 2*d*x)*log(e**(c + d*x) + 1)*a**3*f - e**(2*c + 2*d*x)*log(e**(c + d*x ) + 1)*a**2*b*f + e**(2*c + 2*d*x)*log(e**(c + d*x) + 1)*b**3*d*e + 2*e**( 2*c + 2*d*x)*a**3*d*f*x - 2*e**(2*c + 2*d*x)*a*b**2*d*e - 2*e**(c + d*x)*a **2*b*d*f*x - 8*e**(3*c)*int((e**(3*d*x)*x)/(e**(6*c + 6*d*x)*b + 2*e**(5* c + 5*d*x)*a - 3*e**(4*c + 4*d*x)*b - 4*e**(3*c + 3*d*x)*a + 3*e**(2*c ...