Integrand size = 28, antiderivative size = 472 \[ \int \sec ^{12}(c+d x) (a \cos (c+d x)+b \sin (c+d x))^5 \, dx=\frac {5 a^5 \text {arctanh}(\sin (c+d x))}{16 d}-\frac {25 a^3 b^2 \text {arctanh}(\sin (c+d x))}{64 d}+\frac {15 a b^4 \text {arctanh}(\sin (c+d x))}{256 d}+\frac {5 a^4 b \sec ^7(c+d x)}{7 d}-\frac {10 a^2 b^3 \sec ^7(c+d x)}{7 d}+\frac {b^5 \sec ^7(c+d x)}{7 d}+\frac {10 a^2 b^3 \sec ^9(c+d x)}{9 d}-\frac {2 b^5 \sec ^9(c+d x)}{9 d}+\frac {b^5 \sec ^{11}(c+d x)}{11 d}+\frac {5 a^5 \sec (c+d x) \tan (c+d x)}{16 d}-\frac {25 a^3 b^2 \sec (c+d x) \tan (c+d x)}{64 d}+\frac {15 a b^4 \sec (c+d x) \tan (c+d x)}{256 d}+\frac {5 a^5 \sec ^3(c+d x) \tan (c+d x)}{24 d}-\frac {25 a^3 b^2 \sec ^3(c+d x) \tan (c+d x)}{96 d}+\frac {5 a b^4 \sec ^3(c+d x) \tan (c+d x)}{128 d}+\frac {a^5 \sec ^5(c+d x) \tan (c+d x)}{6 d}-\frac {5 a^3 b^2 \sec ^5(c+d x) \tan (c+d x)}{24 d}+\frac {a b^4 \sec ^5(c+d x) \tan (c+d x)}{32 d}+\frac {5 a^3 b^2 \sec ^7(c+d x) \tan (c+d x)}{4 d}-\frac {3 a b^4 \sec ^7(c+d x) \tan (c+d x)}{16 d}+\frac {a b^4 \sec ^7(c+d x) \tan ^3(c+d x)}{2 d} \] Output:
5/16*a^5*arctanh(sin(d*x+c))/d-25/64*a^3*b^2*arctanh(sin(d*x+c))/d+15/256* a*b^4*arctanh(sin(d*x+c))/d+5/7*a^4*b*sec(d*x+c)^7/d-10/7*a^2*b^3*sec(d*x+ c)^7/d+1/7*b^5*sec(d*x+c)^7/d+10/9*a^2*b^3*sec(d*x+c)^9/d-2/9*b^5*sec(d*x+ c)^9/d+1/11*b^5*sec(d*x+c)^11/d+5/16*a^5*sec(d*x+c)*tan(d*x+c)/d-25/64*a^3 *b^2*sec(d*x+c)*tan(d*x+c)/d+15/256*a*b^4*sec(d*x+c)*tan(d*x+c)/d+5/24*a^5 *sec(d*x+c)^3*tan(d*x+c)/d-25/96*a^3*b^2*sec(d*x+c)^3*tan(d*x+c)/d+5/128*a *b^4*sec(d*x+c)^3*tan(d*x+c)/d+1/6*a^5*sec(d*x+c)^5*tan(d*x+c)/d-5/24*a^3* b^2*sec(d*x+c)^5*tan(d*x+c)/d+1/32*a*b^4*sec(d*x+c)^5*tan(d*x+c)/d+5/4*a^3 *b^2*sec(d*x+c)^7*tan(d*x+c)/d-3/16*a*b^4*sec(d*x+c)^7*tan(d*x+c)/d+1/2*a* b^4*sec(d*x+c)^7*tan(d*x+c)^3/d
Time = 3.30 (sec) , antiderivative size = 374, normalized size of antiderivative = 0.79 \[ \int \sec ^{12}(c+d x) (a \cos (c+d x)+b \sin (c+d x))^5 \, dx=\frac {-1774080 a \left (16 a^4-20 a^2 b^2+3 b^4\right ) \left (\log \left (\cos \left (\frac {1}{2} (c+d x)\right )-\sin \left (\frac {1}{2} (c+d x)\right )\right )-\log \left (\cos \left (\frac {1}{2} (c+d x)\right )+\sin \left (\frac {1}{2} (c+d x)\right )\right )\right )+\sec ^{11}(c+d x) \left (24330240 a^4 b+1802240 a^2 b^3+3031040 b^5+3604480 \left (9 a^4 b-4 a^2 b^3-b^5\right ) \cos (2 (c+d x))+1622016 \left (5 a^4 b-10 a^2 b^3+b^5\right ) \cos (4 (c+d x))+6623232 a^5 \sin (4 (c+d x))+5913600 a^3 b^2 \sin (4 (c+d x))-6564096 a b^4 \sin (4 (c+d x))+2857008 a^5 \sin (6 (c+d x))-3571260 a^3 b^2 \sin (6 (c+d x))+535689 a b^4 \sin (6 (c+d x))+591360 a^5 \sin (8 (c+d x))-739200 a^3 b^2 \sin (8 (c+d x))+110880 a b^4 \sin (8 (c+d x))+55440 a^5 \sin (10 (c+d x))-69300 a^3 b^2 \sin (10 (c+d x))+10395 a b^4 \sin (10 (c+d x))\right )+13860 a \left (976 a^4+2876 a^2 b^2+1207 b^4\right ) \sec ^9(c+d x) \tan (c+d x)}{90832896 d} \] Input:
Integrate[Sec[c + d*x]^12*(a*Cos[c + d*x] + b*Sin[c + d*x])^5,x]
Output:
(-1774080*a*(16*a^4 - 20*a^2*b^2 + 3*b^4)*(Log[Cos[(c + d*x)/2] - Sin[(c + d*x)/2]] - Log[Cos[(c + d*x)/2] + Sin[(c + d*x)/2]]) + Sec[c + d*x]^11*(2 4330240*a^4*b + 1802240*a^2*b^3 + 3031040*b^5 + 3604480*(9*a^4*b - 4*a^2*b ^3 - b^5)*Cos[2*(c + d*x)] + 1622016*(5*a^4*b - 10*a^2*b^3 + b^5)*Cos[4*(c + d*x)] + 6623232*a^5*Sin[4*(c + d*x)] + 5913600*a^3*b^2*Sin[4*(c + d*x)] - 6564096*a*b^4*Sin[4*(c + d*x)] + 2857008*a^5*Sin[6*(c + d*x)] - 3571260 *a^3*b^2*Sin[6*(c + d*x)] + 535689*a*b^4*Sin[6*(c + d*x)] + 591360*a^5*Sin [8*(c + d*x)] - 739200*a^3*b^2*Sin[8*(c + d*x)] + 110880*a*b^4*Sin[8*(c + d*x)] + 55440*a^5*Sin[10*(c + d*x)] - 69300*a^3*b^2*Sin[10*(c + d*x)] + 10 395*a*b^4*Sin[10*(c + d*x)]) + 13860*a*(976*a^4 + 2876*a^2*b^2 + 1207*b^4) *Sec[c + d*x]^9*Tan[c + d*x])/(90832896*d)
Time = 0.78 (sec) , antiderivative size = 472, normalized size of antiderivative = 1.00, number of steps used = 3, number of rules used = 3, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.107, Rules used = {3042, 3569, 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 \sec ^{12}(c+d x) (a \cos (c+d x)+b \sin (c+d x))^5 \, dx\) |
\(\Big \downarrow \) 3042 |
\(\displaystyle \int \frac {(a \cos (c+d x)+b \sin (c+d x))^5}{\cos (c+d x)^{12}}dx\) |
\(\Big \downarrow \) 3569 |
\(\displaystyle \int \left (a^5 \sec ^7(c+d x)+5 a^4 b \tan (c+d x) \sec ^7(c+d x)+10 a^3 b^2 \tan ^2(c+d x) \sec ^7(c+d x)+10 a^2 b^3 \tan ^3(c+d x) \sec ^7(c+d x)+5 a b^4 \tan ^4(c+d x) \sec ^7(c+d x)+b^5 \tan ^5(c+d x) \sec ^7(c+d x)\right )dx\) |
\(\Big \downarrow \) 2009 |
\(\displaystyle \frac {5 a^5 \text {arctanh}(\sin (c+d x))}{16 d}+\frac {a^5 \tan (c+d x) \sec ^5(c+d x)}{6 d}+\frac {5 a^5 \tan (c+d x) \sec ^3(c+d x)}{24 d}+\frac {5 a^5 \tan (c+d x) \sec (c+d x)}{16 d}+\frac {5 a^4 b \sec ^7(c+d x)}{7 d}-\frac {25 a^3 b^2 \text {arctanh}(\sin (c+d x))}{64 d}+\frac {5 a^3 b^2 \tan (c+d x) \sec ^7(c+d x)}{4 d}-\frac {5 a^3 b^2 \tan (c+d x) \sec ^5(c+d x)}{24 d}-\frac {25 a^3 b^2 \tan (c+d x) \sec ^3(c+d x)}{96 d}-\frac {25 a^3 b^2 \tan (c+d x) \sec (c+d x)}{64 d}+\frac {10 a^2 b^3 \sec ^9(c+d x)}{9 d}-\frac {10 a^2 b^3 \sec ^7(c+d x)}{7 d}+\frac {15 a b^4 \text {arctanh}(\sin (c+d x))}{256 d}+\frac {a b^4 \tan ^3(c+d x) \sec ^7(c+d x)}{2 d}-\frac {3 a b^4 \tan (c+d x) \sec ^7(c+d x)}{16 d}+\frac {a b^4 \tan (c+d x) \sec ^5(c+d x)}{32 d}+\frac {5 a b^4 \tan (c+d x) \sec ^3(c+d x)}{128 d}+\frac {15 a b^4 \tan (c+d x) \sec (c+d x)}{256 d}+\frac {b^5 \sec ^{11}(c+d x)}{11 d}-\frac {2 b^5 \sec ^9(c+d x)}{9 d}+\frac {b^5 \sec ^7(c+d x)}{7 d}\) |
Input:
Int[Sec[c + d*x]^12*(a*Cos[c + d*x] + b*Sin[c + d*x])^5,x]
Output:
(5*a^5*ArcTanh[Sin[c + d*x]])/(16*d) - (25*a^3*b^2*ArcTanh[Sin[c + d*x]])/ (64*d) + (15*a*b^4*ArcTanh[Sin[c + d*x]])/(256*d) + (5*a^4*b*Sec[c + d*x]^ 7)/(7*d) - (10*a^2*b^3*Sec[c + d*x]^7)/(7*d) + (b^5*Sec[c + d*x]^7)/(7*d) + (10*a^2*b^3*Sec[c + d*x]^9)/(9*d) - (2*b^5*Sec[c + d*x]^9)/(9*d) + (b^5* Sec[c + d*x]^11)/(11*d) + (5*a^5*Sec[c + d*x]*Tan[c + d*x])/(16*d) - (25*a ^3*b^2*Sec[c + d*x]*Tan[c + d*x])/(64*d) + (15*a*b^4*Sec[c + d*x]*Tan[c + d*x])/(256*d) + (5*a^5*Sec[c + d*x]^3*Tan[c + d*x])/(24*d) - (25*a^3*b^2*S ec[c + d*x]^3*Tan[c + d*x])/(96*d) + (5*a*b^4*Sec[c + d*x]^3*Tan[c + d*x]) /(128*d) + (a^5*Sec[c + d*x]^5*Tan[c + d*x])/(6*d) - (5*a^3*b^2*Sec[c + d* x]^5*Tan[c + d*x])/(24*d) + (a*b^4*Sec[c + d*x]^5*Tan[c + d*x])/(32*d) + ( 5*a^3*b^2*Sec[c + d*x]^7*Tan[c + d*x])/(4*d) - (3*a*b^4*Sec[c + d*x]^7*Tan [c + d*x])/(16*d) + (a*b^4*Sec[c + d*x]^7*Tan[c + d*x]^3)/(2*d)
Int[cos[(c_.) + (d_.)*(x_)]^(m_.)*(cos[(c_.) + (d_.)*(x_)]*(a_.) + (b_.)*si n[(c_.) + (d_.)*(x_)])^(n_.), x_Symbol] :> Int[ExpandTrig[cos[c + d*x]^m*(a *cos[c + d*x] + b*sin[c + d*x])^n, x], x] /; FreeQ[{a, b, c, d}, x] && Inte gerQ[m] && IGtQ[n, 0]
Time = 2.45 (sec) , antiderivative size = 392, normalized size of antiderivative = 0.83
method | result | size |
parts | \(\frac {a^{5} \left (-\left (-\frac {\sec \left (d x +c \right )^{5}}{6}-\frac {5 \sec \left (d x +c \right )^{3}}{24}-\frac {5 \sec \left (d x +c \right )}{16}\right ) \tan \left (d x +c \right )+\frac {5 \ln \left (\sec \left (d x +c \right )+\tan \left (d x +c \right )\right )}{16}\right )}{d}+\frac {b^{5} \left (\frac {\sec \left (d x +c \right )^{11}}{11}-\frac {2 \sec \left (d x +c \right )^{9}}{9}+\frac {\sec \left (d x +c \right )^{7}}{7}\right )}{d}+\frac {5 a^{4} b \sec \left (d x +c \right )^{7}}{7 d}+\frac {10 a^{3} b^{2} \left (\frac {\sin \left (d x +c \right )^{3}}{8 \cos \left (d x +c \right )^{8}}+\frac {5 \sin \left (d x +c \right )^{3}}{48 \cos \left (d x +c \right )^{6}}+\frac {5 \sin \left (d x +c \right )^{3}}{64 \cos \left (d x +c \right )^{4}}+\frac {5 \sin \left (d x +c \right )^{3}}{128 \cos \left (d x +c \right )^{2}}+\frac {5 \sin \left (d x +c \right )}{128}-\frac {5 \ln \left (\sec \left (d x +c \right )+\tan \left (d x +c \right )\right )}{128}\right )}{d}+\frac {10 a^{2} b^{3} \left (\frac {\sec \left (d x +c \right )^{9}}{9}-\frac {\sec \left (d x +c \right )^{7}}{7}\right )}{d}+\frac {5 b^{4} a \left (\frac {\sin \left (d x +c \right )^{5}}{10 \cos \left (d x +c \right )^{10}}+\frac {\sin \left (d x +c \right )^{5}}{16 \cos \left (d x +c \right )^{8}}+\frac {\sin \left (d x +c \right )^{5}}{32 \cos \left (d x +c \right )^{6}}+\frac {\sin \left (d x +c \right )^{5}}{128 \cos \left (d x +c \right )^{4}}-\frac {\sin \left (d x +c \right )^{5}}{256 \cos \left (d x +c \right )^{2}}-\frac {\sin \left (d x +c \right )^{3}}{256}-\frac {3 \sin \left (d x +c \right )}{256}+\frac {3 \ln \left (\sec \left (d x +c \right )+\tan \left (d x +c \right )\right )}{256}\right )}{d}\) | \(392\) |
derivativedivides | \(\frac {a^{5} \left (-\left (-\frac {\sec \left (d x +c \right )^{5}}{6}-\frac {5 \sec \left (d x +c \right )^{3}}{24}-\frac {5 \sec \left (d x +c \right )}{16}\right ) \tan \left (d x +c \right )+\frac {5 \ln \left (\sec \left (d x +c \right )+\tan \left (d x +c \right )\right )}{16}\right )+\frac {5 a^{4} b}{7 \cos \left (d x +c \right )^{7}}+10 a^{3} b^{2} \left (\frac {\sin \left (d x +c \right )^{3}}{8 \cos \left (d x +c \right )^{8}}+\frac {5 \sin \left (d x +c \right )^{3}}{48 \cos \left (d x +c \right )^{6}}+\frac {5 \sin \left (d x +c \right )^{3}}{64 \cos \left (d x +c \right )^{4}}+\frac {5 \sin \left (d x +c \right )^{3}}{128 \cos \left (d x +c \right )^{2}}+\frac {5 \sin \left (d x +c \right )}{128}-\frac {5 \ln \left (\sec \left (d x +c \right )+\tan \left (d x +c \right )\right )}{128}\right )+10 a^{2} b^{3} \left (\frac {\sin \left (d x +c \right )^{4}}{9 \cos \left (d x +c \right )^{9}}+\frac {5 \sin \left (d x +c \right )^{4}}{63 \cos \left (d x +c \right )^{7}}+\frac {\sin \left (d x +c \right )^{4}}{21 \cos \left (d x +c \right )^{5}}+\frac {\sin \left (d x +c \right )^{4}}{63 \cos \left (d x +c \right )^{3}}-\frac {\sin \left (d x +c \right )^{4}}{63 \cos \left (d x +c \right )}-\frac {\left (2+\sin \left (d x +c \right )^{2}\right ) \cos \left (d x +c \right )}{63}\right )+5 b^{4} a \left (\frac {\sin \left (d x +c \right )^{5}}{10 \cos \left (d x +c \right )^{10}}+\frac {\sin \left (d x +c \right )^{5}}{16 \cos \left (d x +c \right )^{8}}+\frac {\sin \left (d x +c \right )^{5}}{32 \cos \left (d x +c \right )^{6}}+\frac {\sin \left (d x +c \right )^{5}}{128 \cos \left (d x +c \right )^{4}}-\frac {\sin \left (d x +c \right )^{5}}{256 \cos \left (d x +c \right )^{2}}-\frac {\sin \left (d x +c \right )^{3}}{256}-\frac {3 \sin \left (d x +c \right )}{256}+\frac {3 \ln \left (\sec \left (d x +c \right )+\tan \left (d x +c \right )\right )}{256}\right )+b^{5} \left (\frac {\sin \left (d x +c \right )^{6}}{11 \cos \left (d x +c \right )^{11}}+\frac {5 \sin \left (d x +c \right )^{6}}{99 \cos \left (d x +c \right )^{9}}+\frac {5 \sin \left (d x +c \right )^{6}}{231 \cos \left (d x +c \right )^{7}}+\frac {\sin \left (d x +c \right )^{6}}{231 \cos \left (d x +c \right )^{5}}-\frac {\sin \left (d x +c \right )^{6}}{693 \cos \left (d x +c \right )^{3}}+\frac {\sin \left (d x +c \right )^{6}}{231 \cos \left (d x +c \right )}+\frac {\left (\frac {8}{3}+\sin \left (d x +c \right )^{4}+\frac {4 \sin \left (d x +c \right )^{2}}{3}\right ) \cos \left (d x +c \right )}{231}\right )}{d}\) | \(572\) |
default | \(\frac {a^{5} \left (-\left (-\frac {\sec \left (d x +c \right )^{5}}{6}-\frac {5 \sec \left (d x +c \right )^{3}}{24}-\frac {5 \sec \left (d x +c \right )}{16}\right ) \tan \left (d x +c \right )+\frac {5 \ln \left (\sec \left (d x +c \right )+\tan \left (d x +c \right )\right )}{16}\right )+\frac {5 a^{4} b}{7 \cos \left (d x +c \right )^{7}}+10 a^{3} b^{2} \left (\frac {\sin \left (d x +c \right )^{3}}{8 \cos \left (d x +c \right )^{8}}+\frac {5 \sin \left (d x +c \right )^{3}}{48 \cos \left (d x +c \right )^{6}}+\frac {5 \sin \left (d x +c \right )^{3}}{64 \cos \left (d x +c \right )^{4}}+\frac {5 \sin \left (d x +c \right )^{3}}{128 \cos \left (d x +c \right )^{2}}+\frac {5 \sin \left (d x +c \right )}{128}-\frac {5 \ln \left (\sec \left (d x +c \right )+\tan \left (d x +c \right )\right )}{128}\right )+10 a^{2} b^{3} \left (\frac {\sin \left (d x +c \right )^{4}}{9 \cos \left (d x +c \right )^{9}}+\frac {5 \sin \left (d x +c \right )^{4}}{63 \cos \left (d x +c \right )^{7}}+\frac {\sin \left (d x +c \right )^{4}}{21 \cos \left (d x +c \right )^{5}}+\frac {\sin \left (d x +c \right )^{4}}{63 \cos \left (d x +c \right )^{3}}-\frac {\sin \left (d x +c \right )^{4}}{63 \cos \left (d x +c \right )}-\frac {\left (2+\sin \left (d x +c \right )^{2}\right ) \cos \left (d x +c \right )}{63}\right )+5 b^{4} a \left (\frac {\sin \left (d x +c \right )^{5}}{10 \cos \left (d x +c \right )^{10}}+\frac {\sin \left (d x +c \right )^{5}}{16 \cos \left (d x +c \right )^{8}}+\frac {\sin \left (d x +c \right )^{5}}{32 \cos \left (d x +c \right )^{6}}+\frac {\sin \left (d x +c \right )^{5}}{128 \cos \left (d x +c \right )^{4}}-\frac {\sin \left (d x +c \right )^{5}}{256 \cos \left (d x +c \right )^{2}}-\frac {\sin \left (d x +c \right )^{3}}{256}-\frac {3 \sin \left (d x +c \right )}{256}+\frac {3 \ln \left (\sec \left (d x +c \right )+\tan \left (d x +c \right )\right )}{256}\right )+b^{5} \left (\frac {\sin \left (d x +c \right )^{6}}{11 \cos \left (d x +c \right )^{11}}+\frac {5 \sin \left (d x +c \right )^{6}}{99 \cos \left (d x +c \right )^{9}}+\frac {5 \sin \left (d x +c \right )^{6}}{231 \cos \left (d x +c \right )^{7}}+\frac {\sin \left (d x +c \right )^{6}}{231 \cos \left (d x +c \right )^{5}}-\frac {\sin \left (d x +c \right )^{6}}{693 \cos \left (d x +c \right )^{3}}+\frac {\sin \left (d x +c \right )^{6}}{231 \cos \left (d x +c \right )}+\frac {\left (\frac {8}{3}+\sin \left (d x +c \right )^{4}+\frac {4 \sin \left (d x +c \right )^{2}}{3}\right ) \cos \left (d x +c \right )}{231}\right )}{d}\) | \(572\) |
parallelrisch | \(\frac {-9147600 \left (\frac {\cos \left (11 d x +11 c \right )}{165}+\frac {\cos \left (9 d x +9 c \right )}{15}+\frac {\cos \left (7 d x +7 c \right )}{3}+\cos \left (5 d x +5 c \right )+2 \cos \left (3 d x +3 c \right )+\frac {14 \cos \left (d x +c \right )}{5}\right ) \left (a^{4}-\frac {5}{4} a^{2} b^{2}+\frac {3}{16} b^{4}\right ) a \ln \left (\tan \left (\frac {d x}{2}+\frac {c}{2}\right )-1\right )+9147600 \left (\frac {\cos \left (11 d x +11 c \right )}{165}+\frac {\cos \left (9 d x +9 c \right )}{15}+\frac {\cos \left (7 d x +7 c \right )}{3}+\cos \left (5 d x +5 c \right )+2 \cos \left (3 d x +3 c \right )+\frac {14 \cos \left (d x +c \right )}{5}\right ) \left (a^{4}-\frac {5}{4} a^{2} b^{2}+\frac {3}{16} b^{4}\right ) a \ln \left (\tan \left (\frac {d x}{2}+\frac {c}{2}\right )+1\right )+\left (126720 a^{4} b -56320 a^{2} b^{3}+2048 b^{5}\right ) \cos \left (11 d x +11 c \right )+41817600 \left (a^{4}-\frac {4}{9} a^{2} b^{2}+\frac {8}{495} b^{4}\right ) b \cos \left (3 d x +3 c \right )+\left (20908800 a^{4} b -9292800 a^{2} b^{3}+337920 b^{5}\right ) \cos \left (5 d x +5 c \right )+\left (6969600 a^{4} b -3097600 a^{2} b^{3}+112640 b^{5}\right ) \cos \left (7 d x +7 c \right )+\left (1393920 a^{4} b -619520 a^{2} b^{3}+22528 b^{5}\right ) \cos \left (9 d x +9 c \right )+\left (110880 a^{5}-138600 a^{3} b^{2}+20790 b^{4} a \right ) \sin \left (10 d x +10 c \right )+64880640 \left (a^{4}-\frac {4}{9} a^{2} b^{2}-\frac {1}{9} b^{4}\right ) b \cos \left (2 d x +2 c \right )+16220160 \left (a^{4}-2 a^{2} b^{2}+\frac {1}{5} b^{4}\right ) b \cos \left (4 d x +4 c \right )+\left (13527360 a^{5}+39861360 a^{3} b^{2}+16729020 b^{4} a \right ) \sin \left (2 d x +2 c \right )+\left (13246464 a^{5}+11827200 a^{3} b^{2}-13128192 b^{4} a \right ) \sin \left (4 d x +4 c \right )+5714016 \left (a^{4}-\frac {5}{4} a^{2} b^{2}+\frac {3}{16} b^{4}\right ) a \sin \left (6 d x +6 c \right )+\left (1182720 a^{5}-1478400 a^{3} b^{2}+221760 b^{4} a \right ) \sin \left (8 d x +8 c \right )+58544640 \left (\left (a^{4}-\frac {4}{9} a^{2} b^{2}+\frac {8}{495} b^{4}\right ) \cos \left (d x +c \right )+\frac {64 a^{4}}{77}+\frac {128 a^{2} b^{2}}{2079}+\frac {2368 b^{4}}{22869}\right ) b}{177408 d \left (\cos \left (11 d x +11 c \right )+11 \cos \left (9 d x +9 c \right )+55 \cos \left (7 d x +7 c \right )+165 \cos \left (5 d x +5 c \right )+330 \cos \left (3 d x +3 c \right )+462 \cos \left (d x +c \right )\right )}\) | \(661\) |
risch | \(\text {Expression too large to display}\) | \(943\) |
Input:
int(sec(d*x+c)^12*(a*cos(d*x+c)+b*sin(d*x+c))^5,x,method=_RETURNVERBOSE)
Output:
a^5/d*(-(-1/6*sec(d*x+c)^5-5/24*sec(d*x+c)^3-5/16*sec(d*x+c))*tan(d*x+c)+5 /16*ln(sec(d*x+c)+tan(d*x+c)))+b^5/d*(1/11*sec(d*x+c)^11-2/9*sec(d*x+c)^9+ 1/7*sec(d*x+c)^7)+5/7*a^4*b*sec(d*x+c)^7/d+10*a^3*b^2/d*(1/8*sin(d*x+c)^3/ cos(d*x+c)^8+5/48*sin(d*x+c)^3/cos(d*x+c)^6+5/64*sin(d*x+c)^3/cos(d*x+c)^4 +5/128*sin(d*x+c)^3/cos(d*x+c)^2+5/128*sin(d*x+c)-5/128*ln(sec(d*x+c)+tan( d*x+c)))+10*a^2*b^3/d*(1/9*sec(d*x+c)^9-1/7*sec(d*x+c)^7)+5*b^4*a/d*(1/10* sin(d*x+c)^5/cos(d*x+c)^10+1/16*sin(d*x+c)^5/cos(d*x+c)^8+1/32*sin(d*x+c)^ 5/cos(d*x+c)^6+1/128*sin(d*x+c)^5/cos(d*x+c)^4-1/256*sin(d*x+c)^5/cos(d*x+ c)^2-1/256*sin(d*x+c)^3-3/256*sin(d*x+c)+3/256*ln(sec(d*x+c)+tan(d*x+c)))
Time = 0.12 (sec) , antiderivative size = 287, normalized size of antiderivative = 0.61 \[ \int \sec ^{12}(c+d x) (a \cos (c+d x)+b \sin (c+d x))^5 \, dx=\frac {3465 \, {\left (16 \, a^{5} - 20 \, a^{3} b^{2} + 3 \, a b^{4}\right )} \cos \left (d x + c\right )^{11} \log \left (\sin \left (d x + c\right ) + 1\right ) - 3465 \, {\left (16 \, a^{5} - 20 \, a^{3} b^{2} + 3 \, a b^{4}\right )} \cos \left (d x + c\right )^{11} \log \left (-\sin \left (d x + c\right ) + 1\right ) + 32256 \, b^{5} + 50688 \, {\left (5 \, a^{4} b - 10 \, a^{2} b^{3} + b^{5}\right )} \cos \left (d x + c\right )^{4} + 78848 \, {\left (5 \, a^{2} b^{3} - b^{5}\right )} \cos \left (d x + c\right )^{2} + 462 \, {\left (15 \, {\left (16 \, a^{5} - 20 \, a^{3} b^{2} + 3 \, a b^{4}\right )} \cos \left (d x + c\right )^{9} + 10 \, {\left (16 \, a^{5} - 20 \, a^{3} b^{2} + 3 \, a b^{4}\right )} \cos \left (d x + c\right )^{7} + 384 \, a b^{4} \cos \left (d x + c\right ) + 8 \, {\left (16 \, a^{5} - 20 \, a^{3} b^{2} + 3 \, a b^{4}\right )} \cos \left (d x + c\right )^{5} + 48 \, {\left (20 \, a^{3} b^{2} - 11 \, a b^{4}\right )} \cos \left (d x + c\right )^{3}\right )} \sin \left (d x + c\right )}{354816 \, d \cos \left (d x + c\right )^{11}} \] Input:
integrate(sec(d*x+c)^12*(a*cos(d*x+c)+b*sin(d*x+c))^5,x, algorithm="fricas ")
Output:
1/354816*(3465*(16*a^5 - 20*a^3*b^2 + 3*a*b^4)*cos(d*x + c)^11*log(sin(d*x + c) + 1) - 3465*(16*a^5 - 20*a^3*b^2 + 3*a*b^4)*cos(d*x + c)^11*log(-sin (d*x + c) + 1) + 32256*b^5 + 50688*(5*a^4*b - 10*a^2*b^3 + b^5)*cos(d*x + c)^4 + 78848*(5*a^2*b^3 - b^5)*cos(d*x + c)^2 + 462*(15*(16*a^5 - 20*a^3*b ^2 + 3*a*b^4)*cos(d*x + c)^9 + 10*(16*a^5 - 20*a^3*b^2 + 3*a*b^4)*cos(d*x + c)^7 + 384*a*b^4*cos(d*x + c) + 8*(16*a^5 - 20*a^3*b^2 + 3*a*b^4)*cos(d* x + c)^5 + 48*(20*a^3*b^2 - 11*a*b^4)*cos(d*x + c)^3)*sin(d*x + c))/(d*cos (d*x + c)^11)
Timed out. \[ \int \sec ^{12}(c+d x) (a \cos (c+d x)+b \sin (c+d x))^5 \, dx=\text {Timed out} \] Input:
integrate(sec(d*x+c)**12*(a*cos(d*x+c)+b*sin(d*x+c))**5,x)
Output:
Timed out
Time = 0.04 (sec) , antiderivative size = 420, normalized size of antiderivative = 0.89 \[ \int \sec ^{12}(c+d x) (a \cos (c+d x)+b \sin (c+d x))^5 \, dx=-\frac {693 \, a b^{4} {\left (\frac {2 \, {\left (15 \, \sin \left (d x + c\right )^{9} - 70 \, \sin \left (d x + c\right )^{7} + 128 \, \sin \left (d x + c\right )^{5} + 70 \, \sin \left (d x + c\right )^{3} - 15 \, \sin \left (d x + c\right )\right )}}{\sin \left (d x + c\right )^{10} - 5 \, \sin \left (d x + c\right )^{8} + 10 \, \sin \left (d x + c\right )^{6} - 10 \, \sin \left (d x + c\right )^{4} + 5 \, \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 )} - 4620 \, a^{3} b^{2} {\left (\frac {2 \, {\left (15 \, \sin \left (d x + c\right )^{7} - 55 \, \sin \left (d x + c\right )^{5} + 73 \, \sin \left (d x + c\right )^{3} + 15 \, \sin \left (d x + c\right )\right )}}{\sin \left (d x + c\right )^{8} - 4 \, \sin \left (d x + c\right )^{6} + 6 \, \sin \left (d x + c\right )^{4} - 4 \, \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 )} + 3696 \, a^{5} {\left (\frac {2 \, {\left (15 \, \sin \left (d x + c\right )^{5} - 40 \, \sin \left (d x + c\right )^{3} + 33 \, \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 )} - \frac {253440 \, a^{4} b}{\cos \left (d x + c\right )^{7}} + \frac {56320 \, {\left (9 \, \cos \left (d x + c\right )^{2} - 7\right )} a^{2} b^{3}}{\cos \left (d x + c\right )^{9}} - \frac {512 \, {\left (99 \, \cos \left (d x + c\right )^{4} - 154 \, \cos \left (d x + c\right )^{2} + 63\right )} b^{5}}{\cos \left (d x + c\right )^{11}}}{354816 \, d} \] Input:
integrate(sec(d*x+c)^12*(a*cos(d*x+c)+b*sin(d*x+c))^5,x, algorithm="maxima ")
Output:
-1/354816*(693*a*b^4*(2*(15*sin(d*x + c)^9 - 70*sin(d*x + c)^7 + 128*sin(d *x + c)^5 + 70*sin(d*x + c)^3 - 15*sin(d*x + c))/(sin(d*x + c)^10 - 5*sin( d*x + c)^8 + 10*sin(d*x + c)^6 - 10*sin(d*x + c)^4 + 5*sin(d*x + c)^2 - 1) - 15*log(sin(d*x + c) + 1) + 15*log(sin(d*x + c) - 1)) - 4620*a^3*b^2*(2* (15*sin(d*x + c)^7 - 55*sin(d*x + c)^5 + 73*sin(d*x + c)^3 + 15*sin(d*x + c))/(sin(d*x + c)^8 - 4*sin(d*x + c)^6 + 6*sin(d*x + c)^4 - 4*sin(d*x + c) ^2 + 1) - 15*log(sin(d*x + c) + 1) + 15*log(sin(d*x + c) - 1)) + 3696*a^5* (2*(15*sin(d*x + c)^5 - 40*sin(d*x + c)^3 + 33*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)) - 253440*a^4*b/cos(d*x + c)^7 + 56320*(9*cos(d* x + c)^2 - 7)*a^2*b^3/cos(d*x + c)^9 - 512*(99*cos(d*x + c)^4 - 154*cos(d* x + c)^2 + 63)*b^5/cos(d*x + c)^11)/d
Leaf count of result is larger than twice the leaf count of optimal. 1096 vs. \(2 (430) = 860\).
Time = 0.35 (sec) , antiderivative size = 1096, normalized size of antiderivative = 2.32 \[ \int \sec ^{12}(c+d x) (a \cos (c+d x)+b \sin (c+d x))^5 \, dx=\text {Too large to display} \] Input:
integrate(sec(d*x+c)^12*(a*cos(d*x+c)+b*sin(d*x+c))^5,x, algorithm="giac")
Output:
1/177408*(3465*(16*a^5 - 20*a^3*b^2 + 3*a*b^4)*log(abs(tan(1/2*d*x + 1/2*c ) + 1)) - 3465*(16*a^5 - 20*a^3*b^2 + 3*a*b^4)*log(abs(tan(1/2*d*x + 1/2*c ) - 1)) + 2*(121968*a^5*tan(1/2*d*x + 1/2*c)^21 + 69300*a^3*b^2*tan(1/2*d* x + 1/2*c)^21 - 10395*a*b^4*tan(1/2*d*x + 1/2*c)^21 - 887040*a^4*b*tan(1/2 *d*x + 1/2*c)^20 - 591360*a^5*tan(1/2*d*x + 1/2*c)^19 + 1626240*a^3*b^2*ta n(1/2*d*x + 1/2*c)^19 + 110880*a*b^4*tan(1/2*d*x + 1/2*c)^19 + 3548160*a^4 *b*tan(1/2*d*x + 1/2*c)^18 - 3548160*a^2*b^3*tan(1/2*d*x + 1/2*c)^18 + 145 9920*a^5*tan(1/2*d*x + 1/2*c)^17 - 1159620*a^3*b^2*tan(1/2*d*x + 1/2*c)^17 + 2302839*a*b^4*tan(1/2*d*x + 1/2*c)^17 - 9757440*a^4*b*tan(1/2*d*x + 1/2 *c)^16 + 1182720*a^2*b^3*tan(1/2*d*x + 1/2*c)^16 - 946176*b^5*tan(1/2*d*x + 1/2*c)^16 - 2365440*a^5*tan(1/2*d*x + 1/2*c)^15 + 1182720*a^3*b^2*tan(1/ 2*d*x + 1/2*c)^15 + 4790016*a*b^4*tan(1/2*d*x + 1/2*c)^15 + 21288960*a^4*b *tan(1/2*d*x + 1/2*c)^14 - 9461760*a^2*b^3*tan(1/2*d*x + 1/2*c)^14 - 23654 40*b^5*tan(1/2*d*x + 1/2*c)^14 + 2106720*a^5*tan(1/2*d*x + 1/2*c)^13 - 573 8040*a^3*b^2*tan(1/2*d*x + 1/2*c)^13 + 5828130*a*b^4*tan(1/2*d*x + 1/2*c)^ 13 - 30159360*a^4*b*tan(1/2*d*x + 1/2*c)^12 + 18923520*a^2*b^3*tan(1/2*d*x + 1/2*c)^12 - 5203968*b^5*tan(1/2*d*x + 1/2*c)^12 + 28385280*a^4*b*tan(1/ 2*d*x + 1/2*c)^10 - 7096320*a^2*b^3*tan(1/2*d*x + 1/2*c)^10 - 4257792*b^5* tan(1/2*d*x + 1/2*c)^10 - 2106720*a^5*tan(1/2*d*x + 1/2*c)^9 + 5738040*a^3 *b^2*tan(1/2*d*x + 1/2*c)^9 - 5828130*a*b^4*tan(1/2*d*x + 1/2*c)^9 - 20...
Time = 21.86 (sec) , antiderivative size = 831, normalized size of antiderivative = 1.76 \[ \int \sec ^{12}(c+d x) (a \cos (c+d x)+b \sin (c+d x))^5 \, dx=\text {Too large to display} \] Input:
int((a*cos(c + d*x) + b*sin(c + d*x))^5/cos(c + d*x)^12,x)
Output:
(5*a*atanh(tan(c/2 + (d*x)/2))*(16*a^4 + 3*b^4 - 20*a^2*b^2))/(128*d) - (t an(c/2 + (d*x)/2)*((11*a^5)/8 - (15*a*b^4)/128 + (25*a^3*b^2)/32) - tan(c/ 2 + (d*x)/2)^18*(40*a^4*b - 40*a^2*b^3) + tan(c/2 + (d*x)/2)^3*((5*a*b^4)/ 4 - (20*a^5)/3 + (55*a^3*b^2)/3) - tan(c/2 + (d*x)/2)^19*((5*a*b^4)/4 - (2 0*a^5)/3 + (55*a^3*b^2)/3) + tan(c/2 + (d*x)/2)^7*(54*a*b^4 - (80*a^5)/3 + (40*a^3*b^2)/3) - tan(c/2 + (d*x)/2)^15*(54*a*b^4 - (80*a^5)/3 + (40*a^3* b^2)/3) - tan(c/2 + (d*x)/2)^21*((11*a^5)/8 - (15*a*b^4)/128 + (25*a^3*b^2 )/32) + tan(c/2 + (d*x)/2)^5*((3323*a*b^4)/128 + (395*a^5)/24 - (1255*a^3* b^2)/96) - tan(c/2 + (d*x)/2)^17*((3323*a*b^4)/128 + (395*a^5)/24 - (1255* a^3*b^2)/96) + tan(c/2 + (d*x)/2)^9*((4205*a*b^4)/64 + (95*a^5)/4 - (1035* a^3*b^2)/16) - tan(c/2 + (d*x)/2)^13*((4205*a*b^4)/64 + (95*a^5)/4 - (1035 *a^3*b^2)/16) + tan(c/2 + (d*x)/2)^16*(110*a^4*b + (32*b^5)/3 - (40*a^2*b^ 3)/3) + tan(c/2 + (d*x)/2)^10*(48*b^5 - 320*a^4*b + 80*a^2*b^3) - tan(c/2 + (d*x)/2)^2*((40*a^4*b)/7 + (16*b^5)/63 - (440*a^2*b^3)/63) + tan(c/2 + ( d*x)/2)^14*((80*b^5)/3 - 240*a^4*b + (320*a^2*b^3)/3) + tan(c/2 + (d*x)/2) ^4*((270*a^4*b)/7 + (80*b^5)/63 + (320*a^2*b^3)/63) + tan(c/2 + (d*x)/2)^1 2*(340*a^4*b + (176*b^5)/3 - (640*a^2*b^3)/3) + tan(c/2 + (d*x)/2)^6*((48* b^5)/7 - (880*a^4*b)/7 + (640*a^2*b^3)/7) + tan(c/2 + (d*x)/2)^8*((1620*a^ 4*b)/7 + (240*b^5)/7 - (720*a^2*b^3)/7) + (10*a^4*b)/7 + (16*b^5)/693 - (4 0*a^2*b^3)/63 + 10*a^4*b*tan(c/2 + (d*x)/2)^20)/(d*(11*tan(c/2 + (d*x)/...
Time = 0.17 (sec) , antiderivative size = 1928, normalized size of antiderivative = 4.08 \[ \int \sec ^{12}(c+d x) (a \cos (c+d x)+b \sin (c+d x))^5 \, dx =\text {Too large to display} \] Input:
int(sec(d*x+c)^12*(a*cos(d*x+c)+b*sin(d*x+c))^5,x)
Output:
( - 55440*cos(c + d*x)*log(tan((c + d*x)/2) - 1)*sin(c + d*x)**10*a**5 + 6 9300*cos(c + d*x)*log(tan((c + d*x)/2) - 1)*sin(c + d*x)**10*a**3*b**2 - 1 0395*cos(c + d*x)*log(tan((c + d*x)/2) - 1)*sin(c + d*x)**10*a*b**4 + 2772 00*cos(c + d*x)*log(tan((c + d*x)/2) - 1)*sin(c + d*x)**8*a**5 - 346500*co s(c + d*x)*log(tan((c + d*x)/2) - 1)*sin(c + d*x)**8*a**3*b**2 + 51975*cos (c + d*x)*log(tan((c + d*x)/2) - 1)*sin(c + d*x)**8*a*b**4 - 554400*cos(c + d*x)*log(tan((c + d*x)/2) - 1)*sin(c + d*x)**6*a**5 + 693000*cos(c + d*x )*log(tan((c + d*x)/2) - 1)*sin(c + d*x)**6*a**3*b**2 - 103950*cos(c + d*x )*log(tan((c + d*x)/2) - 1)*sin(c + d*x)**6*a*b**4 + 554400*cos(c + d*x)*l og(tan((c + d*x)/2) - 1)*sin(c + d*x)**4*a**5 - 693000*cos(c + d*x)*log(ta n((c + d*x)/2) - 1)*sin(c + d*x)**4*a**3*b**2 + 103950*cos(c + d*x)*log(ta n((c + d*x)/2) - 1)*sin(c + d*x)**4*a*b**4 - 277200*cos(c + d*x)*log(tan(( c + d*x)/2) - 1)*sin(c + d*x)**2*a**5 + 346500*cos(c + d*x)*log(tan((c + d *x)/2) - 1)*sin(c + d*x)**2*a**3*b**2 - 51975*cos(c + d*x)*log(tan((c + d* x)/2) - 1)*sin(c + d*x)**2*a*b**4 + 55440*cos(c + d*x)*log(tan((c + d*x)/2 ) - 1)*a**5 - 69300*cos(c + d*x)*log(tan((c + d*x)/2) - 1)*a**3*b**2 + 103 95*cos(c + d*x)*log(tan((c + d*x)/2) - 1)*a*b**4 + 55440*cos(c + d*x)*log( tan((c + d*x)/2) + 1)*sin(c + d*x)**10*a**5 - 69300*cos(c + d*x)*log(tan(( c + d*x)/2) + 1)*sin(c + d*x)**10*a**3*b**2 + 10395*cos(c + d*x)*log(tan(( c + d*x)/2) + 1)*sin(c + d*x)**10*a*b**4 - 277200*cos(c + d*x)*log(tan(...