3.343 \(\int \cot ^4(\frac {\pi }{4}+\frac {x}{3}) \, dx\)

Optimal. Leaf size=32 \[ x-\cot ^3\left (\frac {x}{3}+\frac {\pi }{4}\right )+3 \cot \left (\frac {x}{3}+\frac {\pi }{4}\right ) \]

________________________________________________________________________________________

Rubi [A]  time = 0.01, antiderivative size = 32, normalized size of antiderivative = 1.00, number of steps used = 3, number of rules used = 2, integrand size = 14, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.143, Rules used = {3473, 8} \[ x-\cot ^3\left (\frac {x}{3}+\frac {\pi }{4}\right )+3 \cot \left (\frac {x}{3}+\frac {\pi }{4}\right ) \]

Antiderivative was successfully verified.

[In]

Int[Cot[Pi/4 + x/3]^4,x]

[Out]

x + 3*Cot[Pi/4 + x/3] - Cot[Pi/4 + x/3]^3

Rule 8

Int[a_, x_Symbol] :> Simp[a*x, x] /; FreeQ[a, x]

Rule 3473

Int[((b_.)*tan[(c_.) + (d_.)*(x_)])^(n_), x_Symbol] :> Simp[(b*(b*Tan[c + d*x])^(n - 1))/(d*(n - 1)), x] - Dis
t[b^2, Int[(b*Tan[c + d*x])^(n - 2), x], x] /; FreeQ[{b, c, d}, x] && GtQ[n, 1]

Rubi steps

\begin {align*} \int \cot ^4\left (\frac {\pi }{4}+\frac {x}{3}\right ) \, dx &=-\cot ^3\left (\frac {\pi }{4}+\frac {x}{3}\right )-\int \tan ^2\left (\frac {\pi }{4}-\frac {x}{3}\right ) \, dx\\ &=3 \cot \left (\frac {\pi }{4}+\frac {x}{3}\right )-\cot ^3\left (\frac {\pi }{4}+\frac {x}{3}\right )+\int 1 \, dx\\ &=x+3 \cot \left (\frac {\pi }{4}+\frac {x}{3}\right )-\cot ^3\left (\frac {\pi }{4}+\frac {x}{3}\right )\\ \end {align*}

________________________________________________________________________________________

Mathematica [C]  time = 0.02, size = 40, normalized size = 1.25 \[ -\cot ^3\left (\frac {x}{3}+\frac {\pi }{4}\right ) \, _2F_1\left (-\frac {3}{2},1;-\frac {1}{2};-\tan ^2\left (\frac {x}{3}+\frac {\pi }{4}\right )\right ) \]

Antiderivative was successfully verified.

[In]

Integrate[Cot[Pi/4 + x/3]^4,x]

[Out]

-(Cot[Pi/4 + x/3]^3*Hypergeometric2F1[-3/2, 1, -1/2, -Tan[Pi/4 + x/3]^2])

________________________________________________________________________________________

IntegrateAlgebraic [F]  time = 0.00, size = 0, normalized size = 0.00 \[ \int \cot ^4\left (\frac {\pi }{4}+\frac {x}{3}\right ) \, dx \]

Verification is Not applicable to the result.

[In]

IntegrateAlgebraic[Cot[Pi/4 + x/3]^4,x]

[Out]

Could not integrate

________________________________________________________________________________________

fricas [B]  time = 0.70, size = 70, normalized size = 2.19 \[ \frac {4 \, \cos \left (\frac {1}{2} \, \pi + \frac {2}{3} \, x\right )^{2} + {\left (x \cos \left (\frac {1}{2} \, \pi + \frac {2}{3} \, x\right ) - x\right )} \sin \left (\frac {1}{2} \, \pi + \frac {2}{3} \, x\right ) + 2 \, \cos \left (\frac {1}{2} \, \pi + \frac {2}{3} \, x\right ) - 2}{{\left (\cos \left (\frac {1}{2} \, \pi + \frac {2}{3} \, x\right ) - 1\right )} \sin \left (\frac {1}{2} \, \pi + \frac {2}{3} \, x\right )} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(cot(1/4*pi+1/3*x)^4,x, algorithm="fricas")

[Out]

(4*cos(1/2*pi + 2/3*x)^2 + (x*cos(1/2*pi + 2/3*x) - x)*sin(1/2*pi + 2/3*x) + 2*cos(1/2*pi + 2/3*x) - 2)/((cos(
1/2*pi + 2/3*x) - 1)*sin(1/2*pi + 2/3*x))

________________________________________________________________________________________

giac [B]  time = 1.12, size = 53, normalized size = 1.66 \[ \frac {3}{4} \, \pi + \frac {1}{8} \, \tan \left (\frac {1}{8} \, \pi + \frac {1}{6} \, x\right )^{3} + x + \frac {15 \, \tan \left (\frac {1}{8} \, \pi + \frac {1}{6} \, x\right )^{2} - 1}{8 \, \tan \left (\frac {1}{8} \, \pi + \frac {1}{6} \, x\right )^{3}} - \frac {15}{8} \, \tan \left (\frac {1}{8} \, \pi + \frac {1}{6} \, x\right ) \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(cot(1/4*pi+1/3*x)^4,x, algorithm="giac")

[Out]

3/4*pi + 1/8*tan(1/8*pi + 1/6*x)^3 + x + 1/8*(15*tan(1/8*pi + 1/6*x)^2 - 1)/tan(1/8*pi + 1/6*x)^3 - 15/8*tan(1
/8*pi + 1/6*x)

________________________________________________________________________________________

maple [A]  time = 0.04, size = 38, normalized size = 1.19




method result size



derivativedivides \(-\left (\cot ^{3}\left (\frac {\pi }{4}+\frac {x}{3}\right )\right )+3 \cot \left (\frac {\pi }{4}+\frac {x}{3}\right )-\frac {3 \pi }{2}+3 \,\mathrm {arccot}\left (\cot \left (\frac {\pi }{4}+\frac {x}{3}\right )\right )\) \(38\)
default \(-\left (\cot ^{3}\left (\frac {\pi }{4}+\frac {x}{3}\right )\right )+3 \cot \left (\frac {\pi }{4}+\frac {x}{3}\right )-\frac {3 \pi }{2}+3 \,\mathrm {arccot}\left (\cot \left (\frac {\pi }{4}+\frac {x}{3}\right )\right )\) \(38\)
norman \(\frac {-1+x \left (\tan ^{3}\left (\frac {\pi }{4}+\frac {x}{3}\right )\right )+3 \left (\tan ^{2}\left (\frac {\pi }{4}+\frac {x}{3}\right )\right )}{\tan \left (\frac {\pi }{4}+\frac {x}{3}\right )^{3}}\) \(38\)
risch \(x +\frac {4 i \left (-3 \,{\mathrm e}^{\frac {4 i x}{3}}-3 i {\mathrm e}^{\frac {2 i x}{3}}+2\right )}{\left ({\mathrm e}^{\frac {i \left (3 \pi +4 x \right )}{6}}-1\right )^{3}}\) \(38\)



Verification of antiderivative is not currently implemented for this CAS.

[In]

int(cot(1/4*Pi+1/3*x)^4,x,method=_RETURNVERBOSE)

[Out]

-cot(1/4*Pi+1/3*x)^3+3*cot(1/4*Pi+1/3*x)-3/2*Pi+3*arccot(cot(1/4*Pi+1/3*x))

________________________________________________________________________________________

maxima [A]  time = 1.32, size = 30, normalized size = 0.94 \[ \frac {3}{4} \, \pi + x + \frac {3 \, \tan \left (\frac {1}{4} \, \pi + \frac {1}{3} \, x\right )^{2} - 1}{\tan \left (\frac {1}{4} \, \pi + \frac {1}{3} \, x\right )^{3}} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(cot(1/4*pi+1/3*x)^4,x, algorithm="maxima")

[Out]

3/4*pi + x + (3*tan(1/4*pi + 1/3*x)^2 - 1)/tan(1/4*pi + 1/3*x)^3

________________________________________________________________________________________

mupad [B]  time = 0.09, size = 24, normalized size = 0.75 \[ -{\mathrm {cot}\left (\frac {\Pi }{4}+\frac {x}{3}\right )}^3+3\,\mathrm {cot}\left (\frac {\Pi }{4}+\frac {x}{3}\right )+x \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

int(cot(Pi/4 + x/3)^4,x)

[Out]

x + 3*cot(Pi/4 + x/3) - cot(Pi/4 + x/3)^3

________________________________________________________________________________________

sympy [A]  time = 0.21, size = 20, normalized size = 0.62 \[ x - \cot ^{3}{\left (\frac {x}{3} + \frac {\pi }{4} \right )} + 3 \cot {\left (\frac {x}{3} + \frac {\pi }{4} \right )} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(cot(1/4*pi+1/3*x)**4,x)

[Out]

x - cot(x/3 + pi/4)**3 + 3*cot(x/3 + pi/4)

________________________________________________________________________________________