Optimal. Leaf size=148 \[ -\frac {2 \tanh ^{-1}\left (\frac {\sqrt {a+b \sec (c+d x)}}{\sqrt {a}}\right )}{a^{3/2} d}+\frac {2 \left (3 a^2-2 b^2\right ) \sqrt {a+b \sec (c+d x)}}{b^4 d}+\frac {2 \left (a^2-b^2\right )^2}{a b^4 d \sqrt {a+b \sec (c+d x)}}+\frac {2 (a+b \sec (c+d x))^{5/2}}{5 b^4 d}-\frac {2 a (a+b \sec (c+d x))^{3/2}}{b^4 d} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.17, antiderivative size = 148, normalized size of antiderivative = 1.00, number of steps used = 5, number of rules used = 4, integrand size = 23, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.174, Rules used = {3885, 898, 1261, 206} \[ \frac {2 \left (3 a^2-2 b^2\right ) \sqrt {a+b \sec (c+d x)}}{b^4 d}+\frac {2 \left (a^2-b^2\right )^2}{a b^4 d \sqrt {a+b \sec (c+d x)}}-\frac {2 \tanh ^{-1}\left (\frac {\sqrt {a+b \sec (c+d x)}}{\sqrt {a}}\right )}{a^{3/2} d}+\frac {2 (a+b \sec (c+d x))^{5/2}}{5 b^4 d}-\frac {2 a (a+b \sec (c+d x))^{3/2}}{b^4 d} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 206
Rule 898
Rule 1261
Rule 3885
Rubi steps
\begin {align*} \int \frac {\tan ^5(c+d x)}{(a+b \sec (c+d x))^{3/2}} \, dx &=\frac {\operatorname {Subst}\left (\int \frac {\left (b^2-x^2\right )^2}{x (a+x)^{3/2}} \, dx,x,b \sec (c+d x)\right )}{b^4 d}\\ &=\frac {2 \operatorname {Subst}\left (\int \frac {\left (-a^2+b^2+2 a x^2-x^4\right )^2}{x^2 \left (-a+x^2\right )} \, dx,x,\sqrt {a+b \sec (c+d x)}\right )}{b^4 d}\\ &=\frac {2 \operatorname {Subst}\left (\int \left (3 a^2 \left (1-\frac {2 b^2}{3 a^2}\right )-\frac {\left (a^2-b^2\right )^2}{a x^2}-3 a x^2+x^4-\frac {b^4}{a \left (a-x^2\right )}\right ) \, dx,x,\sqrt {a+b \sec (c+d x)}\right )}{b^4 d}\\ &=\frac {2 \left (a^2-b^2\right )^2}{a b^4 d \sqrt {a+b \sec (c+d x)}}+\frac {2 \left (3 a^2-2 b^2\right ) \sqrt {a+b \sec (c+d x)}}{b^4 d}-\frac {2 a (a+b \sec (c+d x))^{3/2}}{b^4 d}+\frac {2 (a+b \sec (c+d x))^{5/2}}{5 b^4 d}-\frac {2 \operatorname {Subst}\left (\int \frac {1}{a-x^2} \, dx,x,\sqrt {a+b \sec (c+d x)}\right )}{a d}\\ &=-\frac {2 \tanh ^{-1}\left (\frac {\sqrt {a+b \sec (c+d x)}}{\sqrt {a}}\right )}{a^{3/2} d}+\frac {2 \left (a^2-b^2\right )^2}{a b^4 d \sqrt {a+b \sec (c+d x)}}+\frac {2 \left (3 a^2-2 b^2\right ) \sqrt {a+b \sec (c+d x)}}{b^4 d}-\frac {2 a (a+b \sec (c+d x))^{3/2}}{b^4 d}+\frac {2 (a+b \sec (c+d x))^{5/2}}{5 b^4 d}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A] time = 6.39, size = 263, normalized size = 1.78 \[ \frac {\sec ^2(c+d x) (a \cos (c+d x)+b)^2 \left (-\frac {2 \left (b^2-a^2\right )^2}{a^2 b^3 (a \cos (c+d x)+b)}+\frac {2 \left (16 a^4-20 a^2 b^2+5 b^4\right )}{5 a^2 b^4}-\frac {6 a \sec (c+d x)}{5 b^3}+\frac {2 \sec ^2(c+d x)}{5 b^2}\right )}{d (a+b \sec (c+d x))^{3/2}}-\frac {\tan ^2(c+d x) \sqrt {a \cos (c+d x)} (a \cos (c+d x)+b)^{3/2} \left (\log \left (\frac {\sqrt {a \cos (c+d x)+b}}{\sqrt {a \cos (c+d x)}}+1\right )-\log \left (1-\frac {\sqrt {a \cos (c+d x)+b}}{\sqrt {a \cos (c+d x)}}\right )\right )}{a^2 d \left (1-\cos ^2(c+d x)\right ) (a+b \sec (c+d x))^{3/2}} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [A] time = 1.42, size = 467, normalized size = 3.16 \[ \left [\frac {5 \, {\left (a b^{4} \cos \left (d x + c\right )^{3} + b^{5} \cos \left (d x + c\right )^{2}\right )} \sqrt {a} \log \left (-8 \, a^{2} \cos \left (d x + c\right )^{2} - 8 \, a b \cos \left (d x + c\right ) - b^{2} + 4 \, {\left (2 \, a \cos \left (d x + c\right )^{2} + b \cos \left (d x + c\right )\right )} \sqrt {a} \sqrt {\frac {a \cos \left (d x + c\right ) + b}{\cos \left (d x + c\right )}}\right ) - 4 \, {\left (2 \, a^{3} b^{2} \cos \left (d x + c\right ) - a^{2} b^{3} - {\left (16 \, a^{5} - 20 \, a^{3} b^{2} + 5 \, a b^{4}\right )} \cos \left (d x + c\right )^{3} - 2 \, {\left (4 \, a^{4} b - 5 \, a^{2} b^{3}\right )} \cos \left (d x + c\right )^{2}\right )} \sqrt {\frac {a \cos \left (d x + c\right ) + b}{\cos \left (d x + c\right )}}}{10 \, {\left (a^{3} b^{4} d \cos \left (d x + c\right )^{3} + a^{2} b^{5} d \cos \left (d x + c\right )^{2}\right )}}, \frac {5 \, {\left (a b^{4} \cos \left (d x + c\right )^{3} + b^{5} \cos \left (d x + c\right )^{2}\right )} \sqrt {-a} \arctan \left (\frac {2 \, \sqrt {-a} \sqrt {\frac {a \cos \left (d x + c\right ) + b}{\cos \left (d x + c\right )}} \cos \left (d x + c\right )}{2 \, a \cos \left (d x + c\right ) + b}\right ) - 2 \, {\left (2 \, a^{3} b^{2} \cos \left (d x + c\right ) - a^{2} b^{3} - {\left (16 \, a^{5} - 20 \, a^{3} b^{2} + 5 \, a b^{4}\right )} \cos \left (d x + c\right )^{3} - 2 \, {\left (4 \, a^{4} b - 5 \, a^{2} b^{3}\right )} \cos \left (d x + c\right )^{2}\right )} \sqrt {\frac {a \cos \left (d x + c\right ) + b}{\cos \left (d x + c\right )}}}{5 \, {\left (a^{3} b^{4} d \cos \left (d x + c\right )^{3} + a^{2} b^{5} d \cos \left (d x + c\right )^{2}\right )}}\right ] \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [F] time = 0.00, size = 0, normalized size = 0.00 \[ \int \frac {\tan \left (d x + c\right )^{5}}{{\left (b \sec \left (d x + c\right ) + a\right )}^{\frac {3}{2}}}\,{d x} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [B] time = 2.39, size = 6612, normalized size = 44.68 \[ \text {output too large to display} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [A] time = 0.43, size = 194, normalized size = 1.31 \[ \frac {\frac {5 \, \log \left (\frac {\sqrt {a + \frac {b}{\cos \left (d x + c\right )}} - \sqrt {a}}{\sqrt {a + \frac {b}{\cos \left (d x + c\right )}} + \sqrt {a}}\right )}{a^{\frac {3}{2}}} + \frac {10}{\sqrt {a + \frac {b}{\cos \left (d x + c\right )}} a} + \frac {2 \, {\left (a + \frac {b}{\cos \left (d x + c\right )}\right )}^{\frac {5}{2}}}{b^{4}} - \frac {10 \, {\left (a + \frac {b}{\cos \left (d x + c\right )}\right )}^{\frac {3}{2}} a}{b^{4}} + \frac {30 \, \sqrt {a + \frac {b}{\cos \left (d x + c\right )}} a^{2}}{b^{4}} + \frac {10 \, a^{3}}{\sqrt {a + \frac {b}{\cos \left (d x + c\right )}} b^{4}} - \frac {20 \, \sqrt {a + \frac {b}{\cos \left (d x + c\right )}}}{b^{2}} - \frac {20 \, a}{\sqrt {a + \frac {b}{\cos \left (d x + c\right )}} b^{2}}}{5 \, d} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [F] time = 0.00, size = -1, normalized size = -0.01 \[ \int \frac {{\mathrm {tan}\left (c+d\,x\right )}^5}{{\left (a+\frac {b}{\cos \left (c+d\,x\right )}\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 \frac {\tan ^{5}{\left (c + d x \right )}}{\left (a + b \sec {\left (c + d x \right )}\right )^{\frac {3}{2}}}\, dx \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________