Integrand size = 17, antiderivative size = 33 \[ \int \frac {\sec ^2(x)}{2+2 \tan (x)+\tan ^2(x)} \, dx=x-\arctan \left (\frac {1-2 \cos ^2(x)+\cos (x) \sin (x)}{2+\cos ^2(x)+2 \cos (x) \sin (x)}\right ) \]
[Out]
Time = 0.05 (sec) , antiderivative size = 33, normalized size of antiderivative = 1.00, number of steps used = 3, number of rules used = 3, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.176, Rules used = {4427, 631, 210} \[ \int \frac {\sec ^2(x)}{2+2 \tan (x)+\tan ^2(x)} \, dx=x-\arctan \left (\frac {-2 \cos ^2(x)+\sin (x) \cos (x)+1}{\cos ^2(x)+2 \sin (x) \cos (x)+2}\right ) \]
[In]
[Out]
Rule 210
Rule 631
Rule 4427
Rubi steps \begin{align*} \text {integral}& = \text {Subst}\left (\int \frac {1}{2+2 x+x^2} \, dx,x,\tan (x)\right ) \\ & = -\text {Subst}\left (\int \frac {1}{-1-x^2} \, dx,x,1+\tan (x)\right ) \\ & = x-\arctan \left (\frac {1-2 \cos ^2(x)+\cos (x) \sin (x)}{2+\cos ^2(x)+2 \cos (x) \sin (x)}\right ) \\ \end{align*}
Time = 0.08 (sec) , antiderivative size = 31, normalized size of antiderivative = 0.94 \[ \int \frac {\sec ^2(x)}{2+2 \tan (x)+\tan ^2(x)} \, dx=2 \left (-\frac {1}{4} \arctan \left (\frac {\cos (x)}{\cos (x)+\sin (x)}\right )+\frac {1}{4} \arctan (\sec (x) (\cos (x)+\sin (x)))\right ) \]
[In]
[Out]
Time = 8.09 (sec) , antiderivative size = 6, normalized size of antiderivative = 0.18
method | result | size |
default | \(\arctan \left (1+\tan \left (x \right )\right )\) | \(6\) |
risch | \(-\frac {i \ln \left ({\mathrm e}^{2 i x}+\frac {1}{5}+\frac {2 i}{5}\right )}{2}+\frac {i \ln \left ({\mathrm e}^{2 i x}+1+2 i\right )}{2}\) | \(28\) |
[In]
[Out]
none
Time = 0.25 (sec) , antiderivative size = 35, normalized size of antiderivative = 1.06 \[ \int \frac {\sec ^2(x)}{2+2 \tan (x)+\tan ^2(x)} \, dx=-\frac {1}{2} \, \arctan \left (-\frac {3 \, \cos \left (x\right )^{2} + 6 \, \cos \left (x\right ) \sin \left (x\right ) + 1}{2 \, {\left (2 \, \cos \left (x\right )^{2} - \cos \left (x\right ) \sin \left (x\right ) - 1\right )}}\right ) \]
[In]
[Out]
\[ \int \frac {\sec ^2(x)}{2+2 \tan (x)+\tan ^2(x)} \, dx=\int \frac {\sec ^{2}{\left (x \right )}}{\tan ^{2}{\left (x \right )} + 2 \tan {\left (x \right )} + 2}\, dx \]
[In]
[Out]
none
Time = 0.31 (sec) , antiderivative size = 5, normalized size of antiderivative = 0.15 \[ \int \frac {\sec ^2(x)}{2+2 \tan (x)+\tan ^2(x)} \, dx=\arctan \left (\tan \left (x\right ) + 1\right ) \]
[In]
[Out]
none
Time = 0.30 (sec) , antiderivative size = 5, normalized size of antiderivative = 0.15 \[ \int \frac {\sec ^2(x)}{2+2 \tan (x)+\tan ^2(x)} \, dx=\arctan \left (\tan \left (x\right ) + 1\right ) \]
[In]
[Out]
Time = 26.79 (sec) , antiderivative size = 5, normalized size of antiderivative = 0.15 \[ \int \frac {\sec ^2(x)}{2+2 \tan (x)+\tan ^2(x)} \, dx=\mathrm {atan}\left (\mathrm {tan}\left (x\right )+1\right ) \]
[In]
[Out]