3.841 \(\int (\tan ^3(x)+\tan ^5(x)) \, dx\)

Optimal. Leaf size=8 \[ \frac {\tan ^4(x)}{4} \]

[Out]

1/4*tan(x)^4

________________________________________________________________________________________

Rubi [A]  time = 0.02, antiderivative size = 8, normalized size of antiderivative = 1.00, number of steps used = 6, number of rules used = 2, integrand size = 9, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.222, Rules used = {3473, 3475} \[ \frac {\tan ^4(x)}{4} \]

Antiderivative was successfully verified.

[In]

Int[Tan[x]^3 + Tan[x]^5,x]

[Out]

Tan[x]^4/4

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]

Rule 3475

Int[tan[(c_.) + (d_.)*(x_)], x_Symbol] :> -Simp[Log[RemoveContent[Cos[c + d*x], x]]/d, x] /; FreeQ[{c, d}, x]

Rubi steps

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

________________________________________________________________________________________

Mathematica [A]  time = 0.00, size = 8, normalized size = 1.00 \[ \frac {\tan ^4(x)}{4} \]

Antiderivative was successfully verified.

[In]

Integrate[Tan[x]^3 + Tan[x]^5,x]

[Out]

Tan[x]^4/4

________________________________________________________________________________________

fricas [A]  time = 1.47, size = 6, normalized size = 0.75 \[ \frac {1}{4} \, \tan \relax (x)^{4} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(tan(x)^3+tan(x)^5,x, algorithm="fricas")

[Out]

1/4*tan(x)^4

________________________________________________________________________________________

giac [A]  time = 0.14, size = 6, normalized size = 0.75 \[ \frac {1}{4} \, \tan \relax (x)^{4} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(tan(x)^3+tan(x)^5,x, algorithm="giac")

[Out]

1/4*tan(x)^4

________________________________________________________________________________________

maple [A]  time = 0.00, size = 7, normalized size = 0.88 \[ \frac {\left (\tan ^{4}\relax (x )\right )}{4} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

int(tan(x)^3+tan(x)^5,x)

[Out]

1/4*tan(x)^4

________________________________________________________________________________________

maxima [B]  time = 0.32, size = 35, normalized size = 4.38 \[ \frac {4 \, \sin \relax (x)^{2} - 3}{4 \, {\left (\sin \relax (x)^{4} - 2 \, \sin \relax (x)^{2} + 1\right )}} - \frac {1}{2 \, {\left (\sin \relax (x)^{2} - 1\right )}} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(tan(x)^3+tan(x)^5,x, algorithm="maxima")

[Out]

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

________________________________________________________________________________________

mupad [B]  time = 2.95, size = 6, normalized size = 0.75 \[ \frac {{\mathrm {tan}\relax (x)}^4}{4} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

int(tan(x)^3 + tan(x)^5,x)

[Out]

tan(x)^4/4

________________________________________________________________________________________

sympy [B]  time = 0.12, size = 22, normalized size = 2.75 \[ - \frac {4 \cos ^{2}{\relax (x )} - 1}{4 \cos ^{4}{\relax (x )}} + \frac {1}{2 \cos ^{2}{\relax (x )}} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(tan(x)**3+tan(x)**5,x)

[Out]

-(4*cos(x)**2 - 1)/(4*cos(x)**4) + 1/(2*cos(x)**2)

________________________________________________________________________________________