Optimal. Leaf size=32 \[ -\frac {1}{4} \cot ^2\left (\frac {\pi }{4}+2 x\right )+\frac {1}{2} \log \left (\tan \left (\frac {\pi }{4}+2 x\right )\right ) \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.02, antiderivative size = 32, normalized size of antiderivative = 1.00, number of steps
used = 3, number of rules used = 2, integrand size = 23, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.087, Rules used = {2700, 14}
\begin {gather*} \frac {1}{2} \log \left (\tan \left (2 x+\frac {\pi }{4}\right )\right )-\frac {1}{4} \cot ^2\left (2 x+\frac {\pi }{4}\right ) \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 14
Rule 2700
Rubi steps
\begin {align*} \int \csc ^3\left (\frac {\pi }{4}+2 x\right ) \sec \left (\frac {\pi }{4}+2 x\right ) \, dx &=\frac {1}{2} \text {Subst}\left (\int \frac {1+x^2}{x^3} \, dx,x,\tan \left (\frac {\pi }{4}+2 x\right )\right )\\ &=\frac {1}{2} \text {Subst}\left (\int \left (\frac {1}{x^3}+\frac {1}{x}\right ) \, dx,x,\tan \left (\frac {\pi }{4}+2 x\right )\right )\\ &=-\frac {1}{4} \cot ^2\left (\frac {\pi }{4}+2 x\right )+\frac {1}{2} \log \left (\tan \left (\frac {\pi }{4}+2 x\right )\right )\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.05, size = 45, normalized size = 1.41 \begin {gather*} \frac {1}{4} \left (-\csc ^2\left (\frac {\pi }{4}+2 x\right )-2 \log \left (\cos \left (\frac {1}{4} (\pi +8 x)\right )\right )+2 \log \left (\sin \left (\frac {\pi }{4}+2 x\right )\right )\right ) \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A]
time = 0.06, size = 25, normalized size = 0.78
method | result | size |
derivativedivides | \(-\frac {1}{4 \sin \left (\frac {\pi }{4}+2 x \right )^{2}}+\frac {\ln \left (\tan \left (\frac {\pi }{4}+2 x \right )\right )}{2}\) | \(25\) |
default | \(-\frac {1}{4 \sin \left (\frac {\pi }{4}+2 x \right )^{2}}+\frac {\ln \left (\tan \left (\frac {\pi }{4}+2 x \right )\right )}{2}\) | \(25\) |
risch | \(\frac {i {\mathrm e}^{4 i x}}{\left (i {\mathrm e}^{4 i x}-1\right )^{2}}+\frac {\ln \left (i {\mathrm e}^{4 i x}-1\right )}{2}-\frac {\ln \left (i {\mathrm e}^{4 i x}+1\right )}{2}\) | \(48\) |
norman | \(\frac {-\frac {1}{16}-\frac {\left (\tan ^{4}\left (\frac {\pi }{8}+x \right )\right )}{16}}{\tan \left (\frac {\pi }{8}+x \right )^{2}}+\frac {\ln \left (\tan \left (\frac {\pi }{8}+x \right )\right )}{2}-\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}\) | \(54\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A]
time = 1.53, size = 41, normalized size = 1.28 \begin {gather*} -\frac {1}{4 \, \sin \left (\frac {1}{4} \, \pi + 2 \, x\right )^{2}} - \frac {1}{4} \, \log \left (\sin \left (\frac {1}{4} \, \pi + 2 \, x\right )^{2} - 1\right ) + \frac {1}{4} \, \log \left (\sin \left (\frac {1}{4} \, \pi + 2 \, x\right )^{2}\right ) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [B] Leaf count of result is larger than twice the leaf count of optimal. 71 vs.
\(2 (24) = 48\).
time = 0.82, size = 71, normalized size = 2.22 \begin {gather*} -\frac {{\left (\cos \left (\frac {1}{4} \, \pi + 2 \, x\right )^{2} - 1\right )} \log \left (\cos \left (\frac {1}{4} \, \pi + 2 \, x\right )^{2}\right ) - {\left (\cos \left (\frac {1}{4} \, \pi + 2 \, x\right )^{2} - 1\right )} \log \left (-\frac {1}{4} \, \cos \left (\frac {1}{4} \, \pi + 2 \, x\right )^{2} + \frac {1}{4}\right ) - 1}{4 \, {\left (\cos \left (\frac {1}{4} \, \pi + 2 \, x\right )^{2} - 1\right )}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [B] Leaf count of result is larger than twice the leaf count of optimal. 54 vs.
\(2 (22) = 44\).
time = 0.62, size = 54, normalized size = 1.69 \begin {gather*} - \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} + \frac {\log {\left (\tan {\left (x + \frac {\pi }{8} \right )} \right )}}{2} - \frac {\tan ^{2}{\left (x + \frac {\pi }{8} \right )}}{16} - \frac {1}{16 \tan ^{2}{\left (x + \frac {\pi }{8} \right )}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [B] Leaf count of result is larger than twice the leaf count of optimal. 132 vs.
\(2 (24) = 48\).
time = 0.72, size = 132, normalized size = 4.12 \begin {gather*} -\frac {{\left (\frac {4 \, {\left (\cos \left (\frac {1}{4} \, \pi + 2 \, x\right ) - 1\right )}}{\cos \left (\frac {1}{4} \, \pi + 2 \, x\right ) + 1} - 1\right )} {\left (\cos \left (\frac {1}{4} \, \pi + 2 \, x\right ) + 1\right )}}{16 \, {\left (\cos \left (\frac {1}{4} \, \pi + 2 \, x\right ) - 1\right )}} + \frac {\cos \left (\frac {1}{4} \, \pi + 2 \, x\right ) - 1}{16 \, {\left (\cos \left (\frac {1}{4} \, \pi + 2 \, x\right ) + 1\right )}} + \frac {1}{4} \, \log \left (-\frac {\cos \left (\frac {1}{4} \, \pi + 2 \, x\right ) - 1}{\cos \left (\frac {1}{4} \, \pi + 2 \, x\right ) + 1}\right ) - \frac {1}{2} \, \log \left ({\left | -\frac {\cos \left (\frac {1}{4} \, \pi + 2 \, x\right ) - 1}{\cos \left (\frac {1}{4} \, \pi + 2 \, x\right ) + 1} - 1 \right |}\right ) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [B]
time = 0.28, size = 24, normalized size = 0.75 \begin {gather*} \frac {\ln \left (\mathrm {tan}\left (\frac {\Pi }{4}+2\,x\right )\right )}{2}-\frac {1}{4\,{\sin \left (\frac {\Pi }{4}+2\,x\right )}^2} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________