Optimal. Leaf size=284 \[ -\frac{2 a^4 b x \left (a^2+b^2\right ) \left (a^2 \tan ^2(d+e x)+2 a b \tan (d+e x)+b^2\right )^{3/2}}{\left (a^2 \tan (d+e x)+a b\right )^3}+\frac{a^4 b \left (a^2+b^2\right ) \tan (d+e x) \left (a^2 \tan ^2(d+e x)+2 a b \tan (d+e x)+b^2\right )^{3/2}}{e \left (a^2 \tan (d+e x)+a b\right )^3}+\frac{b \left (a^2 \tan ^2(d+e x)+2 a b \tan (d+e x)+b^2\right )^{3/2}}{3 e}+\frac{\left (a^2+b^2\right ) \left (a^2 \tan ^2(d+e x)+2 a b \tan (d+e x)+b^2\right )^{3/2}}{2 e (a \tan (d+e x)+b)}+\frac{\left (a^4-b^4\right ) \log (\cos (d+e x)) \left (a^2 \tan ^2(d+e x)+2 a b \tan (d+e x)+b^2\right )^{3/2}}{e (a \tan (d+e x)+b)^3} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.226139, antiderivative size = 284, normalized size of antiderivative = 1., number of steps used = 6, number of rules used = 5, integrand size = 41, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.122, Rules used = {3710, 3528, 12, 3525, 3475} \[ -\frac{2 a^4 b x \left (a^2+b^2\right ) \left (a^2 \tan ^2(d+e x)+2 a b \tan (d+e x)+b^2\right )^{3/2}}{\left (a^2 \tan (d+e x)+a b\right )^3}+\frac{a^4 b \left (a^2+b^2\right ) \tan (d+e x) \left (a^2 \tan ^2(d+e x)+2 a b \tan (d+e x)+b^2\right )^{3/2}}{e \left (a^2 \tan (d+e x)+a b\right )^3}+\frac{b \left (a^2 \tan ^2(d+e x)+2 a b \tan (d+e x)+b^2\right )^{3/2}}{3 e}+\frac{\left (a^2+b^2\right ) \left (a^2 \tan ^2(d+e x)+2 a b \tan (d+e x)+b^2\right )^{3/2}}{2 e (a \tan (d+e x)+b)}+\frac{\left (a^4-b^4\right ) \log (\cos (d+e x)) \left (a^2 \tan ^2(d+e x)+2 a b \tan (d+e x)+b^2\right )^{3/2}}{e (a \tan (d+e x)+b)^3} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 3710
Rule 3528
Rule 12
Rule 3525
Rule 3475
Rubi steps
\begin{align*} \int (a+b \tan (d+e x)) \left (b^2+2 a b \tan (d+e x)+a^2 \tan ^2(d+e x)\right )^{3/2} \, dx &=\frac{\left (b^2+2 a b \tan (d+e x)+a^2 \tan ^2(d+e x)\right )^{3/2} \int \left (2 a b+2 a^2 \tan (d+e x)\right )^3 (a+b \tan (d+e x)) \, dx}{\left (2 a b+2 a^2 \tan (d+e x)\right )^3}\\ &=\frac{b \left (b^2+2 a b \tan (d+e x)+a^2 \tan ^2(d+e x)\right )^{3/2}}{3 e}+\frac{\left (b^2+2 a b \tan (d+e x)+a^2 \tan ^2(d+e x)\right )^{3/2} \int 2 a \left (a^2+b^2\right ) \tan (d+e x) \left (2 a b+2 a^2 \tan (d+e x)\right )^2 \, dx}{\left (2 a b+2 a^2 \tan (d+e x)\right )^3}\\ &=\frac{b \left (b^2+2 a b \tan (d+e x)+a^2 \tan ^2(d+e x)\right )^{3/2}}{3 e}+\frac{\left (2 a \left (a^2+b^2\right ) \left (b^2+2 a b \tan (d+e x)+a^2 \tan ^2(d+e x)\right )^{3/2}\right ) \int \tan (d+e x) \left (2 a b+2 a^2 \tan (d+e x)\right )^2 \, dx}{\left (2 a b+2 a^2 \tan (d+e x)\right )^3}\\ &=\frac{b \left (b^2+2 a b \tan (d+e x)+a^2 \tan ^2(d+e x)\right )^{3/2}}{3 e}+\frac{\left (a^2+b^2\right ) \left (b^2+2 a b \tan (d+e x)+a^2 \tan ^2(d+e x)\right )^{3/2}}{2 e (b+a \tan (d+e x))}+\frac{\left (2 a \left (a^2+b^2\right ) \left (b^2+2 a b \tan (d+e x)+a^2 \tan ^2(d+e x)\right )^{3/2}\right ) \int \left (2 a b+2 a^2 \tan (d+e x)\right ) \left (-2 a^2+2 a b \tan (d+e x)\right ) \, dx}{\left (2 a b+2 a^2 \tan (d+e x)\right )^3}\\ &=\frac{b \left (b^2+2 a b \tan (d+e x)+a^2 \tan ^2(d+e x)\right )^{3/2}}{3 e}+\frac{\left (a^2+b^2\right ) \left (b^2+2 a b \tan (d+e x)+a^2 \tan ^2(d+e x)\right )^{3/2}}{2 e (b+a \tan (d+e x))}-\frac{2 a^4 b \left (a^2+b^2\right ) x \left (b^2+2 a b \tan (d+e x)+a^2 \tan ^2(d+e x)\right )^{3/2}}{\left (a b+a^2 \tan (d+e x)\right )^3}+\frac{a^4 b \left (a^2+b^2\right ) \tan (d+e x) \left (b^2+2 a b \tan (d+e x)+a^2 \tan ^2(d+e x)\right )^{3/2}}{e \left (a b+a^2 \tan (d+e x)\right )^3}-\frac{\left (8 a^3 \left (a^2-b^2\right ) \left (a^2+b^2\right ) \left (b^2+2 a b \tan (d+e x)+a^2 \tan ^2(d+e x)\right )^{3/2}\right ) \int \tan (d+e x) \, dx}{\left (2 a b+2 a^2 \tan (d+e x)\right )^3}\\ &=\frac{b \left (b^2+2 a b \tan (d+e x)+a^2 \tan ^2(d+e x)\right )^{3/2}}{3 e}+\frac{\left (a^4-b^4\right ) \log (\cos (d+e x)) \left (b^2+2 a b \tan (d+e x)+a^2 \tan ^2(d+e x)\right )^{3/2}}{e (b+a \tan (d+e x))^3}+\frac{\left (a^2+b^2\right ) \left (b^2+2 a b \tan (d+e x)+a^2 \tan ^2(d+e x)\right )^{3/2}}{2 e (b+a \tan (d+e x))}-\frac{2 a^4 b \left (a^2+b^2\right ) x \left (b^2+2 a b \tan (d+e x)+a^2 \tan ^2(d+e x)\right )^{3/2}}{\left (a b+a^2 \tan (d+e x)\right )^3}+\frac{a^4 b \left (a^2+b^2\right ) \tan (d+e x) \left (b^2+2 a b \tan (d+e x)+a^2 \tan ^2(d+e x)\right )^{3/2}}{e \left (a b+a^2 \tan (d+e x)\right )^3}\\ \end{align*}
Mathematica [C] time = 1.36673, size = 147, normalized size = 0.52 \[ \frac{\sqrt{(a \tan (d+e x)+b)^2} \left (3 a^2 \left (a^2+3 b^2\right ) \tan ^2(d+e x)+6 a b \left (2 a^2+3 b^2\right ) \tan (d+e x)-3 \left (a^2+b^2\right ) \left ((a-i b)^2 \log (-\tan (d+e x)+i)+(a+i b)^2 \log (\tan (d+e x)+i)\right )+2 a^3 b \tan ^3(d+e x)\right )}{6 e (a \tan (d+e x)+b)} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A] time = 0.088, size = 158, normalized size = 0.6 \begin{align*} -{\frac{-2\, \left ( \tan \left ( ex+d \right ) \right ) ^{3}{a}^{3}b-3\, \left ( \tan \left ( ex+d \right ) \right ) ^{2}{a}^{4}-9\, \left ( \tan \left ( ex+d \right ) \right ) ^{2}{a}^{2}{b}^{2}+3\,\ln \left ( 1+ \left ( \tan \left ( ex+d \right ) \right ) ^{2} \right ){a}^{4}-3\,\ln \left ( 1+ \left ( \tan \left ( ex+d \right ) \right ) ^{2} \right ){b}^{4}+12\,\arctan \left ( \tan \left ( ex+d \right ) \right ){a}^{3}b+12\,\arctan \left ( \tan \left ( ex+d \right ) \right ) a{b}^{3}-12\,\tan \left ( ex+d \right ){a}^{3}b-18\,\tan \left ( ex+d \right ) a{b}^{3}}{6\,e \left ( b+a\tan \left ( ex+d \right ) \right ) ^{3}} \left ( \left ( b+a\tan \left ( ex+d \right ) \right ) ^{2} \right ) ^{{\frac{3}{2}}}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A] time = 1.52516, size = 224, normalized size = 0.79 \begin{align*} \frac{3 \,{\left (a^{3} \tan \left (e x + d\right )^{2} + 6 \, a^{2} b \tan \left (e x + d\right ) - 2 \,{\left (3 \, a^{2} b - b^{3}\right )}{\left (e x + d\right )} -{\left (a^{3} - 3 \, a b^{2}\right )} \log \left (\tan \left (e x + d\right )^{2} + 1\right )\right )} a +{\left (2 \, a^{3} \tan \left (e x + d\right )^{3} + 9 \, a^{2} b \tan \left (e x + d\right )^{2} + 6 \,{\left (a^{3} - 3 \, a b^{2}\right )}{\left (e x + d\right )} - 3 \,{\left (3 \, a^{2} b - b^{3}\right )} \log \left (\tan \left (e x + d\right )^{2} + 1\right ) - 6 \,{\left (a^{3} - 3 \, a b^{2}\right )} \tan \left (e x + d\right )\right )} b}{6 \, e} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A] time = 1.75058, size = 236, normalized size = 0.83 \begin{align*} \frac{2 \, a^{3} b \tan \left (e x + d\right )^{3} - 12 \,{\left (a^{3} b + a b^{3}\right )} e x + 3 \,{\left (a^{4} + 3 \, a^{2} b^{2}\right )} \tan \left (e x + d\right )^{2} + 3 \,{\left (a^{4} - b^{4}\right )} \log \left (\frac{1}{\tan \left (e x + d\right )^{2} + 1}\right ) + 6 \,{\left (2 \, a^{3} b + 3 \, a b^{3}\right )} \tan \left (e x + d\right )}{6 \, e} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int \left (a + b \tan{\left (d + e x \right )}\right ) \left (\left (a \tan{\left (d + e x \right )} + b\right )^{2}\right )^{\frac{3}{2}}\, dx \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A] time = 1.52229, size = 328, normalized size = 1.15 \begin{align*} -2 \,{\left (a^{3} b \mathrm{sgn}\left (a \tan \left (x e + d\right ) + b\right ) + a b^{3} \mathrm{sgn}\left (a \tan \left (x e + d\right ) + b\right )\right )}{\left (x e + d\right )} e^{\left (-1\right )} - \frac{1}{2} \,{\left (a^{4} \mathrm{sgn}\left (a \tan \left (x e + d\right ) + b\right ) - b^{4} \mathrm{sgn}\left (a \tan \left (x e + d\right ) + b\right )\right )} e^{\left (-1\right )} \log \left (\tan \left (x e + d\right )^{2} + 1\right ) + \frac{1}{6} \,{\left (2 \, a^{3} b e^{2} \mathrm{sgn}\left (a \tan \left (x e + d\right ) + b\right ) \tan \left (x e + d\right )^{3} + 3 \, a^{4} e^{2} \mathrm{sgn}\left (a \tan \left (x e + d\right ) + b\right ) \tan \left (x e + d\right )^{2} + 9 \, a^{2} b^{2} e^{2} \mathrm{sgn}\left (a \tan \left (x e + d\right ) + b\right ) \tan \left (x e + d\right )^{2} + 12 \, a^{3} b e^{2} \mathrm{sgn}\left (a \tan \left (x e + d\right ) + b\right ) \tan \left (x e + d\right ) + 18 \, a b^{3} e^{2} \mathrm{sgn}\left (a \tan \left (x e + d\right ) + b\right ) \tan \left (x e + d\right )\right )} e^{\left (-3\right )} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]