Integrand size = 27, antiderivative size = 55 \[ \int \frac {\cosh (c+d x) \sinh ^2(c+d x)}{a+b \sinh (c+d x)} \, dx=\frac {a^2 \log (a+b \sinh (c+d x))}{b^3 d}-\frac {a \sinh (c+d x)}{b^2 d}+\frac {\sinh ^2(c+d x)}{2 b d} \] Output:
a^2*ln(a+b*sinh(d*x+c))/b^3/d-a*sinh(d*x+c)/b^2/d+1/2*sinh(d*x+c)^2/b/d
Time = 0.05 (sec) , antiderivative size = 49, normalized size of antiderivative = 0.89 \[ \int \frac {\cosh (c+d x) \sinh ^2(c+d x)}{a+b \sinh (c+d x)} \, dx=\frac {2 a^2 \log (a+b \sinh (c+d x))-2 a b \sinh (c+d x)+b^2 \sinh ^2(c+d x)}{2 b^3 d} \] Input:
Integrate[(Cosh[c + d*x]*Sinh[c + d*x]^2)/(a + b*Sinh[c + d*x]),x]
Output:
(2*a^2*Log[a + b*Sinh[c + d*x]] - 2*a*b*Sinh[c + d*x] + b^2*Sinh[c + d*x]^ 2)/(2*b^3*d)
Time = 0.31 (sec) , antiderivative size = 48, normalized size of antiderivative = 0.87, number of steps used = 8, number of rules used = 7, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.259, Rules used = {3042, 25, 3312, 25, 27, 49, 2009}
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 {\sinh ^2(c+d x) \cosh (c+d x)}{a+b \sinh (c+d x)} \, dx\) |
\(\Big \downarrow \) 3042 |
\(\displaystyle \int -\frac {\sin (i c+i d x)^2 \cos (i c+i d x)}{a-i b \sin (i c+i d x)}dx\) |
\(\Big \downarrow \) 25 |
\(\displaystyle -\int \frac {\cos (i c+i d x) \sin (i c+i d x)^2}{a-i b \sin (i c+i d x)}dx\) |
\(\Big \downarrow \) 3312 |
\(\displaystyle -\frac {\int -\frac {\sinh ^2(c+d x)}{a+b \sinh (c+d x)}d(b \sinh (c+d x))}{b d}\) |
\(\Big \downarrow \) 25 |
\(\displaystyle \frac {\int \frac {\sinh ^2(c+d x)}{a+b \sinh (c+d x)}d(b \sinh (c+d x))}{b d}\) |
\(\Big \downarrow \) 27 |
\(\displaystyle \frac {\int \frac {b^2 \sinh ^2(c+d x)}{a+b \sinh (c+d x)}d(b \sinh (c+d x))}{b^3 d}\) |
\(\Big \downarrow \) 49 |
\(\displaystyle \frac {\int \left (\frac {a^2}{a+b \sinh (c+d x)}-a+b \sinh (c+d x)\right )d(b \sinh (c+d x))}{b^3 d}\) |
\(\Big \downarrow \) 2009 |
\(\displaystyle \frac {a^2 \log (a+b \sinh (c+d x))-a b \sinh (c+d x)+\frac {1}{2} b^2 \sinh ^2(c+d x)}{b^3 d}\) |
Input:
Int[(Cosh[c + d*x]*Sinh[c + d*x]^2)/(a + b*Sinh[c + d*x]),x]
Output:
(a^2*Log[a + b*Sinh[c + d*x]] - a*b*Sinh[c + d*x] + (b^2*Sinh[c + d*x]^2)/ 2)/(b^3*d)
Int[(a_)*(Fx_), x_Symbol] :> Simp[a Int[Fx, x], x] /; FreeQ[a, x] && !Ma tchQ[Fx, (b_)*(Gx_) /; FreeQ[b, x]]
Int[((a_.) + (b_.)*(x_))^(m_.)*((c_.) + (d_.)*(x_))^(n_.), x_Symbol] :> Int [ExpandIntegrand[(a + b*x)^m*(c + d*x)^n, x], x] /; FreeQ[{a, b, c, d}, x] && IGtQ[m, 0] && IGtQ[m + n + 2, 0]
Int[cos[(e_.) + (f_.)*(x_)]*((a_) + (b_.)*sin[(e_.) + (f_.)*(x_)])^(m_.)*(( c_.) + (d_.)*sin[(e_.) + (f_.)*(x_)])^(n_.), x_Symbol] :> Simp[1/(b*f) Su bst[Int[(a + x)^m*(c + (d/b)*x)^n, x], x, b*Sin[e + f*x]], x] /; FreeQ[{a, b, c, d, e, f, m, n}, x]
Time = 2.85 (sec) , antiderivative size = 54, normalized size of antiderivative = 0.98
method | result | size |
derivativedivides | \(\frac {a^{2} \ln \left (a +b \sinh \left (d x +c \right )\right )}{b^{3} d}-\frac {a \sinh \left (d x +c \right )}{b^{2} d}+\frac {\sinh \left (d x +c \right )^{2}}{2 b d}\) | \(54\) |
default | \(\frac {a^{2} \ln \left (a +b \sinh \left (d x +c \right )\right )}{b^{3} d}-\frac {a \sinh \left (d x +c \right )}{b^{2} d}+\frac {\sinh \left (d x +c \right )^{2}}{2 b d}\) | \(54\) |
risch | \(-\frac {x \,a^{2}}{b^{3}}+\frac {{\mathrm e}^{2 d x +2 c}}{8 b d}-\frac {a \,{\mathrm e}^{d x +c}}{2 b^{2} d}+\frac {a \,{\mathrm e}^{-d x -c}}{2 b^{2} d}+\frac {{\mathrm e}^{-2 d x -2 c}}{8 b d}-\frac {2 a^{2} c}{b^{3} d}+\frac {a^{2} \ln \left ({\mathrm e}^{2 d x +2 c}+\frac {2 a \,{\mathrm e}^{d x +c}}{b}-1\right )}{b^{3} d}\) | \(124\) |
Input:
int(cosh(d*x+c)*sinh(d*x+c)^2/(a+b*sinh(d*x+c)),x,method=_RETURNVERBOSE)
Output:
a^2*ln(a+b*sinh(d*x+c))/b^3/d-a*sinh(d*x+c)/b^2/d+1/2*sinh(d*x+c)^2/b/d
Leaf count of result is larger than twice the leaf count of optimal. 309 vs. \(2 (53) = 106\).
Time = 0.10 (sec) , antiderivative size = 309, normalized size of antiderivative = 5.62 \[ \int \frac {\cosh (c+d x) \sinh ^2(c+d x)}{a+b \sinh (c+d x)} \, dx=-\frac {8 \, a^{2} d x \cosh \left (d x + c\right )^{2} - b^{2} \cosh \left (d x + c\right )^{4} - b^{2} \sinh \left (d x + c\right )^{4} + 4 \, a b \cosh \left (d x + c\right )^{3} - 4 \, {\left (b^{2} \cosh \left (d x + c\right ) - a b\right )} \sinh \left (d x + c\right )^{3} - 4 \, a b \cosh \left (d x + c\right ) + 2 \, {\left (4 \, a^{2} d x - 3 \, b^{2} \cosh \left (d x + c\right )^{2} + 6 \, a b \cosh \left (d x + c\right )\right )} \sinh \left (d x + c\right )^{2} - b^{2} - 8 \, {\left (a^{2} \cosh \left (d x + c\right )^{2} + 2 \, a^{2} \cosh \left (d x + c\right ) \sinh \left (d x + c\right ) + a^{2} \sinh \left (d x + c\right )^{2}\right )} \log \left (\frac {2 \, {\left (b \sinh \left (d x + c\right ) + a\right )}}{\cosh \left (d x + c\right ) - \sinh \left (d x + c\right )}\right ) + 4 \, {\left (4 \, a^{2} d x \cosh \left (d x + c\right ) - b^{2} \cosh \left (d x + c\right )^{3} + 3 \, a b \cosh \left (d x + c\right )^{2} - a b\right )} \sinh \left (d x + c\right )}{8 \, {\left (b^{3} d \cosh \left (d x + c\right )^{2} + 2 \, b^{3} d \cosh \left (d x + c\right ) \sinh \left (d x + c\right ) + b^{3} d \sinh \left (d x + c\right )^{2}\right )}} \] Input:
integrate(cosh(d*x+c)*sinh(d*x+c)^2/(a+b*sinh(d*x+c)),x, algorithm="fricas ")
Output:
-1/8*(8*a^2*d*x*cosh(d*x + c)^2 - b^2*cosh(d*x + c)^4 - b^2*sinh(d*x + c)^ 4 + 4*a*b*cosh(d*x + c)^3 - 4*(b^2*cosh(d*x + c) - a*b)*sinh(d*x + c)^3 - 4*a*b*cosh(d*x + c) + 2*(4*a^2*d*x - 3*b^2*cosh(d*x + c)^2 + 6*a*b*cosh(d* x + c))*sinh(d*x + c)^2 - b^2 - 8*(a^2*cosh(d*x + c)^2 + 2*a^2*cosh(d*x + c)*sinh(d*x + c) + a^2*sinh(d*x + c)^2)*log(2*(b*sinh(d*x + c) + a)/(cosh( d*x + c) - sinh(d*x + c))) + 4*(4*a^2*d*x*cosh(d*x + c) - b^2*cosh(d*x + c )^3 + 3*a*b*cosh(d*x + c)^2 - a*b)*sinh(d*x + c))/(b^3*d*cosh(d*x + c)^2 + 2*b^3*d*cosh(d*x + c)*sinh(d*x + c) + b^3*d*sinh(d*x + c)^2)
Time = 1.08 (sec) , antiderivative size = 87, normalized size of antiderivative = 1.58 \[ \int \frac {\cosh (c+d x) \sinh ^2(c+d x)}{a+b \sinh (c+d x)} \, dx=\begin {cases} \frac {x \sinh ^{2}{\left (c \right )} \cosh {\left (c \right )}}{a} & \text {for}\: b = 0 \wedge d = 0 \\\frac {\sinh ^{3}{\left (c + d x \right )}}{3 a d} & \text {for}\: b = 0 \\\frac {x \sinh ^{2}{\left (c \right )} \cosh {\left (c \right )}}{a + b \sinh {\left (c \right )}} & \text {for}\: d = 0 \\\frac {a^{2} \log {\left (\frac {a}{b} + \sinh {\left (c + d x \right )} \right )}}{b^{3} d} - \frac {a \sinh {\left (c + d x \right )}}{b^{2} d} + \frac {\sinh ^{2}{\left (c + d x \right )}}{2 b d} & \text {otherwise} \end {cases} \] Input:
integrate(cosh(d*x+c)*sinh(d*x+c)**2/(a+b*sinh(d*x+c)),x)
Output:
Piecewise((x*sinh(c)**2*cosh(c)/a, Eq(b, 0) & Eq(d, 0)), (sinh(c + d*x)**3 /(3*a*d), Eq(b, 0)), (x*sinh(c)**2*cosh(c)/(a + b*sinh(c)), Eq(d, 0)), (a* *2*log(a/b + sinh(c + d*x))/(b**3*d) - a*sinh(c + d*x)/(b**2*d) + sinh(c + d*x)**2/(2*b*d), True))
Leaf count of result is larger than twice the leaf count of optimal. 119 vs. \(2 (53) = 106\).
Time = 0.05 (sec) , antiderivative size = 119, normalized size of antiderivative = 2.16 \[ \int \frac {\cosh (c+d x) \sinh ^2(c+d x)}{a+b \sinh (c+d x)} \, dx=\frac {{\left (d x + c\right )} a^{2}}{b^{3} d} - \frac {{\left (4 \, a e^{\left (-d x - c\right )} - b\right )} e^{\left (2 \, d x + 2 \, c\right )}}{8 \, b^{2} d} + \frac {a^{2} \log \left (-2 \, a e^{\left (-d x - c\right )} + b e^{\left (-2 \, d x - 2 \, c\right )} - b\right )}{b^{3} d} + \frac {4 \, a e^{\left (-d x - c\right )} + b e^{\left (-2 \, d x - 2 \, c\right )}}{8 \, b^{2} d} \] Input:
integrate(cosh(d*x+c)*sinh(d*x+c)^2/(a+b*sinh(d*x+c)),x, algorithm="maxima ")
Output:
(d*x + c)*a^2/(b^3*d) - 1/8*(4*a*e^(-d*x - c) - b)*e^(2*d*x + 2*c)/(b^2*d) + a^2*log(-2*a*e^(-d*x - c) + b*e^(-2*d*x - 2*c) - b)/(b^3*d) + 1/8*(4*a* e^(-d*x - c) + b*e^(-2*d*x - 2*c))/(b^2*d)
Time = 0.14 (sec) , antiderivative size = 88, normalized size of antiderivative = 1.60 \[ \int \frac {\cosh (c+d x) \sinh ^2(c+d x)}{a+b \sinh (c+d x)} \, dx=\frac {\frac {8 \, a^{2} \log \left ({\left | b {\left (e^{\left (d x + c\right )} - e^{\left (-d x - c\right )}\right )} + 2 \, a \right |}\right )}{b^{3}} + \frac {b {\left (e^{\left (d x + c\right )} - e^{\left (-d x - c\right )}\right )}^{2} - 4 \, a {\left (e^{\left (d x + c\right )} - e^{\left (-d x - c\right )}\right )}}{b^{2}}}{8 \, d} \] Input:
integrate(cosh(d*x+c)*sinh(d*x+c)^2/(a+b*sinh(d*x+c)),x, algorithm="giac")
Output:
1/8*(8*a^2*log(abs(b*(e^(d*x + c) - e^(-d*x - c)) + 2*a))/b^3 + (b*(e^(d*x + c) - e^(-d*x - c))^2 - 4*a*(e^(d*x + c) - e^(-d*x - c)))/b^2)/d
Time = 0.11 (sec) , antiderivative size = 46, normalized size of antiderivative = 0.84 \[ \int \frac {\cosh (c+d x) \sinh ^2(c+d x)}{a+b \sinh (c+d x)} \, dx=\frac {a^2\,\ln \left (a+b\,\mathrm {sinh}\left (c+d\,x\right )\right )+\frac {b^2\,{\mathrm {sinh}\left (c+d\,x\right )}^2}{2}-a\,b\,\mathrm {sinh}\left (c+d\,x\right )}{b^3\,d} \] Input:
int((cosh(c + d*x)*sinh(c + d*x)^2)/(a + b*sinh(c + d*x)),x)
Output:
(a^2*log(a + b*sinh(c + d*x)) + (b^2*sinh(c + d*x)^2)/2 - a*b*sinh(c + d*x ))/(b^3*d)
Time = 0.24 (sec) , antiderivative size = 47, normalized size of antiderivative = 0.85 \[ \int \frac {\cosh (c+d x) \sinh ^2(c+d x)}{a+b \sinh (c+d x)} \, dx=\frac {\cosh \left (d x +c \right )^{2} b^{2}+2 \,\mathrm {log}\left (a +b \sinh \left (d x +c \right )\right ) a^{2}-2 \sinh \left (d x +c \right ) a b}{2 b^{3} d} \] Input:
int(cosh(d*x+c)*sinh(d*x+c)^2/(a+b*sinh(d*x+c)),x)
Output:
(cosh(c + d*x)**2*b**2 + 2*log(sinh(c + d*x)*b + a)*a**2 - 2*sinh(c + d*x) *a*b)/(2*b**3*d)