Integrand size = 33, antiderivative size = 202 \[ \int \frac {\cos ^3(c+d x) (A+B \cos (c+d x))}{\sqrt {a+a \cos (c+d x)}} \, dx=-\frac {\sqrt {2} (A-B) \text {arctanh}\left (\frac {\sqrt {a} \sin (c+d x)}{\sqrt {2} \sqrt {a+a \cos (c+d x)}}\right )}{\sqrt {a} d}+\frac {4 (49 A-37 B) \sin (c+d x)}{105 d \sqrt {a+a \cos (c+d x)}}+\frac {2 (7 A-B) \cos ^2(c+d x) \sin (c+d x)}{35 d \sqrt {a+a \cos (c+d x)}}+\frac {2 B \cos ^3(c+d x) \sin (c+d x)}{7 d \sqrt {a+a \cos (c+d x)}}-\frac {2 (7 A-31 B) \sqrt {a+a \cos (c+d x)} \sin (c+d x)}{105 a d} \] Output:
-2^(1/2)*(A-B)*arctanh(1/2*a^(1/2)*sin(d*x+c)*2^(1/2)/(a+a*cos(d*x+c))^(1/ 2))/a^(1/2)/d+4/105*(49*A-37*B)*sin(d*x+c)/d/(a+a*cos(d*x+c))^(1/2)+2/35*( 7*A-B)*cos(d*x+c)^2*sin(d*x+c)/d/(a+a*cos(d*x+c))^(1/2)+2/7*B*cos(d*x+c)^3 *sin(d*x+c)/d/(a+a*cos(d*x+c))^(1/2)-2/105*(7*A-31*B)*(a+a*cos(d*x+c))^(1/ 2)*sin(d*x+c)/a/d
Time = 0.77 (sec) , antiderivative size = 111, normalized size of antiderivative = 0.55 \[ \int \frac {\cos ^3(c+d x) (A+B \cos (c+d x))}{\sqrt {a+a \cos (c+d x)}} \, dx=\frac {\cos \left (\frac {1}{2} (c+d x)\right ) \left (-420 (A-B) \text {arctanh}\left (\sin \left (\frac {1}{2} (c+d x)\right )\right )+2 (406 A-178 B+(-28 A+169 B) \cos (c+d x)+6 (7 A-B) \cos (2 (c+d x))+15 B \cos (3 (c+d x))) \sin \left (\frac {1}{2} (c+d x)\right )\right )}{210 d \sqrt {a (1+\cos (c+d x))}} \] Input:
Integrate[(Cos[c + d*x]^3*(A + B*Cos[c + d*x]))/Sqrt[a + a*Cos[c + d*x]],x ]
Output:
(Cos[(c + d*x)/2]*(-420*(A - B)*ArcTanh[Sin[(c + d*x)/2]] + 2*(406*A - 178 *B + (-28*A + 169*B)*Cos[c + d*x] + 6*(7*A - B)*Cos[2*(c + d*x)] + 15*B*Co s[3*(c + d*x)])*Sin[(c + d*x)/2]))/(210*d*Sqrt[a*(1 + Cos[c + d*x])])
Time = 1.28 (sec) , antiderivative size = 226, normalized size of antiderivative = 1.12, number of steps used = 17, number of rules used = 16, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.485, Rules used = {3042, 3462, 27, 3042, 3462, 27, 3042, 3447, 3042, 3502, 27, 3042, 3230, 3042, 3128, 219}
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 \frac {\cos ^3(c+d x) (A+B \cos (c+d x))}{\sqrt {a \cos (c+d x)+a}} \, dx\) |
\(\Big \downarrow \) 3042 |
\(\displaystyle \int \frac {\sin \left (c+d x+\frac {\pi }{2}\right )^3 \left (A+B \sin \left (c+d x+\frac {\pi }{2}\right )\right )}{\sqrt {a \sin \left (c+d x+\frac {\pi }{2}\right )+a}}dx\) |
\(\Big \downarrow \) 3462 |
\(\displaystyle \frac {2 \int \frac {\cos ^2(c+d x) (6 a B+a (7 A-B) \cos (c+d x))}{2 \sqrt {\cos (c+d x) a+a}}dx}{7 a}+\frac {2 B \sin (c+d x) \cos ^3(c+d x)}{7 d \sqrt {a \cos (c+d x)+a}}\) |
\(\Big \downarrow \) 27 |
\(\displaystyle \frac {\int \frac {\cos ^2(c+d x) (6 a B+a (7 A-B) \cos (c+d x))}{\sqrt {\cos (c+d x) a+a}}dx}{7 a}+\frac {2 B \sin (c+d x) \cos ^3(c+d x)}{7 d \sqrt {a \cos (c+d x)+a}}\) |
\(\Big \downarrow \) 3042 |
\(\displaystyle \frac {\int \frac {\sin \left (c+d x+\frac {\pi }{2}\right )^2 \left (6 a B+a (7 A-B) \sin \left (c+d x+\frac {\pi }{2}\right )\right )}{\sqrt {\sin \left (c+d x+\frac {\pi }{2}\right ) a+a}}dx}{7 a}+\frac {2 B \sin (c+d x) \cos ^3(c+d x)}{7 d \sqrt {a \cos (c+d x)+a}}\) |
\(\Big \downarrow \) 3462 |
\(\displaystyle \frac {\frac {2 \int \frac {\cos (c+d x) \left (4 a^2 (7 A-B)-a^2 (7 A-31 B) \cos (c+d x)\right )}{2 \sqrt {\cos (c+d x) a+a}}dx}{5 a}+\frac {2 a (7 A-B) \sin (c+d x) \cos ^2(c+d x)}{5 d \sqrt {a \cos (c+d x)+a}}}{7 a}+\frac {2 B \sin (c+d x) \cos ^3(c+d x)}{7 d \sqrt {a \cos (c+d x)+a}}\) |
\(\Big \downarrow \) 27 |
\(\displaystyle \frac {\frac {\int \frac {\cos (c+d x) \left (4 a^2 (7 A-B)-a^2 (7 A-31 B) \cos (c+d x)\right )}{\sqrt {\cos (c+d x) a+a}}dx}{5 a}+\frac {2 a (7 A-B) \sin (c+d x) \cos ^2(c+d x)}{5 d \sqrt {a \cos (c+d x)+a}}}{7 a}+\frac {2 B \sin (c+d x) \cos ^3(c+d x)}{7 d \sqrt {a \cos (c+d x)+a}}\) |
\(\Big \downarrow \) 3042 |
\(\displaystyle \frac {\frac {\int \frac {\sin \left (c+d x+\frac {\pi }{2}\right ) \left (4 a^2 (7 A-B)-a^2 (7 A-31 B) \sin \left (c+d x+\frac {\pi }{2}\right )\right )}{\sqrt {\sin \left (c+d x+\frac {\pi }{2}\right ) a+a}}dx}{5 a}+\frac {2 a (7 A-B) \sin (c+d x) \cos ^2(c+d x)}{5 d \sqrt {a \cos (c+d x)+a}}}{7 a}+\frac {2 B \sin (c+d x) \cos ^3(c+d x)}{7 d \sqrt {a \cos (c+d x)+a}}\) |
\(\Big \downarrow \) 3447 |
\(\displaystyle \frac {\frac {\int \frac {4 a^2 (7 A-B) \cos (c+d x)-a^2 (7 A-31 B) \cos ^2(c+d x)}{\sqrt {\cos (c+d x) a+a}}dx}{5 a}+\frac {2 a (7 A-B) \sin (c+d x) \cos ^2(c+d x)}{5 d \sqrt {a \cos (c+d x)+a}}}{7 a}+\frac {2 B \sin (c+d x) \cos ^3(c+d x)}{7 d \sqrt {a \cos (c+d x)+a}}\) |
\(\Big \downarrow \) 3042 |
\(\displaystyle \frac {\frac {\int \frac {4 a^2 (7 A-B) \sin \left (c+d x+\frac {\pi }{2}\right )-a^2 (7 A-31 B) \sin \left (c+d x+\frac {\pi }{2}\right )^2}{\sqrt {\sin \left (c+d x+\frac {\pi }{2}\right ) a+a}}dx}{5 a}+\frac {2 a (7 A-B) \sin (c+d x) \cos ^2(c+d x)}{5 d \sqrt {a \cos (c+d x)+a}}}{7 a}+\frac {2 B \sin (c+d x) \cos ^3(c+d x)}{7 d \sqrt {a \cos (c+d x)+a}}\) |
\(\Big \downarrow \) 3502 |
\(\displaystyle \frac {\frac {\frac {2 \int -\frac {a^3 (7 A-31 B)-2 a^3 (49 A-37 B) \cos (c+d x)}{2 \sqrt {\cos (c+d x) a+a}}dx}{3 a}-\frac {2 a (7 A-31 B) \sin (c+d x) \sqrt {a \cos (c+d x)+a}}{3 d}}{5 a}+\frac {2 a (7 A-B) \sin (c+d x) \cos ^2(c+d x)}{5 d \sqrt {a \cos (c+d x)+a}}}{7 a}+\frac {2 B \sin (c+d x) \cos ^3(c+d x)}{7 d \sqrt {a \cos (c+d x)+a}}\) |
\(\Big \downarrow \) 27 |
\(\displaystyle \frac {\frac {-\frac {\int \frac {a^3 (7 A-31 B)-2 a^3 (49 A-37 B) \cos (c+d x)}{\sqrt {\cos (c+d x) a+a}}dx}{3 a}-\frac {2 a (7 A-31 B) \sin (c+d x) \sqrt {a \cos (c+d x)+a}}{3 d}}{5 a}+\frac {2 a (7 A-B) \sin (c+d x) \cos ^2(c+d x)}{5 d \sqrt {a \cos (c+d x)+a}}}{7 a}+\frac {2 B \sin (c+d x) \cos ^3(c+d x)}{7 d \sqrt {a \cos (c+d x)+a}}\) |
\(\Big \downarrow \) 3042 |
\(\displaystyle \frac {\frac {-\frac {\int \frac {a^3 (7 A-31 B)-2 a^3 (49 A-37 B) \sin \left (c+d x+\frac {\pi }{2}\right )}{\sqrt {\sin \left (c+d x+\frac {\pi }{2}\right ) a+a}}dx}{3 a}-\frac {2 a (7 A-31 B) \sin (c+d x) \sqrt {a \cos (c+d x)+a}}{3 d}}{5 a}+\frac {2 a (7 A-B) \sin (c+d x) \cos ^2(c+d x)}{5 d \sqrt {a \cos (c+d x)+a}}}{7 a}+\frac {2 B \sin (c+d x) \cos ^3(c+d x)}{7 d \sqrt {a \cos (c+d x)+a}}\) |
\(\Big \downarrow \) 3230 |
\(\displaystyle \frac {\frac {-\frac {105 a^3 (A-B) \int \frac {1}{\sqrt {\cos (c+d x) a+a}}dx-\frac {4 a^3 (49 A-37 B) \sin (c+d x)}{d \sqrt {a \cos (c+d x)+a}}}{3 a}-\frac {2 a (7 A-31 B) \sin (c+d x) \sqrt {a \cos (c+d x)+a}}{3 d}}{5 a}+\frac {2 a (7 A-B) \sin (c+d x) \cos ^2(c+d x)}{5 d \sqrt {a \cos (c+d x)+a}}}{7 a}+\frac {2 B \sin (c+d x) \cos ^3(c+d x)}{7 d \sqrt {a \cos (c+d x)+a}}\) |
\(\Big \downarrow \) 3042 |
\(\displaystyle \frac {\frac {-\frac {105 a^3 (A-B) \int \frac {1}{\sqrt {\sin \left (c+d x+\frac {\pi }{2}\right ) a+a}}dx-\frac {4 a^3 (49 A-37 B) \sin (c+d x)}{d \sqrt {a \cos (c+d x)+a}}}{3 a}-\frac {2 a (7 A-31 B) \sin (c+d x) \sqrt {a \cos (c+d x)+a}}{3 d}}{5 a}+\frac {2 a (7 A-B) \sin (c+d x) \cos ^2(c+d x)}{5 d \sqrt {a \cos (c+d x)+a}}}{7 a}+\frac {2 B \sin (c+d x) \cos ^3(c+d x)}{7 d \sqrt {a \cos (c+d x)+a}}\) |
\(\Big \downarrow \) 3128 |
\(\displaystyle \frac {\frac {-\frac {-\frac {210 a^3 (A-B) \int \frac {1}{2 a-\frac {a^2 \sin ^2(c+d x)}{\cos (c+d x) a+a}}d\left (-\frac {a \sin (c+d x)}{\sqrt {\cos (c+d x) a+a}}\right )}{d}-\frac {4 a^3 (49 A-37 B) \sin (c+d x)}{d \sqrt {a \cos (c+d x)+a}}}{3 a}-\frac {2 a (7 A-31 B) \sin (c+d x) \sqrt {a \cos (c+d x)+a}}{3 d}}{5 a}+\frac {2 a (7 A-B) \sin (c+d x) \cos ^2(c+d x)}{5 d \sqrt {a \cos (c+d x)+a}}}{7 a}+\frac {2 B \sin (c+d x) \cos ^3(c+d x)}{7 d \sqrt {a \cos (c+d x)+a}}\) |
\(\Big \downarrow \) 219 |
\(\displaystyle \frac {\frac {-\frac {\frac {105 \sqrt {2} a^{5/2} (A-B) \text {arctanh}\left (\frac {\sqrt {a} \sin (c+d x)}{\sqrt {2} \sqrt {a \cos (c+d x)+a}}\right )}{d}-\frac {4 a^3 (49 A-37 B) \sin (c+d x)}{d \sqrt {a \cos (c+d x)+a}}}{3 a}-\frac {2 a (7 A-31 B) \sin (c+d x) \sqrt {a \cos (c+d x)+a}}{3 d}}{5 a}+\frac {2 a (7 A-B) \sin (c+d x) \cos ^2(c+d x)}{5 d \sqrt {a \cos (c+d x)+a}}}{7 a}+\frac {2 B \sin (c+d x) \cos ^3(c+d x)}{7 d \sqrt {a \cos (c+d x)+a}}\) |
Input:
Int[(Cos[c + d*x]^3*(A + B*Cos[c + d*x]))/Sqrt[a + a*Cos[c + d*x]],x]
Output:
(2*B*Cos[c + d*x]^3*Sin[c + d*x])/(7*d*Sqrt[a + a*Cos[c + d*x]]) + ((2*a*( 7*A - B)*Cos[c + d*x]^2*Sin[c + d*x])/(5*d*Sqrt[a + a*Cos[c + d*x]]) + ((- 2*a*(7*A - 31*B)*Sqrt[a + a*Cos[c + d*x]]*Sin[c + d*x])/(3*d) - ((105*Sqrt [2]*a^(5/2)*(A - B)*ArcTanh[(Sqrt[a]*Sin[c + d*x])/(Sqrt[2]*Sqrt[a + a*Cos [c + d*x]])])/d - (4*a^3*(49*A - 37*B)*Sin[c + d*x])/(d*Sqrt[a + a*Cos[c + d*x]]))/(3*a))/(5*a))/(7*a)
Int[(a_)*(Fx_), x_Symbol] :> Simp[a Int[Fx, x], x] /; FreeQ[a, x] && !Ma tchQ[Fx, (b_)*(Gx_) /; FreeQ[b, x]]
Int[((a_) + (b_.)*(x_)^2)^(-1), x_Symbol] :> Simp[(1/(Rt[a, 2]*Rt[-b, 2]))* ArcTanh[Rt[-b, 2]*(x/Rt[a, 2])], x] /; FreeQ[{a, b}, x] && NegQ[a/b] && (Gt Q[a, 0] || LtQ[b, 0])
Int[1/Sqrt[(a_) + (b_.)*sin[(c_.) + (d_.)*(x_)]], x_Symbol] :> Simp[-2/d Subst[Int[1/(2*a - x^2), x], x, b*(Cos[c + d*x]/Sqrt[a + b*Sin[c + d*x]])], x] /; FreeQ[{a, b, c, d}, x] && EqQ[a^2 - b^2, 0]
Int[((a_) + (b_.)*sin[(e_.) + (f_.)*(x_)])^(m_)*((c_.) + (d_.)*sin[(e_.) + (f_.)*(x_)]), x_Symbol] :> Simp[(-d)*Cos[e + f*x]*((a + b*Sin[e + f*x])^m/( f*(m + 1))), x] + Simp[(a*d*m + b*c*(m + 1))/(b*(m + 1)) Int[(a + b*Sin[e + f*x])^m, x], x] /; FreeQ[{a, b, c, d, e, f, m}, x] && NeQ[b*c - a*d, 0] && EqQ[a^2 - b^2, 0] && !LtQ[m, -2^(-1)]
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_.) + (d_.)*sin[(e_.) + (f_.)*(x_)])^(n_), x_Symbol] :> Sim p[(-B)*Cos[e + f*x]*(a + b*Sin[e + f*x])^m*((c + d*Sin[e + f*x])^n/(f*(m + n + 1))), x] + Simp[1/(b*(m + n + 1)) Int[(a + b*Sin[e + f*x])^m*(c + d*S in[e + f*x])^(n - 1)*Simp[A*b*c*(m + n + 1) + B*(a*c*m + b*d*n) + (A*b*d*(m + n + 1) + B*(a*d*m + b*c*n))*Sin[e + f*x], x], x], x] /; FreeQ[{a, b, c, d, e, f, A, B, m}, x] && NeQ[b*c - a*d, 0] && EqQ[a^2 - b^2, 0] && NeQ[c^2 - d^2, 0] && GtQ[n, 0] && (IntegerQ[n] || EqQ[m + 1/2, 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]
Time = 2.74 (sec) , antiderivative size = 281, normalized size of antiderivative = 1.39
method | result | size |
default | \(\frac {\cos \left (\frac {d x}{2}+\frac {c}{2}\right ) \sqrt {a \sin \left (\frac {d x}{2}+\frac {c}{2}\right )^{2}}\, \left (-240 B \sqrt {2}\, \sqrt {a \sin \left (\frac {d x}{2}+\frac {c}{2}\right )^{2}}\, \sqrt {a}\, \sin \left (\frac {d x}{2}+\frac {c}{2}\right )^{6}+168 \sqrt {a}\, \sqrt {a \sin \left (\frac {d x}{2}+\frac {c}{2}\right )^{2}}\, \sqrt {2}\, \left (A +2 B \right ) \sin \left (\frac {d x}{2}+\frac {c}{2}\right )^{4}-140 \sqrt {a}\, \sqrt {a \sin \left (\frac {d x}{2}+\frac {c}{2}\right )^{2}}\, \sqrt {2}\, \left (A +2 B \right ) \sin \left (\frac {d x}{2}+\frac {c}{2}\right )^{2}-105 \sqrt {2}\, \ln \left (\frac {4 \sqrt {a}\, \sqrt {a \sin \left (\frac {d x}{2}+\frac {c}{2}\right )^{2}}+4 a}{\cos \left (\frac {d x}{2}+\frac {c}{2}\right )}\right ) a A +105 \sqrt {2}\, \ln \left (\frac {4 \sqrt {a}\, \sqrt {a \sin \left (\frac {d x}{2}+\frac {c}{2}\right )^{2}}+4 a}{\cos \left (\frac {d x}{2}+\frac {c}{2}\right )}\right ) a B +210 A \sqrt {a}\, \sqrt {2}\, \sqrt {a \sin \left (\frac {d x}{2}+\frac {c}{2}\right )^{2}}\right )}{105 a^{\frac {3}{2}} \sin \left (\frac {d x}{2}+\frac {c}{2}\right ) \sqrt {a \cos \left (\frac {d x}{2}+\frac {c}{2}\right )^{2}}\, d}\) | \(281\) |
parts | \(\frac {A \cos \left (\frac {d x}{2}+\frac {c}{2}\right ) \sqrt {2}\, \sqrt {a \sin \left (\frac {d x}{2}+\frac {c}{2}\right )^{2}}\, \left (24 \sqrt {a}\, \sqrt {a \sin \left (\frac {d x}{2}+\frac {c}{2}\right )^{2}}\, \sin \left (\frac {d x}{2}+\frac {c}{2}\right )^{4}-20 \sqrt {a}\, \sqrt {a \sin \left (\frac {d x}{2}+\frac {c}{2}\right )^{2}}\, \sin \left (\frac {d x}{2}+\frac {c}{2}\right )^{2}+30 \sqrt {a}\, \sqrt {a \sin \left (\frac {d x}{2}+\frac {c}{2}\right )^{2}}-15 \ln \left (\frac {4 \sqrt {a}\, \sqrt {a \sin \left (\frac {d x}{2}+\frac {c}{2}\right )^{2}}+4 a}{\cos \left (\frac {d x}{2}+\frac {c}{2}\right )}\right ) a \right )}{15 a^{\frac {3}{2}} \sin \left (\frac {d x}{2}+\frac {c}{2}\right ) \sqrt {a \cos \left (\frac {d x}{2}+\frac {c}{2}\right )^{2}}\, d}-\frac {B \cos \left (\frac {d x}{2}+\frac {c}{2}\right ) \sqrt {2}\, \sqrt {a \sin \left (\frac {d x}{2}+\frac {c}{2}\right )^{2}}\, \left (240 \sqrt {a}\, \sqrt {a \sin \left (\frac {d x}{2}+\frac {c}{2}\right )^{2}}\, \sin \left (\frac {d x}{2}+\frac {c}{2}\right )^{6}-336 \sqrt {a}\, \sqrt {a \sin \left (\frac {d x}{2}+\frac {c}{2}\right )^{2}}\, \sin \left (\frac {d x}{2}+\frac {c}{2}\right )^{4}+280 \sqrt {a}\, \sqrt {a \sin \left (\frac {d x}{2}+\frac {c}{2}\right )^{2}}\, \sin \left (\frac {d x}{2}+\frac {c}{2}\right )^{2}-105 \ln \left (\frac {4 \sqrt {a}\, \sqrt {a \sin \left (\frac {d x}{2}+\frac {c}{2}\right )^{2}}+4 a}{\cos \left (\frac {d x}{2}+\frac {c}{2}\right )}\right ) a \right )}{105 a^{\frac {3}{2}} \sin \left (\frac {d x}{2}+\frac {c}{2}\right ) \sqrt {a \cos \left (\frac {d x}{2}+\frac {c}{2}\right )^{2}}\, d}\) | \(379\) |
Input:
int(cos(d*x+c)^3*(A+B*cos(d*x+c))/(a+a*cos(d*x+c))^(1/2),x,method=_RETURNV ERBOSE)
Output:
1/105*cos(1/2*d*x+1/2*c)*(a*sin(1/2*d*x+1/2*c)^2)^(1/2)*(-240*B*2^(1/2)*(a *sin(1/2*d*x+1/2*c)^2)^(1/2)*a^(1/2)*sin(1/2*d*x+1/2*c)^6+168*a^(1/2)*(a*s in(1/2*d*x+1/2*c)^2)^(1/2)*2^(1/2)*(A+2*B)*sin(1/2*d*x+1/2*c)^4-140*a^(1/2 )*(a*sin(1/2*d*x+1/2*c)^2)^(1/2)*2^(1/2)*(A+2*B)*sin(1/2*d*x+1/2*c)^2-105* 2^(1/2)*ln(4*(a^(1/2)*(a*sin(1/2*d*x+1/2*c)^2)^(1/2)+a)/cos(1/2*d*x+1/2*c) )*a*A+105*2^(1/2)*ln(4*(a^(1/2)*(a*sin(1/2*d*x+1/2*c)^2)^(1/2)+a)/cos(1/2* d*x+1/2*c))*a*B+210*A*a^(1/2)*2^(1/2)*(a*sin(1/2*d*x+1/2*c)^2)^(1/2))/a^(3 /2)/sin(1/2*d*x+1/2*c)/(a*cos(1/2*d*x+1/2*c)^2)^(1/2)/d
Time = 0.09 (sec) , antiderivative size = 184, normalized size of antiderivative = 0.91 \[ \int \frac {\cos ^3(c+d x) (A+B \cos (c+d x))}{\sqrt {a+a \cos (c+d x)}} \, dx=\frac {4 \, {\left (15 \, B \cos \left (d x + c\right )^{3} + 3 \, {\left (7 \, A - B\right )} \cos \left (d x + c\right )^{2} - {\left (7 \, A - 31 \, B\right )} \cos \left (d x + c\right ) + 91 \, A - 43 \, B\right )} \sqrt {a \cos \left (d x + c\right ) + a} \sin \left (d x + c\right ) - \frac {105 \, \sqrt {2} {\left ({\left (A - B\right )} a \cos \left (d x + c\right ) + {\left (A - B\right )} a\right )} \log \left (-\frac {\cos \left (d x + c\right )^{2} - \frac {2 \, \sqrt {2} \sqrt {a \cos \left (d x + c\right ) + a} \sin \left (d x + c\right )}{\sqrt {a}} - 2 \, \cos \left (d x + c\right ) - 3}{\cos \left (d x + c\right )^{2} + 2 \, \cos \left (d x + c\right ) + 1}\right )}{\sqrt {a}}}{210 \, {\left (a d \cos \left (d x + c\right ) + a d\right )}} \] Input:
integrate(cos(d*x+c)^3*(A+B*cos(d*x+c))/(a+a*cos(d*x+c))^(1/2),x, algorith m="fricas")
Output:
1/210*(4*(15*B*cos(d*x + c)^3 + 3*(7*A - B)*cos(d*x + c)^2 - (7*A - 31*B)* cos(d*x + c) + 91*A - 43*B)*sqrt(a*cos(d*x + c) + a)*sin(d*x + c) - 105*sq rt(2)*((A - B)*a*cos(d*x + c) + (A - B)*a)*log(-(cos(d*x + c)^2 - 2*sqrt(2 )*sqrt(a*cos(d*x + c) + a)*sin(d*x + c)/sqrt(a) - 2*cos(d*x + c) - 3)/(cos (d*x + c)^2 + 2*cos(d*x + c) + 1))/sqrt(a))/(a*d*cos(d*x + c) + a*d)
Timed out. \[ \int \frac {\cos ^3(c+d x) (A+B \cos (c+d x))}{\sqrt {a+a \cos (c+d x)}} \, dx=\text {Timed out} \] Input:
integrate(cos(d*x+c)**3*(A+B*cos(d*x+c))/(a+a*cos(d*x+c))**(1/2),x)
Output:
Timed out
Leaf count of result is larger than twice the leaf count of optimal. 1604723 vs. \(2 (177) = 354\).
Time = 34.22 (sec) , antiderivative size = 1604723, normalized size of antiderivative = 7944.17 \[ \int \frac {\cos ^3(c+d x) (A+B \cos (c+d x))}{\sqrt {a+a \cos (c+d x)}} \, dx=\text {Too large to display} \] Input:
integrate(cos(d*x+c)^3*(A+B*cos(d*x+c))/(a+a*cos(d*x+c))^(1/2),x, algorith m="maxima")
Output:
-1/5040*(3*(84*(sqrt(2)*cos(3/2*d*x + 3/2*c)^2*sin(d*x + c) + 2*sqrt(2)*co s(3/2*d*x + 3/2*c)*cos(1/2*d*x + 1/2*c)*sin(d*x + c) + sqrt(2)*sin(3/2*d*x + 3/2*c)^2*sin(d*x + c) + 2*sqrt(2)*sin(3/2*d*x + 3/2*c)*sin(d*x + c)*sin (1/2*d*x + 1/2*c) + (sqrt(2)*cos(1/2*d*x + 1/2*c)^2 + sqrt(2)*sin(1/2*d*x + 1/2*c)^2)*sin(d*x + c))*cos(7/2*d*x + 7/2*c)^3 - 84*((sqrt(2)*cos(d*x + c) + sqrt(2))*cos(3/2*d*x + 3/2*c)^2 + (sqrt(2)*cos(d*x + c) + sqrt(2))*si n(3/2*d*x + 3/2*c)^2 + sqrt(2)*cos(1/2*d*x + 1/2*c)^2 + sqrt(2)*sin(1/2*d* x + 1/2*c)^2 + 2*(sqrt(2)*cos(d*x + c)*cos(1/2*d*x + 1/2*c) + sqrt(2)*cos( 1/2*d*x + 1/2*c))*cos(3/2*d*x + 3/2*c) + (sqrt(2)*cos(1/2*d*x + 1/2*c)^2 + sqrt(2)*sin(1/2*d*x + 1/2*c)^2)*cos(d*x + c) + 2*(sqrt(2)*cos(d*x + c)*si n(1/2*d*x + 1/2*c) + sqrt(2)*sin(1/2*d*x + 1/2*c))*sin(3/2*d*x + 3/2*c))*s in(7/2*d*x + 7/2*c)^3 - 24*((sqrt(2)*cos(d*x + c)^2 + sqrt(2)*sin(d*x + c) ^2 + 2*sqrt(2)*cos(d*x + c) + sqrt(2))*cos(3/2*d*x + 3/2*c)^2 + (sqrt(2)*c os(1/2*d*x + 1/2*c)^2 + sqrt(2)*sin(1/2*d*x + 1/2*c)^2)*cos(d*x + c)^2 + ( sqrt(2)*cos(d*x + c)^2 + sqrt(2)*sin(d*x + c)^2 + 2*sqrt(2)*cos(d*x + c) + sqrt(2))*sin(3/2*d*x + 3/2*c)^2 + (sqrt(2)*cos(1/2*d*x + 1/2*c)^2 + sqrt( 2)*sin(1/2*d*x + 1/2*c)^2)*sin(d*x + c)^2 + sqrt(2)*cos(1/2*d*x + 1/2*c)^2 + sqrt(2)*sin(1/2*d*x + 1/2*c)^2 + 2*(sqrt(2)*cos(d*x + c)^2*cos(1/2*d*x + 1/2*c) + sqrt(2)*cos(1/2*d*x + 1/2*c)*sin(d*x + c)^2 + 2*sqrt(2)*cos(d*x + c)*cos(1/2*d*x + 1/2*c) + sqrt(2)*cos(1/2*d*x + 1/2*c))*cos(3/2*d*x ...
Exception generated. \[ \int \frac {\cos ^3(c+d x) (A+B \cos (c+d x))}{\sqrt {a+a \cos (c+d x)}} \, dx=\text {Exception raised: TypeError} \] Input:
integrate(cos(d*x+c)^3*(A+B*cos(d*x+c))/(a+a*cos(d*x+c))^(1/2),x, algorith m="giac")
Output:
Exception raised: TypeError >> an error occurred running a Giac command:IN PUT:sage2:=int(sage0,sageVARx):;OUTPUT:sym2poly/r2sym(const gen & e,const index_m & i,const vecteur & l) Error: Bad Argument Value
Timed out. \[ \int \frac {\cos ^3(c+d x) (A+B \cos (c+d x))}{\sqrt {a+a \cos (c+d x)}} \, dx=\int \frac {{\cos \left (c+d\,x\right )}^3\,\left (A+B\,\cos \left (c+d\,x\right )\right )}{\sqrt {a+a\,\cos \left (c+d\,x\right )}} \,d x \] Input:
int((cos(c + d*x)^3*(A + B*cos(c + d*x)))/(a + a*cos(c + d*x))^(1/2),x)
Output:
int((cos(c + d*x)^3*(A + B*cos(c + d*x)))/(a + a*cos(c + d*x))^(1/2), x)
\[ \int \frac {\cos ^3(c+d x) (A+B \cos (c+d x))}{\sqrt {a+a \cos (c+d x)}} \, dx=\frac {\sqrt {a}\, \left (\left (\int \frac {\sqrt {\cos \left (d x +c \right )+1}\, \cos \left (d x +c \right )^{4}}{\cos \left (d x +c \right )+1}d x \right ) b +\left (\int \frac {\sqrt {\cos \left (d x +c \right )+1}\, \cos \left (d x +c \right )^{3}}{\cos \left (d x +c \right )+1}d x \right ) a \right )}{a} \] Input:
int(cos(d*x+c)^3*(A+B*cos(d*x+c))/(a+a*cos(d*x+c))^(1/2),x)
Output:
(sqrt(a)*(int((sqrt(cos(c + d*x) + 1)*cos(c + d*x)**4)/(cos(c + d*x) + 1), x)*b + int((sqrt(cos(c + d*x) + 1)*cos(c + d*x)**3)/(cos(c + d*x) + 1),x)* a))/a