Integrand size = 33, antiderivative size = 140 \[ \int \sqrt {\cos (c+d x)} (b \cos (c+d x))^{3/2} (A+B \cos (c+d x)) \, dx=\frac {A b x \sqrt {b \cos (c+d x)}}{2 \sqrt {\cos (c+d x)}}+\frac {b B \sqrt {b \cos (c+d x)} \sin (c+d x)}{d \sqrt {\cos (c+d x)}}+\frac {A b \sqrt {\cos (c+d x)} \sqrt {b \cos (c+d x)} \sin (c+d x)}{2 d}-\frac {b B \sqrt {b \cos (c+d x)} \sin ^3(c+d x)}{3 d \sqrt {\cos (c+d x)}} \] Output:
1/2*A*b*x*(b*cos(d*x+c))^(1/2)/cos(d*x+c)^(1/2)+b*B*(b*cos(d*x+c))^(1/2)*s in(d*x+c)/d/cos(d*x+c)^(1/2)+1/2*A*b*cos(d*x+c)^(1/2)*(b*cos(d*x+c))^(1/2) *sin(d*x+c)/d-1/3*b*B*(b*cos(d*x+c))^(1/2)*sin(d*x+c)^3/d/cos(d*x+c)^(1/2)
Time = 0.29 (sec) , antiderivative size = 69, normalized size of antiderivative = 0.49 \[ \int \sqrt {\cos (c+d x)} (b \cos (c+d x))^{3/2} (A+B \cos (c+d x)) \, dx=\frac {(b \cos (c+d x))^{3/2} (6 A c+6 A d x+9 B \sin (c+d x)+3 A \sin (2 (c+d x))+B \sin (3 (c+d x)))}{12 d \cos ^{\frac {3}{2}}(c+d x)} \] Input:
Integrate[Sqrt[Cos[c + d*x]]*(b*Cos[c + d*x])^(3/2)*(A + B*Cos[c + d*x]),x ]
Output:
((b*Cos[c + d*x])^(3/2)*(6*A*c + 6*A*d*x + 9*B*Sin[c + d*x] + 3*A*Sin[2*(c + d*x)] + B*Sin[3*(c + d*x)]))/(12*d*Cos[c + d*x]^(3/2))
Time = 0.37 (sec) , antiderivative size = 79, normalized size of antiderivative = 0.56, number of steps used = 9, number of rules used = 8, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.242, Rules used = {2031, 3042, 3227, 3042, 3113, 2009, 3115, 24}
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 \sqrt {\cos (c+d x)} (b \cos (c+d x))^{3/2} (A+B \cos (c+d x)) \, dx\) |
\(\Big \downarrow \) 2031 |
\(\displaystyle \frac {b \sqrt {b \cos (c+d x)} \int \cos ^2(c+d x) (A+B \cos (c+d x))dx}{\sqrt {\cos (c+d x)}}\) |
\(\Big \downarrow \) 3042 |
\(\displaystyle \frac {b \sqrt {b \cos (c+d x)} \int \sin \left (c+d x+\frac {\pi }{2}\right )^2 \left (A+B \sin \left (c+d x+\frac {\pi }{2}\right )\right )dx}{\sqrt {\cos (c+d x)}}\) |
\(\Big \downarrow \) 3227 |
\(\displaystyle \frac {b \sqrt {b \cos (c+d x)} \left (A \int \cos ^2(c+d x)dx+B \int \cos ^3(c+d x)dx\right )}{\sqrt {\cos (c+d x)}}\) |
\(\Big \downarrow \) 3042 |
\(\displaystyle \frac {b \sqrt {b \cos (c+d x)} \left (A \int \sin \left (c+d x+\frac {\pi }{2}\right )^2dx+B \int \sin \left (c+d x+\frac {\pi }{2}\right )^3dx\right )}{\sqrt {\cos (c+d x)}}\) |
\(\Big \downarrow \) 3113 |
\(\displaystyle \frac {b \sqrt {b \cos (c+d x)} \left (A \int \sin \left (c+d x+\frac {\pi }{2}\right )^2dx-\frac {B \int \left (1-\sin ^2(c+d x)\right )d(-\sin (c+d x))}{d}\right )}{\sqrt {\cos (c+d x)}}\) |
\(\Big \downarrow \) 2009 |
\(\displaystyle \frac {b \sqrt {b \cos (c+d x)} \left (A \int \sin \left (c+d x+\frac {\pi }{2}\right )^2dx-\frac {B \left (\frac {1}{3} \sin ^3(c+d x)-\sin (c+d x)\right )}{d}\right )}{\sqrt {\cos (c+d x)}}\) |
\(\Big \downarrow \) 3115 |
\(\displaystyle \frac {b \sqrt {b \cos (c+d x)} \left (A \left (\frac {\int 1dx}{2}+\frac {\sin (c+d x) \cos (c+d x)}{2 d}\right )-\frac {B \left (\frac {1}{3} \sin ^3(c+d x)-\sin (c+d x)\right )}{d}\right )}{\sqrt {\cos (c+d x)}}\) |
\(\Big \downarrow \) 24 |
\(\displaystyle \frac {b \sqrt {b \cos (c+d x)} \left (A \left (\frac {\sin (c+d x) \cos (c+d x)}{2 d}+\frac {x}{2}\right )-\frac {B \left (\frac {1}{3} \sin ^3(c+d x)-\sin (c+d x)\right )}{d}\right )}{\sqrt {\cos (c+d x)}}\) |
Input:
Int[Sqrt[Cos[c + d*x]]*(b*Cos[c + d*x])^(3/2)*(A + B*Cos[c + d*x]),x]
Output:
(b*Sqrt[b*Cos[c + d*x]]*(A*(x/2 + (Cos[c + d*x]*Sin[c + d*x])/(2*d)) - (B* (-Sin[c + d*x] + Sin[c + d*x]^3/3))/d))/Sqrt[Cos[c + d*x]]
Int[(Fx_.)*((a_.)*(v_))^(m_)*((b_.)*(v_))^(n_), x_Symbol] :> Simp[a^(m + 1/ 2)*b^(n - 1/2)*(Sqrt[b*v]/Sqrt[a*v]) Int[v^(m + n)*Fx, x], x] /; FreeQ[{a , b, m}, x] && !IntegerQ[m] && IGtQ[n + 1/2, 0] && IntegerQ[m + n]
Int[sin[(c_.) + (d_.)*(x_)]^(n_), x_Symbol] :> Simp[-d^(-1) Subst[Int[Exp and[(1 - x^2)^((n - 1)/2), x], x], x, Cos[c + d*x]], x] /; FreeQ[{c, d}, x] && IGtQ[(n - 1)/2, 0]
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[((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]
Time = 9.74 (sec) , antiderivative size = 69, normalized size of antiderivative = 0.49
method | result | size |
default | \(\frac {b \left (3 A \left (d x +c \right )+3 A \sin \left (d x +c \right ) \cos \left (d x +c \right )+\left (2 \cos \left (d x +c \right )^{2}+4\right ) \sin \left (d x +c \right ) B \right ) \sqrt {\cos \left (d x +c \right ) b}}{6 d \sqrt {\cos \left (d x +c \right )}}\) | \(69\) |
parts | \(\frac {A \left (\cos \left (d x +c \right ) \sin \left (d x +c \right )+d x +c \right ) b \sqrt {\cos \left (d x +c \right ) b}}{2 d \sqrt {\cos \left (d x +c \right )}}+\frac {B \sin \left (d x +c \right ) \left (\cos \left (d x +c \right )^{2}+2\right ) b \sqrt {\cos \left (d x +c \right ) b}}{3 d \sqrt {\cos \left (d x +c \right )}}\) | \(86\) |
risch | \(\frac {b \sqrt {\cos \left (d x +c \right ) b}\, \sqrt {\cos \left (d x +c \right )}\, {\mathrm e}^{i \left (d x +c \right )} A x}{{\mathrm e}^{2 i \left (d x +c \right )}+1}-\frac {i b \sqrt {\cos \left (d x +c \right ) b}\, \sqrt {\cos \left (d x +c \right )}\, {\mathrm e}^{4 i \left (d x +c \right )} B}{12 \left ({\mathrm e}^{2 i \left (d x +c \right )}+1\right ) d}-\frac {i b \sqrt {\cos \left (d x +c \right ) b}\, \sqrt {\cos \left (d x +c \right )}\, {\mathrm e}^{3 i \left (d x +c \right )} A}{4 \left ({\mathrm e}^{2 i \left (d x +c \right )}+1\right ) d}-\frac {3 i b \sqrt {\cos \left (d x +c \right ) b}\, \sqrt {\cos \left (d x +c \right )}\, {\mathrm e}^{2 i \left (d x +c \right )} B}{4 \left ({\mathrm e}^{2 i \left (d x +c \right )}+1\right ) d}+\frac {3 i b \sqrt {\cos \left (d x +c \right ) b}\, \sqrt {\cos \left (d x +c \right )}\, B}{4 \left ({\mathrm e}^{2 i \left (d x +c \right )}+1\right ) d}+\frac {i b \sqrt {\cos \left (d x +c \right ) b}\, \sqrt {\cos \left (d x +c \right )}\, {\mathrm e}^{-i \left (d x +c \right )} A}{4 \left ({\mathrm e}^{2 i \left (d x +c \right )}+1\right ) d}+\frac {i b \sqrt {\cos \left (d x +c \right ) b}\, \sqrt {\cos \left (d x +c \right )}\, {\mathrm e}^{-2 i \left (d x +c \right )} B}{12 \left ({\mathrm e}^{2 i \left (d x +c \right )}+1\right ) d}\) | \(325\) |
Input:
int(cos(d*x+c)^(1/2)*(cos(d*x+c)*b)^(3/2)*(A+B*cos(d*x+c)),x,method=_RETUR NVERBOSE)
Output:
1/6*b/d*(3*A*(d*x+c)+3*A*sin(d*x+c)*cos(d*x+c)+(2*cos(d*x+c)^2+4)*sin(d*x+ c)*B)*(cos(d*x+c)*b)^(1/2)/cos(d*x+c)^(1/2)
Time = 0.11 (sec) , antiderivative size = 237, normalized size of antiderivative = 1.69 \[ \int \sqrt {\cos (c+d x)} (b \cos (c+d x))^{3/2} (A+B \cos (c+d x)) \, dx=\left [\frac {3 \, A \sqrt {-b} b \cos \left (d x + c\right ) \log \left (2 \, b \cos \left (d x + c\right )^{2} - 2 \, \sqrt {b \cos \left (d x + c\right )} \sqrt {-b} \sqrt {\cos \left (d x + c\right )} \sin \left (d x + c\right ) - b\right ) + 2 \, {\left (2 \, B b \cos \left (d x + c\right )^{2} + 3 \, A b \cos \left (d x + c\right ) + 4 \, B b\right )} \sqrt {b \cos \left (d x + c\right )} \sqrt {\cos \left (d x + c\right )} \sin \left (d x + c\right )}{12 \, d \cos \left (d x + c\right )}, \frac {3 \, A b^{\frac {3}{2}} \arctan \left (\frac {\sqrt {b \cos \left (d x + c\right )} \sin \left (d x + c\right )}{\sqrt {b} \cos \left (d x + c\right )^{\frac {3}{2}}}\right ) \cos \left (d x + c\right ) + {\left (2 \, B b \cos \left (d x + c\right )^{2} + 3 \, A b \cos \left (d x + c\right ) + 4 \, B b\right )} \sqrt {b \cos \left (d x + c\right )} \sqrt {\cos \left (d x + c\right )} \sin \left (d x + c\right )}{6 \, d \cos \left (d x + c\right )}\right ] \] Input:
integrate(cos(d*x+c)^(1/2)*(b*cos(d*x+c))^(3/2)*(A+B*cos(d*x+c)),x, algori thm="fricas")
Output:
[1/12*(3*A*sqrt(-b)*b*cos(d*x + c)*log(2*b*cos(d*x + c)^2 - 2*sqrt(b*cos(d *x + c))*sqrt(-b)*sqrt(cos(d*x + c))*sin(d*x + c) - b) + 2*(2*B*b*cos(d*x + c)^2 + 3*A*b*cos(d*x + c) + 4*B*b)*sqrt(b*cos(d*x + c))*sqrt(cos(d*x + c ))*sin(d*x + c))/(d*cos(d*x + c)), 1/6*(3*A*b^(3/2)*arctan(sqrt(b*cos(d*x + c))*sin(d*x + c)/(sqrt(b)*cos(d*x + c)^(3/2)))*cos(d*x + c) + (2*B*b*cos (d*x + c)^2 + 3*A*b*cos(d*x + c) + 4*B*b)*sqrt(b*cos(d*x + c))*sqrt(cos(d* x + c))*sin(d*x + c))/(d*cos(d*x + c))]
Timed out. \[ \int \sqrt {\cos (c+d x)} (b \cos (c+d x))^{3/2} (A+B \cos (c+d x)) \, dx=\text {Timed out} \] Input:
integrate(cos(d*x+c)**(1/2)*(b*cos(d*x+c))**(3/2)*(A+B*cos(d*x+c)),x)
Output:
Timed out
Time = 0.29 (sec) , antiderivative size = 74, normalized size of antiderivative = 0.53 \[ \int \sqrt {\cos (c+d x)} (b \cos (c+d x))^{3/2} (A+B \cos (c+d x)) \, dx=\frac {3 \, {\left (2 \, {\left (d x + c\right )} b + b \sin \left (2 \, d x + 2 \, c\right )\right )} A \sqrt {b} + {\left (b \sin \left (3 \, d x + 3 \, c\right ) + 9 \, b \sin \left (\frac {1}{3} \, \arctan \left (\sin \left (3 \, d x + 3 \, c\right ), \cos \left (3 \, d x + 3 \, c\right )\right )\right )\right )} B \sqrt {b}}{12 \, d} \] Input:
integrate(cos(d*x+c)^(1/2)*(b*cos(d*x+c))^(3/2)*(A+B*cos(d*x+c)),x, algori thm="maxima")
Output:
1/12*(3*(2*(d*x + c)*b + b*sin(2*d*x + 2*c))*A*sqrt(b) + (b*sin(3*d*x + 3* c) + 9*b*sin(1/3*arctan2(sin(3*d*x + 3*c), cos(3*d*x + 3*c))))*B*sqrt(b))/ d
Time = 0.33 (sec) , antiderivative size = 51, normalized size of antiderivative = 0.36 \[ \int \sqrt {\cos (c+d x)} (b \cos (c+d x))^{3/2} (A+B \cos (c+d x)) \, dx=\frac {1}{12} \, {\left (6 \, A x + \frac {B \sin \left (3 \, d x + 3 \, c\right )}{d} + \frac {3 \, A \sin \left (2 \, d x + 2 \, c\right )}{d} + \frac {9 \, B \sin \left (d x + c\right )}{d}\right )} b^{\frac {3}{2}} \] Input:
integrate(cos(d*x+c)^(1/2)*(b*cos(d*x+c))^(3/2)*(A+B*cos(d*x+c)),x, algori thm="giac")
Output:
1/12*(6*A*x + B*sin(3*d*x + 3*c)/d + 3*A*sin(2*d*x + 2*c)/d + 9*B*sin(d*x + c)/d)*b^(3/2)
Time = 1.23 (sec) , antiderivative size = 93, normalized size of antiderivative = 0.66 \[ \int \sqrt {\cos (c+d x)} (b \cos (c+d x))^{3/2} (A+B \cos (c+d x)) \, dx=\frac {b\,\sqrt {\cos \left (c+d\,x\right )}\,\sqrt {b\,\cos \left (c+d\,x\right )}\,\left (3\,A\,\sin \left (c+d\,x\right )+3\,A\,\sin \left (3\,c+3\,d\,x\right )+10\,B\,\sin \left (2\,c+2\,d\,x\right )+B\,\sin \left (4\,c+4\,d\,x\right )+12\,A\,d\,x\,\cos \left (c+d\,x\right )\right )}{12\,d\,\left (\cos \left (2\,c+2\,d\,x\right )+1\right )} \] Input:
int(cos(c + d*x)^(1/2)*(b*cos(c + d*x))^(3/2)*(A + B*cos(c + d*x)),x)
Output:
(b*cos(c + d*x)^(1/2)*(b*cos(c + d*x))^(1/2)*(3*A*sin(c + d*x) + 3*A*sin(3 *c + 3*d*x) + 10*B*sin(2*c + 2*d*x) + B*sin(4*c + 4*d*x) + 12*A*d*x*cos(c + d*x)))/(12*d*(cos(2*c + 2*d*x) + 1))
Time = 0.15 (sec) , antiderivative size = 49, normalized size of antiderivative = 0.35 \[ \int \sqrt {\cos (c+d x)} (b \cos (c+d x))^{3/2} (A+B \cos (c+d x)) \, dx=\frac {\sqrt {b}\, b \left (3 \cos \left (d x +c \right ) \sin \left (d x +c \right ) a -2 \sin \left (d x +c \right )^{3} b +6 \sin \left (d x +c \right ) b +3 a d x \right )}{6 d} \] Input:
int(cos(d*x+c)^(1/2)*(b*cos(d*x+c))^(3/2)*(A+B*cos(d*x+c)),x)
Output:
(sqrt(b)*b*(3*cos(c + d*x)*sin(c + d*x)*a - 2*sin(c + d*x)**3*b + 6*sin(c + d*x)*b + 3*a*d*x))/(6*d)