Integrand size = 33, antiderivative size = 148 \[ \int \frac {\cos ^{\frac {7}{2}}(c+d x) (A+B \cos (c+d x))}{(b \cos (c+d x))^{3/2}} \, dx=\frac {A 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 {A \cos ^{\frac {3}{2}}(c+d x) \sin (c+d x)}{2 b d \sqrt {b \cos (c+d x)}}-\frac {B \sqrt {\cos (c+d x)} \sin ^3(c+d x)}{3 b d \sqrt {b \cos (c+d x)}} \] Output:
1/2*A*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*A*cos(d*x+c)^(3/2)*sin(d*x+c)/b/d/(b*cos( d*x+c))^(1/2)-1/3*B*cos(d*x+c)^(1/2)*sin(d*x+c)^3/b/d/(b*cos(d*x+c))^(1/2)
Time = 0.60 (sec) , antiderivative size = 69, normalized size of antiderivative = 0.47 \[ \int \frac {\cos ^{\frac {7}{2}}(c+d x) (A+B \cos (c+d x))}{(b \cos (c+d x))^{3/2}} \, dx=\frac {\cos ^{\frac {3}{2}}(c+d x) (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 (b \cos (c+d x))^{3/2}} \] Input:
Integrate[(Cos[c + d*x]^(7/2)*(A + B*Cos[c + d*x]))/(b*Cos[c + d*x])^(3/2) ,x]
Output:
(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*(b*Cos[c + d*x])^(3/2))
Time = 0.38 (sec) , antiderivative size = 81, normalized size of antiderivative = 0.55, 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 \frac {\cos ^{\frac {7}{2}}(c+d x) (A+B \cos (c+d x))}{(b \cos (c+d x))^{3/2}} \, dx\) |
\(\Big \downarrow \) 2031 |
\(\displaystyle \frac {\sqrt {\cos (c+d x)} \int \cos ^2(c+d x) (A+B \cos (c+d x))dx}{b \sqrt {b \cos (c+d x)}}\) |
\(\Big \downarrow \) 3042 |
\(\displaystyle \frac {\sqrt {\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}{b \sqrt {b \cos (c+d x)}}\) |
\(\Big \downarrow \) 3227 |
\(\displaystyle \frac {\sqrt {\cos (c+d x)} \left (A \int \cos ^2(c+d x)dx+B \int \cos ^3(c+d x)dx\right )}{b \sqrt {b \cos (c+d x)}}\) |
\(\Big \downarrow \) 3042 |
\(\displaystyle \frac {\sqrt {\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 )}{b \sqrt {b \cos (c+d x)}}\) |
\(\Big \downarrow \) 3113 |
\(\displaystyle \frac {\sqrt {\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 )}{b \sqrt {b \cos (c+d x)}}\) |
\(\Big \downarrow \) 2009 |
\(\displaystyle \frac {\sqrt {\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 )}{b \sqrt {b \cos (c+d x)}}\) |
\(\Big \downarrow \) 3115 |
\(\displaystyle \frac {\sqrt {\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 )}{b \sqrt {b \cos (c+d x)}}\) |
\(\Big \downarrow \) 24 |
\(\displaystyle \frac {\sqrt {\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 )}{b \sqrt {b \cos (c+d x)}}\) |
Input:
Int[(Cos[c + d*x]^(7/2)*(A + B*Cos[c + d*x]))/(b*Cos[c + d*x])^(3/2),x]
Output:
(Sqrt[Cos[c + d*x]]*(A*(x/2 + (Cos[c + d*x]*Sin[c + d*x])/(2*d)) - (B*(-Si n[c + d*x] + Sin[c + d*x]^3/3))/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]
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.55 (sec) , antiderivative size = 71, normalized size of antiderivative = 0.48
method | result | size |
default | \(\frac {\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 )}}{6 b d \sqrt {\cos \left (d x +c \right ) b}}\) | \(71\) |
parts | \(\frac {A \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 {\cos \left (d x +c \right ) b}\, b}+\frac {B \sin \left (d x +c \right ) \left (\cos \left (d x +c \right )^{2}+2\right ) \sqrt {\cos \left (d x +c \right )}}{3 d \sqrt {\cos \left (d x +c \right ) b}\, b}\) | \(90\) |
risch | \(\frac {A x \sqrt {\cos \left (d x +c \right )}}{2 b \sqrt {\cos \left (d x +c \right ) b}}+\frac {3 B \sqrt {\cos \left (d x +c \right )}\, \sin \left (d x +c \right )}{4 b d \sqrt {\cos \left (d x +c \right ) b}}+\frac {\sqrt {\cos \left (d x +c \right )}\, B \sin \left (3 d x +3 c \right )}{12 b \sqrt {\cos \left (d x +c \right ) b}\, d}+\frac {\sqrt {\cos \left (d x +c \right )}\, A \sin \left (2 d x +2 c \right )}{4 b \sqrt {\cos \left (d x +c \right ) b}\, d}\) | \(132\) |
Input:
int(cos(d*x+c)^(7/2)*(A+B*cos(d*x+c))/(cos(d*x+c)*b)^(3/2),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)^(1/2)/(cos(d*x+c)*b)^(1/2)
Time = 0.11 (sec) , antiderivative size = 236, normalized size of antiderivative = 1.59 \[ \int \frac {\cos ^{\frac {7}{2}}(c+d x) (A+B \cos (c+d x))}{(b \cos (c+d x))^{3/2}} \, dx=\left [-\frac {3 \, A \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 (2 \, B \cos \left (d x + c\right )^{2} + 3 \, A \cos \left (d x + c\right ) + 4 \, B\right )} \sqrt {b \cos \left (d x + c\right )} \sqrt {\cos \left (d x + c\right )} \sin \left (d x + c\right )}{12 \, b^{2} d \cos \left (d x + c\right )}, \frac {3 \, A \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 (2 \, B \cos \left (d x + c\right )^{2} + 3 \, A \cos \left (d x + c\right ) + 4 \, B\right )} \sqrt {b \cos \left (d x + c\right )} \sqrt {\cos \left (d x + c\right )} \sin \left (d x + c\right )}{6 \, b^{2} d \cos \left (d x + c\right )}\right ] \] Input:
integrate(cos(d*x+c)^(7/2)*(A+B*cos(d*x+c))/(b*cos(d*x+c))^(3/2),x, algori thm="fricas")
Output:
[-1/12*(3*A*sqrt(-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*cos(d*x + c )^2 + 3*A*cos(d*x + c) + 4*B)*sqrt(b*cos(d*x + c))*sqrt(cos(d*x + c))*sin( d*x + c))/(b^2*d*cos(d*x + c)), 1/6*(3*A*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) + (2*B*cos(d*x + c)^2 + 3*A*cos(d*x + c) + 4*B)*sqrt(b*cos(d*x + c))*sqrt(cos(d*x + c))*s in(d*x + c))/(b^2*d*cos(d*x + c))]
Timed out. \[ \int \frac {\cos ^{\frac {7}{2}}(c+d x) (A+B \cos (c+d x))}{(b \cos (c+d x))^{3/2}} \, dx=\text {Timed out} \] Input:
integrate(cos(d*x+c)**(7/2)*(A+B*cos(d*x+c))/(b*cos(d*x+c))**(3/2),x)
Output:
Timed out
Time = 0.39 (sec) , antiderivative size = 68, normalized size of antiderivative = 0.46 \[ \int \frac {\cos ^{\frac {7}{2}}(c+d x) (A+B \cos (c+d x))}{(b \cos (c+d x))^{3/2}} \, dx=\frac {\frac {3 \, {\left (2 \, d x + 2 \, c + \sin \left (2 \, d x + 2 \, c\right )\right )} A}{b^{\frac {3}{2}}} + \frac {B {\left (\sin \left (3 \, d x + 3 \, c\right ) + 9 \, \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^{\frac {3}{2}}}}{12 \, d} \] Input:
integrate(cos(d*x+c)^(7/2)*(A+B*cos(d*x+c))/(b*cos(d*x+c))^(3/2),x, algori thm="maxima")
Output:
1/12*(3*(2*d*x + 2*c + sin(2*d*x + 2*c))*A/b^(3/2) + B*(sin(3*d*x + 3*c) + 9*sin(1/3*arctan2(sin(3*d*x + 3*c), cos(3*d*x + 3*c))))/b^(3/2))/d
Exception generated. \[ \int \frac {\cos ^{\frac {7}{2}}(c+d x) (A+B \cos (c+d x))}{(b \cos (c+d x))^{3/2}} \, dx=\text {Exception raised: TypeError} \] Input:
integrate(cos(d*x+c)^(7/2)*(A+B*cos(d*x+c))/(b*cos(d*x+c))^(3/2),x, algori thm="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 = 41.68 (sec) , antiderivative size = 95, normalized size of antiderivative = 0.64 \[ \int \frac {\cos ^{\frac {7}{2}}(c+d x) (A+B \cos (c+d x))}{(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 (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\,b^2\,d\,\left (\cos \left (2\,c+2\,d\,x\right )+1\right )} \] Input:
int((cos(c + d*x)^(7/2)*(A + B*cos(c + d*x)))/(b*cos(c + d*x))^(3/2),x)
Output:
(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*b^2*d*(cos(2*c + 2*d*x) + 1))
Time = 0.18 (sec) , antiderivative size = 51, normalized size of antiderivative = 0.34 \[ \int \frac {\cos ^{\frac {7}{2}}(c+d x) (A+B \cos (c+d x))}{(b \cos (c+d x))^{3/2}} \, dx=\frac {\sqrt {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 b^{2} d} \] Input:
int(cos(d*x+c)^(7/2)*(A+B*cos(d*x+c))/(b*cos(d*x+c))^(3/2),x)
Output:
(sqrt(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*b**2*d)