Integrand size = 16, antiderivative size = 33 \[ \int \cosh (a+b x) \text {csch}^2(c-b x) \, dx=\frac {\cosh (a+c) \text {csch}(c-b x)}{b}-\frac {\text {arctanh}(\cosh (c-b x)) \sinh (a+c)}{b} \] Output:
-cosh(a+c)*csch(b*x-c)/b-arctanh(cosh(b*x-c))*sinh(a+c)/b
Result contains complex when optimal does not.
Time = 0.07 (sec) , antiderivative size = 149, normalized size of antiderivative = 4.52 \[ \int \cosh (a+b x) \text {csch}^2(c-b x) \, dx=\frac {\cosh (a+c) \text {csch}(c-b x)}{b}-\frac {2 i \arctan \left (\frac {\cosh \left (\frac {b x}{2}\right )+\cosh ^2(c) \cosh \left (\frac {b x}{2}\right )+2 \cosh (c) \cosh \left (\frac {b x}{2}\right ) \sinh (c)+\cosh \left (\frac {b x}{2}\right ) \sinh ^2(c)+\sinh \left (\frac {b x}{2}\right )-\cosh ^2(c) \sinh \left (\frac {b x}{2}\right )-2 \cosh (c) \sinh (c) \sinh \left (\frac {b x}{2}\right )-\sinh ^2(c) \sinh \left (\frac {b x}{2}\right )}{2 i \cosh (c) \cosh \left (\frac {b x}{2}\right )+2 i \cosh \left (\frac {b x}{2}\right ) \sinh (c)}\right ) \sinh (a+c)}{b} \] Input:
Integrate[Cosh[a + b*x]*Csch[c - b*x]^2,x]
Output:
(Cosh[a + c]*Csch[c - b*x])/b - ((2*I)*ArcTan[(Cosh[(b*x)/2] + Cosh[c]^2*C osh[(b*x)/2] + 2*Cosh[c]*Cosh[(b*x)/2]*Sinh[c] + Cosh[(b*x)/2]*Sinh[c]^2 + Sinh[(b*x)/2] - Cosh[c]^2*Sinh[(b*x)/2] - 2*Cosh[c]*Sinh[c]*Sinh[(b*x)/2] - Sinh[c]^2*Sinh[(b*x)/2])/((2*I)*Cosh[c]*Cosh[(b*x)/2] + (2*I)*Cosh[(b*x )/2]*Sinh[c])]*Sinh[a + c])/b
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 \cosh (a+b x) \text {csch}^2(c-b x) \, dx\) |
\(\Big \downarrow \) 7299 |
\(\displaystyle \int \cosh (a+b x) \text {csch}^2(c-b x)dx\) |
Input:
Int[Cosh[a + b*x]*Csch[c - b*x]^2,x]
Output:
$Aborted
Leaf count of result is larger than twice the leaf count of optimal. \(163\) vs. \(2(36)=72\).
Time = 0.21 (sec) , antiderivative size = 164, normalized size of antiderivative = 4.97
method | result | size |
risch | \(\frac {{\mathrm e}^{b x +a} \left ({\mathrm e}^{2 a +2 c}+1\right )}{b \left ({\mathrm e}^{2 a +2 c}-{\mathrm e}^{2 b x +2 a}\right )}+\frac {\ln \left (-{\mathrm e}^{a +c}+{\mathrm e}^{b x +a}\right ) {\mathrm e}^{-a -c} {\mathrm e}^{2 a +2 c}}{2 b}-\frac {\ln \left (-{\mathrm e}^{a +c}+{\mathrm e}^{b x +a}\right ) {\mathrm e}^{-a -c}}{2 b}-\frac {\ln \left ({\mathrm e}^{a +c}+{\mathrm e}^{b x +a}\right ) {\mathrm e}^{-a -c} {\mathrm e}^{2 a +2 c}}{2 b}+\frac {\ln \left ({\mathrm e}^{a +c}+{\mathrm e}^{b x +a}\right ) {\mathrm e}^{-a -c}}{2 b}\) | \(164\) |
Input:
int(cosh(b*x+a)*csch(b*x-c)^2,x,method=_RETURNVERBOSE)
Output:
1/b*exp(b*x+a)*(exp(2*a+2*c)+1)/(exp(2*a+2*c)-exp(2*b*x+2*a))+1/2*ln(-exp( a+c)+exp(b*x+a))/b*exp(-a-c)*exp(2*a+2*c)-1/2*ln(-exp(a+c)+exp(b*x+a))/b*e xp(-a-c)-1/2*ln(exp(a+c)+exp(b*x+a))/b*exp(-a-c)*exp(2*a+2*c)+1/2*ln(exp(a +c)+exp(b*x+a))/b*exp(-a-c)
Leaf count of result is larger than twice the leaf count of optimal. 1104 vs. \(2 (36) = 72\).
Time = 0.09 (sec) , antiderivative size = 1104, normalized size of antiderivative = 33.45 \[ \int \cosh (a+b x) \text {csch}^2(c-b x) \, dx=\text {Too large to display} \] Input:
integrate(cosh(b*x+a)*csch(b*x-c)^2,x, algorithm="fricas")
Output:
-1/2*(6*cosh(b*x + a)*cosh(a + c)*sinh(a + c)^2 - 2*cosh(b*x + a)*sinh(a + c)^3 - 2*(3*cosh(a + c)^2 + 1)*cosh(b*x + a)*sinh(a + c) + 2*(cosh(a + c) ^3 + cosh(a + c))*cosh(b*x + a) + (4*cosh(b*x + a)^2*cosh(a + c)*sinh(a + c)^3 - cosh(b*x + a)^2*sinh(a + c)^4 - (cosh(a + c)^4 - cosh(a + c)^2)*cos h(b*x + a)^2 - (cosh(a + c)^4 - 4*cosh(a + c)*sinh(a + c)^3 + sinh(a + c)^ 4 + (6*cosh(a + c)^2 - 1)*sinh(a + c)^2 - cosh(a + c)^2 - 2*(2*cosh(a + c) ^3 - cosh(a + c))*sinh(a + c))*sinh(b*x + a)^2 - ((6*cosh(a + c)^2 - 1)*co sh(b*x + a)^2 - 1)*sinh(a + c)^2 + cosh(a + c)^2 + 2*(4*cosh(b*x + a)*cosh (a + c)*sinh(a + c)^3 - cosh(b*x + a)*sinh(a + c)^4 - (6*cosh(a + c)^2 - 1 )*cosh(b*x + a)*sinh(a + c)^2 + 2*(2*cosh(a + c)^3 - cosh(a + c))*cosh(b*x + a)*sinh(a + c) - (cosh(a + c)^4 - cosh(a + c)^2)*cosh(b*x + a))*sinh(b* x + a) + 2*((2*cosh(a + c)^3 - cosh(a + c))*cosh(b*x + a)^2 - cosh(a + c)) *sinh(a + c) - 1)*log(cosh(b*x + a)*cosh(a + c) + (cosh(a + c) - sinh(a + c))*sinh(b*x + a) - cosh(b*x + a)*sinh(a + c) + 1) - (4*cosh(b*x + a)^2*co sh(a + c)*sinh(a + c)^3 - cosh(b*x + a)^2*sinh(a + c)^4 - (cosh(a + c)^4 - cosh(a + c)^2)*cosh(b*x + a)^2 - (cosh(a + c)^4 - 4*cosh(a + c)*sinh(a + c)^3 + sinh(a + c)^4 + (6*cosh(a + c)^2 - 1)*sinh(a + c)^2 - cosh(a + c)^2 - 2*(2*cosh(a + c)^3 - cosh(a + c))*sinh(a + c))*sinh(b*x + a)^2 - ((6*co sh(a + c)^2 - 1)*cosh(b*x + a)^2 - 1)*sinh(a + c)^2 + cosh(a + c)^2 + 2*(4 *cosh(b*x + a)*cosh(a + c)*sinh(a + c)^3 - cosh(b*x + a)*sinh(a + c)^4 ...
\[ \int \cosh (a+b x) \text {csch}^2(c-b x) \, dx=\int \cosh {\left (a + b x \right )} \operatorname {csch}^{2}{\left (b x - c \right )}\, dx \] Input:
integrate(cosh(b*x+a)*csch(b*x-c)**2,x)
Output:
Integral(cosh(a + b*x)*csch(b*x - c)**2, x)
Leaf count of result is larger than twice the leaf count of optimal. 103 vs. \(2 (36) = 72\).
Time = 0.04 (sec) , antiderivative size = 103, normalized size of antiderivative = 3.12 \[ \int \cosh (a+b x) \text {csch}^2(c-b x) \, dx=-\frac {{\left (e^{\left (2 \, a + 2 \, c\right )} - 1\right )} e^{\left (-a - c\right )} \log \left (e^{\left (-b x + c\right )} + 1\right )}{2 \, b} + \frac {{\left (e^{\left (2 \, a + 2 \, c\right )} - 1\right )} e^{\left (-a - c\right )} \log \left (e^{\left (-b x + c\right )} - 1\right )}{2 \, b} + \frac {{\left (e^{\left (2 \, a + 2 \, c\right )} + 1\right )} e^{\left (-b x - a\right )}}{b {\left (e^{\left (-2 \, b x + 2 \, c\right )} - 1\right )}} \] Input:
integrate(cosh(b*x+a)*csch(b*x-c)^2,x, algorithm="maxima")
Output:
-1/2*(e^(2*a + 2*c) - 1)*e^(-a - c)*log(e^(-b*x + c) + 1)/b + 1/2*(e^(2*a + 2*c) - 1)*e^(-a - c)*log(e^(-b*x + c) - 1)/b + (e^(2*a + 2*c) + 1)*e^(-b *x - a)/(b*(e^(-2*b*x + 2*c) - 1))
Leaf count of result is larger than twice the leaf count of optimal. 105 vs. \(2 (36) = 72\).
Time = 0.13 (sec) , antiderivative size = 105, normalized size of antiderivative = 3.18 \[ \int \cosh (a+b x) \text {csch}^2(c-b x) \, dx=-\frac {{\left (e^{\left (2 \, a + 2 \, c\right )} - 1\right )} e^{\left (-a - c\right )} \log \left (e^{\left (b x\right )} + e^{c}\right )}{2 \, b} + \frac {{\left (e^{\left (2 \, a + 2 \, c\right )} - 1\right )} e^{\left (-a - c\right )} \log \left ({\left | e^{\left (b x\right )} - e^{c} \right |}\right )}{2 \, b} - \frac {{\left (e^{\left (b x + 2 \, a + 2 \, c\right )} + e^{\left (b x\right )}\right )} e^{\left (-a\right )}}{b {\left (e^{\left (2 \, b x\right )} - e^{\left (2 \, c\right )}\right )}} \] Input:
integrate(cosh(b*x+a)*csch(b*x-c)^2,x, algorithm="giac")
Output:
-1/2*(e^(2*a + 2*c) - 1)*e^(-a - c)*log(e^(b*x) + e^c)/b + 1/2*(e^(2*a + 2 *c) - 1)*e^(-a - c)*log(abs(e^(b*x) - e^c))/b - (e^(b*x + 2*a + 2*c) + e^( b*x))*e^(-a)/(b*(e^(2*b*x) - e^(2*c)))
Time = 0.19 (sec) , antiderivative size = 156, normalized size of antiderivative = 4.73 \[ \int \cosh (a+b x) \text {csch}^2(c-b x) \, dx=\frac {\mathrm {atan}\left (\frac {{\mathrm {e}}^{-a}\,{\mathrm {e}}^{-2\,c}\,{\mathrm {e}}^{b\,x}\,\left (\sqrt {-b^2}-{\mathrm {e}}^{2\,a}\,{\mathrm {e}}^{2\,c}\,\sqrt {-b^2}\right )}{b\,\sqrt {{\mathrm {e}}^{-2\,a}\,{\mathrm {e}}^{-2\,c}\,\left ({\mathrm {e}}^{4\,a}\,{\mathrm {e}}^{4\,c}-2\,{\mathrm {e}}^{2\,a}\,{\mathrm {e}}^{2\,c}+1\right )}}\right )\,\sqrt {{\mathrm {e}}^{-2\,a-2\,c}\,\left ({\mathrm {e}}^{4\,a+4\,c}-2\,{\mathrm {e}}^{2\,a+2\,c}+1\right )}}{\sqrt {-b^2}}+\frac {{\mathrm {e}}^{a+b\,x}\,\left ({\mathrm {e}}^{2\,a+2\,c}+1\right )}{b\,\left ({\mathrm {e}}^{2\,a+2\,c}-{\mathrm {e}}^{2\,a+2\,b\,x}\right )} \] Input:
int(cosh(a + b*x)/sinh(c - b*x)^2,x)
Output:
(atan((exp(-a)*exp(-2*c)*exp(b*x)*((-b^2)^(1/2) - exp(2*a)*exp(2*c)*(-b^2) ^(1/2)))/(b*(exp(-2*a)*exp(-2*c)*(exp(4*a)*exp(4*c) - 2*exp(2*a)*exp(2*c) + 1))^(1/2)))*(exp(- 2*a - 2*c)*(exp(4*a + 4*c) - 2*exp(2*a + 2*c) + 1))^( 1/2))/(-b^2)^(1/2) + (exp(a + b*x)*(exp(2*a + 2*c) + 1))/(b*(exp(2*a + 2*c ) - exp(2*a + 2*b*x)))
Time = 0.25 (sec) , antiderivative size = 218, normalized size of antiderivative = 6.61 \[ \int \cosh (a+b x) \text {csch}^2(c-b x) \, dx=\frac {-e^{2 b x +2 a +2 c} \mathrm {log}\left (e^{b x}+e^{c}\right )+e^{2 b x +2 a +2 c} \mathrm {log}\left (e^{b x}-e^{c}\right )+e^{2 b x} \mathrm {log}\left (e^{b x}+e^{c}\right )-e^{2 b x} \mathrm {log}\left (e^{b x}-e^{c}\right )-2 e^{b x +2 a +3 c}-2 e^{b x +c}+e^{2 a +4 c} \mathrm {log}\left (e^{b x}+e^{c}\right )-e^{2 a +4 c} \mathrm {log}\left (e^{b x}-e^{c}\right )-e^{2 c} \mathrm {log}\left (e^{b x}+e^{c}\right )+e^{2 c} \mathrm {log}\left (e^{b x}-e^{c}\right )}{2 e^{a +c} b \left (e^{2 b x}-e^{2 c}\right )} \] Input:
int(cosh(b*x+a)*csch(b*x-c)^2,x)
Output:
( - e**(2*a + 2*b*x + 2*c)*log(e**(b*x) + e**c) + e**(2*a + 2*b*x + 2*c)*l og(e**(b*x) - e**c) + e**(2*b*x)*log(e**(b*x) + e**c) - e**(2*b*x)*log(e** (b*x) - e**c) - 2*e**(2*a + b*x + 3*c) - 2*e**(b*x + c) + e**(2*a + 4*c)*l og(e**(b*x) + e**c) - e**(2*a + 4*c)*log(e**(b*x) - e**c) - e**(2*c)*log(e **(b*x) + e**c) + e**(2*c)*log(e**(b*x) - e**c))/(2*e**(a + c)*b*(e**(2*b* x) - e**(2*c)))