Integrand size = 15, antiderivative size = 12 \[ \int \frac {1+\cos ^2(x)}{1+\cos (2 x)} \, dx=\frac {x}{2}+\frac {\tan (x)}{2} \]
[Out]
Time = 0.06 (sec) , antiderivative size = 12, normalized size of antiderivative = 1.00, number of steps used = 3, number of rules used = 2, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.133, Rules used = {396, 209} \[ \int \frac {1+\cos ^2(x)}{1+\cos (2 x)} \, dx=\frac {x}{2}+\frac {\tan (x)}{2} \]
[In]
[Out]
Rule 209
Rule 396
Rubi steps \begin{align*} \text {integral}& = \text {Subst}\left (\int \frac {2+x^2}{2+2 x^2} \, dx,x,\tan (x)\right ) \\ & = \frac {\tan (x)}{2}+\text {Subst}\left (\int \frac {1}{2+2 x^2} \, dx,x,\tan (x)\right ) \\ & = \frac {x}{2}+\frac {\tan (x)}{2} \\ \end{align*}
Time = 0.05 (sec) , antiderivative size = 12, normalized size of antiderivative = 1.00 \[ \int \frac {1+\cos ^2(x)}{1+\cos (2 x)} \, dx=\frac {x}{2}+\frac {\tan (x)}{2} \]
[In]
[Out]
Time = 4.72 (sec) , antiderivative size = 9, normalized size of antiderivative = 0.75
method | result | size |
default | \(\frac {x}{2}+\frac {\tan \left (x \right )}{2}\) | \(9\) |
parts | \(\frac {x}{2}+\frac {\tan \left (x \right )}{2}\) | \(9\) |
risch | \(\frac {x}{2}+\frac {i}{{\mathrm e}^{2 i x}+1}\) | \(17\) |
[In]
[Out]
none
Time = 0.25 (sec) , antiderivative size = 13, normalized size of antiderivative = 1.08 \[ \int \frac {1+\cos ^2(x)}{1+\cos (2 x)} \, dx=\frac {x \cos \left (x\right ) + \sin \left (x\right )}{2 \, \cos \left (x\right )} \]
[In]
[Out]
Time = 0.59 (sec) , antiderivative size = 7, normalized size of antiderivative = 0.58 \[ \int \frac {1+\cos ^2(x)}{1+\cos (2 x)} \, dx=\frac {x}{2} + \frac {\tan {\left (x \right )}}{2} \]
[In]
[Out]
Leaf count of result is larger than twice the leaf count of optimal. 18 vs. \(2 (8) = 16\).
Time = 0.22 (sec) , antiderivative size = 18, normalized size of antiderivative = 1.50 \[ \int \frac {1+\cos ^2(x)}{1+\cos (2 x)} \, dx=\frac {1}{2} \, x + \frac {\sin \left (2 \, x\right )}{2 \, {\left (\cos \left (2 \, x\right ) + 1\right )}} \]
[In]
[Out]
none
Time = 0.27 (sec) , antiderivative size = 8, normalized size of antiderivative = 0.67 \[ \int \frac {1+\cos ^2(x)}{1+\cos (2 x)} \, dx=\frac {1}{2} \, x + \frac {1}{2} \, \tan \left (x\right ) \]
[In]
[Out]
Time = 26.59 (sec) , antiderivative size = 8, normalized size of antiderivative = 0.67 \[ \int \frac {1+\cos ^2(x)}{1+\cos (2 x)} \, dx=\frac {x}{2}+\frac {\mathrm {tan}\left (x\right )}{2} \]
[In]
[Out]