3.993 \(\int \frac {\text {sech}^2(x) \tanh ^2(x)}{(2+\tanh ^3(x))^2} \, dx\)

Optimal. Leaf size=12 \[ -\frac {1}{3 \left (\tanh ^3(x)+2\right )} \]

[Out]

-1/3/(2+tanh(x)^3)

________________________________________________________________________________________

Rubi [A]  time = 0.09, antiderivative size = 12, normalized size of antiderivative = 1.00, number of steps used = 2, number of rules used = 2, integrand size = 17, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.118, Rules used = {4342, 261} \[ -\frac {1}{3 \left (\tanh ^3(x)+2\right )} \]

Antiderivative was successfully verified.

[In]

Int[(Sech[x]^2*Tanh[x]^2)/(2 + Tanh[x]^3)^2,x]

[Out]

-1/(3*(2 + Tanh[x]^3))

Rule 261

Int[(x_)^(m_.)*((a_) + (b_.)*(x_)^(n_))^(p_), x_Symbol] :> Simp[(a + b*x^n)^(p + 1)/(b*n*(p + 1)), x] /; FreeQ
[{a, b, m, n, p}, x] && EqQ[m, n - 1] && NeQ[p, -1]

Rule 4342

Int[(u_)*(F_)[(c_.)*((a_.) + (b_.)*(x_))]^2, x_Symbol] :> With[{d = FreeFactors[Tan[c*(a + b*x)], x]}, Dist[d/
(b*c), Subst[Int[SubstFor[1, Tan[c*(a + b*x)]/d, u, x], x], x, Tan[c*(a + b*x)]/d], x] /; FunctionOfQ[Tan[c*(a
 + b*x)]/d, u, x, True]] /; FreeQ[{a, b, c}, x] && NonsumQ[u] && (EqQ[F, Sec] || EqQ[F, sec])

Rubi steps

\begin {align*} \int \frac {\text {sech}^2(x) \tanh ^2(x)}{\left (2+\tanh ^3(x)\right )^2} \, dx &=\operatorname {Subst}\left (\int \frac {x^2}{\left (2+x^3\right )^2} \, dx,x,\tanh (x)\right )\\ &=-\frac {1}{3 \left (2+\tanh ^3(x)\right )}\\ \end {align*}

________________________________________________________________________________________

Mathematica [A]  time = 0.04, size = 12, normalized size = 1.00 \[ -\frac {1}{3 \left (\tanh ^3(x)+2\right )} \]

Antiderivative was successfully verified.

[In]

Integrate[(Sech[x]^2*Tanh[x]^2)/(2 + Tanh[x]^3)^2,x]

[Out]

-1/3*1/(2 + Tanh[x]^3)

________________________________________________________________________________________

fricas [B]  time = 0.42, size = 73, normalized size = 6.08 \[ -\frac {8 \, {\left (\cosh \relax (x)^{2} + \cosh \relax (x) \sinh \relax (x) + \sinh \relax (x)^{2}\right )}}{9 \, {\left (3 \, \cosh \relax (x)^{4} + 12 \, \cosh \relax (x) \sinh \relax (x)^{3} + 3 \, \sinh \relax (x)^{4} + 2 \, {\left (9 \, \cosh \relax (x)^{2} + 2\right )} \sinh \relax (x)^{2} + 4 \, \cosh \relax (x)^{2} + 4 \, {\left (3 \, \cosh \relax (x)^{3} + \cosh \relax (x)\right )} \sinh \relax (x) + 9\right )}} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(sech(x)^2*tanh(x)^2/(2+tanh(x)^3)^2,x, algorithm="fricas")

[Out]

-8/9*(cosh(x)^2 + cosh(x)*sinh(x) + sinh(x)^2)/(3*cosh(x)^4 + 12*cosh(x)*sinh(x)^3 + 3*sinh(x)^4 + 2*(9*cosh(x
)^2 + 2)*sinh(x)^2 + 4*cosh(x)^2 + 4*(3*cosh(x)^3 + cosh(x))*sinh(x) + 9)

________________________________________________________________________________________

giac [B]  time = 0.12, size = 32, normalized size = 2.67 \[ -\frac {2 \, {\left (3 \, e^{\left (4 \, x\right )} + 1\right )}}{9 \, {\left (3 \, e^{\left (6 \, x\right )} + 3 \, e^{\left (4 \, x\right )} + 9 \, e^{\left (2 \, x\right )} + 1\right )}} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(sech(x)^2*tanh(x)^2/(2+tanh(x)^3)^2,x, algorithm="giac")

[Out]

-2/9*(3*e^(4*x) + 1)/(3*e^(6*x) + 3*e^(4*x) + 9*e^(2*x) + 1)

________________________________________________________________________________________

maple [A]  time = 0.16, size = 11, normalized size = 0.92 \[ -\frac {1}{3 \left (2+\tanh ^{3}\relax (x )\right )} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

int(sech(x)^2*tanh(x)^2/(2+tanh(x)^3)^2,x)

[Out]

-1/3/(2+tanh(x)^3)

________________________________________________________________________________________

maxima [A]  time = 0.30, size = 10, normalized size = 0.83 \[ -\frac {1}{3 \, {\left (\tanh \relax (x)^{3} + 2\right )}} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(sech(x)^2*tanh(x)^2/(2+tanh(x)^3)^2,x, algorithm="maxima")

[Out]

-1/3/(tanh(x)^3 + 2)

________________________________________________________________________________________

mupad [B]  time = 1.80, size = 32, normalized size = 2.67 \[ -\frac {\frac {2\,{\mathrm {e}}^{4\,x}}{3}+\frac {2}{9}}{9\,{\mathrm {e}}^{2\,x}+3\,{\mathrm {e}}^{4\,x}+3\,{\mathrm {e}}^{6\,x}+1} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

int(tanh(x)^2/(cosh(x)^2*(tanh(x)^3 + 2)^2),x)

[Out]

-((2*exp(4*x))/3 + 2/9)/(9*exp(2*x) + 3*exp(4*x) + 3*exp(6*x) + 1)

________________________________________________________________________________________

sympy [F(-1)]  time = 0.00, size = 0, normalized size = 0.00 \[ \text {Timed out} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(sech(x)**2*tanh(x)**2/(2+tanh(x)**3)**2,x)

[Out]

Timed out

________________________________________________________________________________________