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]
[Out]
Rule 3770
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]
[Out]
________________________________________________________________________________________
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]
[Out]
________________________________________________________________________________________
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]
[Out]
________________________________________________________________________________________
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]
[Out]
________________________________________________________________________________________
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]
[Out]
________________________________________________________________________________________
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]
[Out]
________________________________________________________________________________________
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]
[Out]
________________________________________________________________________________________
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]
[Out]
________________________________________________________________________________________