Integrand size = 43, antiderivative size = 135 \[ \int \frac {\cos ^{\frac {3}{2}}(c+d x) \left (A+B \cos (c+d x)+C \cos ^2(c+d x)\right )}{(b \cos (c+d x))^{3/2}} \, dx=\frac {A x \sqrt {\cos (c+d x)}}{b \sqrt {b \cos (c+d x)}}+\frac {C x \sqrt {\cos (c+d x)}}{2 b \sqrt {b \cos (c+d x)}}+\frac {B \sqrt {\cos (c+d x)} \sin (c+d x)}{b d \sqrt {b \cos (c+d x)}}+\frac {C \cos ^{\frac {3}{2}}(c+d x) \sin (c+d x)}{2 b d \sqrt {b \cos (c+d x)}} \] Output:
A*x*cos(d*x+c)^(1/2)/b/(b*cos(d*x+c))^(1/2)+1/2*C*x*cos(d*x+c)^(1/2)/b/(b* cos(d*x+c))^(1/2)+B*cos(d*x+c)^(1/2)*sin(d*x+c)/b/d/(b*cos(d*x+c))^(1/2)+1 /2*C*cos(d*x+c)^(3/2)*sin(d*x+c)/b/d/(b*cos(d*x+c))^(1/2)
Time = 0.13 (sec) , antiderivative size = 61, normalized size of antiderivative = 0.45 \[ \int \frac {\cos ^{\frac {3}{2}}(c+d x) \left (A+B \cos (c+d x)+C \cos ^2(c+d x)\right )}{(b \cos (c+d x))^{3/2}} \, dx=\frac {\cos ^{\frac {3}{2}}(c+d x) (2 (2 A+C) (c+d x)+4 B \sin (c+d x)+C \sin (2 (c+d x)))}{4 d (b \cos (c+d x))^{3/2}} \] Input:
Integrate[(Cos[c + d*x]^(3/2)*(A + B*Cos[c + d*x] + C*Cos[c + d*x]^2))/(b* Cos[c + d*x])^(3/2),x]
Output:
(Cos[c + d*x]^(3/2)*(2*(2*A + C)*(c + d*x) + 4*B*Sin[c + d*x] + C*Sin[2*(c + d*x)]))/(4*d*(b*Cos[c + d*x])^(3/2))
Time = 0.22 (sec) , antiderivative size = 67, normalized size of antiderivative = 0.50, number of steps used = 2, number of rules used = 2, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.047, Rules used = {2031, 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 \frac {\cos ^{\frac {3}{2}}(c+d x) \left (A+B \cos (c+d x)+C \cos ^2(c+d x)\right )}{(b \cos (c+d x))^{3/2}} \, dx\) |
\(\Big \downarrow \) 2031 |
\(\displaystyle \frac {\sqrt {\cos (c+d x)} \int \left (C \cos ^2(c+d x)+B \cos (c+d x)+A\right )dx}{b \sqrt {b \cos (c+d x)}}\) |
\(\Big \downarrow \) 2009 |
\(\displaystyle \frac {\sqrt {\cos (c+d x)} \left (A x+\frac {B \sin (c+d x)}{d}+\frac {C \sin (c+d x) \cos (c+d x)}{2 d}+\frac {C x}{2}\right )}{b \sqrt {b \cos (c+d x)}}\) |
Input:
Int[(Cos[c + d*x]^(3/2)*(A + B*Cos[c + d*x] + C*Cos[c + d*x]^2))/(b*Cos[c + d*x])^(3/2),x]
Output:
(Sqrt[Cos[c + d*x]]*(A*x + (C*x)/2 + (B*Sin[c + d*x])/d + (C*Cos[c + d*x]* Sin[c + d*x])/(2*d)))/(b*Sqrt[b*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]
Time = 0.29 (sec) , antiderivative size = 66, normalized size of antiderivative = 0.49
method | result | size |
default | \(\frac {\left (C \cos \left (d x +c \right ) \sin \left (d x +c \right )+2 A \left (d x +c \right )+2 B \sin \left (d x +c \right )+C \left (d x +c \right )\right ) \sqrt {\cos \left (d x +c \right )}}{2 b d \sqrt {b \cos \left (d x +c \right )}}\) | \(66\) |
risch | \(\frac {\sqrt {\cos \left (d x +c \right )}\, \left (4 A +2 C \right ) x}{4 b \sqrt {b \cos \left (d x +c \right )}}+\frac {B \sqrt {\cos \left (d x +c \right )}\, \sin \left (d x +c \right )}{b d \sqrt {b \cos \left (d x +c \right )}}+\frac {\sqrt {\cos \left (d x +c \right )}\, C \sin \left (2 d x +2 c \right )}{4 b \sqrt {b \cos \left (d x +c \right )}\, d}\) | \(101\) |
parts | \(\frac {A \left (d x +c \right ) \sqrt {\cos \left (d x +c \right )}}{d b \sqrt {b \cos \left (d x +c \right )}}+\frac {B \sqrt {\cos \left (d x +c \right )}\, \sin \left (d x +c \right )}{b d \sqrt {b \cos \left (d x +c \right )}}+\frac {C \left (\cos \left (d x +c \right ) \sin \left (d x +c \right )+d x +c \right ) \sqrt {\cos \left (d x +c \right )}}{2 d \sqrt {b \cos \left (d x +c \right )}\, b}\) | \(110\) |
Input:
int(cos(d*x+c)^(3/2)*(A+B*cos(d*x+c)+C*cos(d*x+c)^2)/(b*cos(d*x+c))^(3/2), x,method=_RETURNVERBOSE)
Output:
1/2/b/d*(C*cos(d*x+c)*sin(d*x+c)+2*A*(d*x+c)+2*B*sin(d*x+c)+C*(d*x+c))*cos (d*x+c)^(1/2)/(b*cos(d*x+c))^(1/2)
Time = 0.12 (sec) , antiderivative size = 218, normalized size of antiderivative = 1.61 \[ \int \frac {\cos ^{\frac {3}{2}}(c+d x) \left (A+B \cos (c+d x)+C \cos ^2(c+d x)\right )}{(b \cos (c+d x))^{3/2}} \, dx=\left [-\frac {{\left (2 \, A + C\right )} \sqrt {-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 (C \cos \left (d x + c\right ) + 2 \, B\right )} \sqrt {b \cos \left (d x + c\right )} \sqrt {\cos \left (d x + c\right )} \sin \left (d x + c\right )}{4 \, b^{2} d \cos \left (d x + c\right )}, \frac {{\left (2 \, A + C\right )} \sqrt {b} \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 (C \cos \left (d x + c\right ) + 2 \, B\right )} \sqrt {b \cos \left (d x + c\right )} \sqrt {\cos \left (d x + c\right )} \sin \left (d x + c\right )}{2 \, b^{2} d \cos \left (d x + c\right )}\right ] \] Input:
integrate(cos(d*x+c)^(3/2)*(A+B*cos(d*x+c)+C*cos(d*x+c)^2)/(b*cos(d*x+c))^ (3/2),x, algorithm="fricas")
Output:
[-1/4*((2*A + C)*sqrt(-b)*cos(d*x + c)*log(2*b*cos(d*x + c)^2 + 2*sqrt(b*c os(d*x + c))*sqrt(-b)*sqrt(cos(d*x + c))*sin(d*x + c) - b) - 2*(C*cos(d*x + c) + 2*B)*sqrt(b*cos(d*x + c))*sqrt(cos(d*x + c))*sin(d*x + c))/(b^2*d*c os(d*x + c)), 1/2*((2*A + C)*sqrt(b)*arctan(sqrt(b*cos(d*x + c))*sin(d*x + c)/(sqrt(b)*cos(d*x + c)^(3/2)))*cos(d*x + c) + (C*cos(d*x + c) + 2*B)*sq rt(b*cos(d*x + c))*sqrt(cos(d*x + c))*sin(d*x + c))/(b^2*d*cos(d*x + c))]
Timed out. \[ \int \frac {\cos ^{\frac {3}{2}}(c+d x) \left (A+B \cos (c+d x)+C \cos ^2(c+d x)\right )}{(b \cos (c+d x))^{3/2}} \, dx=\text {Timed out} \] Input:
integrate(cos(d*x+c)**(3/2)*(A+B*cos(d*x+c)+C*cos(d*x+c)**2)/(b*cos(d*x+c) )**(3/2),x)
Output:
Timed out
Time = 0.33 (sec) , antiderivative size = 64, normalized size of antiderivative = 0.47 \[ \int \frac {\cos ^{\frac {3}{2}}(c+d x) \left (A+B \cos (c+d x)+C \cos ^2(c+d x)\right )}{(b \cos (c+d x))^{3/2}} \, dx=\frac {\frac {{\left (2 \, d x + 2 \, c + \sin \left (2 \, d x + 2 \, c\right )\right )} C}{b^{\frac {3}{2}}} + \frac {8 \, A \arctan \left (\frac {\sin \left (d x + c\right )}{\cos \left (d x + c\right ) + 1}\right )}{b^{\frac {3}{2}}} + \frac {4 \, B \sin \left (d x + c\right )}{b^{\frac {3}{2}}}}{4 \, d} \] Input:
integrate(cos(d*x+c)^(3/2)*(A+B*cos(d*x+c)+C*cos(d*x+c)^2)/(b*cos(d*x+c))^ (3/2),x, algorithm="maxima")
Output:
1/4*((2*d*x + 2*c + sin(2*d*x + 2*c))*C/b^(3/2) + 8*A*arctan(sin(d*x + c)/ (cos(d*x + c) + 1))/b^(3/2) + 4*B*sin(d*x + c)/b^(3/2))/d
Exception generated. \[ \int \frac {\cos ^{\frac {3}{2}}(c+d x) \left (A+B \cos (c+d x)+C \cos ^2(c+d x)\right )}{(b \cos (c+d x))^{3/2}} \, dx=\text {Exception raised: TypeError} \] Input:
integrate(cos(d*x+c)^(3/2)*(A+B*cos(d*x+c)+C*cos(d*x+c)^2)/(b*cos(d*x+c))^ (3/2),x, algorithm="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
Time = 1.01 (sec) , antiderivative size = 93, normalized size of antiderivative = 0.69 \[ \int \frac {\cos ^{\frac {3}{2}}(c+d x) \left (A+B \cos (c+d x)+C \cos ^2(c+d x)\right )}{(b \cos (c+d x))^{3/2}} \, dx=\frac {\sqrt {\cos \left (c+d\,x\right )}\,\sqrt {b\,\cos \left (c+d\,x\right )}\,\left (C\,\sin \left (c+d\,x\right )+4\,B\,\sin \left (2\,c+2\,d\,x\right )+C\,\sin \left (3\,c+3\,d\,x\right )+8\,A\,d\,x\,\cos \left (c+d\,x\right )+4\,C\,d\,x\,\cos \left (c+d\,x\right )\right )}{4\,b^2\,d\,\left (\cos \left (2\,c+2\,d\,x\right )+1\right )} \] Input:
int((cos(c + d*x)^(3/2)*(A + B*cos(c + d*x) + C*cos(c + d*x)^2))/(b*cos(c + d*x))^(3/2),x)
Output:
(cos(c + d*x)^(1/2)*(b*cos(c + d*x))^(1/2)*(C*sin(c + d*x) + 4*B*sin(2*c + 2*d*x) + C*sin(3*c + 3*d*x) + 8*A*d*x*cos(c + d*x) + 4*C*d*x*cos(c + d*x) ))/(4*b^2*d*(cos(2*c + 2*d*x) + 1))
Time = 0.17 (sec) , antiderivative size = 43, normalized size of antiderivative = 0.32 \[ \int \frac {\cos ^{\frac {3}{2}}(c+d x) \left (A+B \cos (c+d x)+C \cos ^2(c+d x)\right )}{(b \cos (c+d x))^{3/2}} \, dx=\frac {\sqrt {b}\, \left (\cos \left (d x +c \right ) \sin \left (d x +c \right ) c +2 \sin \left (d x +c \right ) b +2 a d x +c d x \right )}{2 b^{2} d} \] Input:
int(cos(d*x+c)^(3/2)*(A+B*cos(d*x+c)+C*cos(d*x+c)^2)/(b*cos(d*x+c))^(3/2), x)
Output:
(sqrt(b)*(cos(c + d*x)*sin(c + d*x)*c + 2*sin(c + d*x)*b + 2*a*d*x + c*d*x ))/(2*b**2*d)