Integrand size = 21, antiderivative size = 299 \[ \int (a+b \sec (c+d x))^3 \sin ^6(c+d x) \, dx=\frac {5 a^3 x}{16}-\frac {45}{8} a b^2 x+\frac {3 a^2 b \text {arctanh}(\sin (c+d x))}{d}-\frac {5 b^3 \text {arctanh}(\sin (c+d x))}{2 d}-\frac {3 a^2 b \sin (c+d x)}{d}+\frac {5 b^3 \sin (c+d x)}{2 d}-\frac {5 a^3 \cos (c+d x) \sin (c+d x)}{16 d}-\frac {a^2 b \sin ^3(c+d x)}{d}+\frac {5 b^3 \sin ^3(c+d x)}{6 d}-\frac {5 a^3 \cos (c+d x) \sin ^3(c+d x)}{24 d}-\frac {3 a^2 b \sin ^5(c+d x)}{5 d}-\frac {a^3 \cos (c+d x) \sin ^5(c+d x)}{6 d}+\frac {45 a b^2 \tan (c+d x)}{8 d}-\frac {15 a b^2 \sin ^2(c+d x) \tan (c+d x)}{8 d}-\frac {3 a b^2 \sin ^4(c+d x) \tan (c+d x)}{4 d}+\frac {b^3 \sin ^3(c+d x) \tan ^2(c+d x)}{2 d} \] Output:
5/16*a^3*x-45/8*a*b^2*x+3*a^2*b*arctanh(sin(d*x+c))/d-5/2*b^3*arctanh(sin( d*x+c))/d-3*a^2*b*sin(d*x+c)/d+5/2*b^3*sin(d*x+c)/d-5/16*a^3*cos(d*x+c)*si n(d*x+c)/d-a^2*b*sin(d*x+c)^3/d+5/6*b^3*sin(d*x+c)^3/d-5/24*a^3*cos(d*x+c) *sin(d*x+c)^3/d-3/5*a^2*b*sin(d*x+c)^5/d-1/6*a^3*cos(d*x+c)*sin(d*x+c)^5/d +45/8*a*b^2*tan(d*x+c)/d-15/8*a*b^2*sin(d*x+c)^2*tan(d*x+c)/d-3/4*a*b^2*si n(d*x+c)^4*tan(d*x+c)/d+1/2*b^3*sin(d*x+c)^3*tan(d*x+c)^2/d
Leaf count is larger than twice the leaf count of optimal. \(818\) vs. \(2(299)=598\).
Time = 6.71 (sec) , antiderivative size = 818, normalized size of antiderivative = 2.74 \[ \int (a+b \sec (c+d x))^3 \sin ^6(c+d x) \, dx=\frac {5 a \left (a^2-18 b^2\right ) (c+d x) \cos ^3(c+d x) (a+b \sec (c+d x))^3}{16 d (b+a \cos (c+d x))^3}+\frac {\left (-6 a^2 b+5 b^3\right ) \cos ^3(c+d x) \log \left (\cos \left (\frac {1}{2} (c+d x)\right )-\sin \left (\frac {1}{2} (c+d x)\right )\right ) (a+b \sec (c+d x))^3}{2 d (b+a \cos (c+d x))^3}+\frac {\left (6 a^2 b-5 b^3\right ) \cos ^3(c+d x) \log \left (\cos \left (\frac {1}{2} (c+d x)\right )+\sin \left (\frac {1}{2} (c+d x)\right )\right ) (a+b \sec (c+d x))^3}{2 d (b+a \cos (c+d x))^3}+\frac {b^3 \cos ^3(c+d x) (a+b \sec (c+d x))^3}{4 d (b+a \cos (c+d x))^3 \left (\cos \left (\frac {1}{2} (c+d x)\right )-\sin \left (\frac {1}{2} (c+d x)\right )\right )^2}+\frac {3 a b^2 \cos ^3(c+d x) (a+b \sec (c+d x))^3 \sin \left (\frac {1}{2} (c+d x)\right )}{d (b+a \cos (c+d x))^3 \left (\cos \left (\frac {1}{2} (c+d x)\right )-\sin \left (\frac {1}{2} (c+d x)\right )\right )}-\frac {b^3 \cos ^3(c+d x) (a+b \sec (c+d x))^3}{4 d (b+a \cos (c+d x))^3 \left (\cos \left (\frac {1}{2} (c+d x)\right )+\sin \left (\frac {1}{2} (c+d x)\right )\right )^2}+\frac {3 a b^2 \cos ^3(c+d x) (a+b \sec (c+d x))^3 \sin \left (\frac {1}{2} (c+d x)\right )}{d (b+a \cos (c+d x))^3 \left (\cos \left (\frac {1}{2} (c+d x)\right )+\sin \left (\frac {1}{2} (c+d x)\right )\right )}+\frac {3 b \left (-11 a^2+6 b^2\right ) \cos ^3(c+d x) (a+b \sec (c+d x))^3 \sin (c+d x)}{8 d (b+a \cos (c+d x))^3}-\frac {3 a \left (5 a^2-32 b^2\right ) \cos ^3(c+d x) (a+b \sec (c+d x))^3 \sin (2 (c+d x))}{64 d (b+a \cos (c+d x))^3}-\frac {b \left (-21 a^2+4 b^2\right ) \cos ^3(c+d x) (a+b \sec (c+d x))^3 \sin (3 (c+d x))}{48 d (b+a \cos (c+d x))^3}+\frac {3 a \left (a^2-2 b^2\right ) \cos ^3(c+d x) (a+b \sec (c+d x))^3 \sin (4 (c+d x))}{64 d (b+a \cos (c+d x))^3}-\frac {3 a^2 b \cos ^3(c+d x) (a+b \sec (c+d x))^3 \sin (5 (c+d x))}{80 d (b+a \cos (c+d x))^3}-\frac {a^3 \cos ^3(c+d x) (a+b \sec (c+d x))^3 \sin (6 (c+d x))}{192 d (b+a \cos (c+d x))^3} \] Input:
Integrate[(a + b*Sec[c + d*x])^3*Sin[c + d*x]^6,x]
Output:
(5*a*(a^2 - 18*b^2)*(c + d*x)*Cos[c + d*x]^3*(a + b*Sec[c + d*x])^3)/(16*d *(b + a*Cos[c + d*x])^3) + ((-6*a^2*b + 5*b^3)*Cos[c + d*x]^3*Log[Cos[(c + d*x)/2] - Sin[(c + d*x)/2]]*(a + b*Sec[c + d*x])^3)/(2*d*(b + a*Cos[c + d *x])^3) + ((6*a^2*b - 5*b^3)*Cos[c + d*x]^3*Log[Cos[(c + d*x)/2] + Sin[(c + d*x)/2]]*(a + b*Sec[c + d*x])^3)/(2*d*(b + a*Cos[c + d*x])^3) + (b^3*Cos [c + d*x]^3*(a + b*Sec[c + d*x])^3)/(4*d*(b + a*Cos[c + d*x])^3*(Cos[(c + d*x)/2] - Sin[(c + d*x)/2])^2) + (3*a*b^2*Cos[c + d*x]^3*(a + b*Sec[c + d* x])^3*Sin[(c + d*x)/2])/(d*(b + a*Cos[c + d*x])^3*(Cos[(c + d*x)/2] - Sin[ (c + d*x)/2])) - (b^3*Cos[c + d*x]^3*(a + b*Sec[c + d*x])^3)/(4*d*(b + a*C os[c + d*x])^3*(Cos[(c + d*x)/2] + Sin[(c + d*x)/2])^2) + (3*a*b^2*Cos[c + d*x]^3*(a + b*Sec[c + d*x])^3*Sin[(c + d*x)/2])/(d*(b + a*Cos[c + d*x])^3 *(Cos[(c + d*x)/2] + Sin[(c + d*x)/2])) + (3*b*(-11*a^2 + 6*b^2)*Cos[c + d *x]^3*(a + b*Sec[c + d*x])^3*Sin[c + d*x])/(8*d*(b + a*Cos[c + d*x])^3) - (3*a*(5*a^2 - 32*b^2)*Cos[c + d*x]^3*(a + b*Sec[c + d*x])^3*Sin[2*(c + d*x )])/(64*d*(b + a*Cos[c + d*x])^3) - (b*(-21*a^2 + 4*b^2)*Cos[c + d*x]^3*(a + b*Sec[c + d*x])^3*Sin[3*(c + d*x)])/(48*d*(b + a*Cos[c + d*x])^3) + (3* a*(a^2 - 2*b^2)*Cos[c + d*x]^3*(a + b*Sec[c + d*x])^3*Sin[4*(c + d*x)])/(6 4*d*(b + a*Cos[c + d*x])^3) - (3*a^2*b*Cos[c + d*x]^3*(a + b*Sec[c + d*x]) ^3*Sin[5*(c + d*x)])/(80*d*(b + a*Cos[c + d*x])^3) - (a^3*Cos[c + d*x]^3*( a + b*Sec[c + d*x])^3*Sin[6*(c + d*x)])/(192*d*(b + a*Cos[c + d*x])^3)
Time = 0.73 (sec) , antiderivative size = 299, normalized size of antiderivative = 1.00, number of steps used = 7, number of rules used = 7, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.333, Rules used = {3042, 4360, 25, 25, 3042, 3391, 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 \sin ^6(c+d x) (a+b \sec (c+d x))^3 \, dx\) |
\(\Big \downarrow \) 3042 |
\(\displaystyle \int \cos \left (c+d x-\frac {\pi }{2}\right )^6 \left (a-b \csc \left (c+d x-\frac {\pi }{2}\right )\right )^3dx\) |
\(\Big \downarrow \) 4360 |
\(\displaystyle \int \sin ^3(c+d x) \tan ^3(c+d x) \left (-(-a \cos (c+d x)-b)^3\right )dx\) |
\(\Big \downarrow \) 25 |
\(\displaystyle -\int -(b+a \cos (c+d x))^3 \sin ^3(c+d x) \tan ^3(c+d x)dx\) |
\(\Big \downarrow \) 25 |
\(\displaystyle \int \sin ^3(c+d x) \tan ^3(c+d x) (a \cos (c+d x)+b)^3dx\) |
\(\Big \downarrow \) 3042 |
\(\displaystyle \int \frac {\cos \left (c+d x+\frac {\pi }{2}\right )^6 \left (a \sin \left (c+d x+\frac {\pi }{2}\right )+b\right )^3}{\sin \left (c+d x+\frac {\pi }{2}\right )^3}dx\) |
\(\Big \downarrow \) 3391 |
\(\displaystyle \int \left (a^3 \sin ^6(c+d x)+3 a^2 b \sin ^5(c+d x) \tan (c+d x)+3 a b^2 \sin ^4(c+d x) \tan ^2(c+d x)+b^3 \sin ^3(c+d x) \tan ^3(c+d x)\right )dx\) |
\(\Big \downarrow \) 2009 |
\(\displaystyle -\frac {a^3 \sin ^5(c+d x) \cos (c+d x)}{6 d}-\frac {5 a^3 \sin ^3(c+d x) \cos (c+d x)}{24 d}-\frac {5 a^3 \sin (c+d x) \cos (c+d x)}{16 d}+\frac {5 a^3 x}{16}+\frac {3 a^2 b \text {arctanh}(\sin (c+d x))}{d}-\frac {3 a^2 b \sin ^5(c+d x)}{5 d}-\frac {a^2 b \sin ^3(c+d x)}{d}-\frac {3 a^2 b \sin (c+d x)}{d}+\frac {45 a b^2 \tan (c+d x)}{8 d}-\frac {3 a b^2 \sin ^4(c+d x) \tan (c+d x)}{4 d}-\frac {15 a b^2 \sin ^2(c+d x) \tan (c+d x)}{8 d}-\frac {45}{8} a b^2 x-\frac {5 b^3 \text {arctanh}(\sin (c+d x))}{2 d}+\frac {5 b^3 \sin ^3(c+d x)}{6 d}+\frac {5 b^3 \sin (c+d x)}{2 d}+\frac {b^3 \sin ^3(c+d x) \tan ^2(c+d x)}{2 d}\) |
Input:
Int[(a + b*Sec[c + d*x])^3*Sin[c + d*x]^6,x]
Output:
(5*a^3*x)/16 - (45*a*b^2*x)/8 + (3*a^2*b*ArcTanh[Sin[c + d*x]])/d - (5*b^3 *ArcTanh[Sin[c + d*x]])/(2*d) - (3*a^2*b*Sin[c + d*x])/d + (5*b^3*Sin[c + d*x])/(2*d) - (5*a^3*Cos[c + d*x]*Sin[c + d*x])/(16*d) - (a^2*b*Sin[c + d* x]^3)/d + (5*b^3*Sin[c + d*x]^3)/(6*d) - (5*a^3*Cos[c + d*x]*Sin[c + d*x]^ 3)/(24*d) - (3*a^2*b*Sin[c + d*x]^5)/(5*d) - (a^3*Cos[c + d*x]*Sin[c + d*x ]^5)/(6*d) + (45*a*b^2*Tan[c + d*x])/(8*d) - (15*a*b^2*Sin[c + d*x]^2*Tan[ c + d*x])/(8*d) - (3*a*b^2*Sin[c + d*x]^4*Tan[c + d*x])/(4*d) + (b^3*Sin[c + d*x]^3*Tan[c + d*x]^2)/(2*d)
Int[(cos[(e_.) + (f_.)*(x_)]*(g_.))^(p_)*((d_.)*sin[(e_.) + (f_.)*(x_)])^(n _)*((a_) + (b_.)*sin[(e_.) + (f_.)*(x_)])^(m_), x_Symbol] :> Int[ExpandTrig [(g*cos[e + f*x])^p, (d*sin[e + f*x])^n*(a + b*sin[e + f*x])^m, x], x] /; F reeQ[{a, b, d, e, f, g, n, p}, x] && NeQ[a^2 - b^2, 0] && IntegerQ[m] && (G tQ[m, 0] || IntegerQ[n])
Int[(cos[(e_.) + (f_.)*(x_)]*(g_.))^(p_.)*(csc[(e_.) + (f_.)*(x_)]*(b_.) + (a_))^(m_.), x_Symbol] :> Int[(g*Cos[e + f*x])^p*((b + a*Sin[e + f*x])^m/Si n[e + f*x]^m), x] /; FreeQ[{a, b, e, f, g, p}, x] && IntegerQ[m]
Time = 1.39 (sec) , antiderivative size = 234, normalized size of antiderivative = 0.78
method | result | size |
derivativedivides | \(\frac {a^{3} \left (-\frac {\left (\sin \left (d x +c \right )^{5}+\frac {5 \sin \left (d x +c \right )^{3}}{4}+\frac {15 \sin \left (d x +c \right )}{8}\right ) \cos \left (d x +c \right )}{6}+\frac {5 d x}{16}+\frac {5 c}{16}\right )+3 a^{2} b \left (-\frac {\sin \left (d x +c \right )^{5}}{5}-\frac {\sin \left (d x +c \right )^{3}}{3}-\sin \left (d x +c \right )+\ln \left (\sec \left (d x +c \right )+\tan \left (d x +c \right )\right )\right )+3 a \,b^{2} \left (\frac {\sin \left (d x +c \right )^{7}}{\cos \left (d x +c \right )}+\left (\sin \left (d x +c \right )^{5}+\frac {5 \sin \left (d x +c \right )^{3}}{4}+\frac {15 \sin \left (d x +c \right )}{8}\right ) \cos \left (d x +c \right )-\frac {15 d x}{8}-\frac {15 c}{8}\right )+b^{3} \left (\frac {\sin \left (d x +c \right )^{7}}{2 \cos \left (d x +c \right )^{2}}+\frac {\sin \left (d x +c \right )^{5}}{2}+\frac {5 \sin \left (d x +c \right )^{3}}{6}+\frac {5 \sin \left (d x +c \right )}{2}-\frac {5 \ln \left (\sec \left (d x +c \right )+\tan \left (d x +c \right )\right )}{2}\right )}{d}\) | \(234\) |
default | \(\frac {a^{3} \left (-\frac {\left (\sin \left (d x +c \right )^{5}+\frac {5 \sin \left (d x +c \right )^{3}}{4}+\frac {15 \sin \left (d x +c \right )}{8}\right ) \cos \left (d x +c \right )}{6}+\frac {5 d x}{16}+\frac {5 c}{16}\right )+3 a^{2} b \left (-\frac {\sin \left (d x +c \right )^{5}}{5}-\frac {\sin \left (d x +c \right )^{3}}{3}-\sin \left (d x +c \right )+\ln \left (\sec \left (d x +c \right )+\tan \left (d x +c \right )\right )\right )+3 a \,b^{2} \left (\frac {\sin \left (d x +c \right )^{7}}{\cos \left (d x +c \right )}+\left (\sin \left (d x +c \right )^{5}+\frac {5 \sin \left (d x +c \right )^{3}}{4}+\frac {15 \sin \left (d x +c \right )}{8}\right ) \cos \left (d x +c \right )-\frac {15 d x}{8}-\frac {15 c}{8}\right )+b^{3} \left (\frac {\sin \left (d x +c \right )^{7}}{2 \cos \left (d x +c \right )^{2}}+\frac {\sin \left (d x +c \right )^{5}}{2}+\frac {5 \sin \left (d x +c \right )^{3}}{6}+\frac {5 \sin \left (d x +c \right )}{2}-\frac {5 \ln \left (\sec \left (d x +c \right )+\tan \left (d x +c \right )\right )}{2}\right )}{d}\) | \(234\) |
parts | \(\frac {a^{3} \left (-\frac {\left (\sin \left (d x +c \right )^{5}+\frac {5 \sin \left (d x +c \right )^{3}}{4}+\frac {15 \sin \left (d x +c \right )}{8}\right ) \cos \left (d x +c \right )}{6}+\frac {5 d x}{16}+\frac {5 c}{16}\right )}{d}+\frac {b^{3} \left (\frac {\sin \left (d x +c \right )^{7}}{2 \cos \left (d x +c \right )^{2}}+\frac {\sin \left (d x +c \right )^{5}}{2}+\frac {5 \sin \left (d x +c \right )^{3}}{6}+\frac {5 \sin \left (d x +c \right )}{2}-\frac {5 \ln \left (\sec \left (d x +c \right )+\tan \left (d x +c \right )\right )}{2}\right )}{d}+\frac {3 a \,b^{2} \left (\frac {\sin \left (d x +c \right )^{7}}{\cos \left (d x +c \right )}+\left (\sin \left (d x +c \right )^{5}+\frac {5 \sin \left (d x +c \right )^{3}}{4}+\frac {15 \sin \left (d x +c \right )}{8}\right ) \cos \left (d x +c \right )-\frac {15 d x}{8}-\frac {15 c}{8}\right )}{d}+\frac {3 a^{2} b \left (-\frac {\sin \left (d x +c \right )^{5}}{5}-\frac {\sin \left (d x +c \right )^{3}}{3}-\sin \left (d x +c \right )+\ln \left (\sec \left (d x +c \right )+\tan \left (d x +c \right )\right )\right )}{d}\) | \(242\) |
parallelrisch | \(\frac {-5760 b \left (1+\cos \left (2 d x +2 c \right )\right ) \left (a^{2}-\frac {5 b^{2}}{6}\right ) \ln \left (\tan \left (\frac {d x}{2}+\frac {c}{2}\right )-1\right )+5760 b \left (1+\cos \left (2 d x +2 c \right )\right ) \left (a^{2}-\frac {5 b^{2}}{6}\right ) \ln \left (\tan \left (\frac {d x}{2}+\frac {c}{2}\right )+1\right )+600 a d x \left (a^{2}-18 b^{2}\right ) \cos \left (2 d x +2 c \right )+\left (-405 a^{3}+8550 a \,b^{2}\right ) \sin \left (2 d x +2 c \right )+\left (-3156 a^{2} b +2000 b^{3}\right ) \sin \left (3 d x +3 c \right )+\left (-140 a^{3}+1260 a \,b^{2}\right ) \sin \left (4 d x +4 c \right )+\left (348 a^{2} b -80 b^{3}\right ) \sin \left (5 d x +5 c \right )+\left (35 a^{3}-90 a \,b^{2}\right ) \sin \left (6 d x +6 c \right )-36 a^{2} b \sin \left (7 d x +7 c \right )-5 a^{3} \sin \left (8 d x +8 c \right )+\left (-3540 a^{2} b +4000 b^{3}\right ) \sin \left (d x +c \right )+600 a d x \left (a^{2}-18 b^{2}\right )}{1920 d \left (1+\cos \left (2 d x +2 c \right )\right )}\) | \(285\) |
risch | \(\frac {5 a^{3} x}{16}-\frac {45 a \,b^{2} x}{8}+\frac {9 i {\mathrm e}^{-i \left (d x +c \right )} b^{3}}{8 d}+\frac {33 i {\mathrm e}^{i \left (d x +c \right )} a^{2} b}{16 d}-\frac {9 i {\mathrm e}^{i \left (d x +c \right )} b^{3}}{8 d}+\frac {7 i {\mathrm e}^{-3 i \left (d x +c \right )} a^{2} b}{32 d}+\frac {15 i a^{3} {\mathrm e}^{2 i \left (d x +c \right )}}{128 d}-\frac {3 i {\mathrm e}^{2 i \left (d x +c \right )} a \,b^{2}}{4 d}-\frac {i {\mathrm e}^{-3 i \left (d x +c \right )} b^{3}}{24 d}-\frac {i b^{2} \left (b \,{\mathrm e}^{3 i \left (d x +c \right )}-6 a \,{\mathrm e}^{2 i \left (d x +c \right )}-b \,{\mathrm e}^{i \left (d x +c \right )}-6 a \right )}{d \left ({\mathrm e}^{2 i \left (d x +c \right )}+1\right )^{2}}-\frac {15 i a^{3} {\mathrm e}^{-2 i \left (d x +c \right )}}{128 d}-\frac {33 i {\mathrm e}^{-i \left (d x +c \right )} a^{2} b}{16 d}+\frac {3 i {\mathrm e}^{-2 i \left (d x +c \right )} a \,b^{2}}{4 d}-\frac {7 i {\mathrm e}^{3 i \left (d x +c \right )} a^{2} b}{32 d}+\frac {i {\mathrm e}^{3 i \left (d x +c \right )} b^{3}}{24 d}+\frac {3 b \ln \left ({\mathrm e}^{i \left (d x +c \right )}+i\right ) a^{2}}{d}-\frac {5 b^{3} \ln \left ({\mathrm e}^{i \left (d x +c \right )}+i\right )}{2 d}-\frac {3 b \ln \left ({\mathrm e}^{i \left (d x +c \right )}-i\right ) a^{2}}{d}+\frac {5 b^{3} \ln \left ({\mathrm e}^{i \left (d x +c \right )}-i\right )}{2 d}-\frac {a^{3} \sin \left (6 d x +6 c \right )}{192 d}-\frac {3 a^{2} b \sin \left (5 d x +5 c \right )}{80 d}+\frac {3 a^{3} \sin \left (4 d x +4 c \right )}{64 d}-\frac {3 \sin \left (4 d x +4 c \right ) a \,b^{2}}{32 d}\) | \(454\) |
norman | \(\frac {\left (\frac {5}{16} a^{3}-\frac {45}{8} a \,b^{2}\right ) x +\left (-\frac {25}{8} a^{3}+\frac {225}{4} a \,b^{2}\right ) x \tan \left (\frac {d x}{2}+\frac {c}{2}\right )^{8}+\left (-\frac {5}{4} a^{3}+\frac {45}{2} a \,b^{2}\right ) x \tan \left (\frac {d x}{2}+\frac {c}{2}\right )^{6}+\left (-\frac {5}{4} a^{3}+\frac {45}{2} a \,b^{2}\right ) x \tan \left (\frac {d x}{2}+\frac {c}{2}\right )^{10}+\left (\frac {5}{4} a^{3}-\frac {45}{2} a \,b^{2}\right ) x \tan \left (\frac {d x}{2}+\frac {c}{2}\right )^{2}+\left (\frac {5}{4} a^{3}-\frac {45}{2} a \,b^{2}\right ) x \tan \left (\frac {d x}{2}+\frac {c}{2}\right )^{4}+\left (\frac {5}{4} a^{3}-\frac {45}{2} a \,b^{2}\right ) x \tan \left (\frac {d x}{2}+\frac {c}{2}\right )^{12}+\left (\frac {5}{4} a^{3}-\frac {45}{2} a \,b^{2}\right ) x \tan \left (\frac {d x}{2}+\frac {c}{2}\right )^{14}+\left (\frac {5}{16} a^{3}-\frac {45}{8} a \,b^{2}\right ) x \tan \left (\frac {d x}{2}+\frac {c}{2}\right )^{16}+\frac {\left (5 a^{3}-48 a^{2} b -90 a \,b^{2}+40 b^{3}\right ) \tan \left (\frac {d x}{2}+\frac {c}{2}\right )^{15}}{8 d}-\frac {\left (5 a^{3}+48 a^{2} b -90 a \,b^{2}-40 b^{3}\right ) \tan \left (\frac {d x}{2}+\frac {c}{2}\right )}{8 d}+\frac {\left (55 a^{3}-624 a^{2} b -990 a \,b^{2}+520 b^{3}\right ) \tan \left (\frac {d x}{2}+\frac {c}{2}\right )^{13}}{24 d}-\frac {\left (55 a^{3}+624 a^{2} b -990 a \,b^{2}-520 b^{3}\right ) \tan \left (\frac {d x}{2}+\frac {c}{2}\right )^{3}}{24 d}+\frac {\left (215 a^{3}-3984 a^{2} b -3870 a \,b^{2}+3320 b^{3}\right ) \tan \left (\frac {d x}{2}+\frac {c}{2}\right )^{11}}{120 d}-\frac {\left (215 a^{3}+3984 a^{2} b -3870 a \,b^{2}-3320 b^{3}\right ) \tan \left (\frac {d x}{2}+\frac {c}{2}\right )^{5}}{120 d}-\frac {\left (2545 a^{3}-7824 a^{2} b +270 a \,b^{2}-1160 b^{3}\right ) \tan \left (\frac {d x}{2}+\frac {c}{2}\right )^{9}}{120 d}+\frac {\left (2545 a^{3}+7824 a^{2} b +270 a \,b^{2}+1160 b^{3}\right ) \tan \left (\frac {d x}{2}+\frac {c}{2}\right )^{7}}{120 d}}{\left (\tan \left (\frac {d x}{2}+\frac {c}{2}\right )^{2}-1\right )^{2} \left (1+\tan \left (\frac {d x}{2}+\frac {c}{2}\right )^{2}\right )^{6}}-\frac {b \left (6 a^{2}-5 b^{2}\right ) \ln \left (\tan \left (\frac {d x}{2}+\frac {c}{2}\right )-1\right )}{2 d}+\frac {b \left (6 a^{2}-5 b^{2}\right ) \ln \left (\tan \left (\frac {d x}{2}+\frac {c}{2}\right )+1\right )}{2 d}\) | \(616\) |
Input:
int((a+b*sec(d*x+c))^3*sin(d*x+c)^6,x,method=_RETURNVERBOSE)
Output:
1/d*(a^3*(-1/6*(sin(d*x+c)^5+5/4*sin(d*x+c)^3+15/8*sin(d*x+c))*cos(d*x+c)+ 5/16*d*x+5/16*c)+3*a^2*b*(-1/5*sin(d*x+c)^5-1/3*sin(d*x+c)^3-sin(d*x+c)+ln (sec(d*x+c)+tan(d*x+c)))+3*a*b^2*(sin(d*x+c)^7/cos(d*x+c)+(sin(d*x+c)^5+5/ 4*sin(d*x+c)^3+15/8*sin(d*x+c))*cos(d*x+c)-15/8*d*x-15/8*c)+b^3*(1/2*sin(d *x+c)^7/cos(d*x+c)^2+1/2*sin(d*x+c)^5+5/6*sin(d*x+c)^3+5/2*sin(d*x+c)-5/2* ln(sec(d*x+c)+tan(d*x+c))))
Time = 0.11 (sec) , antiderivative size = 241, normalized size of antiderivative = 0.81 \[ \int (a+b \sec (c+d x))^3 \sin ^6(c+d x) \, dx=\frac {75 \, {\left (a^{3} - 18 \, a b^{2}\right )} d x \cos \left (d x + c\right )^{2} + 60 \, {\left (6 \, a^{2} b - 5 \, b^{3}\right )} \cos \left (d x + c\right )^{2} \log \left (\sin \left (d x + c\right ) + 1\right ) - 60 \, {\left (6 \, a^{2} b - 5 \, b^{3}\right )} \cos \left (d x + c\right )^{2} \log \left (-\sin \left (d x + c\right ) + 1\right ) - {\left (40 \, a^{3} \cos \left (d x + c\right )^{7} + 144 \, a^{2} b \cos \left (d x + c\right )^{6} - 10 \, {\left (13 \, a^{3} - 18 \, a b^{2}\right )} \cos \left (d x + c\right )^{5} - 16 \, {\left (33 \, a^{2} b - 5 \, b^{3}\right )} \cos \left (d x + c\right )^{4} - 720 \, a b^{2} \cos \left (d x + c\right ) + 15 \, {\left (11 \, a^{3} - 54 \, a b^{2}\right )} \cos \left (d x + c\right )^{3} - 120 \, b^{3} + 16 \, {\left (69 \, a^{2} b - 35 \, b^{3}\right )} \cos \left (d x + c\right )^{2}\right )} \sin \left (d x + c\right )}{240 \, d \cos \left (d x + c\right )^{2}} \] Input:
integrate((a+b*sec(d*x+c))^3*sin(d*x+c)^6,x, algorithm="fricas")
Output:
1/240*(75*(a^3 - 18*a*b^2)*d*x*cos(d*x + c)^2 + 60*(6*a^2*b - 5*b^3)*cos(d *x + c)^2*log(sin(d*x + c) + 1) - 60*(6*a^2*b - 5*b^3)*cos(d*x + c)^2*log( -sin(d*x + c) + 1) - (40*a^3*cos(d*x + c)^7 + 144*a^2*b*cos(d*x + c)^6 - 1 0*(13*a^3 - 18*a*b^2)*cos(d*x + c)^5 - 16*(33*a^2*b - 5*b^3)*cos(d*x + c)^ 4 - 720*a*b^2*cos(d*x + c) + 15*(11*a^3 - 54*a*b^2)*cos(d*x + c)^3 - 120*b ^3 + 16*(69*a^2*b - 35*b^3)*cos(d*x + c)^2)*sin(d*x + c))/(d*cos(d*x + c)^ 2)
Timed out. \[ \int (a+b \sec (c+d x))^3 \sin ^6(c+d x) \, dx=\text {Timed out} \] Input:
integrate((a+b*sec(d*x+c))**3*sin(d*x+c)**6,x)
Output:
Timed out
Time = 0.11 (sec) , antiderivative size = 242, normalized size of antiderivative = 0.81 \[ \int (a+b \sec (c+d x))^3 \sin ^6(c+d x) \, dx=\frac {5 \, {\left (4 \, \sin \left (2 \, d x + 2 \, c\right )^{3} + 60 \, d x + 60 \, c + 9 \, \sin \left (4 \, d x + 4 \, c\right ) - 48 \, \sin \left (2 \, d x + 2 \, c\right )\right )} a^{3} - 96 \, {\left (6 \, \sin \left (d x + c\right )^{5} + 10 \, \sin \left (d x + c\right )^{3} - 15 \, \log \left (\sin \left (d x + c\right ) + 1\right ) + 15 \, \log \left (\sin \left (d x + c\right ) - 1\right ) + 30 \, \sin \left (d x + c\right )\right )} a^{2} b - 360 \, {\left (15 \, d x + 15 \, c - \frac {9 \, \tan \left (d x + c\right )^{3} + 7 \, \tan \left (d x + c\right )}{\tan \left (d x + c\right )^{4} + 2 \, \tan \left (d x + c\right )^{2} + 1} - 8 \, \tan \left (d x + c\right )\right )} a b^{2} + 80 \, {\left (4 \, \sin \left (d x + c\right )^{3} - \frac {6 \, \sin \left (d x + c\right )}{\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 ) + 24 \, \sin \left (d x + c\right )\right )} b^{3}}{960 \, d} \] Input:
integrate((a+b*sec(d*x+c))^3*sin(d*x+c)^6,x, algorithm="maxima")
Output:
1/960*(5*(4*sin(2*d*x + 2*c)^3 + 60*d*x + 60*c + 9*sin(4*d*x + 4*c) - 48*s in(2*d*x + 2*c))*a^3 - 96*(6*sin(d*x + c)^5 + 10*sin(d*x + c)^3 - 15*log(s in(d*x + c) + 1) + 15*log(sin(d*x + c) - 1) + 30*sin(d*x + c))*a^2*b - 360 *(15*d*x + 15*c - (9*tan(d*x + c)^3 + 7*tan(d*x + c))/(tan(d*x + c)^4 + 2* tan(d*x + c)^2 + 1) - 8*tan(d*x + c))*a*b^2 + 80*(4*sin(d*x + c)^3 - 6*sin (d*x + c)/(sin(d*x + c)^2 - 1) - 15*log(sin(d*x + c) + 1) + 15*log(sin(d*x + c) - 1) + 24*sin(d*x + c))*b^3)/d
Leaf count of result is larger than twice the leaf count of optimal. 563 vs. \(2 (273) = 546\).
Time = 0.24 (sec) , antiderivative size = 563, normalized size of antiderivative = 1.88 \[ \int (a+b \sec (c+d x))^3 \sin ^6(c+d x) \, dx =\text {Too large to display} \] Input:
integrate((a+b*sec(d*x+c))^3*sin(d*x+c)^6,x, algorithm="giac")
Output:
1/240*(75*(a^3 - 18*a*b^2)*(d*x + c) + 120*(6*a^2*b - 5*b^3)*log(abs(tan(1 /2*d*x + 1/2*c) + 1)) - 120*(6*a^2*b - 5*b^3)*log(abs(tan(1/2*d*x + 1/2*c) - 1)) - 240*(6*a*b^2*tan(1/2*d*x + 1/2*c)^3 - b^3*tan(1/2*d*x + 1/2*c)^3 - 6*a*b^2*tan(1/2*d*x + 1/2*c) - b^3*tan(1/2*d*x + 1/2*c))/(tan(1/2*d*x + 1/2*c)^2 - 1)^2 + 2*(75*a^3*tan(1/2*d*x + 1/2*c)^11 - 720*a^2*b*tan(1/2*d* x + 1/2*c)^11 - 630*a*b^2*tan(1/2*d*x + 1/2*c)^11 + 480*b^3*tan(1/2*d*x + 1/2*c)^11 + 425*a^3*tan(1/2*d*x + 1/2*c)^9 - 4560*a^2*b*tan(1/2*d*x + 1/2* c)^9 - 2610*a*b^2*tan(1/2*d*x + 1/2*c)^9 + 2720*b^3*tan(1/2*d*x + 1/2*c)^9 + 990*a^3*tan(1/2*d*x + 1/2*c)^7 - 12384*a^2*b*tan(1/2*d*x + 1/2*c)^7 - 1 980*a*b^2*tan(1/2*d*x + 1/2*c)^7 + 5760*b^3*tan(1/2*d*x + 1/2*c)^7 - 990*a ^3*tan(1/2*d*x + 1/2*c)^5 - 12384*a^2*b*tan(1/2*d*x + 1/2*c)^5 + 1980*a*b^ 2*tan(1/2*d*x + 1/2*c)^5 + 5760*b^3*tan(1/2*d*x + 1/2*c)^5 - 425*a^3*tan(1 /2*d*x + 1/2*c)^3 - 4560*a^2*b*tan(1/2*d*x + 1/2*c)^3 + 2610*a*b^2*tan(1/2 *d*x + 1/2*c)^3 + 2720*b^3*tan(1/2*d*x + 1/2*c)^3 - 75*a^3*tan(1/2*d*x + 1 /2*c) - 720*a^2*b*tan(1/2*d*x + 1/2*c) + 630*a*b^2*tan(1/2*d*x + 1/2*c) + 480*b^3*tan(1/2*d*x + 1/2*c))/(tan(1/2*d*x + 1/2*c)^2 + 1)^6)/d
Time = 11.35 (sec) , antiderivative size = 373, normalized size of antiderivative = 1.25 \[ \int (a+b \sec (c+d x))^3 \sin ^6(c+d x) \, dx=\frac {7\,b^3\,\sin \left (c+d\,x\right )}{3\,d}+\frac {5\,a^3\,\mathrm {atan}\left (\frac {\sin \left (\frac {c}{2}+\frac {d\,x}{2}\right )}{\cos \left (\frac {c}{2}+\frac {d\,x}{2}\right )}\right )}{8\,d}-\frac {5\,b^3\,\mathrm {atanh}\left (\frac {\sin \left (\frac {c}{2}+\frac {d\,x}{2}\right )}{\cos \left (\frac {c}{2}+\frac {d\,x}{2}\right )}\right )}{d}+\frac {13\,a^3\,{\cos \left (c+d\,x\right )}^3\,\sin \left (c+d\,x\right )}{24\,d}-\frac {a^3\,{\cos \left (c+d\,x\right )}^5\,\sin \left (c+d\,x\right )}{6\,d}+\frac {b^3\,\sin \left (c+d\,x\right )}{2\,d\,{\cos \left (c+d\,x\right )}^2}-\frac {b^3\,{\cos \left (c+d\,x\right )}^2\,\sin \left (c+d\,x\right )}{3\,d}-\frac {11\,a^3\,\cos \left (c+d\,x\right )\,\sin \left (c+d\,x\right )}{16\,d}-\frac {23\,a^2\,b\,\sin \left (c+d\,x\right )}{5\,d}-\frac {45\,a\,b^2\,\mathrm {atan}\left (\frac {\sin \left (\frac {c}{2}+\frac {d\,x}{2}\right )}{\cos \left (\frac {c}{2}+\frac {d\,x}{2}\right )}\right )}{4\,d}+\frac {6\,a^2\,b\,\mathrm {atanh}\left (\frac {\sin \left (\frac {c}{2}+\frac {d\,x}{2}\right )}{\cos \left (\frac {c}{2}+\frac {d\,x}{2}\right )}\right )}{d}+\frac {27\,a\,b^2\,\cos \left (c+d\,x\right )\,\sin \left (c+d\,x\right )}{8\,d}+\frac {3\,a\,b^2\,\sin \left (c+d\,x\right )}{d\,\cos \left (c+d\,x\right )}+\frac {11\,a^2\,b\,{\cos \left (c+d\,x\right )}^2\,\sin \left (c+d\,x\right )}{5\,d}-\frac {3\,a\,b^2\,{\cos \left (c+d\,x\right )}^3\,\sin \left (c+d\,x\right )}{4\,d}-\frac {3\,a^2\,b\,{\cos \left (c+d\,x\right )}^4\,\sin \left (c+d\,x\right )}{5\,d} \] Input:
int(sin(c + d*x)^6*(a + b/cos(c + d*x))^3,x)
Output:
(7*b^3*sin(c + d*x))/(3*d) + (5*a^3*atan(sin(c/2 + (d*x)/2)/cos(c/2 + (d*x )/2)))/(8*d) - (5*b^3*atanh(sin(c/2 + (d*x)/2)/cos(c/2 + (d*x)/2)))/d + (1 3*a^3*cos(c + d*x)^3*sin(c + d*x))/(24*d) - (a^3*cos(c + d*x)^5*sin(c + d* x))/(6*d) + (b^3*sin(c + d*x))/(2*d*cos(c + d*x)^2) - (b^3*cos(c + d*x)^2* sin(c + d*x))/(3*d) - (11*a^3*cos(c + d*x)*sin(c + d*x))/(16*d) - (23*a^2* b*sin(c + d*x))/(5*d) - (45*a*b^2*atan(sin(c/2 + (d*x)/2)/cos(c/2 + (d*x)/ 2)))/(4*d) + (6*a^2*b*atanh(sin(c/2 + (d*x)/2)/cos(c/2 + (d*x)/2)))/d + (2 7*a*b^2*cos(c + d*x)*sin(c + d*x))/(8*d) + (3*a*b^2*sin(c + d*x))/(d*cos(c + d*x)) + (11*a^2*b*cos(c + d*x)^2*sin(c + d*x))/(5*d) - (3*a*b^2*cos(c + d*x)^3*sin(c + d*x))/(4*d) - (3*a^2*b*cos(c + d*x)^4*sin(c + d*x))/(5*d)
Time = 0.19 (sec) , antiderivative size = 619, normalized size of antiderivative = 2.07 \[ \int (a+b \sec (c+d x))^3 \sin ^6(c+d x) \, dx =\text {Too large to display} \] Input:
int((a+b*sec(d*x+c))^3*sin(d*x+c)^6,x)
Output:
( - 40*cos(c + d*x)**2*sin(c + d*x)**7*a**3 - 10*cos(c + d*x)**2*sin(c + d *x)**5*a**3 - 25*cos(c + d*x)**2*sin(c + d*x)**3*a**3 + 75*cos(c + d*x)**2 *sin(c + d*x)*a**3 - 720*cos(c + d*x)*log(tan((c + d*x)/2) - 1)*sin(c + d* x)**2*a**2*b + 600*cos(c + d*x)*log(tan((c + d*x)/2) - 1)*sin(c + d*x)**2* b**3 + 720*cos(c + d*x)*log(tan((c + d*x)/2) - 1)*a**2*b - 600*cos(c + d*x )*log(tan((c + d*x)/2) - 1)*b**3 + 720*cos(c + d*x)*log(tan((c + d*x)/2) + 1)*sin(c + d*x)**2*a**2*b - 600*cos(c + d*x)*log(tan((c + d*x)/2) + 1)*si n(c + d*x)**2*b**3 - 720*cos(c + d*x)*log(tan((c + d*x)/2) + 1)*a**2*b + 6 00*cos(c + d*x)*log(tan((c + d*x)/2) + 1)*b**3 - 144*cos(c + d*x)*sin(c + d*x)**7*a**2*b - 96*cos(c + d*x)*sin(c + d*x)**5*a**2*b + 80*cos(c + d*x)* sin(c + d*x)**5*b**3 - 480*cos(c + d*x)*sin(c + d*x)**3*a**2*b + 400*cos(c + d*x)*sin(c + d*x)**3*b**3 + 75*cos(c + d*x)*sin(c + d*x)**2*a**3*d*x - 1350*cos(c + d*x)*sin(c + d*x)**2*a*b**2*c - 1350*cos(c + d*x)*sin(c + d*x )**2*a*b**2*d*x + 720*cos(c + d*x)*sin(c + d*x)*a**2*b - 600*cos(c + d*x)* sin(c + d*x)*b**3 - 75*cos(c + d*x)*a**3*d*x + 1350*cos(c + d*x)*a*b**2*c + 1350*cos(c + d*x)*a*b**2*d*x - 180*sin(c + d*x)**7*a*b**2 - 270*sin(c + d*x)**5*a*b**2 + 1800*sin(c + d*x)**3*a*b**2 - 1350*sin(c + d*x)*a*b**2)/( 240*cos(c + d*x)*d*(sin(c + d*x)**2 - 1))