Integrand size = 40, antiderivative size = 170 \[ \int \cos ^{\frac {3}{2}}(c+d x) (a+b \cos (c+d x)) \left (B \cos (c+d x)+C \cos ^2(c+d x)\right ) \, dx=\frac {2 (9 a B+7 b C) E\left (\left .\frac {1}{2} (c+d x)\right |2\right )}{15 d}+\frac {10 (b B+a C) \operatorname {EllipticF}\left (\frac {1}{2} (c+d x),2\right )}{21 d}+\frac {10 (b B+a C) \sqrt {\cos (c+d x)} \sin (c+d x)}{21 d}+\frac {2 (9 a B+7 b C) \cos ^{\frac {3}{2}}(c+d x) \sin (c+d x)}{45 d}+\frac {2 (b B+a C) \cos ^{\frac {5}{2}}(c+d x) \sin (c+d x)}{7 d}+\frac {2 b C \cos ^{\frac {7}{2}}(c+d x) \sin (c+d x)}{9 d} \] Output:
2/15*(9*B*a+7*C*b)*EllipticE(sin(1/2*d*x+1/2*c),2^(1/2))/d+10/21*(B*b+C*a) *InverseJacobiAM(1/2*d*x+1/2*c,2^(1/2))/d+10/21*(B*b+C*a)*cos(d*x+c)^(1/2) *sin(d*x+c)/d+2/45*(9*B*a+7*C*b)*cos(d*x+c)^(3/2)*sin(d*x+c)/d+2/7*(B*b+C* a)*cos(d*x+c)^(5/2)*sin(d*x+c)/d+2/9*b*C*cos(d*x+c)^(7/2)*sin(d*x+c)/d
Time = 2.61 (sec) , antiderivative size = 125, normalized size of antiderivative = 0.74 \[ \int \cos ^{\frac {3}{2}}(c+d x) (a+b \cos (c+d x)) \left (B \cos (c+d x)+C \cos ^2(c+d x)\right ) \, dx=\frac {84 (9 a B+7 b C) E\left (\left .\frac {1}{2} (c+d x)\right |2\right )+300 (b B+a C) \operatorname {EllipticF}\left (\frac {1}{2} (c+d x),2\right )+\sqrt {\cos (c+d x)} (7 (36 a B+43 b C) \cos (c+d x)+5 (78 b B+78 a C+18 (b B+a C) \cos (2 (c+d x))+7 b C \cos (3 (c+d x)))) \sin (c+d x)}{630 d} \] Input:
Integrate[Cos[c + d*x]^(3/2)*(a + b*Cos[c + d*x])*(B*Cos[c + d*x] + C*Cos[ c + d*x]^2),x]
Output:
(84*(9*a*B + 7*b*C)*EllipticE[(c + d*x)/2, 2] + 300*(b*B + a*C)*EllipticF[ (c + d*x)/2, 2] + Sqrt[Cos[c + d*x]]*(7*(36*a*B + 43*b*C)*Cos[c + d*x] + 5 *(78*b*B + 78*a*C + 18*(b*B + a*C)*Cos[2*(c + d*x)] + 7*b*C*Cos[3*(c + d*x )]))*Sin[c + d*x])/(630*d)
Time = 0.90 (sec) , antiderivative size = 162, normalized size of antiderivative = 0.95, number of steps used = 16, number of rules used = 16, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.400, Rules used = {3042, 3508, 3042, 3447, 3042, 3502, 27, 3042, 3227, 3042, 3115, 3042, 3115, 3042, 3119, 3120}
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 \cos ^{\frac {3}{2}}(c+d x) (a+b \cos (c+d x)) \left (B \cos (c+d x)+C \cos ^2(c+d x)\right ) \, dx\) |
\(\Big \downarrow \) 3042 |
\(\displaystyle \int \sin \left (c+d x+\frac {\pi }{2}\right )^{3/2} \left (a+b \sin \left (c+d x+\frac {\pi }{2}\right )\right ) \left (B \sin \left (c+d x+\frac {\pi }{2}\right )+C \sin \left (c+d x+\frac {\pi }{2}\right )^2\right )dx\) |
\(\Big \downarrow \) 3508 |
\(\displaystyle \int \cos ^{\frac {5}{2}}(c+d x) (a+b \cos (c+d x)) (B+C \cos (c+d x))dx\) |
\(\Big \downarrow \) 3042 |
\(\displaystyle \int \sin \left (c+d x+\frac {\pi }{2}\right )^{5/2} \left (a+b \sin \left (c+d x+\frac {\pi }{2}\right )\right ) \left (B+C \sin \left (c+d x+\frac {\pi }{2}\right )\right )dx\) |
\(\Big \downarrow \) 3447 |
\(\displaystyle \int \cos ^{\frac {5}{2}}(c+d x) \left ((a C+b B) \cos (c+d x)+a B+b C \cos ^2(c+d x)\right )dx\) |
\(\Big \downarrow \) 3042 |
\(\displaystyle \int \sin \left (c+d x+\frac {\pi }{2}\right )^{5/2} \left ((a C+b B) \sin \left (c+d x+\frac {\pi }{2}\right )+a B+b C \sin \left (c+d x+\frac {\pi }{2}\right )^2\right )dx\) |
\(\Big \downarrow \) 3502 |
\(\displaystyle \frac {2}{9} \int \frac {1}{2} \cos ^{\frac {5}{2}}(c+d x) (9 a B+7 b C+9 (b B+a C) \cos (c+d x))dx+\frac {2 b C \sin (c+d x) \cos ^{\frac {7}{2}}(c+d x)}{9 d}\) |
\(\Big \downarrow \) 27 |
\(\displaystyle \frac {1}{9} \int \cos ^{\frac {5}{2}}(c+d x) (9 a B+7 b C+9 (b B+a C) \cos (c+d x))dx+\frac {2 b C \sin (c+d x) \cos ^{\frac {7}{2}}(c+d x)}{9 d}\) |
\(\Big \downarrow \) 3042 |
\(\displaystyle \frac {1}{9} \int \sin \left (c+d x+\frac {\pi }{2}\right )^{5/2} \left (9 a B+7 b C+9 (b B+a C) \sin \left (c+d x+\frac {\pi }{2}\right )\right )dx+\frac {2 b C \sin (c+d x) \cos ^{\frac {7}{2}}(c+d x)}{9 d}\) |
\(\Big \downarrow \) 3227 |
\(\displaystyle \frac {1}{9} \left ((9 a B+7 b C) \int \cos ^{\frac {5}{2}}(c+d x)dx+9 (a C+b B) \int \cos ^{\frac {7}{2}}(c+d x)dx\right )+\frac {2 b C \sin (c+d x) \cos ^{\frac {7}{2}}(c+d x)}{9 d}\) |
\(\Big \downarrow \) 3042 |
\(\displaystyle \frac {1}{9} \left ((9 a B+7 b C) \int \sin \left (c+d x+\frac {\pi }{2}\right )^{5/2}dx+9 (a C+b B) \int \sin \left (c+d x+\frac {\pi }{2}\right )^{7/2}dx\right )+\frac {2 b C \sin (c+d x) \cos ^{\frac {7}{2}}(c+d x)}{9 d}\) |
\(\Big \downarrow \) 3115 |
\(\displaystyle \frac {1}{9} \left ((9 a B+7 b C) \left (\frac {3}{5} \int \sqrt {\cos (c+d x)}dx+\frac {2 \sin (c+d x) \cos ^{\frac {3}{2}}(c+d x)}{5 d}\right )+9 (a C+b B) \left (\frac {5}{7} \int \cos ^{\frac {3}{2}}(c+d x)dx+\frac {2 \sin (c+d x) \cos ^{\frac {5}{2}}(c+d x)}{7 d}\right )\right )+\frac {2 b C \sin (c+d x) \cos ^{\frac {7}{2}}(c+d x)}{9 d}\) |
\(\Big \downarrow \) 3042 |
\(\displaystyle \frac {1}{9} \left ((9 a B+7 b C) \left (\frac {3}{5} \int \sqrt {\sin \left (c+d x+\frac {\pi }{2}\right )}dx+\frac {2 \sin (c+d x) \cos ^{\frac {3}{2}}(c+d x)}{5 d}\right )+9 (a C+b B) \left (\frac {5}{7} \int \sin \left (c+d x+\frac {\pi }{2}\right )^{3/2}dx+\frac {2 \sin (c+d x) \cos ^{\frac {5}{2}}(c+d x)}{7 d}\right )\right )+\frac {2 b C \sin (c+d x) \cos ^{\frac {7}{2}}(c+d x)}{9 d}\) |
\(\Big \downarrow \) 3115 |
\(\displaystyle \frac {1}{9} \left (9 (a C+b B) \left (\frac {5}{7} \left (\frac {1}{3} \int \frac {1}{\sqrt {\cos (c+d x)}}dx+\frac {2 \sin (c+d x) \sqrt {\cos (c+d x)}}{3 d}\right )+\frac {2 \sin (c+d x) \cos ^{\frac {5}{2}}(c+d x)}{7 d}\right )+(9 a B+7 b C) \left (\frac {3}{5} \int \sqrt {\sin \left (c+d x+\frac {\pi }{2}\right )}dx+\frac {2 \sin (c+d x) \cos ^{\frac {3}{2}}(c+d x)}{5 d}\right )\right )+\frac {2 b C \sin (c+d x) \cos ^{\frac {7}{2}}(c+d x)}{9 d}\) |
\(\Big \downarrow \) 3042 |
\(\displaystyle \frac {1}{9} \left (9 (a C+b B) \left (\frac {5}{7} \left (\frac {1}{3} \int \frac {1}{\sqrt {\sin \left (c+d x+\frac {\pi }{2}\right )}}dx+\frac {2 \sin (c+d x) \sqrt {\cos (c+d x)}}{3 d}\right )+\frac {2 \sin (c+d x) \cos ^{\frac {5}{2}}(c+d x)}{7 d}\right )+(9 a B+7 b C) \left (\frac {3}{5} \int \sqrt {\sin \left (c+d x+\frac {\pi }{2}\right )}dx+\frac {2 \sin (c+d x) \cos ^{\frac {3}{2}}(c+d x)}{5 d}\right )\right )+\frac {2 b C \sin (c+d x) \cos ^{\frac {7}{2}}(c+d x)}{9 d}\) |
\(\Big \downarrow \) 3119 |
\(\displaystyle \frac {1}{9} \left (9 (a C+b B) \left (\frac {5}{7} \left (\frac {1}{3} \int \frac {1}{\sqrt {\sin \left (c+d x+\frac {\pi }{2}\right )}}dx+\frac {2 \sin (c+d x) \sqrt {\cos (c+d x)}}{3 d}\right )+\frac {2 \sin (c+d x) \cos ^{\frac {5}{2}}(c+d x)}{7 d}\right )+(9 a B+7 b C) \left (\frac {6 E\left (\left .\frac {1}{2} (c+d x)\right |2\right )}{5 d}+\frac {2 \sin (c+d x) \cos ^{\frac {3}{2}}(c+d x)}{5 d}\right )\right )+\frac {2 b C \sin (c+d x) \cos ^{\frac {7}{2}}(c+d x)}{9 d}\) |
\(\Big \downarrow \) 3120 |
\(\displaystyle \frac {1}{9} \left (9 (a C+b B) \left (\frac {2 \sin (c+d x) \cos ^{\frac {5}{2}}(c+d x)}{7 d}+\frac {5}{7} \left (\frac {2 \operatorname {EllipticF}\left (\frac {1}{2} (c+d x),2\right )}{3 d}+\frac {2 \sin (c+d x) \sqrt {\cos (c+d x)}}{3 d}\right )\right )+(9 a B+7 b C) \left (\frac {6 E\left (\left .\frac {1}{2} (c+d x)\right |2\right )}{5 d}+\frac {2 \sin (c+d x) \cos ^{\frac {3}{2}}(c+d x)}{5 d}\right )\right )+\frac {2 b C \sin (c+d x) \cos ^{\frac {7}{2}}(c+d x)}{9 d}\) |
Input:
Int[Cos[c + d*x]^(3/2)*(a + b*Cos[c + d*x])*(B*Cos[c + d*x] + C*Cos[c + d* x]^2),x]
Output:
(2*b*C*Cos[c + d*x]^(7/2)*Sin[c + d*x])/(9*d) + ((9*a*B + 7*b*C)*((6*Ellip ticE[(c + d*x)/2, 2])/(5*d) + (2*Cos[c + d*x]^(3/2)*Sin[c + d*x])/(5*d)) + 9*(b*B + a*C)*((2*Cos[c + d*x]^(5/2)*Sin[c + d*x])/(7*d) + (5*((2*Ellipti cF[(c + d*x)/2, 2])/(3*d) + (2*Sqrt[Cos[c + d*x]]*Sin[c + d*x])/(3*d)))/7) )/9
Int[(a_)*(Fx_), x_Symbol] :> Simp[a Int[Fx, x], x] /; FreeQ[a, x] && !Ma tchQ[Fx, (b_)*(Gx_) /; FreeQ[b, x]]
Int[((b_.)*sin[(c_.) + (d_.)*(x_)])^(n_), x_Symbol] :> Simp[(-b)*Cos[c + d* x]*((b*Sin[c + d*x])^(n - 1)/(d*n)), x] + Simp[b^2*((n - 1)/n) Int[(b*Sin [c + d*x])^(n - 2), x], x] /; FreeQ[{b, c, d}, x] && GtQ[n, 1] && IntegerQ[ 2*n]
Int[Sqrt[sin[(c_.) + (d_.)*(x_)]], x_Symbol] :> Simp[(2/d)*EllipticE[(1/2)* (c - Pi/2 + d*x), 2], x] /; FreeQ[{c, d}, x]
Int[1/Sqrt[sin[(c_.) + (d_.)*(x_)]], x_Symbol] :> Simp[(2/d)*EllipticF[(1/2 )*(c - Pi/2 + d*x), 2], x] /; FreeQ[{c, d}, x]
Int[((b_.)*sin[(e_.) + (f_.)*(x_)])^(m_)*((c_) + (d_.)*sin[(e_.) + (f_.)*(x _)]), x_Symbol] :> Simp[c Int[(b*Sin[e + f*x])^m, x], x] + Simp[d/b Int [(b*Sin[e + f*x])^(m + 1), x], x] /; FreeQ[{b, c, d, e, f, m}, x]
Int[((a_.) + (b_.)*sin[(e_.) + (f_.)*(x_)])^(m_.)*((A_.) + (B_.)*sin[(e_.) + (f_.)*(x_)])*((c_.) + (d_.)*sin[(e_.) + (f_.)*(x_)]), x_Symbol] :> Int[(a + b*Sin[e + f*x])^m*(A*c + (B*c + A*d)*Sin[e + f*x] + B*d*Sin[e + f*x]^2), x] /; FreeQ[{a, b, c, d, e, f, A, B, m}, x] && NeQ[b*c - a*d, 0]
Int[((a_.) + (b_.)*sin[(e_.) + (f_.)*(x_)])^(m_.)*((A_.) + (B_.)*sin[(e_.) + (f_.)*(x_)] + (C_.)*sin[(e_.) + (f_.)*(x_)]^2), x_Symbol] :> Simp[(-C)*Co s[e + f*x]*((a + b*Sin[e + f*x])^(m + 1)/(b*f*(m + 2))), x] + Simp[1/(b*(m + 2)) Int[(a + b*Sin[e + f*x])^m*Simp[A*b*(m + 2) + b*C*(m + 1) + (b*B*(m + 2) - a*C)*Sin[e + f*x], x], x], x] /; FreeQ[{a, b, e, f, A, B, C, m}, x] && !LtQ[m, -1]
Int[((a_.) + (b_.)*sin[(e_.) + (f_.)*(x_)])^(m_.)*((c_.) + (d_.)*sin[(e_.) + (f_.)*(x_)])^(n_.)*((A_.) + (B_.)*sin[(e_.) + (f_.)*(x_)] + (C_.)*sin[(e_ .) + (f_.)*(x_)]^2), x_Symbol] :> Simp[1/b^2 Int[(a + b*Sin[e + f*x])^(m + 1)*(c + d*Sin[e + f*x])^n*(b*B - a*C + b*C*Sin[e + f*x]), x], x] /; FreeQ [{a, b, c, d, e, f, A, B, C, m, n}, x] && NeQ[b*c - a*d, 0] && EqQ[A*b^2 - a*b*B + a^2*C, 0]
Leaf count of result is larger than twice the leaf count of optimal. \(450\) vs. \(2(153)=306\).
Time = 23.25 (sec) , antiderivative size = 451, normalized size of antiderivative = 2.65
method | result | size |
default | \(-\frac {2 \sqrt {\left (2 \cos \left (\frac {d x}{2}+\frac {c}{2}\right )^{2}-1\right ) \sin \left (\frac {d x}{2}+\frac {c}{2}\right )^{2}}\, \left (-1120 C b \cos \left (\frac {d x}{2}+\frac {c}{2}\right ) \sin \left (\frac {d x}{2}+\frac {c}{2}\right )^{10}+\left (720 B b +720 C a +2240 C b \right ) \sin \left (\frac {d x}{2}+\frac {c}{2}\right )^{8} \cos \left (\frac {d x}{2}+\frac {c}{2}\right )+\left (-504 B a -1080 B b -1080 C a -2072 C b \right ) \sin \left (\frac {d x}{2}+\frac {c}{2}\right )^{6} \cos \left (\frac {d x}{2}+\frac {c}{2}\right )+\left (504 B a +840 B b +840 C a +952 C b \right ) \sin \left (\frac {d x}{2}+\frac {c}{2}\right )^{4} \cos \left (\frac {d x}{2}+\frac {c}{2}\right )+\left (-126 B a -240 B b -240 C a -168 C b \right ) \sin \left (\frac {d x}{2}+\frac {c}{2}\right )^{2} \cos \left (\frac {d x}{2}+\frac {c}{2}\right )+75 B b \sqrt {\frac {1}{2}-\frac {\cos \left (d x +c \right )}{2}}\, \sqrt {2 \sin \left (\frac {d x}{2}+\frac {c}{2}\right )^{2}-1}\, \operatorname {EllipticF}\left (\cos \left (\frac {d x}{2}+\frac {c}{2}\right ), \sqrt {2}\right )-189 B \sqrt {\frac {1}{2}-\frac {\cos \left (d x +c \right )}{2}}\, \sqrt {2 \sin \left (\frac {d x}{2}+\frac {c}{2}\right )^{2}-1}\, \operatorname {EllipticE}\left (\cos \left (\frac {d x}{2}+\frac {c}{2}\right ), \sqrt {2}\right ) a +75 C a \sqrt {\frac {1}{2}-\frac {\cos \left (d x +c \right )}{2}}\, \sqrt {2 \sin \left (\frac {d x}{2}+\frac {c}{2}\right )^{2}-1}\, \operatorname {EllipticF}\left (\cos \left (\frac {d x}{2}+\frac {c}{2}\right ), \sqrt {2}\right )-147 C \sqrt {\frac {1}{2}-\frac {\cos \left (d x +c \right )}{2}}\, \sqrt {2 \sin \left (\frac {d x}{2}+\frac {c}{2}\right )^{2}-1}\, \operatorname {EllipticE}\left (\cos \left (\frac {d x}{2}+\frac {c}{2}\right ), \sqrt {2}\right ) b \right )}{315 \sqrt {-2 \sin \left (\frac {d x}{2}+\frac {c}{2}\right )^{4}+\sin \left (\frac {d x}{2}+\frac {c}{2}\right )^{2}}\, \sin \left (\frac {d x}{2}+\frac {c}{2}\right ) \sqrt {2 \cos \left (\frac {d x}{2}+\frac {c}{2}\right )^{2}-1}\, d}\) | \(451\) |
parts | \(-\frac {2 \left (B b +C a \right ) \sqrt {\left (2 \cos \left (\frac {d x}{2}+\frac {c}{2}\right )^{2}-1\right ) \sin \left (\frac {d x}{2}+\frac {c}{2}\right )^{2}}\, \left (48 \cos \left (\frac {d x}{2}+\frac {c}{2}\right )^{9}-120 \cos \left (\frac {d x}{2}+\frac {c}{2}\right )^{7}+128 \cos \left (\frac {d x}{2}+\frac {c}{2}\right )^{5}-72 \cos \left (\frac {d x}{2}+\frac {c}{2}\right )^{3}+5 \sqrt {\frac {1}{2}-\frac {\cos \left (d x +c \right )}{2}}\, \sqrt {1-2 \cos \left (\frac {d x}{2}+\frac {c}{2}\right )^{2}}\, \operatorname {EllipticF}\left (\cos \left (\frac {d x}{2}+\frac {c}{2}\right ), \sqrt {2}\right )+16 \cos \left (\frac {d x}{2}+\frac {c}{2}\right )\right )}{21 \sqrt {-2 \sin \left (\frac {d x}{2}+\frac {c}{2}\right )^{4}+\sin \left (\frac {d x}{2}+\frac {c}{2}\right )^{2}}\, \sin \left (\frac {d x}{2}+\frac {c}{2}\right ) \sqrt {2 \cos \left (\frac {d x}{2}+\frac {c}{2}\right )^{2}-1}\, d}-\frac {2 B a \sqrt {\left (2 \cos \left (\frac {d x}{2}+\frac {c}{2}\right )^{2}-1\right ) \sin \left (\frac {d x}{2}+\frac {c}{2}\right )^{2}}\, \left (-8 \cos \left (\frac {d x}{2}+\frac {c}{2}\right ) \sin \left (\frac {d x}{2}+\frac {c}{2}\right )^{6}+8 \sin \left (\frac {d x}{2}+\frac {c}{2}\right )^{4} \cos \left (\frac {d x}{2}+\frac {c}{2}\right )-2 \sin \left (\frac {d x}{2}+\frac {c}{2}\right )^{2} \cos \left (\frac {d x}{2}+\frac {c}{2}\right )-3 \sqrt {\frac {1}{2}-\frac {\cos \left (d x +c \right )}{2}}\, \sqrt {2 \sin \left (\frac {d x}{2}+\frac {c}{2}\right )^{2}-1}\, \operatorname {EllipticE}\left (\cos \left (\frac {d x}{2}+\frac {c}{2}\right ), \sqrt {2}\right )\right )}{5 \sqrt {-2 \sin \left (\frac {d x}{2}+\frac {c}{2}\right )^{4}+\sin \left (\frac {d x}{2}+\frac {c}{2}\right )^{2}}\, \sin \left (\frac {d x}{2}+\frac {c}{2}\right ) \sqrt {2 \cos \left (\frac {d x}{2}+\frac {c}{2}\right )^{2}-1}\, d}-\frac {2 C b \sqrt {\left (2 \cos \left (\frac {d x}{2}+\frac {c}{2}\right )^{2}-1\right ) \sin \left (\frac {d x}{2}+\frac {c}{2}\right )^{2}}\, \left (160 \cos \left (\frac {d x}{2}+\frac {c}{2}\right )^{11}-480 \cos \left (\frac {d x}{2}+\frac {c}{2}\right )^{9}+616 \cos \left (\frac {d x}{2}+\frac {c}{2}\right )^{7}-432 \cos \left (\frac {d x}{2}+\frac {c}{2}\right )^{5}+160 \cos \left (\frac {d x}{2}+\frac {c}{2}\right )^{3}-21 \sqrt {\frac {1}{2}-\frac {\cos \left (d x +c \right )}{2}}\, \sqrt {1-2 \cos \left (\frac {d x}{2}+\frac {c}{2}\right )^{2}}\, \operatorname {EllipticE}\left (\cos \left (\frac {d x}{2}+\frac {c}{2}\right ), \sqrt {2}\right )-24 \cos \left (\frac {d x}{2}+\frac {c}{2}\right )\right )}{45 \sqrt {-2 \sin \left (\frac {d x}{2}+\frac {c}{2}\right )^{4}+\sin \left (\frac {d x}{2}+\frac {c}{2}\right )^{2}}\, \sin \left (\frac {d x}{2}+\frac {c}{2}\right ) \sqrt {2 \cos \left (\frac {d x}{2}+\frac {c}{2}\right )^{2}-1}\, d}\) | \(623\) |
Input:
int(cos(d*x+c)^(3/2)*(a+b*cos(d*x+c))*(B*cos(d*x+c)+C*cos(d*x+c)^2),x,meth od=_RETURNVERBOSE)
Output:
-2/315*((2*cos(1/2*d*x+1/2*c)^2-1)*sin(1/2*d*x+1/2*c)^2)^(1/2)*(-1120*C*b* cos(1/2*d*x+1/2*c)*sin(1/2*d*x+1/2*c)^10+(720*B*b+720*C*a+2240*C*b)*sin(1/ 2*d*x+1/2*c)^8*cos(1/2*d*x+1/2*c)+(-504*B*a-1080*B*b-1080*C*a-2072*C*b)*si n(1/2*d*x+1/2*c)^6*cos(1/2*d*x+1/2*c)+(504*B*a+840*B*b+840*C*a+952*C*b)*si n(1/2*d*x+1/2*c)^4*cos(1/2*d*x+1/2*c)+(-126*B*a-240*B*b-240*C*a-168*C*b)*s in(1/2*d*x+1/2*c)^2*cos(1/2*d*x+1/2*c)+75*B*b*(sin(1/2*d*x+1/2*c)^2)^(1/2) *(2*sin(1/2*d*x+1/2*c)^2-1)^(1/2)*EllipticF(cos(1/2*d*x+1/2*c),2^(1/2))-18 9*B*(sin(1/2*d*x+1/2*c)^2)^(1/2)*(2*sin(1/2*d*x+1/2*c)^2-1)^(1/2)*Elliptic E(cos(1/2*d*x+1/2*c),2^(1/2))*a+75*C*a*(sin(1/2*d*x+1/2*c)^2)^(1/2)*(2*sin (1/2*d*x+1/2*c)^2-1)^(1/2)*EllipticF(cos(1/2*d*x+1/2*c),2^(1/2))-147*C*(si n(1/2*d*x+1/2*c)^2)^(1/2)*(2*sin(1/2*d*x+1/2*c)^2-1)^(1/2)*EllipticE(cos(1 /2*d*x+1/2*c),2^(1/2))*b)/(-2*sin(1/2*d*x+1/2*c)^4+sin(1/2*d*x+1/2*c)^2)^( 1/2)/sin(1/2*d*x+1/2*c)/(2*cos(1/2*d*x+1/2*c)^2-1)^(1/2)/d
Result contains complex when optimal does not.
Time = 0.13 (sec) , antiderivative size = 211, normalized size of antiderivative = 1.24 \[ \int \cos ^{\frac {3}{2}}(c+d x) (a+b \cos (c+d x)) \left (B \cos (c+d x)+C \cos ^2(c+d x)\right ) \, dx=\frac {2 \, {\left (35 \, C b \cos \left (d x + c\right )^{3} + 45 \, {\left (C a + B b\right )} \cos \left (d x + c\right )^{2} + 75 \, C a + 75 \, B b + 7 \, {\left (9 \, B a + 7 \, C b\right )} \cos \left (d x + c\right )\right )} \sqrt {\cos \left (d x + c\right )} \sin \left (d x + c\right ) - 75 \, \sqrt {2} {\left (i \, C a + i \, B b\right )} {\rm weierstrassPInverse}\left (-4, 0, \cos \left (d x + c\right ) + i \, \sin \left (d x + c\right )\right ) - 75 \, \sqrt {2} {\left (-i \, C a - i \, B b\right )} {\rm weierstrassPInverse}\left (-4, 0, \cos \left (d x + c\right ) - i \, \sin \left (d x + c\right )\right ) - 21 \, \sqrt {2} {\left (-9 i \, B a - 7 i \, C b\right )} {\rm weierstrassZeta}\left (-4, 0, {\rm weierstrassPInverse}\left (-4, 0, \cos \left (d x + c\right ) + i \, \sin \left (d x + c\right )\right )\right ) - 21 \, \sqrt {2} {\left (9 i \, B a + 7 i \, C b\right )} {\rm weierstrassZeta}\left (-4, 0, {\rm weierstrassPInverse}\left (-4, 0, \cos \left (d x + c\right ) - i \, \sin \left (d x + c\right )\right )\right )}{315 \, d} \] Input:
integrate(cos(d*x+c)^(3/2)*(a+b*cos(d*x+c))*(B*cos(d*x+c)+C*cos(d*x+c)^2), x, algorithm="fricas")
Output:
1/315*(2*(35*C*b*cos(d*x + c)^3 + 45*(C*a + B*b)*cos(d*x + c)^2 + 75*C*a + 75*B*b + 7*(9*B*a + 7*C*b)*cos(d*x + c))*sqrt(cos(d*x + c))*sin(d*x + c) - 75*sqrt(2)*(I*C*a + I*B*b)*weierstrassPInverse(-4, 0, cos(d*x + c) + I*s in(d*x + c)) - 75*sqrt(2)*(-I*C*a - I*B*b)*weierstrassPInverse(-4, 0, cos( d*x + c) - I*sin(d*x + c)) - 21*sqrt(2)*(-9*I*B*a - 7*I*C*b)*weierstrassZe ta(-4, 0, weierstrassPInverse(-4, 0, cos(d*x + c) + I*sin(d*x + c))) - 21* sqrt(2)*(9*I*B*a + 7*I*C*b)*weierstrassZeta(-4, 0, weierstrassPInverse(-4, 0, cos(d*x + c) - I*sin(d*x + c))))/d
Timed out. \[ \int \cos ^{\frac {3}{2}}(c+d x) (a+b \cos (c+d x)) \left (B \cos (c+d x)+C \cos ^2(c+d x)\right ) \, dx=\text {Timed out} \] Input:
integrate(cos(d*x+c)**(3/2)*(a+b*cos(d*x+c))*(B*cos(d*x+c)+C*cos(d*x+c)**2 ),x)
Output:
Timed out
\[ \int \cos ^{\frac {3}{2}}(c+d x) (a+b \cos (c+d x)) \left (B \cos (c+d x)+C \cos ^2(c+d x)\right ) \, dx=\int { {\left (C \cos \left (d x + c\right )^{2} + B \cos \left (d x + c\right )\right )} {\left (b \cos \left (d x + c\right ) + a\right )} \cos \left (d x + c\right )^{\frac {3}{2}} \,d x } \] Input:
integrate(cos(d*x+c)^(3/2)*(a+b*cos(d*x+c))*(B*cos(d*x+c)+C*cos(d*x+c)^2), x, algorithm="maxima")
Output:
integrate((C*cos(d*x + c)^2 + B*cos(d*x + c))*(b*cos(d*x + c) + a)*cos(d*x + c)^(3/2), x)
\[ \int \cos ^{\frac {3}{2}}(c+d x) (a+b \cos (c+d x)) \left (B \cos (c+d x)+C \cos ^2(c+d x)\right ) \, dx=\int { {\left (C \cos \left (d x + c\right )^{2} + B \cos \left (d x + c\right )\right )} {\left (b \cos \left (d x + c\right ) + a\right )} \cos \left (d x + c\right )^{\frac {3}{2}} \,d x } \] Input:
integrate(cos(d*x+c)^(3/2)*(a+b*cos(d*x+c))*(B*cos(d*x+c)+C*cos(d*x+c)^2), x, algorithm="giac")
Output:
integrate((C*cos(d*x + c)^2 + B*cos(d*x + c))*(b*cos(d*x + c) + a)*cos(d*x + c)^(3/2), x)
Time = 0.56 (sec) , antiderivative size = 177, normalized size of antiderivative = 1.04 \[ \int \cos ^{\frac {3}{2}}(c+d x) (a+b \cos (c+d x)) \left (B \cos (c+d x)+C \cos ^2(c+d x)\right ) \, dx=-\frac {2\,B\,a\,{\cos \left (c+d\,x\right )}^{7/2}\,\sin \left (c+d\,x\right )\,{{}}_2{\mathrm {F}}_1\left (\frac {1}{2},\frac {7}{4};\ \frac {11}{4};\ {\cos \left (c+d\,x\right )}^2\right )}{7\,d\,\sqrt {{\sin \left (c+d\,x\right )}^2}}-\frac {2\,B\,b\,{\cos \left (c+d\,x\right )}^{9/2}\,\sin \left (c+d\,x\right )\,{{}}_2{\mathrm {F}}_1\left (\frac {1}{2},\frac {9}{4};\ \frac {13}{4};\ {\cos \left (c+d\,x\right )}^2\right )}{9\,d\,\sqrt {{\sin \left (c+d\,x\right )}^2}}-\frac {2\,C\,a\,{\cos \left (c+d\,x\right )}^{9/2}\,\sin \left (c+d\,x\right )\,{{}}_2{\mathrm {F}}_1\left (\frac {1}{2},\frac {9}{4};\ \frac {13}{4};\ {\cos \left (c+d\,x\right )}^2\right )}{9\,d\,\sqrt {{\sin \left (c+d\,x\right )}^2}}-\frac {2\,C\,b\,{\cos \left (c+d\,x\right )}^{11/2}\,\sin \left (c+d\,x\right )\,{{}}_2{\mathrm {F}}_1\left (\frac {1}{2},\frac {11}{4};\ \frac {15}{4};\ {\cos \left (c+d\,x\right )}^2\right )}{11\,d\,\sqrt {{\sin \left (c+d\,x\right )}^2}} \] Input:
int(cos(c + d*x)^(3/2)*(B*cos(c + d*x) + C*cos(c + d*x)^2)*(a + b*cos(c + d*x)),x)
Output:
- (2*B*a*cos(c + d*x)^(7/2)*sin(c + d*x)*hypergeom([1/2, 7/4], 11/4, cos(c + d*x)^2))/(7*d*(sin(c + d*x)^2)^(1/2)) - (2*B*b*cos(c + d*x)^(9/2)*sin(c + d*x)*hypergeom([1/2, 9/4], 13/4, cos(c + d*x)^2))/(9*d*(sin(c + d*x)^2) ^(1/2)) - (2*C*a*cos(c + d*x)^(9/2)*sin(c + d*x)*hypergeom([1/2, 9/4], 13/ 4, cos(c + d*x)^2))/(9*d*(sin(c + d*x)^2)^(1/2)) - (2*C*b*cos(c + d*x)^(11 /2)*sin(c + d*x)*hypergeom([1/2, 11/4], 15/4, cos(c + d*x)^2))/(11*d*(sin( c + d*x)^2)^(1/2))
\[ \int \cos ^{\frac {3}{2}}(c+d x) (a+b \cos (c+d x)) \left (B \cos (c+d x)+C \cos ^2(c+d x)\right ) \, dx=\left (\int \sqrt {\cos \left (d x +c \right )}\, \cos \left (d x +c \right )^{4}d x \right ) b c +\left (\int \sqrt {\cos \left (d x +c \right )}\, \cos \left (d x +c \right )^{3}d x \right ) a c +\left (\int \sqrt {\cos \left (d x +c \right )}\, \cos \left (d x +c \right )^{3}d x \right ) b^{2}+\left (\int \sqrt {\cos \left (d x +c \right )}\, \cos \left (d x +c \right )^{2}d x \right ) a b \] Input:
int(cos(d*x+c)^(3/2)*(a+b*cos(d*x+c))*(B*cos(d*x+c)+C*cos(d*x+c)^2),x)
Output:
int(sqrt(cos(c + d*x))*cos(c + d*x)**4,x)*b*c + int(sqrt(cos(c + d*x))*cos (c + d*x)**3,x)*a*c + int(sqrt(cos(c + d*x))*cos(c + d*x)**3,x)*b**2 + int (sqrt(cos(c + d*x))*cos(c + d*x)**2,x)*a*b