Optimal. Leaf size=284 \[ \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 {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 {\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.23, antiderivative size = 284, normalized size of antiderivative = 1.00, 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 12
Rule 3475
Rule 3525
Rule 3528
Rule 3710
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.33, size = 147, normalized size = 0.52 \[ \frac {\sqrt {(a \tan (d+e x)+b)^2} \left (2 a^3 b \tan ^3(d+e x)+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 )\right )}{6 e (a \tan (d+e x)+b)} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [A] time = 2.83, size = 102, normalized size = 0.36 \[ \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} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [B] time = 2.44, size = 1751, normalized size = 6.17 \[ \text {result too large to display} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [A] time = 0.31, size = 158, normalized size = 0.56 \[ -\frac {\left (b^{2}+2 a b \tan \left (e x +d \right )+a^{2} \left (\tan ^{2}\left (e x +d \right )\right )\right )^{\frac {3}{2}} \left (-2 \left (\tan ^{3}\left (e x +d \right )\right ) a^{3} b -3 \left (\tan ^{2}\left (e x +d \right )\right ) a^{4}-9 \left (\tan ^{2}\left (e x +d \right )\right ) a^{2} b^{2}+3 \ln \left (1+\tan ^{2}\left (e x +d \right )\right ) a^{4}-3 \ln \left (1+\tan ^{2}\left (e x +d \right )\right ) b^{4}+12 \arctan \left (\tan \left (e x +d \right )\right ) a^{3} b +12 \arctan \left (\tan \left (e x +d \right )\right ) a \,b^{3}-12 \tan \left (e x +d \right ) a^{3} b -18 \tan \left (e x +d \right ) a \,b^{3}\right )}{6 e \left (b +a \tan \left (e x +d \right )\right )^{3}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [A] time = 0.43, size = 166, normalized size = 0.58 \[ \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} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [F] time = 0.00, size = -1, normalized size = -0.00 \[ \int \left (a+b\,\mathrm {tan}\left (d+e\,x\right )\right )\,{\left (a^2\,{\mathrm {tan}\left (d+e\,x\right )}^2+2\,a\,b\,\mathrm {tan}\left (d+e\,x\right )+b^2\right )}^{3/2} \,d x \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [F] time = 0.00, size = 0, normalized size = 0.00 \[ \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 \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________