3.187 \(\int \log (\cos (x)) \tan (x) \, dx\)

Optimal. Leaf size=9 \[ -\frac {1}{2} \log ^2(\cos (x)) \]

[Out]

-1/2*ln(cos(x))^2

________________________________________________________________________________________

Rubi [A]  time = 0.01, antiderivative size = 9, normalized size of antiderivative = 1.00, number of steps used = 2, number of rules used = 3, integrand size = 6, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.500, Rules used = {3475, 4339, 2301} \[ -\frac {1}{2} \log ^2(\cos (x)) \]

Antiderivative was successfully verified.

[In]

Int[Log[Cos[x]]*Tan[x],x]

[Out]

-Log[Cos[x]]^2/2

Rule 2301

Int[((a_.) + Log[(c_.)*(x_)^(n_.)]*(b_.))/(x_), x_Symbol] :> Simp[(a + b*Log[c*x^n])^2/(2*b*n), x] /; FreeQ[{a
, b, c, n}, x]

Rule 3475

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

Rule 4339

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

Rubi steps

\begin {align*} \int \log (\cos (x)) \tan (x) \, dx &=-\operatorname {Subst}\left (\int \frac {\log (x)}{x} \, dx,x,\cos (x)\right )\\ &=-\frac {1}{2} \log ^2(\cos (x))\\ \end {align*}

________________________________________________________________________________________

Mathematica [A]  time = 0.00, size = 9, normalized size = 1.00 \[ -\frac {1}{2} \log ^2(\cos (x)) \]

Antiderivative was successfully verified.

[In]

Integrate[Log[Cos[x]]*Tan[x],x]

[Out]

-1/2*Log[Cos[x]]^2

________________________________________________________________________________________

fricas [A]  time = 0.49, size = 7, normalized size = 0.78 \[ -\frac {1}{2} \, \log \left (\cos \relax (x)\right )^{2} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(log(cos(x))*tan(x),x, algorithm="fricas")

[Out]

-1/2*log(cos(x))^2

________________________________________________________________________________________

giac [A]  time = 0.16, size = 7, normalized size = 0.78 \[ -\frac {1}{2} \, \log \left (\cos \relax (x)\right )^{2} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(log(cos(x))*tan(x),x, algorithm="giac")

[Out]

-1/2*log(cos(x))^2

________________________________________________________________________________________

maple [A]  time = 0.19, size = 8, normalized size = 0.89 \[ -\frac {\ln \left (\cos \relax (x )\right )^{2}}{2} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

int(ln(cos(x))*tan(x),x)

[Out]

-1/2*ln(cos(x))^2

________________________________________________________________________________________

maxima [A]  time = 0.44, size = 7, normalized size = 0.78 \[ -\frac {1}{2} \, \log \left (\cos \relax (x)\right )^{2} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(log(cos(x))*tan(x),x, algorithm="maxima")

[Out]

-1/2*log(cos(x))^2

________________________________________________________________________________________

mupad [B]  time = 0.43, size = 7, normalized size = 0.78 \[ -\frac {{\ln \left (\cos \relax (x)\right )}^2}{2} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

int(log(cos(x))*tan(x),x)

[Out]

-log(cos(x))^2/2

________________________________________________________________________________________

sympy [A]  time = 3.53, size = 8, normalized size = 0.89 \[ - \frac {\log {\left (\cos {\relax (x )} \right )}^{2}}{2} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(ln(cos(x))*tan(x),x)

[Out]

-log(cos(x))**2/2

________________________________________________________________________________________