3.28 \(\int \frac{\csc ^2(2+3 x)}{1-2 \cot ^2(2+3 x)} \, dx\)

Optimal. Leaf size=61 \[ \frac{\log \left (\sqrt{2} \cos (3 x+2)-\sin (3 x+2)\right )}{6 \sqrt{2}}-\frac{\log \left (\sin (3 x+2)+\sqrt{2} \cos (3 x+2)\right )}{6 \sqrt{2}} \]

[Out]

Log[Sqrt[2]*Cos[2 + 3*x] - Sin[2 + 3*x]]/(6*Sqrt[2]) - Log[Sqrt[2]*Cos[2 + 3*x] + Sin[2 + 3*x]]/(6*Sqrt[2])

________________________________________________________________________________________

Rubi [A]  time = 0.046606, antiderivative size = 61, normalized size of antiderivative = 1., number of steps used = 2, number of rules used = 2, integrand size = 23, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.087, Rules used = {3675, 206} \[ \frac{\log \left (\sqrt{2} \cos (3 x+2)-\sin (3 x+2)\right )}{6 \sqrt{2}}-\frac{\log \left (\sin (3 x+2)+\sqrt{2} \cos (3 x+2)\right )}{6 \sqrt{2}} \]

Antiderivative was successfully verified.

[In]

Int[Csc[2 + 3*x]^2/(1 - 2*Cot[2 + 3*x]^2),x]

[Out]

Log[Sqrt[2]*Cos[2 + 3*x] - Sin[2 + 3*x]]/(6*Sqrt[2]) - Log[Sqrt[2]*Cos[2 + 3*x] + Sin[2 + 3*x]]/(6*Sqrt[2])

Rule 3675

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]}, Dist[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] && IntegerQ[m/2] && (IntegersQ[n, p
] || IGtQ[m, 0] || IGtQ[p, 0] || EqQ[n^2, 4] || EqQ[n^2, 16])

Rule 206

Int[((a_) + (b_.)*(x_)^2)^(-1), x_Symbol] :> Simp[(1*ArcTanh[(Rt[-b, 2]*x)/Rt[a, 2]])/(Rt[a, 2]*Rt[-b, 2]), x]
 /; FreeQ[{a, b}, x] && NegQ[a/b] && (GtQ[a, 0] || LtQ[b, 0])

Rubi steps

\begin{align*} \int \frac{\csc ^2(2+3 x)}{1-2 \cot ^2(2+3 x)} \, dx &=-\left (\frac{1}{3} \operatorname{Subst}\left (\int \frac{1}{1-2 x^2} \, dx,x,\cot (2+3 x)\right )\right )\\ &=\frac{\log \left (\sqrt{2} \cos (2+3 x)-\sin (2+3 x)\right )}{6 \sqrt{2}}-\frac{\log \left (\sqrt{2} \cos (2+3 x)+\sin (2+3 x)\right )}{6 \sqrt{2}}\\ \end{align*}

Mathematica [A]  time = 0.0349107, size = 22, normalized size = 0.36 \[ -\frac{\tanh ^{-1}\left (\frac{\tan (3 x+2)}{\sqrt{2}}\right )}{3 \sqrt{2}} \]

Antiderivative was successfully verified.

[In]

Integrate[Csc[2 + 3*x]^2/(1 - 2*Cot[2 + 3*x]^2),x]

[Out]

-ArcTanh[Tan[2 + 3*x]/Sqrt[2]]/(3*Sqrt[2])

________________________________________________________________________________________

Maple [A]  time = 0.086, size = 18, normalized size = 0.3 \begin{align*} -{\frac{\sqrt{2}}{6}{\it Artanh} \left ({\frac{\tan \left ( 2+3\,x \right ) \sqrt{2}}{2}} \right ) } \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

int(csc(2+3*x)^2/(1-2*cot(2+3*x)^2),x)

[Out]

-1/6*2^(1/2)*arctanh(1/2*tan(2+3*x)*2^(1/2))

________________________________________________________________________________________

Maxima [A]  time = 1.66734, size = 43, normalized size = 0.7 \begin{align*} \frac{1}{12} \, \sqrt{2} \log \left (-\frac{\sqrt{2} - \tan \left (3 \, x + 2\right )}{\sqrt{2} + \tan \left (3 \, x + 2\right )}\right ) \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(csc(2+3*x)^2/(1-2*cot(2+3*x)^2),x, algorithm="maxima")

[Out]

1/12*sqrt(2)*log(-(sqrt(2) - tan(3*x + 2))/(sqrt(2) + tan(3*x + 2)))

________________________________________________________________________________________

Fricas [A]  time = 1.79598, size = 230, normalized size = 3.77 \begin{align*} \frac{1}{24} \, \sqrt{2} \log \left (-\frac{7 \, \cos \left (3 \, x + 2\right )^{4} - 10 \, \cos \left (3 \, x + 2\right )^{2} + 4 \,{\left (\sqrt{2} \cos \left (3 \, x + 2\right )^{3} + \sqrt{2} \cos \left (3 \, x + 2\right )\right )} \sin \left (3 \, x + 2\right ) - 1}{9 \, \cos \left (3 \, x + 2\right )^{4} - 6 \, \cos \left (3 \, x + 2\right )^{2} + 1}\right ) \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(csc(2+3*x)^2/(1-2*cot(2+3*x)^2),x, algorithm="fricas")

[Out]

1/24*sqrt(2)*log(-(7*cos(3*x + 2)^4 - 10*cos(3*x + 2)^2 + 4*(sqrt(2)*cos(3*x + 2)^3 + sqrt(2)*cos(3*x + 2))*si
n(3*x + 2) - 1)/(9*cos(3*x + 2)^4 - 6*cos(3*x + 2)^2 + 1))

________________________________________________________________________________________

Sympy [F]  time = 0., size = 0, normalized size = 0. \begin{align*} - \int \frac{\csc ^{2}{\left (3 x + 2 \right )}}{2 \cot ^{2}{\left (3 x + 2 \right )} - 1}\, dx \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(csc(2+3*x)**2/(1-2*cot(2+3*x)**2),x)

[Out]

-Integral(csc(3*x + 2)**2/(2*cot(3*x + 2)**2 - 1), x)

________________________________________________________________________________________

Giac [A]  time = 1.51047, size = 53, normalized size = 0.87 \begin{align*} \frac{1}{12} \, \sqrt{2} \log \left (\frac{{\left | -2 \, \sqrt{2} + 2 \, \tan \left (3 \, x + 2\right ) \right |}}{{\left | 2 \, \sqrt{2} + 2 \, \tan \left (3 \, x + 2\right ) \right |}}\right ) \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(csc(2+3*x)^2/(1-2*cot(2+3*x)^2),x, algorithm="giac")

[Out]

1/12*sqrt(2)*log(abs(-2*sqrt(2) + 2*tan(3*x + 2))/abs(2*sqrt(2) + 2*tan(3*x + 2)))