Optimal. Leaf size=170 \[ -\frac {\left (a^2-b^2\right )^3 \log (a+b \sec (c+d x))}{a b^6 d}-\frac {a \left (a^2-3 b^2\right ) \sec ^2(c+d x)}{2 b^4 d}+\frac {\left (a^2-3 b^2\right ) \sec ^3(c+d x)}{3 b^3 d}+\frac {\left (a^4-3 a^2 b^2+3 b^4\right ) \sec (c+d x)}{b^5 d}-\frac {a \sec ^4(c+d x)}{4 b^2 d}+\frac {\log (\cos (c+d x))}{a d}+\frac {\sec ^5(c+d x)}{5 b d} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.14, antiderivative size = 170, normalized size of antiderivative = 1.00, number of steps used = 3, number of rules used = 2, integrand size = 21, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.095, Rules used = {3885, 894} \[ \frac {\left (a^2-3 b^2\right ) \sec ^3(c+d x)}{3 b^3 d}-\frac {a \left (a^2-3 b^2\right ) \sec ^2(c+d x)}{2 b^4 d}+\frac {\left (-3 a^2 b^2+a^4+3 b^4\right ) \sec (c+d x)}{b^5 d}-\frac {\left (a^2-b^2\right )^3 \log (a+b \sec (c+d x))}{a b^6 d}-\frac {a \sec ^4(c+d x)}{4 b^2 d}+\frac {\log (\cos (c+d x))}{a d}+\frac {\sec ^5(c+d x)}{5 b d} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 894
Rule 3885
Rubi steps
\begin {align*} \int \frac {\tan ^7(c+d x)}{a+b \sec (c+d x)} \, dx &=-\frac {\operatorname {Subst}\left (\int \frac {\left (b^2-x^2\right )^3}{x (a+x)} \, dx,x,b \sec (c+d x)\right )}{b^6 d}\\ &=-\frac {\operatorname {Subst}\left (\int \left (-a^4 \left (1+\frac {3 b^2 \left (-a^2+b^2\right )}{a^4}\right )+\frac {b^6}{a x}+a \left (a^2-3 b^2\right ) x-\left (a^2-3 b^2\right ) x^2+a x^3-x^4+\frac {\left (a^2-b^2\right )^3}{a (a+x)}\right ) \, dx,x,b \sec (c+d x)\right )}{b^6 d}\\ &=\frac {\log (\cos (c+d x))}{a d}-\frac {\left (a^2-b^2\right )^3 \log (a+b \sec (c+d x))}{a b^6 d}+\frac {\left (a^4-3 a^2 b^2+3 b^4\right ) \sec (c+d x)}{b^5 d}-\frac {a \left (a^2-3 b^2\right ) \sec ^2(c+d x)}{2 b^4 d}+\frac {\left (a^2-3 b^2\right ) \sec ^3(c+d x)}{3 b^3 d}-\frac {a \sec ^4(c+d x)}{4 b^2 d}+\frac {\sec ^5(c+d x)}{5 b d}\\ \end {align*}
________________________________________________________________________________________
Mathematica [B] time = 6.19, size = 371, normalized size = 2.18 \[ \frac {a \left (3 b^2-a^2\right ) \sec ^3(c+d x) (a \cos (c+d x)+b)}{2 b^4 d (a+b \sec (c+d x))}+\frac {\left (a^2-3 b^2\right ) \sec ^4(c+d x) (a \cos (c+d x)+b)}{3 b^3 d (a+b \sec (c+d x))}+\frac {\left (a^5-3 a^3 b^2+3 a b^4\right ) \sec (c+d x) \log (\cos (c+d x)) (a \cos (c+d x)+b)}{b^6 d (a+b \sec (c+d x))}+\frac {\left (a^4-3 a^2 b^2+3 b^4\right ) \sec ^2(c+d x) (a \cos (c+d x)+b)}{b^5 d (a+b \sec (c+d x))}+\frac {\left (-a^6+3 a^4 b^2-3 a^2 b^4+b^6\right ) \sec (c+d x) (a \cos (c+d x)+b) \log (a \cos (c+d x)+b)}{a b^6 d (a+b \sec (c+d x))}-\frac {a \sec ^5(c+d x) (a \cos (c+d x)+b)}{4 b^2 d (a+b \sec (c+d x))}+\frac {\sec ^6(c+d x) (a \cos (c+d x)+b)}{5 b d (a+b \sec (c+d x))} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [A] time = 0.58, size = 205, normalized size = 1.21 \[ -\frac {15 \, a^{2} b^{4} \cos \left (d x + c\right ) + 60 \, {\left (a^{6} - 3 \, a^{4} b^{2} + 3 \, a^{2} b^{4} - b^{6}\right )} \cos \left (d x + c\right )^{5} \log \left (a \cos \left (d x + c\right ) + b\right ) - 60 \, {\left (a^{6} - 3 \, a^{4} b^{2} + 3 \, a^{2} b^{4}\right )} \cos \left (d x + c\right )^{5} \log \left (-\cos \left (d x + c\right )\right ) - 12 \, a b^{5} - 60 \, {\left (a^{5} b - 3 \, a^{3} b^{3} + 3 \, a b^{5}\right )} \cos \left (d x + c\right )^{4} + 30 \, {\left (a^{4} b^{2} - 3 \, a^{2} b^{4}\right )} \cos \left (d x + c\right )^{3} - 20 \, {\left (a^{3} b^{3} - 3 \, a b^{5}\right )} \cos \left (d x + c\right )^{2}}{60 \, a b^{6} d \cos \left (d x + c\right )^{5}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [B] time = 11.52, size = 1052, normalized size = 6.19 \[ \text {result too large to display} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [A] time = 0.48, size = 292, normalized size = 1.72 \[ -\frac {a^{5} \ln \left (b +a \cos \left (d x +c \right )\right )}{d \,b^{6}}+\frac {3 a^{3} \ln \left (b +a \cos \left (d x +c \right )\right )}{d \,b^{4}}-\frac {3 a \ln \left (b +a \cos \left (d x +c \right )\right )}{d \,b^{2}}+\frac {\ln \left (b +a \cos \left (d x +c \right )\right )}{d a}-\frac {a}{4 d \,b^{2} \cos \left (d x +c \right )^{4}}+\frac {a^{2}}{3 d \,b^{3} \cos \left (d x +c \right )^{3}}-\frac {1}{d b \cos \left (d x +c \right )^{3}}+\frac {a^{4}}{d \,b^{5} \cos \left (d x +c \right )}-\frac {3 a^{2}}{d \,b^{3} \cos \left (d x +c \right )}+\frac {3}{d b \cos \left (d x +c \right )}-\frac {a^{3}}{2 d \,b^{4} \cos \left (d x +c \right )^{2}}+\frac {3 a}{2 d \,b^{2} \cos \left (d x +c \right )^{2}}+\frac {a^{5} \ln \left (\cos \left (d x +c \right )\right )}{d \,b^{6}}-\frac {3 a^{3} \ln \left (\cos \left (d x +c \right )\right )}{d \,b^{4}}+\frac {3 a \ln \left (\cos \left (d x +c \right )\right )}{d \,b^{2}}+\frac {1}{5 d b \cos \left (d x +c \right )^{5}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [A] time = 0.60, size = 183, normalized size = 1.08 \[ \frac {\frac {60 \, {\left (a^{5} - 3 \, a^{3} b^{2} + 3 \, a b^{4}\right )} \log \left (\cos \left (d x + c\right )\right )}{b^{6}} - \frac {60 \, {\left (a^{6} - 3 \, a^{4} b^{2} + 3 \, a^{2} b^{4} - b^{6}\right )} \log \left (a \cos \left (d x + c\right ) + b\right )}{a b^{6}} - \frac {15 \, a b^{3} \cos \left (d x + c\right ) - 60 \, {\left (a^{4} - 3 \, a^{2} b^{2} + 3 \, b^{4}\right )} \cos \left (d x + c\right )^{4} - 12 \, b^{4} + 30 \, {\left (a^{3} b - 3 \, a b^{3}\right )} \cos \left (d x + c\right )^{3} - 20 \, {\left (a^{2} b^{2} - 3 \, b^{4}\right )} \cos \left (d x + c\right )^{2}}{b^{5} \cos \left (d x + c\right )^{5}}}{60 \, d} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [B] time = 2.40, size = 395, normalized size = 2.32 \[ \frac {a\,\ln \left ({\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )}^2-1\right )\,\left (a^4-3\,a^2\,b^2+3\,b^4\right )}{b^6\,d}-\frac {\frac {2\,\left (15\,a^4-40\,a^2\,b^2+33\,b^4\right )}{15\,b^5}+\frac {2\,{\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )}^8\,\left (a^4+a^3\,b-2\,a^2\,b^2-2\,a\,b^3+b^4\right )}{b^5}-\frac {2\,{\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )}^6\,\left (4\,a^4+3\,a^3\,b-10\,a^2\,b^2-8\,a\,b^3+6\,b^4\right )}{b^5}-\frac {2\,{\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )}^2\,\left (12\,a^4+3\,a^3\,b-34\,a^2\,b^2-6\,a\,b^3+30\,b^4\right )}{3\,b^5}+\frac {2\,{\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )}^4\,\left (18\,a^4+9\,a^3\,b-50\,a^2\,b^2-24\,a\,b^3+48\,b^4\right )}{3\,b^5}}{d\,\left ({\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )}^{10}-5\,{\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )}^8+10\,{\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )}^6-10\,{\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )}^4+5\,{\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )}^2-1\right )}-\frac {\ln \left ({\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )}^2+1\right )}{a\,d}-\frac {\ln \left (a+b-a\,{\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )}^2+b\,{\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )}^2\right )\,{\left (a^2-b^2\right )}^3}{a\,b^6\,d} \]
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 ^{7}{\left (c + d x \right )}}{a + b \sec {\left (c + d x \right )}}\, dx \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________