Integrand size = 15, antiderivative size = 72 \[ \int \cosh (a+b x) \tanh ^3(c+b x) \, dx=\frac {\cosh (a+b x)}{b}+\frac {\cosh (a-c) \text {sech}(c+b x)}{b}-\frac {3 \arctan (\sinh (c+b x)) \sinh (a-c)}{2 b}+\frac {\text {sech}(c+b x) \sinh (a-c) \tanh (c+b x)}{2 b} \]
cosh(b*x+a)/b+cosh(a-c)*sech(b*x+c)/b-3/2*arctan(sinh(b*x+c))*sinh(a-c)/b+ 1/2*sech(b*x+c)*sinh(a-c)*tanh(b*x+c)/b
Time = 0.23 (sec) , antiderivative size = 115, normalized size of antiderivative = 1.60 \[ \int \cosh (a+b x) \tanh ^3(c+b x) \, dx=\frac {\cosh (a-2 c) \text {sech}(c) \text {sech}(c+b x)-\cosh (a-c-b x) \text {sech}(c) \text {sech}^2(c+b x)+\cosh (a-c+b x) \text {sech}(c) \text {sech}^2(c+b x)+\cosh (a) (4 \cosh (b x)+3 \text {sech}(c) \text {sech}(c+b x))-12 \arctan \left (\sinh (c)+\cosh (c) \tanh \left (\frac {b x}{2}\right )\right ) \sinh (a-c)+4 \sinh (a) \sinh (b x)}{4 b} \]
(Cosh[a - 2*c]*Sech[c]*Sech[c + b*x] - Cosh[a - c - b*x]*Sech[c]*Sech[c + b*x]^2 + Cosh[a - c + b*x]*Sech[c]*Sech[c + b*x]^2 + Cosh[a]*(4*Cosh[b*x] + 3*Sech[c]*Sech[c + b*x]) - 12*ArcTan[Sinh[c] + Cosh[c]*Tanh[(b*x)/2]]*Si nh[a - c] + 4*Sinh[a]*Sinh[b*x])/(4*b)
Time = 0.71 (sec) , antiderivative size = 86, normalized size of antiderivative = 1.19, number of steps used = 17, number of rules used = 16, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 1.067, Rules used = {6157, 3042, 25, 3091, 3042, 4257, 6154, 3042, 26, 3086, 24, 6157, 3042, 26, 3118, 4257}
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) \tanh ^3(b x+c) \, dx\) |
\(\Big \downarrow \) 6157 |
\(\displaystyle \int \sinh (a+b x) \tanh ^2(c+b x)dx-\sinh (a-c) \int \text {sech}(c+b x) \tanh ^2(c+b x)dx\) |
\(\Big \downarrow \) 3042 |
\(\displaystyle \int \sinh (a+b x) \tanh ^2(c+b x)dx-\sinh (a-c) \int -\sec (i c+i b x) \tan (i c+i b x)^2dx\) |
\(\Big \downarrow \) 25 |
\(\displaystyle \int \sinh (a+b x) \tanh ^2(c+b x)dx+\sinh (a-c) \int \sec (i c+i b x) \tan (i c+i b x)^2dx\) |
\(\Big \downarrow \) 3091 |
\(\displaystyle \int \sinh (a+b x) \tanh ^2(c+b x)dx+\sinh (a-c) \left (\frac {\tanh (b x+c) \text {sech}(b x+c)}{2 b}-\frac {1}{2} \int \text {sech}(c+b x)dx\right )\) |
\(\Big \downarrow \) 3042 |
\(\displaystyle \int \sinh (a+b x) \tanh ^2(c+b x)dx+\sinh (a-c) \left (\frac {\tanh (b x+c) \text {sech}(b x+c)}{2 b}-\frac {1}{2} \int \csc \left (i c+i b x+\frac {\pi }{2}\right )dx\right )\) |
\(\Big \downarrow \) 4257 |
\(\displaystyle \int \sinh (a+b x) \tanh ^2(c+b x)dx+\sinh (a-c) \left (\frac {\tanh (b x+c) \text {sech}(b x+c)}{2 b}-\frac {\arctan (\sinh (b x+c))}{2 b}\right )\) |
\(\Big \downarrow \) 6154 |
\(\displaystyle \int \cosh (a+b x) \tanh (c+b x)dx-\cosh (a-c) \int \text {sech}(c+b x) \tanh (c+b x)dx+\sinh (a-c) \left (\frac {\tanh (b x+c) \text {sech}(b x+c)}{2 b}-\frac {\arctan (\sinh (b x+c))}{2 b}\right )\) |
\(\Big \downarrow \) 3042 |
\(\displaystyle \int \cosh (a+b x) \tanh (c+b x)dx-\cosh (a-c) \int -i \sec (i c+i b x) \tan (i c+i b x)dx+\sinh (a-c) \left (\frac {\tanh (b x+c) \text {sech}(b x+c)}{2 b}-\frac {\arctan (\sinh (b x+c))}{2 b}\right )\) |
\(\Big \downarrow \) 26 |
\(\displaystyle \int \cosh (a+b x) \tanh (c+b x)dx+i \cosh (a-c) \int \sec (i c+i b x) \tan (i c+i b x)dx+\sinh (a-c) \left (\frac {\tanh (b x+c) \text {sech}(b x+c)}{2 b}-\frac {\arctan (\sinh (b x+c))}{2 b}\right )\) |
\(\Big \downarrow \) 3086 |
\(\displaystyle \int \cosh (a+b x) \tanh (c+b x)dx+\frac {\cosh (a-c) \int 1d\text {sech}(c+b x)}{b}+\sinh (a-c) \left (\frac {\tanh (b x+c) \text {sech}(b x+c)}{2 b}-\frac {\arctan (\sinh (b x+c))}{2 b}\right )\) |
\(\Big \downarrow \) 24 |
\(\displaystyle \int \cosh (a+b x) \tanh (c+b x)dx+\sinh (a-c) \left (\frac {\tanh (b x+c) \text {sech}(b x+c)}{2 b}-\frac {\arctan (\sinh (b x+c))}{2 b}\right )+\frac {\cosh (a-c) \text {sech}(b x+c)}{b}\) |
\(\Big \downarrow \) 6157 |
\(\displaystyle -\sinh (a-c) \int \text {sech}(c+b x)dx+\int \sinh (a+b x)dx+\sinh (a-c) \left (\frac {\tanh (b x+c) \text {sech}(b x+c)}{2 b}-\frac {\arctan (\sinh (b x+c))}{2 b}\right )+\frac {\cosh (a-c) \text {sech}(b x+c)}{b}\) |
\(\Big \downarrow \) 3042 |
\(\displaystyle -\sinh (a-c) \int \csc \left (i c+i b x+\frac {\pi }{2}\right )dx+\int -i \sin (i a+i b x)dx+\sinh (a-c) \left (\frac {\tanh (b x+c) \text {sech}(b x+c)}{2 b}-\frac {\arctan (\sinh (b x+c))}{2 b}\right )+\frac {\cosh (a-c) \text {sech}(b x+c)}{b}\) |
\(\Big \downarrow \) 26 |
\(\displaystyle -\sinh (a-c) \int \csc \left (i c+i b x+\frac {\pi }{2}\right )dx-i \int \sin (i a+i b x)dx+\sinh (a-c) \left (\frac {\tanh (b x+c) \text {sech}(b x+c)}{2 b}-\frac {\arctan (\sinh (b x+c))}{2 b}\right )+\frac {\cosh (a-c) \text {sech}(b x+c)}{b}\) |
\(\Big \downarrow \) 3118 |
\(\displaystyle -\sinh (a-c) \int \csc \left (i c+i b x+\frac {\pi }{2}\right )dx+\sinh (a-c) \left (\frac {\tanh (b x+c) \text {sech}(b x+c)}{2 b}-\frac {\arctan (\sinh (b x+c))}{2 b}\right )+\frac {\cosh (a-c) \text {sech}(b x+c)}{b}+\frac {\cosh (a+b x)}{b}\) |
\(\Big \downarrow \) 4257 |
\(\displaystyle -\frac {\sinh (a-c) \arctan (\sinh (b x+c))}{b}+\sinh (a-c) \left (\frac {\tanh (b x+c) \text {sech}(b x+c)}{2 b}-\frac {\arctan (\sinh (b x+c))}{2 b}\right )+\frac {\cosh (a-c) \text {sech}(b x+c)}{b}+\frac {\cosh (a+b x)}{b}\) |
Cosh[a + b*x]/b + (Cosh[a - c]*Sech[c + b*x])/b - (ArcTan[Sinh[c + b*x]]*S inh[a - c])/b + Sinh[a - c]*(-1/2*ArcTan[Sinh[c + b*x]]/b + (Sech[c + b*x] *Tanh[c + b*x])/(2*b))
3.2.57.3.1 Defintions of rubi rules used
Int[(Complex[0, a_])*(Fx_), x_Symbol] :> Simp[(Complex[Identity[0], a]) I nt[Fx, x], x] /; FreeQ[a, x] && EqQ[a^2, 1]
Int[((a_.)*sec[(e_.) + (f_.)*(x_)])^(m_.)*((b_.)*tan[(e_.) + (f_.)*(x_)])^( n_.), x_Symbol] :> Simp[a/f Subst[Int[(a*x)^(m - 1)*(-1 + x^2)^((n - 1)/2 ), x], x, Sec[e + f*x]], x] /; FreeQ[{a, e, f, m}, x] && IntegerQ[(n - 1)/2 ] && !(IntegerQ[m/2] && LtQ[0, m, n + 1])
Int[((a_.)*sec[(e_.) + (f_.)*(x_)])^(m_.)*((b_.)*tan[(e_.) + (f_.)*(x_)])^( n_), x_Symbol] :> Simp[b*(a*Sec[e + f*x])^m*((b*Tan[e + f*x])^(n - 1)/(f*(m + n - 1))), x] - Simp[b^2*((n - 1)/(m + n - 1)) Int[(a*Sec[e + f*x])^m*( b*Tan[e + f*x])^(n - 2), x], x] /; FreeQ[{a, b, e, f, m}, x] && GtQ[n, 1] & & NeQ[m + n - 1, 0] && IntegersQ[2*m, 2*n]
Int[csc[(c_.) + (d_.)*(x_)], x_Symbol] :> Simp[-ArcTanh[Cos[c + d*x]]/d, x] /; FreeQ[{c, d}, x]
Int[Sinh[v_]*Tanh[w_]^(n_.), x_Symbol] :> Int[Cosh[v]*Tanh[w]^(n - 1), x] - Simp[Cosh[v - w] Int[Sech[w]*Tanh[w]^(n - 1), x], x] /; GtQ[n, 0] && NeQ [w, v] && FreeQ[v - w, x]
Int[Cosh[v_]*Tanh[w_]^(n_.), x_Symbol] :> Int[Sinh[v]*Tanh[w]^(n - 1), x] - Simp[Sinh[v - w] Int[Sech[w]*Tanh[w]^(n - 1), x], x] /; GtQ[n, 0] && NeQ [w, v] && FreeQ[v - w, x]
Result contains complex when optimal does not.
Time = 0.44 (sec) , antiderivative size = 238, normalized size of antiderivative = 3.31
method | result | size |
risch | \(\frac {{\mathrm e}^{b x +a}}{2 b}+\frac {{\mathrm e}^{-b x -a}}{2 b}+\frac {{\mathrm e}^{b x +a} \left (3 \,{\mathrm e}^{2 b x +4 a +2 c}+{\mathrm e}^{2 b x +2 a +4 c}+{\mathrm e}^{4 a}+3 \,{\mathrm e}^{2 a +2 c}\right )}{2 b \left ({\mathrm e}^{2 b x +2 a +2 c}+{\mathrm e}^{2 a}\right )^{2}}+\frac {3 i \ln \left ({\mathrm e}^{b x +a}-i {\mathrm e}^{a -c}\right ) {\mathrm e}^{-a -c} {\mathrm e}^{2 a}}{4 b}-\frac {3 i \ln \left ({\mathrm e}^{b x +a}-i {\mathrm e}^{a -c}\right ) {\mathrm e}^{-a -c} {\mathrm e}^{2 c}}{4 b}-\frac {3 i \ln \left ({\mathrm e}^{b x +a}+i {\mathrm e}^{a -c}\right ) {\mathrm e}^{-a -c} {\mathrm e}^{2 a}}{4 b}+\frac {3 i \ln \left ({\mathrm e}^{b x +a}+i {\mathrm e}^{a -c}\right ) {\mathrm e}^{-a -c} {\mathrm e}^{2 c}}{4 b}\) | \(238\) |
1/2*exp(b*x+a)/b+1/2*exp(-b*x-a)/b+1/2*exp(b*x+a)*(3*exp(2*b*x+4*a+2*c)+ex p(2*b*x+2*a+4*c)+exp(4*a)+3*exp(2*a+2*c))/b/(exp(2*b*x+2*a+2*c)+exp(2*a))^ 2+3/4*I*ln(exp(b*x+a)-I*exp(a-c))/b*exp(-a-c)*exp(a)^2-3/4*I*ln(exp(b*x+a) -I*exp(a-c))/b*exp(-a-c)*exp(c)^2-3/4*I*ln(exp(b*x+a)+I*exp(a-c))/b*exp(-a -c)*exp(a)^2+3/4*I*ln(exp(b*x+a)+I*exp(a-c))/b*exp(-a-c)*exp(c)^2
Leaf count of result is larger than twice the leaf count of optimal. 1737 vs. \(2 (68) = 136\).
Time = 0.27 (sec) , antiderivative size = 1737, normalized size of antiderivative = 24.12 \[ \int \cosh (a+b x) \tanh ^3(c+b x) \, dx=\text {Too large to display} \]
1/2*(cosh(b*x + c)^6*cosh(-a + c)^2 + (cosh(-a + c)^2 - 2*cosh(-a + c)*sin h(-a + c) + sinh(-a + c)^2)*sinh(b*x + c)^6 + 6*(cosh(b*x + c)*cosh(-a + c )^2 - 2*cosh(b*x + c)*cosh(-a + c)*sinh(-a + c) + cosh(b*x + c)*sinh(-a + c)^2)*sinh(b*x + c)^5 + (5*cosh(-a + c)^2 + 2)*cosh(b*x + c)^4 + (15*cosh( b*x + c)^2*cosh(-a + c)^2 + 5*(3*cosh(b*x + c)^2 + 1)*sinh(-a + c)^2 + 5*c osh(-a + c)^2 - 10*(3*cosh(b*x + c)^2*cosh(-a + c) + cosh(-a + c))*sinh(-a + c) + 2)*sinh(b*x + c)^4 + 4*(5*cosh(b*x + c)^3*cosh(-a + c)^2 + 5*(cosh (b*x + c)^3 + cosh(b*x + c))*sinh(-a + c)^2 + (5*cosh(-a + c)^2 + 2)*cosh( b*x + c) - 10*(cosh(b*x + c)^3*cosh(-a + c) + cosh(b*x + c)*cosh(-a + c))* sinh(-a + c))*sinh(b*x + c)^3 + (2*cosh(-a + c)^2 + 5)*cosh(b*x + c)^2 + ( 15*cosh(b*x + c)^4*cosh(-a + c)^2 + 6*(5*cosh(-a + c)^2 + 2)*cosh(b*x + c) ^2 + (15*cosh(b*x + c)^4 + 30*cosh(b*x + c)^2 + 2)*sinh(-a + c)^2 + 2*cosh (-a + c)^2 - 2*(15*cosh(b*x + c)^4*cosh(-a + c) + 30*cosh(b*x + c)^2*cosh( -a + c) + 2*cosh(-a + c))*sinh(-a + c) + 5)*sinh(b*x + c)^2 + (cosh(b*x + c)^6 + 5*cosh(b*x + c)^4 + 2*cosh(b*x + c)^2)*sinh(-a + c)^2 - 3*((cosh(-a + c)^2 - 1)*cosh(b*x + c)^5 + (cosh(-a + c)^2 - 2*cosh(-a + c)*sinh(-a + c) + sinh(-a + c)^2 - 1)*sinh(b*x + c)^5 - 5*(2*cosh(b*x + c)*cosh(-a + c) *sinh(-a + c) - cosh(b*x + c)*sinh(-a + c)^2 - (cosh(-a + c)^2 - 1)*cosh(b *x + c))*sinh(b*x + c)^4 + 2*(cosh(-a + c)^2 - 1)*cosh(b*x + c)^3 + 2*(5*( cosh(-a + c)^2 - 1)*cosh(b*x + c)^2 + (5*cosh(b*x + c)^2 + 1)*sinh(-a +...
\[ \int \cosh (a+b x) \tanh ^3(c+b x) \, dx=\int \cosh {\left (a + b x \right )} \tanh ^{3}{\left (b x + c \right )}\, dx \]
Leaf count of result is larger than twice the leaf count of optimal. 149 vs. \(2 (68) = 136\).
Time = 0.30 (sec) , antiderivative size = 149, normalized size of antiderivative = 2.07 \[ \int \cosh (a+b x) \tanh ^3(c+b x) \, dx=\frac {3 \, {\left (e^{\left (2 \, a\right )} - e^{\left (2 \, c\right )}\right )} \arctan \left (e^{\left (-b x - c\right )}\right ) e^{\left (-a - c\right )}}{2 \, b} + \frac {e^{\left (-b x - a\right )}}{2 \, b} + \frac {{\left (5 \, e^{\left (2 \, a + 2 \, c\right )} + e^{\left (4 \, c\right )}\right )} e^{\left (-2 \, b x - 2 \, a\right )} + {\left (2 \, e^{\left (4 \, a\right )} + 3 \, e^{\left (2 \, a + 2 \, c\right )}\right )} e^{\left (-4 \, b x - 4 \, a\right )} + e^{\left (4 \, c\right )}}{2 \, b {\left (e^{\left (-b x - a + 4 \, c\right )} + 2 \, e^{\left (-3 \, b x - a + 2 \, c\right )} + e^{\left (-5 \, b x - a\right )}\right )}} \]
3/2*(e^(2*a) - e^(2*c))*arctan(e^(-b*x - c))*e^(-a - c)/b + 1/2*e^(-b*x - a)/b + 1/2*((5*e^(2*a + 2*c) + e^(4*c))*e^(-2*b*x - 2*a) + (2*e^(4*a) + 3* e^(2*a + 2*c))*e^(-4*b*x - 4*a) + e^(4*c))/(b*(e^(-b*x - a + 4*c) + 2*e^(- 3*b*x - a + 2*c) + e^(-5*b*x - a)))
Time = 0.27 (sec) , antiderivative size = 122, normalized size of antiderivative = 1.69 \[ \int \cosh (a+b x) \tanh ^3(c+b x) \, dx=-\frac {3 \, {\left (e^{\left (2 \, a\right )} - e^{\left (2 \, c\right )}\right )} \arctan \left (e^{\left (b x + c\right )}\right ) e^{\left (-a - c\right )} - \frac {3 \, e^{\left (3 \, b x + 5 \, a + 2 \, c\right )} + e^{\left (3 \, b x + 3 \, a + 4 \, c\right )} + e^{\left (b x + 5 \, a\right )} + 3 \, e^{\left (b x + 3 \, a + 2 \, c\right )}}{{\left (e^{\left (2 \, b x + 2 \, a + 2 \, c\right )} + e^{\left (2 \, a\right )}\right )}^{2}} - e^{\left (b x + a\right )} - e^{\left (-b x - a\right )}}{2 \, b} \]
-1/2*(3*(e^(2*a) - e^(2*c))*arctan(e^(b*x + c))*e^(-a - c) - (3*e^(3*b*x + 5*a + 2*c) + e^(3*b*x + 3*a + 4*c) + e^(b*x + 5*a) + 3*e^(b*x + 3*a + 2*c ))/(e^(2*b*x + 2*a + 2*c) + e^(2*a))^2 - e^(b*x + a) - e^(-b*x - a))/b
Timed out. \[ \int \cosh (a+b x) \tanh ^3(c+b x) \, dx=\int \mathrm {cosh}\left (a+b\,x\right )\,{\mathrm {tanh}\left (c+b\,x\right )}^3 \,d x \]