Integrand size = 41, antiderivative size = 122 \[ \int (a+b \tan (d+e x)) \sqrt {b^2+2 a b \tan (d+e x)+a^2 \tan ^2(d+e x)} \, dx=-\frac {\left (a^2+b^2\right ) \log (\cos (d+e x)) \sqrt {b^2+2 a b \tan (d+e x)+a^2 \tan ^2(d+e x)}}{e (b+a \tan (d+e x))}+\frac {a^2 b \tan (d+e x) \sqrt {b^2+2 a b \tan (d+e x)+a^2 \tan ^2(d+e x)}}{e \left (a b+a^2 \tan (d+e x)\right )} \]
[Out]
Time = 0.12 (sec) , antiderivative size = 122, 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.073, Rules used = {3791, 3606, 3556} \[ \int (a+b \tan (d+e x)) \sqrt {b^2+2 a b \tan (d+e x)+a^2 \tan ^2(d+e x)} \, dx=\frac {a^2 b \tan (d+e x) \sqrt {a^2 \tan ^2(d+e x)+2 a b \tan (d+e x)+b^2}}{e \left (a^2 \tan (d+e x)+a b\right )}-\frac {\left (a^2+b^2\right ) \log (\cos (d+e x)) \sqrt {a^2 \tan ^2(d+e x)+2 a b \tan (d+e x)+b^2}}{e (a \tan (d+e x)+b)} \]
[In]
[Out]
Rule 3556
Rule 3606
Rule 3791
Rubi steps \begin{align*} \text {integral}& = \frac {\sqrt {b^2+2 a b \tan (d+e x)+a^2 \tan ^2(d+e x)} \int \left (2 a b+2 a^2 \tan (d+e x)\right ) (a+b \tan (d+e x)) \, dx}{2 a b+2 a^2 \tan (d+e x)} \\ & = \frac {a^2 b \tan (d+e x) \sqrt {b^2+2 a b \tan (d+e x)+a^2 \tan ^2(d+e x)}}{e \left (a b+a^2 \tan (d+e x)\right )}+\frac {\left (2 a \left (a^2+b^2\right ) \sqrt {b^2+2 a b \tan (d+e x)+a^2 \tan ^2(d+e x)}\right ) \int \tan (d+e x) \, dx}{2 a b+2 a^2 \tan (d+e x)} \\ & = -\frac {\left (a^2+b^2\right ) \log (\cos (d+e x)) \sqrt {b^2+2 a b \tan (d+e x)+a^2 \tan ^2(d+e x)}}{e (b+a \tan (d+e x))}+\frac {a^2 b \tan (d+e x) \sqrt {b^2+2 a b \tan (d+e x)+a^2 \tan ^2(d+e x)}}{e \left (a b+a^2 \tan (d+e x)\right )} \\ \end{align*}
Time = 0.24 (sec) , antiderivative size = 58, normalized size of antiderivative = 0.48 \[ \int (a+b \tan (d+e x)) \sqrt {b^2+2 a b \tan (d+e x)+a^2 \tan ^2(d+e x)} \, dx=\frac {\sqrt {(b+a \tan (d+e x))^2} \left (-\left (\left (a^2+b^2\right ) \log (\cos (d+e x))\right )+a b \tan (d+e x)\right )}{e (b+a \tan (d+e x))} \]
[In]
[Out]
Result contains higher order function than in optimal. Order 9 vs. order 3.
Time = 1.17 (sec) , antiderivative size = 75, normalized size of antiderivative = 0.61
method | result | size |
derivativedivides | \(\frac {\operatorname {csgn}\left (b +a \tan \left (e x +d \right )\right ) \left (\ln \left (a^{2} \tan \left (e x +d \right )^{2}+a^{2}\right ) a^{2}+\ln \left (a^{2} \tan \left (e x +d \right )^{2}+a^{2}\right ) b^{2}+2 a b \tan \left (e x +d \right )+2 b^{2}\right )}{2 e}\) | \(75\) |
default | \(\frac {\operatorname {csgn}\left (b +a \tan \left (e x +d \right )\right ) \left (\ln \left (a^{2} \tan \left (e x +d \right )^{2}+a^{2}\right ) a^{2}+\ln \left (a^{2} \tan \left (e x +d \right )^{2}+a^{2}\right ) b^{2}+2 a b \tan \left (e x +d \right )+2 b^{2}\right )}{2 e}\) | \(75\) |
parts | \(\frac {a \,\operatorname {csgn}\left (b +a \tan \left (e x +d \right )\right ) \left (\ln \left (a^{2} \tan \left (e x +d \right )^{2}+a^{2}\right ) a +2 b \arctan \left (\tan \left (e x +d \right )\right )\right )}{2 e}+\frac {b \,\operatorname {csgn}\left (b +a \tan \left (e x +d \right )\right ) \left (b \ln \left (a^{2} \tan \left (e x +d \right )^{2}+a^{2}\right )-2 a \arctan \left (\tan \left (e x +d \right )\right )+2 a \tan \left (e x +d \right )+2 b \right )}{2 e}\) | \(108\) |
[In]
[Out]
none
Time = 0.26 (sec) , antiderivative size = 38, normalized size of antiderivative = 0.31 \[ \int (a+b \tan (d+e x)) \sqrt {b^2+2 a b \tan (d+e x)+a^2 \tan ^2(d+e x)} \, dx=\frac {2 \, a b \tan \left (e x + d\right ) - {\left (a^{2} + b^{2}\right )} \log \left (\frac {1}{\tan \left (e x + d\right )^{2} + 1}\right )}{2 \, e} \]
[In]
[Out]
\[ \int (a+b \tan (d+e x)) \sqrt {b^2+2 a b \tan (d+e x)+a^2 \tan ^2(d+e x)} \, dx=\int \left (a + b \tan {\left (d + e x \right )}\right ) \sqrt {\left (a \tan {\left (d + e x \right )} + b\right )^{2}}\, dx \]
[In]
[Out]
none
Time = 0.31 (sec) , antiderivative size = 65, normalized size of antiderivative = 0.53 \[ \int (a+b \tan (d+e x)) \sqrt {b^2+2 a b \tan (d+e x)+a^2 \tan ^2(d+e x)} \, dx=\frac {{\left (2 \, {\left (e x + d\right )} b + a \log \left (\tan \left (e x + d\right )^{2} + 1\right )\right )} a - {\left (2 \, {\left (e x + d\right )} a - b \log \left (\tan \left (e x + d\right )^{2} + 1\right ) - 2 \, a \tan \left (e x + d\right )\right )} b}{2 \, e} \]
[In]
[Out]
Leaf count of result is larger than twice the leaf count of optimal. 323 vs. \(2 (118) = 236\).
Time = 0.40 (sec) , antiderivative size = 323, normalized size of antiderivative = 2.65 \[ \int (a+b \tan (d+e x)) \sqrt {b^2+2 a b \tan (d+e x)+a^2 \tan ^2(d+e x)} \, dx=-\frac {a^{2} \log \left (\frac {4 \, {\left (\tan \left (e x\right )^{2} \tan \left (d\right )^{2} - 2 \, \tan \left (e x\right ) \tan \left (d\right ) + 1\right )}}{\tan \left (e x\right )^{2} \tan \left (d\right )^{2} + \tan \left (e x\right )^{2} + \tan \left (d\right )^{2} + 1}\right ) \mathrm {sgn}\left (a \tan \left (e x + d\right ) + b\right ) \tan \left (e x\right ) \tan \left (d\right ) + b^{2} \log \left (\frac {4 \, {\left (\tan \left (e x\right )^{2} \tan \left (d\right )^{2} - 2 \, \tan \left (e x\right ) \tan \left (d\right ) + 1\right )}}{\tan \left (e x\right )^{2} \tan \left (d\right )^{2} + \tan \left (e x\right )^{2} + \tan \left (d\right )^{2} + 1}\right ) \mathrm {sgn}\left (a \tan \left (e x + d\right ) + b\right ) \tan \left (e x\right ) \tan \left (d\right ) - a^{2} \log \left (\frac {4 \, {\left (\tan \left (e x\right )^{2} \tan \left (d\right )^{2} - 2 \, \tan \left (e x\right ) \tan \left (d\right ) + 1\right )}}{\tan \left (e x\right )^{2} \tan \left (d\right )^{2} + \tan \left (e x\right )^{2} + \tan \left (d\right )^{2} + 1}\right ) \mathrm {sgn}\left (a \tan \left (e x + d\right ) + b\right ) - b^{2} \log \left (\frac {4 \, {\left (\tan \left (e x\right )^{2} \tan \left (d\right )^{2} - 2 \, \tan \left (e x\right ) \tan \left (d\right ) + 1\right )}}{\tan \left (e x\right )^{2} \tan \left (d\right )^{2} + \tan \left (e x\right )^{2} + \tan \left (d\right )^{2} + 1}\right ) \mathrm {sgn}\left (a \tan \left (e x + d\right ) + b\right ) + 2 \, a b \mathrm {sgn}\left (a \tan \left (e x + d\right ) + b\right ) \tan \left (e x\right ) + 2 \, a b \mathrm {sgn}\left (a \tan \left (e x + d\right ) + b\right ) \tan \left (d\right )}{2 \, {\left (e \tan \left (e x\right ) \tan \left (d\right ) - e\right )}} \]
[In]
[Out]
Timed out. \[ \int (a+b \tan (d+e x)) \sqrt {b^2+2 a b \tan (d+e x)+a^2 \tan ^2(d+e x)} \, dx=\int \left (a+b\,\mathrm {tan}\left (d+e\,x\right )\right )\,\sqrt {a^2\,{\mathrm {tan}\left (d+e\,x\right )}^2+2\,a\,b\,\mathrm {tan}\left (d+e\,x\right )+b^2} \,d x \]
[In]
[Out]