Integrand size = 33, antiderivative size = 40 \[ \int \frac {\sec ^2(c+d x)}{a+c \sec ^2(c+d x)+b \tan ^2(c+d x)} \, dx=\frac {\arctan \left (\frac {\sqrt {b+c} \tan (c+d x)}{\sqrt {a+c}}\right )}{\sqrt {a+c} \sqrt {b+c} d} \]
[Out]
Time = 0.72 (sec) , antiderivative size = 40, normalized size of antiderivative = 1.00, number of steps used = 2, number of rules used = 1, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.030, Rules used = {211} \[ \int \frac {\sec ^2(c+d x)}{a+c \sec ^2(c+d x)+b \tan ^2(c+d x)} \, dx=\frac {\arctan \left (\frac {\sqrt {b+c} \tan (c+d x)}{\sqrt {a+c}}\right )}{d \sqrt {a+c} \sqrt {b+c}} \]
[In]
[Out]
Rule 211
Rubi steps \begin{align*} \text {integral}& = \frac {\text {Subst}\left (\int \frac {1}{a+c+(b+c) x^2} \, dx,x,\tan (c+d x)\right )}{d} \\ & = \frac {\arctan \left (\frac {\sqrt {b+c} \tan (c+d x)}{\sqrt {a+c}}\right )}{\sqrt {a+c} \sqrt {b+c} d} \\ \end{align*}
Time = 0.97 (sec) , antiderivative size = 40, normalized size of antiderivative = 1.00 \[ \int \frac {\sec ^2(c+d x)}{a+c \sec ^2(c+d x)+b \tan ^2(c+d x)} \, dx=\frac {\arctan \left (\frac {\sqrt {b+c} \tan (c+d x)}{\sqrt {a+c}}\right )}{\sqrt {a+c} \sqrt {b+c} d} \]
[In]
[Out]
Time = 2.05 (sec) , antiderivative size = 34, normalized size of antiderivative = 0.85
method | result | size |
derivativedivides | \(\frac {\arctan \left (\frac {\left (b +c \right ) \tan \left (d x +c \right )}{\sqrt {\left (a +c \right ) \left (b +c \right )}}\right )}{d \sqrt {\left (a +c \right ) \left (b +c \right )}}\) | \(34\) |
default | \(\frac {\arctan \left (\frac {\left (b +c \right ) \tan \left (d x +c \right )}{\sqrt {\left (a +c \right ) \left (b +c \right )}}\right )}{d \sqrt {\left (a +c \right ) \left (b +c \right )}}\) | \(34\) |
risch | \(-\frac {\ln \left ({\mathrm e}^{2 i \left (d x +c \right )}+\frac {2 i b a +2 i a c +2 i c b +2 i c^{2}+a \sqrt {-a b -a c -c b -c^{2}}+b \sqrt {-a b -a c -c b -c^{2}}+2 c \sqrt {-a b -a c -c b -c^{2}}}{\sqrt {-a b -a c -c b -c^{2}}\, \left (a -b \right )}\right )}{2 \sqrt {-a b -a c -c b -c^{2}}\, d}+\frac {\ln \left ({\mathrm e}^{2 i \left (d x +c \right )}-\frac {2 i b a +2 i a c +2 i c b +2 i c^{2}-a \sqrt {-a b -a c -c b -c^{2}}-b \sqrt {-a b -a c -c b -c^{2}}-2 c \sqrt {-a b -a c -c b -c^{2}}}{\sqrt {-a b -a c -c b -c^{2}}\, \left (a -b \right )}\right )}{2 \sqrt {-a b -a c -c b -c^{2}}\, d}\) | \(311\) |
[In]
[Out]
Leaf count of result is larger than twice the leaf count of optimal. 74 vs. \(2 (32) = 64\).
Time = 0.30 (sec) , antiderivative size = 300, normalized size of antiderivative = 7.50 \[ \int \frac {\sec ^2(c+d x)}{a+c \sec ^2(c+d x)+b \tan ^2(c+d x)} \, dx=\left [-\frac {\sqrt {-a b - {\left (a + b\right )} c - c^{2}} \log \left (\frac {{\left (a^{2} + 6 \, a b + b^{2} + 8 \, {\left (a + b\right )} c + 8 \, c^{2}\right )} \cos \left (d x + c\right )^{4} - 2 \, {\left (3 \, a b + b^{2} + {\left (3 \, a + 5 \, b\right )} c + 4 \, c^{2}\right )} \cos \left (d x + c\right )^{2} + 4 \, {\left ({\left (a + b + 2 \, c\right )} \cos \left (d x + c\right )^{3} - {\left (b + c\right )} \cos \left (d x + c\right )\right )} \sqrt {-a b - {\left (a + b\right )} c - c^{2}} \sin \left (d x + c\right ) + b^{2} + 2 \, b c + c^{2}}{{\left (a^{2} - 2 \, a b + b^{2}\right )} \cos \left (d x + c\right )^{4} + 2 \, {\left (a b - b^{2} + {\left (a - b\right )} c\right )} \cos \left (d x + c\right )^{2} + b^{2} + 2 \, b c + c^{2}}\right )}{4 \, {\left (a b + {\left (a + b\right )} c + c^{2}\right )} d}, -\frac {\arctan \left (\frac {{\left (a + b + 2 \, c\right )} \cos \left (d x + c\right )^{2} - b - c}{2 \, \sqrt {a b + {\left (a + b\right )} c + c^{2}} \cos \left (d x + c\right ) \sin \left (d x + c\right )}\right )}{2 \, \sqrt {a b + {\left (a + b\right )} c + c^{2}} d}\right ] \]
[In]
[Out]
\[ \int \frac {\sec ^2(c+d x)}{a+c \sec ^2(c+d x)+b \tan ^2(c+d x)} \, dx=\int \frac {\sec ^{2}{\left (c + d x \right )}}{a + b \tan ^{2}{\left (c + d x \right )} + c \sec ^{2}{\left (c + d x \right )}}\, dx \]
[In]
[Out]
none
Time = 0.28 (sec) , antiderivative size = 43, normalized size of antiderivative = 1.08 \[ \int \frac {\sec ^2(c+d x)}{a+c \sec ^2(c+d x)+b \tan ^2(c+d x)} \, dx=\frac {\arctan \left (\frac {{\left (b + c\right )} \tan \left (d x + c\right )}{\sqrt {a b + {\left (a + b\right )} c + c^{2}}}\right )}{\sqrt {a b + {\left (a + b\right )} c + c^{2}} d} \]
[In]
[Out]
Leaf count of result is larger than twice the leaf count of optimal. 76 vs. \(2 (32) = 64\).
Time = 0.67 (sec) , antiderivative size = 76, normalized size of antiderivative = 1.90 \[ \int \frac {\sec ^2(c+d x)}{a+c \sec ^2(c+d x)+b \tan ^2(c+d x)} \, dx=\frac {\pi \left \lfloor \frac {d x + c}{\pi } + \frac {1}{2} \right \rfloor \mathrm {sgn}\left (2 \, b + 2 \, c\right ) + \arctan \left (\frac {b \tan \left (d x + c\right ) + c \tan \left (d x + c\right )}{\sqrt {a b + a c + b c + c^{2}}}\right )}{\sqrt {a b + a c + b c + c^{2}} d} \]
[In]
[Out]
Time = 26.76 (sec) , antiderivative size = 45, normalized size of antiderivative = 1.12 \[ \int \frac {\sec ^2(c+d x)}{a+c \sec ^2(c+d x)+b \tan ^2(c+d x)} \, dx=\frac {\mathrm {atan}\left (\frac {\mathrm {tan}\left (c+d\,x\right )\,\left (b+c\right )}{\sqrt {a\,b+a\,c+b\,c+c^2}}\right )}{d\,\sqrt {a\,b+a\,c+b\,c+c^2}} \]
[In]
[Out]