Integrand size = 23, antiderivative size = 122 \[ \int \cos ^3(c+d x) \sqrt {a+a \cos (c+d x)} \, dx=\frac {4 a \sin (c+d x)}{5 d \sqrt {a+a \cos (c+d x)}}+\frac {2 a \cos ^3(c+d x) \sin (c+d x)}{7 d \sqrt {a+a \cos (c+d x)}}-\frac {8 \sqrt {a+a \cos (c+d x)} \sin (c+d x)}{35 d}+\frac {12 (a+a \cos (c+d x))^{3/2} \sin (c+d x)}{35 a d} \] Output:
4/5*a*sin(d*x+c)/d/(a+a*cos(d*x+c))^(1/2)+2/7*a*cos(d*x+c)^3*sin(d*x+c)/d/ (a+a*cos(d*x+c))^(1/2)-8/35*(a+a*cos(d*x+c))^(1/2)*sin(d*x+c)/d+12/35*(a+a *cos(d*x+c))^(3/2)*sin(d*x+c)/a/d
Time = 0.21 (sec) , antiderivative size = 80, normalized size of antiderivative = 0.66 \[ \int \cos ^3(c+d x) \sqrt {a+a \cos (c+d x)} \, dx=\frac {\sqrt {a (1+\cos (c+d x))} \sec \left (\frac {1}{2} (c+d x)\right ) \left (105 \sin \left (\frac {1}{2} (c+d x)\right )+35 \sin \left (\frac {3}{2} (c+d x)\right )+7 \sin \left (\frac {5}{2} (c+d x)\right )+5 \sin \left (\frac {7}{2} (c+d x)\right )\right )}{140 d} \] Input:
Integrate[Cos[c + d*x]^3*Sqrt[a + a*Cos[c + d*x]],x]
Output:
(Sqrt[a*(1 + Cos[c + d*x])]*Sec[(c + d*x)/2]*(105*Sin[(c + d*x)/2] + 35*Si n[(3*(c + d*x))/2] + 7*Sin[(5*(c + d*x))/2] + 5*Sin[(7*(c + d*x))/2]))/(14 0*d)
Time = 0.62 (sec) , antiderivative size = 138, normalized size of antiderivative = 1.13, number of steps used = 9, number of rules used = 9, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.391, Rules used = {3042, 3249, 3042, 3238, 27, 3042, 3230, 3042, 3125}
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 ^3(c+d x) \sqrt {a \cos (c+d x)+a} \, dx\) |
\(\Big \downarrow \) 3042 |
\(\displaystyle \int \sin \left (c+d x+\frac {\pi }{2}\right )^3 \sqrt {a \sin \left (c+d x+\frac {\pi }{2}\right )+a}dx\) |
\(\Big \downarrow \) 3249 |
\(\displaystyle \frac {6}{7} \int \cos ^2(c+d x) \sqrt {\cos (c+d x) a+a}dx+\frac {2 a \sin (c+d x) \cos ^3(c+d x)}{7 d \sqrt {a \cos (c+d x)+a}}\) |
\(\Big \downarrow \) 3042 |
\(\displaystyle \frac {6}{7} \int \sin \left (c+d x+\frac {\pi }{2}\right )^2 \sqrt {\sin \left (c+d x+\frac {\pi }{2}\right ) a+a}dx+\frac {2 a \sin (c+d x) \cos ^3(c+d x)}{7 d \sqrt {a \cos (c+d x)+a}}\) |
\(\Big \downarrow \) 3238 |
\(\displaystyle \frac {6}{7} \left (\frac {2 \int \frac {1}{2} (3 a-2 a \cos (c+d x)) \sqrt {\cos (c+d x) a+a}dx}{5 a}+\frac {2 \sin (c+d x) (a \cos (c+d x)+a)^{3/2}}{5 a d}\right )+\frac {2 a \sin (c+d x) \cos ^3(c+d x)}{7 d \sqrt {a \cos (c+d x)+a}}\) |
\(\Big \downarrow \) 27 |
\(\displaystyle \frac {6}{7} \left (\frac {\int (3 a-2 a \cos (c+d x)) \sqrt {\cos (c+d x) a+a}dx}{5 a}+\frac {2 \sin (c+d x) (a \cos (c+d x)+a)^{3/2}}{5 a d}\right )+\frac {2 a \sin (c+d x) \cos ^3(c+d x)}{7 d \sqrt {a \cos (c+d x)+a}}\) |
\(\Big \downarrow \) 3042 |
\(\displaystyle \frac {6}{7} \left (\frac {\int \left (3 a-2 a \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 \sin (c+d x) (a \cos (c+d x)+a)^{3/2}}{5 a d}\right )+\frac {2 a \sin (c+d x) \cos ^3(c+d x)}{7 d \sqrt {a \cos (c+d x)+a}}\) |
\(\Big \downarrow \) 3230 |
\(\displaystyle \frac {6}{7} \left (\frac {\frac {7}{3} a \int \sqrt {\cos (c+d x) a+a}dx-\frac {4 a \sin (c+d x) \sqrt {a \cos (c+d x)+a}}{3 d}}{5 a}+\frac {2 \sin (c+d x) (a \cos (c+d x)+a)^{3/2}}{5 a d}\right )+\frac {2 a \sin (c+d x) \cos ^3(c+d x)}{7 d \sqrt {a \cos (c+d x)+a}}\) |
\(\Big \downarrow \) 3042 |
\(\displaystyle \frac {6}{7} \left (\frac {\frac {7}{3} a \int \sqrt {\sin \left (c+d x+\frac {\pi }{2}\right ) a+a}dx-\frac {4 a \sin (c+d x) \sqrt {a \cos (c+d x)+a}}{3 d}}{5 a}+\frac {2 \sin (c+d x) (a \cos (c+d x)+a)^{3/2}}{5 a d}\right )+\frac {2 a \sin (c+d x) \cos ^3(c+d x)}{7 d \sqrt {a \cos (c+d x)+a}}\) |
\(\Big \downarrow \) 3125 |
\(\displaystyle \frac {6}{7} \left (\frac {\frac {14 a^2 \sin (c+d x)}{3 d \sqrt {a \cos (c+d x)+a}}-\frac {4 a \sin (c+d x) \sqrt {a \cos (c+d x)+a}}{3 d}}{5 a}+\frac {2 \sin (c+d x) (a \cos (c+d x)+a)^{3/2}}{5 a d}\right )+\frac {2 a \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*Sqrt[a + a*Cos[c + d*x]],x]
Output:
(2*a*Cos[c + d*x]^3*Sin[c + d*x])/(7*d*Sqrt[a + a*Cos[c + d*x]]) + (6*((2* (a + a*Cos[c + d*x])^(3/2)*Sin[c + d*x])/(5*a*d) + ((14*a^2*Sin[c + d*x])/ (3*d*Sqrt[a + a*Cos[c + d*x]]) - (4*a*Sqrt[a + a*Cos[c + d*x]]*Sin[c + d*x ])/(3*d))/(5*a)))/7
Int[(a_)*(Fx_), x_Symbol] :> Simp[a Int[Fx, x], x] /; FreeQ[a, x] && !Ma tchQ[Fx, (b_)*(Gx_) /; FreeQ[b, x]]
Int[Sqrt[(a_) + (b_.)*sin[(c_.) + (d_.)*(x_)]], x_Symbol] :> Simp[-2*b*(Cos [c + d*x]/(d*Sqrt[a + b*Sin[c + d*x]])), x] /; FreeQ[{a, b, c, d}, x] && Eq Q[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[sin[(e_.) + (f_.)*(x_)]^2*((a_) + (b_.)*sin[(e_.) + (f_.)*(x_)])^(m_), x_Symbol] :> Simp[(-Cos[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*(b*(m + 1) - a*Si n[e + f*x]), x], x] /; FreeQ[{a, b, e, f, m}, x] && EqQ[a^2 - b^2, 0] && ! LtQ[m, -2^(-1)]
Int[Sqrt[(a_) + (b_.)*sin[(e_.) + (f_.)*(x_)]]*((c_.) + (d_.)*sin[(e_.) + ( f_.)*(x_)])^(n_), x_Symbol] :> Simp[-2*b*Cos[e + f*x]*((c + d*Sin[e + f*x]) ^n/(f*(2*n + 1)*Sqrt[a + b*Sin[e + f*x]])), x] + Simp[2*n*((b*c + a*d)/(b*( 2*n + 1))) Int[Sqrt[a + b*Sin[e + f*x]]*(c + d*Sin[e + f*x])^(n - 1), x], x] /; FreeQ[{a, b, c, d, e, f}, x] && NeQ[b*c - a*d, 0] && EqQ[a^2 - b^2, 0] && NeQ[c^2 - d^2, 0] && GtQ[n, 0] && IntegerQ[2*n]
Time = 1.04 (sec) , antiderivative size = 84, normalized size of antiderivative = 0.69
method | result | size |
default | \(\frac {2 \cos \left (\frac {d x}{2}+\frac {c}{2}\right ) a \sin \left (\frac {d x}{2}+\frac {c}{2}\right ) \left (40 \cos \left (\frac {d x}{2}+\frac {c}{2}\right )^{6}-36 \cos \left (\frac {d x}{2}+\frac {c}{2}\right )^{4}+22 \cos \left (\frac {d x}{2}+\frac {c}{2}\right )^{2}+9\right ) \sqrt {2}}{35 \sqrt {a \cos \left (\frac {d x}{2}+\frac {c}{2}\right )^{2}}\, d}\) | \(84\) |
Input:
int(cos(d*x+c)^3*(a+a*cos(d*x+c))^(1/2),x,method=_RETURNVERBOSE)
Output:
2/35*cos(1/2*d*x+1/2*c)*a*sin(1/2*d*x+1/2*c)*(40*cos(1/2*d*x+1/2*c)^6-36*c os(1/2*d*x+1/2*c)^4+22*cos(1/2*d*x+1/2*c)^2+9)*2^(1/2)/(a*cos(1/2*d*x+1/2* c)^2)^(1/2)/d
Time = 0.08 (sec) , antiderivative size = 62, normalized size of antiderivative = 0.51 \[ \int \cos ^3(c+d x) \sqrt {a+a \cos (c+d x)} \, dx=\frac {2 \, {\left (5 \, \cos \left (d x + c\right )^{3} + 6 \, \cos \left (d x + c\right )^{2} + 8 \, \cos \left (d x + c\right ) + 16\right )} \sqrt {a \cos \left (d x + c\right ) + a} \sin \left (d x + c\right )}{35 \, {\left (d \cos \left (d x + c\right ) + d\right )}} \] Input:
integrate(cos(d*x+c)^3*(a+a*cos(d*x+c))^(1/2),x, algorithm="fricas")
Output:
2/35*(5*cos(d*x + c)^3 + 6*cos(d*x + c)^2 + 8*cos(d*x + c) + 16)*sqrt(a*co s(d*x + c) + a)*sin(d*x + c)/(d*cos(d*x + c) + d)
Timed out. \[ \int \cos ^3(c+d x) \sqrt {a+a \cos (c+d x)} \, dx=\text {Timed out} \] Input:
integrate(cos(d*x+c)**3*(a+a*cos(d*x+c))**(1/2),x)
Output:
Timed out
Time = 0.16 (sec) , antiderivative size = 65, normalized size of antiderivative = 0.53 \[ \int \cos ^3(c+d x) \sqrt {a+a \cos (c+d x)} \, dx=\frac {{\left (5 \, \sqrt {2} \sin \left (\frac {7}{2} \, d x + \frac {7}{2} \, c\right ) + 7 \, \sqrt {2} \sin \left (\frac {5}{2} \, d x + \frac {5}{2} \, c\right ) + 35 \, \sqrt {2} \sin \left (\frac {3}{2} \, d x + \frac {3}{2} \, c\right ) + 105 \, \sqrt {2} \sin \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )\right )} \sqrt {a}}{140 \, d} \] Input:
integrate(cos(d*x+c)^3*(a+a*cos(d*x+c))^(1/2),x, algorithm="maxima")
Output:
1/140*(5*sqrt(2)*sin(7/2*d*x + 7/2*c) + 7*sqrt(2)*sin(5/2*d*x + 5/2*c) + 3 5*sqrt(2)*sin(3/2*d*x + 3/2*c) + 105*sqrt(2)*sin(1/2*d*x + 1/2*c))*sqrt(a) /d
Time = 0.43 (sec) , antiderivative size = 96, normalized size of antiderivative = 0.79 \[ \int \cos ^3(c+d x) \sqrt {a+a \cos (c+d x)} \, dx=\frac {\sqrt {2} {\left (5 \, \mathrm {sgn}\left (\cos \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )\right ) \sin \left (\frac {7}{2} \, d x + \frac {7}{2} \, c\right ) + 7 \, \mathrm {sgn}\left (\cos \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )\right ) \sin \left (\frac {5}{2} \, d x + \frac {5}{2} \, c\right ) + 35 \, \mathrm {sgn}\left (\cos \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )\right ) \sin \left (\frac {3}{2} \, d x + \frac {3}{2} \, c\right ) + 105 \, \mathrm {sgn}\left (\cos \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )\right ) \sin \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )\right )} \sqrt {a}}{140 \, d} \] Input:
integrate(cos(d*x+c)^3*(a+a*cos(d*x+c))^(1/2),x, algorithm="giac")
Output:
1/140*sqrt(2)*(5*sgn(cos(1/2*d*x + 1/2*c))*sin(7/2*d*x + 7/2*c) + 7*sgn(co s(1/2*d*x + 1/2*c))*sin(5/2*d*x + 5/2*c) + 35*sgn(cos(1/2*d*x + 1/2*c))*si n(3/2*d*x + 3/2*c) + 105*sgn(cos(1/2*d*x + 1/2*c))*sin(1/2*d*x + 1/2*c))*s qrt(a)/d
Timed out. \[ \int \cos ^3(c+d x) \sqrt {a+a \cos (c+d x)} \, dx=\int {\cos \left (c+d\,x\right )}^3\,\sqrt {a+a\,\cos \left (c+d\,x\right )} \,d x \] Input:
int(cos(c + d*x)^3*(a + a*cos(c + d*x))^(1/2),x)
Output:
int(cos(c + d*x)^3*(a + a*cos(c + d*x))^(1/2), x)
\[ \int \cos ^3(c+d x) \sqrt {a+a \cos (c+d x)} \, dx=\sqrt {a}\, \left (\int \sqrt {\cos \left (d x +c \right )+1}\, \cos \left (d x +c \right )^{3}d x \right ) \] Input:
int(cos(d*x+c)^3*(a+a*cos(d*x+c))^(1/2),x)
Output:
sqrt(a)*int(sqrt(cos(c + d*x) + 1)*cos(c + d*x)**3,x)