Integrand size = 19, antiderivative size = 102 \[ \int (a+b \sec (c+d x)) \tan ^6(c+d x) \, dx=-a x-\frac {5 b \text {arctanh}(\sin (c+d x))}{16 d}+\frac {(16 a+5 b \sec (c+d x)) \tan (c+d x)}{16 d}-\frac {(8 a+5 b \sec (c+d x)) \tan ^3(c+d x)}{24 d}+\frac {(6 a+5 b \sec (c+d x)) \tan ^5(c+d x)}{30 d} \] Output:
-a*x-5/16*b*arctanh(sin(d*x+c))/d+1/16*(16*a+5*b*sec(d*x+c))*tan(d*x+c)/d- 1/24*(8*a+5*b*sec(d*x+c))*tan(d*x+c)^3/d+1/30*(6*a+5*b*sec(d*x+c))*tan(d*x +c)^5/d
Time = 0.02 (sec) , antiderivative size = 179, normalized size of antiderivative = 1.75 \[ \int (a+b \sec (c+d x)) \tan ^6(c+d x) \, dx=-\frac {a \arctan (\tan (c+d x))}{d}-\frac {5 b \text {arctanh}(\sin (c+d x))}{16 d}+\frac {a \tan (c+d x)}{d}-\frac {5 b \sec (c+d x) \tan (c+d x)}{16 d}-\frac {5 b \sec ^3(c+d x) \tan (c+d x)}{24 d}+\frac {5 b \sec ^5(c+d x) \tan (c+d x)}{6 d}-\frac {a \tan ^3(c+d x)}{3 d}-\frac {5 b \sec ^3(c+d x) \tan ^3(c+d x)}{3 d}+\frac {a \tan ^5(c+d x)}{5 d}+\frac {b \sec (c+d x) \tan ^5(c+d x)}{d} \] Input:
Integrate[(a + b*Sec[c + d*x])*Tan[c + d*x]^6,x]
Output:
-((a*ArcTan[Tan[c + d*x]])/d) - (5*b*ArcTanh[Sin[c + d*x]])/(16*d) + (a*Ta n[c + d*x])/d - (5*b*Sec[c + d*x]*Tan[c + d*x])/(16*d) - (5*b*Sec[c + d*x] ^3*Tan[c + d*x])/(24*d) + (5*b*Sec[c + d*x]^5*Tan[c + d*x])/(6*d) - (a*Tan [c + d*x]^3)/(3*d) - (5*b*Sec[c + d*x]^3*Tan[c + d*x]^3)/(3*d) + (a*Tan[c + d*x]^5)/(5*d) + (b*Sec[c + d*x]*Tan[c + d*x]^5)/d
Time = 0.48 (sec) , antiderivative size = 115, normalized size of antiderivative = 1.13, number of steps used = 8, number of rules used = 8, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.421, Rules used = {3042, 4369, 3042, 4369, 27, 3042, 4369, 2009}
Below are the steps used by Rubi to obtain the solution. The rule number used for the transformation is given above next to the arrow. The rules definitions used are listed below.
\(\displaystyle \int \tan ^6(c+d x) (a+b \sec (c+d x)) \, dx\) |
\(\Big \downarrow \) 3042 |
\(\displaystyle \int \cot \left (c+d x+\frac {\pi }{2}\right )^6 \left (a+b \csc \left (c+d x+\frac {\pi }{2}\right )\right )dx\) |
\(\Big \downarrow \) 4369 |
\(\displaystyle \frac {\tan ^5(c+d x) (6 a+5 b \sec (c+d x))}{30 d}-\frac {1}{6} \int (6 a+5 b \sec (c+d x)) \tan ^4(c+d x)dx\) |
\(\Big \downarrow \) 3042 |
\(\displaystyle \frac {\tan ^5(c+d x) (6 a+5 b \sec (c+d x))}{30 d}-\frac {1}{6} \int \cot \left (c+d x+\frac {\pi }{2}\right )^4 \left (6 a+5 b \csc \left (c+d x+\frac {\pi }{2}\right )\right )dx\) |
\(\Big \downarrow \) 4369 |
\(\displaystyle \frac {1}{6} \left (\frac {1}{4} \int 3 (8 a+5 b \sec (c+d x)) \tan ^2(c+d x)dx-\frac {\tan ^3(c+d x) (8 a+5 b \sec (c+d x))}{4 d}\right )+\frac {\tan ^5(c+d x) (6 a+5 b \sec (c+d x))}{30 d}\) |
\(\Big \downarrow \) 27 |
\(\displaystyle \frac {1}{6} \left (\frac {3}{4} \int (8 a+5 b \sec (c+d x)) \tan ^2(c+d x)dx-\frac {\tan ^3(c+d x) (8 a+5 b \sec (c+d x))}{4 d}\right )+\frac {\tan ^5(c+d x) (6 a+5 b \sec (c+d x))}{30 d}\) |
\(\Big \downarrow \) 3042 |
\(\displaystyle \frac {1}{6} \left (\frac {3}{4} \int \cot \left (c+d x+\frac {\pi }{2}\right )^2 \left (8 a+5 b \csc \left (c+d x+\frac {\pi }{2}\right )\right )dx-\frac {\tan ^3(c+d x) (8 a+5 b \sec (c+d x))}{4 d}\right )+\frac {\tan ^5(c+d x) (6 a+5 b \sec (c+d x))}{30 d}\) |
\(\Big \downarrow \) 4369 |
\(\displaystyle \frac {1}{6} \left (\frac {3}{4} \left (\frac {\tan (c+d x) (16 a+5 b \sec (c+d x))}{2 d}-\frac {1}{2} \int (16 a+5 b \sec (c+d x))dx\right )-\frac {\tan ^3(c+d x) (8 a+5 b \sec (c+d x))}{4 d}\right )+\frac {\tan ^5(c+d x) (6 a+5 b \sec (c+d x))}{30 d}\) |
\(\Big \downarrow \) 2009 |
\(\displaystyle \frac {1}{6} \left (\frac {3}{4} \left (\frac {1}{2} \left (-16 a x-\frac {5 b \text {arctanh}(\sin (c+d x))}{d}\right )+\frac {\tan (c+d x) (16 a+5 b \sec (c+d x))}{2 d}\right )-\frac {\tan ^3(c+d x) (8 a+5 b \sec (c+d x))}{4 d}\right )+\frac {\tan ^5(c+d x) (6 a+5 b \sec (c+d x))}{30 d}\) |
Input:
Int[(a + b*Sec[c + d*x])*Tan[c + d*x]^6,x]
Output:
((6*a + 5*b*Sec[c + d*x])*Tan[c + d*x]^5)/(30*d) + (-1/4*((8*a + 5*b*Sec[c + d*x])*Tan[c + d*x]^3)/d + (3*((-16*a*x - (5*b*ArcTanh[Sin[c + d*x]])/d) /2 + ((16*a + 5*b*Sec[c + d*x])*Tan[c + d*x])/(2*d)))/4)/6
Int[(a_)*(Fx_), x_Symbol] :> Simp[a Int[Fx, x], x] /; FreeQ[a, x] && !Ma tchQ[Fx, (b_)*(Gx_) /; FreeQ[b, x]]
Int[(cot[(c_.) + (d_.)*(x_)]*(e_.))^(m_)*(csc[(c_.) + (d_.)*(x_)]*(b_.) + ( a_)), x_Symbol] :> Simp[(-e)*(e*Cot[c + d*x])^(m - 1)*((a*m + b*(m - 1)*Csc [c + d*x])/(d*m*(m - 1))), x] - Simp[e^2/m Int[(e*Cot[c + d*x])^(m - 2)*( a*m + b*(m - 1)*Csc[c + d*x]), x], x] /; FreeQ[{a, b, c, d, e}, x] && GtQ[m , 1]
Time = 0.64 (sec) , antiderivative size = 143, normalized size of antiderivative = 1.40
method | result | size |
derivativedivides | \(\frac {a \left (\frac {\tan \left (d x +c \right )^{5}}{5}-\frac {\tan \left (d x +c \right )^{3}}{3}+\tan \left (d x +c \right )-d x -c \right )+b \left (\frac {\sin \left (d x +c \right )^{7}}{6 \cos \left (d x +c \right )^{6}}-\frac {\sin \left (d x +c \right )^{7}}{24 \cos \left (d x +c \right )^{4}}+\frac {\sin \left (d x +c \right )^{7}}{16 \cos \left (d x +c \right )^{2}}+\frac {\sin \left (d x +c \right )^{5}}{16}+\frac {5 \sin \left (d x +c \right )^{3}}{48}+\frac {5 \sin \left (d x +c \right )}{16}-\frac {5 \ln \left (\sec \left (d x +c \right )+\tan \left (d x +c \right )\right )}{16}\right )}{d}\) | \(143\) |
default | \(\frac {a \left (\frac {\tan \left (d x +c \right )^{5}}{5}-\frac {\tan \left (d x +c \right )^{3}}{3}+\tan \left (d x +c \right )-d x -c \right )+b \left (\frac {\sin \left (d x +c \right )^{7}}{6 \cos \left (d x +c \right )^{6}}-\frac {\sin \left (d x +c \right )^{7}}{24 \cos \left (d x +c \right )^{4}}+\frac {\sin \left (d x +c \right )^{7}}{16 \cos \left (d x +c \right )^{2}}+\frac {\sin \left (d x +c \right )^{5}}{16}+\frac {5 \sin \left (d x +c \right )^{3}}{48}+\frac {5 \sin \left (d x +c \right )}{16}-\frac {5 \ln \left (\sec \left (d x +c \right )+\tan \left (d x +c \right )\right )}{16}\right )}{d}\) | \(143\) |
parts | \(\frac {a \left (\frac {\tan \left (d x +c \right )^{5}}{5}-\frac {\tan \left (d x +c \right )^{3}}{3}+\tan \left (d x +c \right )-\arctan \left (\tan \left (d x +c \right )\right )\right )}{d}+\frac {b \left (\frac {\sin \left (d x +c \right )^{7}}{6 \cos \left (d x +c \right )^{6}}-\frac {\sin \left (d x +c \right )^{7}}{24 \cos \left (d x +c \right )^{4}}+\frac {\sin \left (d x +c \right )^{7}}{16 \cos \left (d x +c \right )^{2}}+\frac {\sin \left (d x +c \right )^{5}}{16}+\frac {5 \sin \left (d x +c \right )^{3}}{48}+\frac {5 \sin \left (d x +c \right )}{16}-\frac {5 \ln \left (\sec \left (d x +c \right )+\tan \left (d x +c \right )\right )}{16}\right )}{d}\) | \(147\) |
risch | \(-a x -\frac {i \left (165 b \,{\mathrm e}^{11 i \left (d x +c \right )}-720 a \,{\mathrm e}^{10 i \left (d x +c \right )}-25 b \,{\mathrm e}^{9 i \left (d x +c \right )}-2160 a \,{\mathrm e}^{8 i \left (d x +c \right )}+450 b \,{\mathrm e}^{7 i \left (d x +c \right )}-3680 a \,{\mathrm e}^{6 i \left (d x +c \right )}-450 b \,{\mathrm e}^{5 i \left (d x +c \right )}-3360 a \,{\mathrm e}^{4 i \left (d x +c \right )}+25 b \,{\mathrm e}^{3 i \left (d x +c \right )}-1488 a \,{\mathrm e}^{2 i \left (d x +c \right )}-165 b \,{\mathrm e}^{i \left (d x +c \right )}-368 a \right )}{120 d \left ({\mathrm e}^{2 i \left (d x +c \right )}+1\right )^{6}}-\frac {5 b \ln \left ({\mathrm e}^{i \left (d x +c \right )}+i\right )}{16 d}+\frac {5 b \ln \left ({\mathrm e}^{i \left (d x +c \right )}-i\right )}{16 d}\) | \(199\) |
Input:
int((a+b*sec(d*x+c))*tan(d*x+c)^6,x,method=_RETURNVERBOSE)
Output:
1/d*(a*(1/5*tan(d*x+c)^5-1/3*tan(d*x+c)^3+tan(d*x+c)-d*x-c)+b*(1/6*sin(d*x +c)^7/cos(d*x+c)^6-1/24*sin(d*x+c)^7/cos(d*x+c)^4+1/16*sin(d*x+c)^7/cos(d* x+c)^2+1/16*sin(d*x+c)^5+5/48*sin(d*x+c)^3+5/16*sin(d*x+c)-5/16*ln(sec(d*x +c)+tan(d*x+c))))
Time = 0.12 (sec) , antiderivative size = 134, normalized size of antiderivative = 1.31 \[ \int (a+b \sec (c+d x)) \tan ^6(c+d x) \, dx=-\frac {480 \, a d x \cos \left (d x + c\right )^{6} + 75 \, b \cos \left (d x + c\right )^{6} \log \left (\sin \left (d x + c\right ) + 1\right ) - 75 \, b \cos \left (d x + c\right )^{6} \log \left (-\sin \left (d x + c\right ) + 1\right ) - 2 \, {\left (368 \, a \cos \left (d x + c\right )^{5} + 165 \, b \cos \left (d x + c\right )^{4} - 176 \, a \cos \left (d x + c\right )^{3} - 130 \, b \cos \left (d x + c\right )^{2} + 48 \, a \cos \left (d x + c\right ) + 40 \, b\right )} \sin \left (d x + c\right )}{480 \, d \cos \left (d x + c\right )^{6}} \] Input:
integrate((a+b*sec(d*x+c))*tan(d*x+c)^6,x, algorithm="fricas")
Output:
-1/480*(480*a*d*x*cos(d*x + c)^6 + 75*b*cos(d*x + c)^6*log(sin(d*x + c) + 1) - 75*b*cos(d*x + c)^6*log(-sin(d*x + c) + 1) - 2*(368*a*cos(d*x + c)^5 + 165*b*cos(d*x + c)^4 - 176*a*cos(d*x + c)^3 - 130*b*cos(d*x + c)^2 + 48* a*cos(d*x + c) + 40*b)*sin(d*x + c))/(d*cos(d*x + c)^6)
\[ \int (a+b \sec (c+d x)) \tan ^6(c+d x) \, dx=\int \left (a + b \sec {\left (c + d x \right )}\right ) \tan ^{6}{\left (c + d x \right )}\, dx \] Input:
integrate((a+b*sec(d*x+c))*tan(d*x+c)**6,x)
Output:
Integral((a + b*sec(c + d*x))*tan(c + d*x)**6, x)
Time = 0.11 (sec) , antiderivative size = 134, normalized size of antiderivative = 1.31 \[ \int (a+b \sec (c+d x)) \tan ^6(c+d x) \, dx=\frac {32 \, {\left (3 \, \tan \left (d x + c\right )^{5} - 5 \, \tan \left (d x + c\right )^{3} - 15 \, d x - 15 \, c + 15 \, \tan \left (d x + c\right )\right )} a - 5 \, b {\left (\frac {2 \, {\left (33 \, \sin \left (d x + c\right )^{5} - 40 \, \sin \left (d x + c\right )^{3} + 15 \, \sin \left (d x + c\right )\right )}}{\sin \left (d x + c\right )^{6} - 3 \, \sin \left (d x + c\right )^{4} + 3 \, \sin \left (d x + c\right )^{2} - 1} + 15 \, \log \left (\sin \left (d x + c\right ) + 1\right ) - 15 \, \log \left (\sin \left (d x + c\right ) - 1\right )\right )}}{480 \, d} \] Input:
integrate((a+b*sec(d*x+c))*tan(d*x+c)^6,x, algorithm="maxima")
Output:
1/480*(32*(3*tan(d*x + c)^5 - 5*tan(d*x + c)^3 - 15*d*x - 15*c + 15*tan(d* x + c))*a - 5*b*(2*(33*sin(d*x + c)^5 - 40*sin(d*x + c)^3 + 15*sin(d*x + c ))/(sin(d*x + c)^6 - 3*sin(d*x + c)^4 + 3*sin(d*x + c)^2 - 1) + 15*log(sin (d*x + c) + 1) - 15*log(sin(d*x + c) - 1)))/d
Leaf count of result is larger than twice the leaf count of optimal. 228 vs. \(2 (94) = 188\).
Time = 0.35 (sec) , antiderivative size = 228, normalized size of antiderivative = 2.24 \[ \int (a+b \sec (c+d x)) \tan ^6(c+d x) \, dx=-\frac {240 \, {\left (d x + c\right )} a + 75 \, b \log \left ({\left | \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right ) + 1 \right |}\right ) - 75 \, b \log \left ({\left | \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right ) - 1 \right |}\right ) + \frac {2 \, {\left (240 \, a \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{11} - 75 \, b \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{11} - 1520 \, a \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{9} + 425 \, b \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{9} + 4128 \, a \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{7} - 990 \, b \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{7} - 4128 \, a \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{5} - 990 \, b \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{5} + 1520 \, a \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{3} + 425 \, b \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{3} - 240 \, a \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right ) - 75 \, b \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )\right )}}{{\left (\tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{2} - 1\right )}^{6}}}{240 \, d} \] Input:
integrate((a+b*sec(d*x+c))*tan(d*x+c)^6,x, algorithm="giac")
Output:
-1/240*(240*(d*x + c)*a + 75*b*log(abs(tan(1/2*d*x + 1/2*c) + 1)) - 75*b*l og(abs(tan(1/2*d*x + 1/2*c) - 1)) + 2*(240*a*tan(1/2*d*x + 1/2*c)^11 - 75* b*tan(1/2*d*x + 1/2*c)^11 - 1520*a*tan(1/2*d*x + 1/2*c)^9 + 425*b*tan(1/2* d*x + 1/2*c)^9 + 4128*a*tan(1/2*d*x + 1/2*c)^7 - 990*b*tan(1/2*d*x + 1/2*c )^7 - 4128*a*tan(1/2*d*x + 1/2*c)^5 - 990*b*tan(1/2*d*x + 1/2*c)^5 + 1520* a*tan(1/2*d*x + 1/2*c)^3 + 425*b*tan(1/2*d*x + 1/2*c)^3 - 240*a*tan(1/2*d* x + 1/2*c) - 75*b*tan(1/2*d*x + 1/2*c))/(tan(1/2*d*x + 1/2*c)^2 - 1)^6)/d
Time = 11.68 (sec) , antiderivative size = 331, normalized size of antiderivative = 3.25 \[ \int (a+b \sec (c+d x)) \tan ^6(c+d x) \, dx=\frac {\left (\frac {5\,b}{8}-2\,a\right )\,{\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )}^{11}+\left (\frac {38\,a}{3}-\frac {85\,b}{24}\right )\,{\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )}^9+\left (\frac {33\,b}{4}-\frac {172\,a}{5}\right )\,{\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )}^7+\left (\frac {172\,a}{5}+\frac {33\,b}{4}\right )\,{\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )}^5+\left (-\frac {38\,a}{3}-\frac {85\,b}{24}\right )\,{\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )}^3+\left (2\,a+\frac {5\,b}{8}\right )\,\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )}{d\,\left ({\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )}^{12}-6\,{\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )}^{10}+15\,{\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )}^8-20\,{\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )}^6+15\,{\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )}^4-6\,{\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )}^2+1\right )}-\frac {5\,b\,\mathrm {atanh}\left (\frac {125\,b^3\,\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )}{64\,\left (20\,a^2\,b+\frac {125\,b^3}{64}\right )}+\frac {20\,a^2\,b\,\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )}{20\,a^2\,b+\frac {125\,b^3}{64}}\right )}{8\,d}-\frac {2\,a\,\mathrm {atan}\left (\frac {64\,a^3\,\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )}{64\,a^3+\frac {25\,a\,b^2}{4}}+\frac {25\,a\,b^2\,\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )}{4\,\left (64\,a^3+\frac {25\,a\,b^2}{4}\right )}\right )}{d} \] Input:
int(tan(c + d*x)^6*(a + b/cos(c + d*x)),x)
Output:
(tan(c/2 + (d*x)/2)*(2*a + (5*b)/8) - tan(c/2 + (d*x)/2)^11*(2*a - (5*b)/8 ) - tan(c/2 + (d*x)/2)^3*((38*a)/3 + (85*b)/24) + tan(c/2 + (d*x)/2)^9*((3 8*a)/3 - (85*b)/24) + tan(c/2 + (d*x)/2)^5*((172*a)/5 + (33*b)/4) - tan(c/ 2 + (d*x)/2)^7*((172*a)/5 - (33*b)/4))/(d*(15*tan(c/2 + (d*x)/2)^4 - 6*tan (c/2 + (d*x)/2)^2 - 20*tan(c/2 + (d*x)/2)^6 + 15*tan(c/2 + (d*x)/2)^8 - 6* tan(c/2 + (d*x)/2)^10 + tan(c/2 + (d*x)/2)^12 + 1)) - (5*b*atanh((125*b^3* tan(c/2 + (d*x)/2))/(64*(20*a^2*b + (125*b^3)/64)) + (20*a^2*b*tan(c/2 + ( d*x)/2))/(20*a^2*b + (125*b^3)/64)))/(8*d) - (2*a*atan((64*a^3*tan(c/2 + ( d*x)/2))/((25*a*b^2)/4 + 64*a^3) + (25*a*b^2*tan(c/2 + (d*x)/2))/(4*((25*a *b^2)/4 + 64*a^3))))/d
Time = 0.15 (sec) , antiderivative size = 477, normalized size of antiderivative = 4.68 \[ \int (a+b \sec (c+d x)) \tan ^6(c+d x) \, dx=\frac {-225 \,\mathrm {log}\left (\tan \left (\frac {d x}{2}+\frac {c}{2}\right )-1\right ) \sin \left (d x +c \right )^{4} b +225 \,\mathrm {log}\left (\tan \left (\frac {d x}{2}+\frac {c}{2}\right )+1\right ) \sin \left (d x +c \right )^{4} b +225 \,\mathrm {log}\left (\tan \left (\frac {d x}{2}+\frac {c}{2}\right )-1\right ) \sin \left (d x +c \right )^{2} b -225 \,\mathrm {log}\left (\tan \left (\frac {d x}{2}+\frac {c}{2}\right )+1\right ) \sin \left (d x +c \right )^{2} b +75 \,\mathrm {log}\left (\tan \left (\frac {d x}{2}+\frac {c}{2}\right )-1\right ) \sin \left (d x +c \right )^{6} b -75 \,\mathrm {log}\left (\tan \left (\frac {d x}{2}+\frac {c}{2}\right )+1\right ) \sin \left (d x +c \right )^{6} b +48 \sin \left (d x +c \right )^{6} \tan \left (d x +c \right )^{5} a -80 \sin \left (d x +c \right )^{6} \tan \left (d x +c \right )^{3} a +240 \sin \left (d x +c \right )^{6} \tan \left (d x +c \right ) a -144 \sin \left (d x +c \right )^{4} \tan \left (d x +c \right )^{5} a +240 \sin \left (d x +c \right )^{4} \tan \left (d x +c \right )^{3} a -720 \sin \left (d x +c \right )^{4} \tan \left (d x +c \right ) a +144 \sin \left (d x +c \right )^{2} \tan \left (d x +c \right )^{5} a -240 \sin \left (d x +c \right )^{2} \tan \left (d x +c \right )^{3} a +720 \sin \left (d x +c \right )^{2} \tan \left (d x +c \right ) a +240 a d x -48 \tan \left (d x +c \right )^{5} a +80 \tan \left (d x +c \right )^{3} a -240 \tan \left (d x +c \right ) a -240 \sin \left (d x +c \right )^{6} a d x +720 \sin \left (d x +c \right )^{4} a d x -720 \sin \left (d x +c \right )^{2} a d x -75 \,\mathrm {log}\left (\tan \left (\frac {d x}{2}+\frac {c}{2}\right )-1\right ) b +75 \,\mathrm {log}\left (\tan \left (\frac {d x}{2}+\frac {c}{2}\right )+1\right ) b -165 \sin \left (d x +c \right )^{5} b +200 \sin \left (d x +c \right )^{3} b -75 \sin \left (d x +c \right ) b}{240 d \left (\sin \left (d x +c \right )^{6}-3 \sin \left (d x +c \right )^{4}+3 \sin \left (d x +c \right )^{2}-1\right )} \] Input:
int((a+b*sec(d*x+c))*tan(d*x+c)^6,x)
Output:
(75*log(tan((c + d*x)/2) - 1)*sin(c + d*x)**6*b - 225*log(tan((c + d*x)/2) - 1)*sin(c + d*x)**4*b + 225*log(tan((c + d*x)/2) - 1)*sin(c + d*x)**2*b - 75*log(tan((c + d*x)/2) - 1)*b - 75*log(tan((c + d*x)/2) + 1)*sin(c + d* x)**6*b + 225*log(tan((c + d*x)/2) + 1)*sin(c + d*x)**4*b - 225*log(tan((c + d*x)/2) + 1)*sin(c + d*x)**2*b + 75*log(tan((c + d*x)/2) + 1)*b + 48*si n(c + d*x)**6*tan(c + d*x)**5*a - 80*sin(c + d*x)**6*tan(c + d*x)**3*a + 2 40*sin(c + d*x)**6*tan(c + d*x)*a - 240*sin(c + d*x)**6*a*d*x - 165*sin(c + d*x)**5*b - 144*sin(c + d*x)**4*tan(c + d*x)**5*a + 240*sin(c + d*x)**4* tan(c + d*x)**3*a - 720*sin(c + d*x)**4*tan(c + d*x)*a + 720*sin(c + d*x)* *4*a*d*x + 200*sin(c + d*x)**3*b + 144*sin(c + d*x)**2*tan(c + d*x)**5*a - 240*sin(c + d*x)**2*tan(c + d*x)**3*a + 720*sin(c + d*x)**2*tan(c + d*x)* a - 720*sin(c + d*x)**2*a*d*x - 75*sin(c + d*x)*b - 48*tan(c + d*x)**5*a + 80*tan(c + d*x)**3*a - 240*tan(c + d*x)*a + 240*a*d*x)/(240*d*(sin(c + d* x)**6 - 3*sin(c + d*x)**4 + 3*sin(c + d*x)**2 - 1))