3.5 \(\int -\sec (\frac {\pi }{4}+2 x) \, dx\)

Optimal. Leaf size=15 \[ -\frac {1}{2} \tanh ^{-1}\left (\sin \left (2 x+\frac {\pi }{4}\right )\right ) \]

________________________________________________________________________________________

Rubi [A]  time = 0.00, antiderivative size = 15, normalized size of antiderivative = 1.00, number of steps used = 1, number of rules used = 1, integrand size = 12, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.083, Rules used = {3770} \[ -\frac {1}{2} \tanh ^{-1}\left (\sin \left (2 x+\frac {\pi }{4}\right )\right ) \]

Antiderivative was successfully verified.

[In]

Int[-Sec[Pi/4 + 2*x],x]

[Out]

-ArcTanh[Sin[Pi/4 + 2*x]]/2

Rule 3770

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

Rubi steps

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

________________________________________________________________________________________

Mathematica [A]  time = 0.01, size = 15, normalized size = 1.00 \[ -\frac {1}{2} \tanh ^{-1}\left (\sin \left (2 x+\frac {\pi }{4}\right )\right ) \]

Antiderivative was successfully verified.

[In]

Integrate[-Sec[Pi/4 + 2*x],x]

[Out]

-1/2*ArcTanh[Sin[Pi/4 + 2*x]]

________________________________________________________________________________________

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

Verification is Not applicable to the result.

[In]

IntegrateAlgebraic[-Sec[Pi/4 + 2*x],x]

[Out]

Could not integrate

________________________________________________________________________________________

fricas [B]  time = 1.09, size = 29, normalized size = 1.93 \[ -\frac {1}{4} \, \log \left (\sin \left (\frac {1}{4} \, \pi + 2 \, x\right ) + 1\right ) + \frac {1}{4} \, \log \left (-\sin \left (\frac {1}{4} \, \pi + 2 \, x\right ) + 1\right ) \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(-1/cos(1/4*pi+2*x),x, algorithm="fricas")

[Out]

-1/4*log(sin(1/4*pi + 2*x) + 1) + 1/4*log(-sin(1/4*pi + 2*x) + 1)

________________________________________________________________________________________

giac [B]  time = 1.00, size = 29, normalized size = 1.93 \[ -\frac {1}{4} \, \log \left (\sin \left (\frac {1}{4} \, \pi + 2 \, x\right ) + 1\right ) + \frac {1}{4} \, \log \left (-\sin \left (\frac {1}{4} \, \pi + 2 \, x\right ) + 1\right ) \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(-1/cos(1/4*pi+2*x),x, algorithm="giac")

[Out]

-1/4*log(sin(1/4*pi + 2*x) + 1) + 1/4*log(-sin(1/4*pi + 2*x) + 1)

________________________________________________________________________________________

maple [A]  time = 0.25, size = 21, normalized size = 1.40




method result size



derivativedivides \(-\frac {\ln \left (\sec \left (\frac {\pi }{4}+2 x \right )+\tan \left (\frac {\pi }{4}+2 x \right )\right )}{2}\) \(21\)
default \(-\frac {\ln \left (\sec \left (\frac {\pi }{4}+2 x \right )+\tan \left (\frac {\pi }{4}+2 x \right )\right )}{2}\) \(21\)
norman \(\frac {\ln \left (\tan \left (\frac {\pi }{8}+x \right )-1\right )}{2}-\frac {\ln \left (\tan \left (\frac {\pi }{8}+x \right )+1\right )}{2}\) \(24\)
risch \(-\frac {\ln \left ({\mathrm e}^{\frac {i \left (\pi +8 x \right )}{4}}+i\right )}{2}+\frac {\ln \left ({\mathrm e}^{\frac {i \left (\pi +8 x \right )}{4}}-i\right )}{2}\) \(32\)



Verification of antiderivative is not currently implemented for this CAS.

[In]

int(-1/cos(1/4*Pi+2*x),x,method=_RETURNVERBOSE)

[Out]

-1/2*ln(sec(1/4*Pi+2*x)+tan(1/4*Pi+2*x))

________________________________________________________________________________________

maxima [B]  time = 0.43, size = 27, normalized size = 1.80 \[ -\frac {1}{4} \, \log \left (\sin \left (\frac {1}{4} \, \pi + 2 \, x\right ) + 1\right ) + \frac {1}{4} \, \log \left (\sin \left (\frac {1}{4} \, \pi + 2 \, x\right ) - 1\right ) \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(-1/cos(1/4*pi+2*x),x, algorithm="maxima")

[Out]

-1/4*log(sin(1/4*pi + 2*x) + 1) + 1/4*log(sin(1/4*pi + 2*x) - 1)

________________________________________________________________________________________

mupad [B]  time = 0.21, size = 24, normalized size = 1.60 \[ -\frac {\ln \left (\frac {\sin \left (\frac {\Pi }{4}+2\,x\right )+1}{\cos \left (\frac {\Pi }{4}+2\,x\right )}\right )}{2} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

int(-1/cos(Pi/4 + 2*x),x)

[Out]

-log((sin(Pi/4 + 2*x) + 1)/cos(Pi/4 + 2*x))/2

________________________________________________________________________________________

sympy [A]  time = 0.22, size = 22, normalized size = 1.47 \[ \frac {\log {\left (\tan {\left (x + \frac {\pi }{8} \right )} - 1 \right )}}{2} - \frac {\log {\left (\tan {\left (x + \frac {\pi }{8} \right )} + 1 \right )}}{2} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(-1/cos(1/4*pi+2*x),x)

[Out]

log(tan(x + pi/8) - 1)/2 - log(tan(x + pi/8) + 1)/2

________________________________________________________________________________________