Integrand size = 23, antiderivative size = 97 \[ \int \frac {\text {sech}^6(c+d x)}{\left (a+b \tanh ^2(c+d x)\right )^2} \, dx=-\frac {(3 a-b) (a+b) \arctan \left (\frac {\sqrt {b} \tanh (c+d x)}{\sqrt {a}}\right )}{2 a^{3/2} b^{5/2} d}+\frac {\tanh (c+d x)}{b^2 d}+\frac {(a+b)^2 \tanh (c+d x)}{2 a b^2 d \left (a+b \tanh ^2(c+d x)\right )} \] Output:
-1/2*(3*a-b)*(a+b)*arctan(b^(1/2)*tanh(d*x+c)/a^(1/2))/a^(3/2)/b^(5/2)/d+t anh(d*x+c)/b^2/d+1/2*(a+b)^2*tanh(d*x+c)/a/b^2/d/(a+b*tanh(d*x+c)^2)
Time = 0.77 (sec) , antiderivative size = 102, normalized size of antiderivative = 1.05 \[ \int \frac {\text {sech}^6(c+d x)}{\left (a+b \tanh ^2(c+d x)\right )^2} \, dx=\frac {-\frac {(3 a-b) (a+b) \arctan \left (\frac {\sqrt {b} \tanh (c+d x)}{\sqrt {a}}\right )}{a^{3/2}}+\frac {\sqrt {b} (a+b)^2 \sinh (2 (c+d x))}{a (a-b+(a+b) \cosh (2 (c+d x)))}+2 \sqrt {b} \tanh (c+d x)}{2 b^{5/2} d} \] Input:
Integrate[Sech[c + d*x]^6/(a + b*Tanh[c + d*x]^2)^2,x]
Output:
(-(((3*a - b)*(a + b)*ArcTan[(Sqrt[b]*Tanh[c + d*x])/Sqrt[a]])/a^(3/2)) + (Sqrt[b]*(a + b)^2*Sinh[2*(c + d*x)])/(a*(a - b + (a + b)*Cosh[2*(c + d*x) ])) + 2*Sqrt[b]*Tanh[c + d*x])/(2*b^(5/2)*d)
Time = 0.54 (sec) , antiderivative size = 92, normalized size of antiderivative = 0.95, number of steps used = 5, number of rules used = 4, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.174, Rules used = {3042, 4158, 300, 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 {\text {sech}^6(c+d x)}{\left (a+b \tanh ^2(c+d x)\right )^2} \, dx\) |
\(\Big \downarrow \) 3042 |
\(\displaystyle \int \frac {\sec (i c+i d x)^6}{\left (a-b \tan (i c+i d x)^2\right )^2}dx\) |
\(\Big \downarrow \) 4158 |
\(\displaystyle \frac {\int \frac {\left (1-\tanh ^2(c+d x)\right )^2}{\left (b \tanh ^2(c+d x)+a\right )^2}d\tanh (c+d x)}{d}\) |
\(\Big \downarrow \) 300 |
\(\displaystyle \frac {\int \left (\frac {1}{b^2}-\frac {a^2-b^2+2 b (a+b) \tanh ^2(c+d x)}{b^2 \left (b \tanh ^2(c+d x)+a\right )^2}\right )d\tanh (c+d x)}{d}\) |
\(\Big \downarrow \) 2009 |
\(\displaystyle \frac {-\frac {(3 a-b) (a+b) \arctan \left (\frac {\sqrt {b} \tanh (c+d x)}{\sqrt {a}}\right )}{2 a^{3/2} b^{5/2}}+\frac {(a+b)^2 \tanh (c+d x)}{2 a b^2 \left (a+b \tanh ^2(c+d x)\right )}+\frac {\tanh (c+d x)}{b^2}}{d}\) |
Input:
Int[Sech[c + d*x]^6/(a + b*Tanh[c + d*x]^2)^2,x]
Output:
(-1/2*((3*a - b)*(a + b)*ArcTan[(Sqrt[b]*Tanh[c + d*x])/Sqrt[a]])/(a^(3/2) *b^(5/2)) + Tanh[c + d*x]/b^2 + ((a + b)^2*Tanh[c + d*x])/(2*a*b^2*(a + b* Tanh[c + d*x]^2)))/d
Int[((a_) + (b_.)*(x_)^2)^(p_)*((c_) + (d_.)*(x_)^2)^(q_), x_Symbol] :> Int [PolynomialDivide[(a + b*x^2)^p, (c + d*x^2)^(-q), x], x] /; FreeQ[{a, b, c , d}, x] && NeQ[b*c - a*d, 0] && IGtQ[p, 0] && ILtQ[q, 0] && GeQ[p, -q]
Int[sec[(e_.) + (f_.)*(x_)]^(m_)*((a_) + (b_.)*((c_.)*tan[(e_.) + (f_.)*(x_ )])^(n_))^(p_.), x_Symbol] :> With[{ff = FreeFactors[Tan[e + f*x], x]}, Sim p[ff/(c^(m - 1)*f) Subst[Int[(c^2 + ff^2*x^2)^(m/2 - 1)*(a + b*(ff*x)^n)^ p, x], x, c*(Tan[e + f*x]/ff)], x]] /; FreeQ[{a, b, c, e, f, n, p}, x] && I ntegerQ[m/2] && (IntegersQ[n, p] || IGtQ[m, 0] || IGtQ[p, 0] || EqQ[n^2, 4] || EqQ[n^2, 16])
Leaf count of result is larger than twice the leaf count of optimal. \(305\) vs. \(2(85)=170\).
Time = 0.71 (sec) , antiderivative size = 306, normalized size of antiderivative = 3.15
\[\frac {\frac {2 \tanh \left (\frac {d x}{2}+\frac {c}{2}\right )}{b^{2} \left (\tanh \left (\frac {d x}{2}+\frac {c}{2}\right )^{2}+1\right )}+\frac {\frac {2 \left (\frac {\left (a^{2}+2 a b +b^{2}\right ) \tanh \left (\frac {d x}{2}+\frac {c}{2}\right )^{3}}{2 a}+\frac {\left (a^{2}+2 a b +b^{2}\right ) \tanh \left (\frac {d x}{2}+\frac {c}{2}\right )}{2 a}\right )}{\tanh \left (\frac {d x}{2}+\frac {c}{2}\right )^{4} a +2 \tanh \left (\frac {d x}{2}+\frac {c}{2}\right )^{2} a +4 b \tanh \left (\frac {d x}{2}+\frac {c}{2}\right )^{2}+a}+\left (3 a^{2}+2 a b -b^{2}\right ) \left (\frac {\left (a +\sqrt {\left (a +b \right ) b}+b \right ) \arctan \left (\frac {a \tanh \left (\frac {d x}{2}+\frac {c}{2}\right )}{\sqrt {\left (2 \sqrt {\left (a +b \right ) b}+a +2 b \right ) a}}\right )}{2 a \sqrt {\left (a +b \right ) b}\, \sqrt {\left (2 \sqrt {\left (a +b \right ) b}+a +2 b \right ) a}}-\frac {\left (-a +\sqrt {\left (a +b \right ) b}-b \right ) \operatorname {arctanh}\left (\frac {a \tanh \left (\frac {d x}{2}+\frac {c}{2}\right )}{\sqrt {\left (2 \sqrt {\left (a +b \right ) b}-a -2 b \right ) a}}\right )}{2 a \sqrt {\left (a +b \right ) b}\, \sqrt {\left (2 \sqrt {\left (a +b \right ) b}-a -2 b \right ) a}}\right )}{b^{2}}}{d}\]
Input:
int(sech(d*x+c)^6/(a+tanh(d*x+c)^2*b)^2,x)
Output:
1/d*(2/b^2*tanh(1/2*d*x+1/2*c)/(tanh(1/2*d*x+1/2*c)^2+1)+2/b^2*((1/2*(a^2+ 2*a*b+b^2)/a*tanh(1/2*d*x+1/2*c)^3+1/2*(a^2+2*a*b+b^2)/a*tanh(1/2*d*x+1/2* c))/(tanh(1/2*d*x+1/2*c)^4*a+2*tanh(1/2*d*x+1/2*c)^2*a+4*b*tanh(1/2*d*x+1/ 2*c)^2+a)+1/2*(3*a^2+2*a*b-b^2)*(1/2*(a+((a+b)*b)^(1/2)+b)/a/((a+b)*b)^(1/ 2)/((2*((a+b)*b)^(1/2)+a+2*b)*a)^(1/2)*arctan(a*tanh(1/2*d*x+1/2*c)/((2*(( a+b)*b)^(1/2)+a+2*b)*a)^(1/2))-1/2*(-a+((a+b)*b)^(1/2)-b)/a/((a+b)*b)^(1/2 )/((2*((a+b)*b)^(1/2)-a-2*b)*a)^(1/2)*arctanh(a*tanh(1/2*d*x+1/2*c)/((2*(( a+b)*b)^(1/2)-a-2*b)*a)^(1/2)))))
Leaf count of result is larger than twice the leaf count of optimal. 1282 vs. \(2 (85) = 170\).
Time = 0.14 (sec) , antiderivative size = 2869, normalized size of antiderivative = 29.58 \[ \int \frac {\text {sech}^6(c+d x)}{\left (a+b \tanh ^2(c+d x)\right )^2} \, dx=\text {Too large to display} \] Input:
integrate(sech(d*x+c)^6/(a+b*tanh(d*x+c)^2)^2,x, algorithm="fricas")
Output:
[-1/4*(4*(3*a^3*b + 2*a^2*b^2 - a*b^3)*cosh(d*x + c)^4 + 16*(3*a^3*b + 2*a ^2*b^2 - a*b^3)*cosh(d*x + c)*sinh(d*x + c)^3 + 4*(3*a^3*b + 2*a^2*b^2 - a *b^3)*sinh(d*x + c)^4 + 12*a^3*b + 16*a^2*b^2 + 4*a*b^3 + 8*(3*a^3*b - a^2 *b^2)*cosh(d*x + c)^2 + 8*(3*a^3*b - a^2*b^2 + 3*(3*a^3*b + 2*a^2*b^2 - a* b^3)*cosh(d*x + c)^2)*sinh(d*x + c)^2 - ((3*a^3 + 5*a^2*b + a*b^2 - b^3)*c osh(d*x + c)^6 + 6*(3*a^3 + 5*a^2*b + a*b^2 - b^3)*cosh(d*x + c)*sinh(d*x + c)^5 + (3*a^3 + 5*a^2*b + a*b^2 - b^3)*sinh(d*x + c)^6 + (9*a^3 + 3*a^2* b - 5*a*b^2 + b^3)*cosh(d*x + c)^4 + (9*a^3 + 3*a^2*b - 5*a*b^2 + b^3 + 15 *(3*a^3 + 5*a^2*b + a*b^2 - b^3)*cosh(d*x + c)^2)*sinh(d*x + c)^4 + 4*(5*( 3*a^3 + 5*a^2*b + a*b^2 - b^3)*cosh(d*x + c)^3 + (9*a^3 + 3*a^2*b - 5*a*b^ 2 + b^3)*cosh(d*x + c))*sinh(d*x + c)^3 + 3*a^3 + 5*a^2*b + a*b^2 - b^3 + (9*a^3 + 3*a^2*b - 5*a*b^2 + b^3)*cosh(d*x + c)^2 + (15*(3*a^3 + 5*a^2*b + a*b^2 - b^3)*cosh(d*x + c)^4 + 9*a^3 + 3*a^2*b - 5*a*b^2 + b^3 + 6*(9*a^3 + 3*a^2*b - 5*a*b^2 + b^3)*cosh(d*x + c)^2)*sinh(d*x + c)^2 + 2*(3*(3*a^3 + 5*a^2*b + a*b^2 - b^3)*cosh(d*x + c)^5 + 2*(9*a^3 + 3*a^2*b - 5*a*b^2 + b^3)*cosh(d*x + c)^3 + (9*a^3 + 3*a^2*b - 5*a*b^2 + b^3)*cosh(d*x + c))*s inh(d*x + c))*sqrt(-a*b)*log(((a^2 + 2*a*b + b^2)*cosh(d*x + c)^4 + 4*(a^2 + 2*a*b + b^2)*cosh(d*x + c)*sinh(d*x + c)^3 + (a^2 + 2*a*b + b^2)*sinh(d *x + c)^4 + 2*(a^2 - b^2)*cosh(d*x + c)^2 + 2*(3*(a^2 + 2*a*b + b^2)*cosh( d*x + c)^2 + a^2 - b^2)*sinh(d*x + c)^2 + a^2 - 6*a*b + b^2 + 4*((a^2 +...
\[ \int \frac {\text {sech}^6(c+d x)}{\left (a+b \tanh ^2(c+d x)\right )^2} \, dx=\int \frac {\operatorname {sech}^{6}{\left (c + d x \right )}}{\left (a + b \tanh ^{2}{\left (c + d x \right )}\right )^{2}}\, dx \] Input:
integrate(sech(d*x+c)**6/(a+b*tanh(d*x+c)**2)**2,x)
Output:
Integral(sech(c + d*x)**6/(a + b*tanh(c + d*x)**2)**2, x)
Leaf count of result is larger than twice the leaf count of optimal. 209 vs. \(2 (85) = 170\).
Time = 0.24 (sec) , antiderivative size = 209, normalized size of antiderivative = 2.15 \[ \int \frac {\text {sech}^6(c+d x)}{\left (a+b \tanh ^2(c+d x)\right )^2} \, dx=\frac {3 \, a^{2} + 4 \, a b + b^{2} + 2 \, {\left (3 \, a^{2} - a b\right )} e^{\left (-2 \, d x - 2 \, c\right )} + {\left (3 \, a^{2} + 2 \, a b - b^{2}\right )} e^{\left (-4 \, d x - 4 \, c\right )}}{{\left (a^{2} b^{2} + a b^{3} + {\left (3 \, a^{2} b^{2} - a b^{3}\right )} e^{\left (-2 \, d x - 2 \, c\right )} + {\left (3 \, a^{2} b^{2} - a b^{3}\right )} e^{\left (-4 \, d x - 4 \, c\right )} + {\left (a^{2} b^{2} + a b^{3}\right )} e^{\left (-6 \, d x - 6 \, c\right )}\right )} d} + \frac {{\left (3 \, a^{2} + 2 \, a b - b^{2}\right )} \arctan \left (\frac {{\left (a + b\right )} e^{\left (-2 \, d x - 2 \, c\right )} + a - b}{2 \, \sqrt {a b}}\right )}{2 \, \sqrt {a b} a b^{2} d} \] Input:
integrate(sech(d*x+c)^6/(a+b*tanh(d*x+c)^2)^2,x, algorithm="maxima")
Output:
(3*a^2 + 4*a*b + b^2 + 2*(3*a^2 - a*b)*e^(-2*d*x - 2*c) + (3*a^2 + 2*a*b - b^2)*e^(-4*d*x - 4*c))/((a^2*b^2 + a*b^3 + (3*a^2*b^2 - a*b^3)*e^(-2*d*x - 2*c) + (3*a^2*b^2 - a*b^3)*e^(-4*d*x - 4*c) + (a^2*b^2 + a*b^3)*e^(-6*d* x - 6*c))*d) + 1/2*(3*a^2 + 2*a*b - b^2)*arctan(1/2*((a + b)*e^(-2*d*x - 2 *c) + a - b)/sqrt(a*b))/(sqrt(a*b)*a*b^2*d)
Leaf count of result is larger than twice the leaf count of optimal. 232 vs. \(2 (85) = 170\).
Time = 0.35 (sec) , antiderivative size = 232, normalized size of antiderivative = 2.39 \[ \int \frac {\text {sech}^6(c+d x)}{\left (a+b \tanh ^2(c+d x)\right )^2} \, dx=-\frac {\frac {{\left (3 \, a^{2} + 2 \, a b - b^{2}\right )} \arctan \left (\frac {a e^{\left (2 \, d x + 2 \, c\right )} + b e^{\left (2 \, d x + 2 \, c\right )} + a - b}{2 \, \sqrt {a b}}\right )}{\sqrt {a b} a b^{2}} + \frac {2 \, {\left (3 \, a^{2} e^{\left (4 \, d x + 4 \, c\right )} + 2 \, a b e^{\left (4 \, d x + 4 \, c\right )} - b^{2} e^{\left (4 \, d x + 4 \, c\right )} + 6 \, a^{2} e^{\left (2 \, d x + 2 \, c\right )} - 2 \, a b e^{\left (2 \, d x + 2 \, c\right )} + 3 \, a^{2} + 4 \, a b + b^{2}\right )}}{{\left (a e^{\left (6 \, d x + 6 \, c\right )} + b e^{\left (6 \, d x + 6 \, c\right )} + 3 \, a e^{\left (4 \, d x + 4 \, c\right )} - b e^{\left (4 \, d x + 4 \, c\right )} + 3 \, a e^{\left (2 \, d x + 2 \, c\right )} - b e^{\left (2 \, d x + 2 \, c\right )} + a + b\right )} a b^{2}}}{2 \, d} \] Input:
integrate(sech(d*x+c)^6/(a+b*tanh(d*x+c)^2)^2,x, algorithm="giac")
Output:
-1/2*((3*a^2 + 2*a*b - b^2)*arctan(1/2*(a*e^(2*d*x + 2*c) + b*e^(2*d*x + 2 *c) + a - b)/sqrt(a*b))/(sqrt(a*b)*a*b^2) + 2*(3*a^2*e^(4*d*x + 4*c) + 2*a *b*e^(4*d*x + 4*c) - b^2*e^(4*d*x + 4*c) + 6*a^2*e^(2*d*x + 2*c) - 2*a*b*e ^(2*d*x + 2*c) + 3*a^2 + 4*a*b + b^2)/((a*e^(6*d*x + 6*c) + b*e^(6*d*x + 6 *c) + 3*a*e^(4*d*x + 4*c) - b*e^(4*d*x + 4*c) + 3*a*e^(2*d*x + 2*c) - b*e^ (2*d*x + 2*c) + a + b)*a*b^2))/d
Timed out. \[ \int \frac {\text {sech}^6(c+d x)}{\left (a+b \tanh ^2(c+d x)\right )^2} \, dx=\int \frac {1}{{\mathrm {cosh}\left (c+d\,x\right )}^6\,{\left (b\,{\mathrm {tanh}\left (c+d\,x\right )}^2+a\right )}^2} \,d x \] Input:
int(1/(cosh(c + d*x)^6*(a + b*tanh(c + d*x)^2)^2),x)
Output:
int(1/(cosh(c + d*x)^6*(a + b*tanh(c + d*x)^2)^2), x)
Time = 0.31 (sec) , antiderivative size = 1449, normalized size of antiderivative = 14.94 \[ \int \frac {\text {sech}^6(c+d x)}{\left (a+b \tanh ^2(c+d x)\right )^2} \, dx =\text {Too large to display} \] Input:
int(sech(d*x+c)^6/(a+b*tanh(d*x+c)^2)^2,x)
Output:
( - 3*e**(6*c + 6*d*x)*sqrt(b)*sqrt(a)*atan((e**(c + d*x)*sqrt(a + b) - sq rt(b))/sqrt(a))*a**3 - 5*e**(6*c + 6*d*x)*sqrt(b)*sqrt(a)*atan((e**(c + d* x)*sqrt(a + b) - sqrt(b))/sqrt(a))*a**2*b - e**(6*c + 6*d*x)*sqrt(b)*sqrt( a)*atan((e**(c + d*x)*sqrt(a + b) - sqrt(b))/sqrt(a))*a*b**2 + e**(6*c + 6 *d*x)*sqrt(b)*sqrt(a)*atan((e**(c + d*x)*sqrt(a + b) - sqrt(b))/sqrt(a))*b **3 - 9*e**(4*c + 4*d*x)*sqrt(b)*sqrt(a)*atan((e**(c + d*x)*sqrt(a + b) - sqrt(b))/sqrt(a))*a**3 - 3*e**(4*c + 4*d*x)*sqrt(b)*sqrt(a)*atan((e**(c + d*x)*sqrt(a + b) - sqrt(b))/sqrt(a))*a**2*b + 5*e**(4*c + 4*d*x)*sqrt(b)*s qrt(a)*atan((e**(c + d*x)*sqrt(a + b) - sqrt(b))/sqrt(a))*a*b**2 - e**(4*c + 4*d*x)*sqrt(b)*sqrt(a)*atan((e**(c + d*x)*sqrt(a + b) - sqrt(b))/sqrt(a ))*b**3 - 9*e**(2*c + 2*d*x)*sqrt(b)*sqrt(a)*atan((e**(c + d*x)*sqrt(a + b ) - sqrt(b))/sqrt(a))*a**3 - 3*e**(2*c + 2*d*x)*sqrt(b)*sqrt(a)*atan((e**( c + d*x)*sqrt(a + b) - sqrt(b))/sqrt(a))*a**2*b + 5*e**(2*c + 2*d*x)*sqrt( b)*sqrt(a)*atan((e**(c + d*x)*sqrt(a + b) - sqrt(b))/sqrt(a))*a*b**2 - e** (2*c + 2*d*x)*sqrt(b)*sqrt(a)*atan((e**(c + d*x)*sqrt(a + b) - sqrt(b))/sq rt(a))*b**3 - 3*sqrt(b)*sqrt(a)*atan((e**(c + d*x)*sqrt(a + b) - sqrt(b))/ sqrt(a))*a**3 - 5*sqrt(b)*sqrt(a)*atan((e**(c + d*x)*sqrt(a + b) - sqrt(b) )/sqrt(a))*a**2*b - sqrt(b)*sqrt(a)*atan((e**(c + d*x)*sqrt(a + b) - sqrt( b))/sqrt(a))*a*b**2 + sqrt(b)*sqrt(a)*atan((e**(c + d*x)*sqrt(a + b) - sqr t(b))/sqrt(a))*b**3 + 3*e**(6*c + 6*d*x)*sqrt(b)*sqrt(a)*atan((e**(c + ...