Integrand size = 43, antiderivative size = 277 \[ \int \frac {\cos ^3(c+d x) \left (A+B \cos (c+d x)+C \cos ^2(c+d x)\right )}{(a+a \cos (c+d x))^{3/2}} \, dx=\frac {(11 A-15 B+19 C) \text {arctanh}\left (\frac {\sqrt {a} \sin (c+d x)}{\sqrt {2} \sqrt {a+a \cos (c+d x)}}\right )}{2 \sqrt {2} a^{3/2} d}-\frac {(A-B+C) \cos ^4(c+d x) \sin (c+d x)}{2 d (a+a \cos (c+d x))^{3/2}}-\frac {(455 A-651 B+799 C) \sin (c+d x)}{105 a d \sqrt {a+a \cos (c+d x)}}-\frac {(35 A-63 B+67 C) \cos ^2(c+d x) \sin (c+d x)}{70 a d \sqrt {a+a \cos (c+d x)}}+\frac {(7 A-7 B+11 C) \cos ^3(c+d x) \sin (c+d x)}{14 a d \sqrt {a+a \cos (c+d x)}}+\frac {(245 A-273 B+397 C) \sqrt {a+a \cos (c+d x)} \sin (c+d x)}{210 a^2 d} \] Output:
1/4*(11*A-15*B+19*C)*arctanh(1/2*a^(1/2)*sin(d*x+c)*2^(1/2)/(a+a*cos(d*x+c ))^(1/2))*2^(1/2)/a^(3/2)/d-1/2*(A-B+C)*cos(d*x+c)^4*sin(d*x+c)/d/(a+a*cos (d*x+c))^(3/2)-1/105*(455*A-651*B+799*C)*sin(d*x+c)/a/d/(a+a*cos(d*x+c))^( 1/2)-1/70*(35*A-63*B+67*C)*cos(d*x+c)^2*sin(d*x+c)/a/d/(a+a*cos(d*x+c))^(1 /2)+1/14*(7*A-7*B+11*C)*cos(d*x+c)^3*sin(d*x+c)/a/d/(a+a*cos(d*x+c))^(1/2) +1/210*(245*A-273*B+397*C)*(a+a*cos(d*x+c))^(1/2)*sin(d*x+c)/a^2/d
Time = 1.73 (sec) , antiderivative size = 180, normalized size of antiderivative = 0.65 \[ \int \frac {\cos ^3(c+d x) \left (A+B \cos (c+d x)+C \cos ^2(c+d x)\right )}{(a+a \cos (c+d x))^{3/2}} \, dx=\frac {-105 (11 A-15 B+19 C) \text {arctanh}\left (\sin \left (\frac {1}{2} (c+d x)\right )\right ) \cos ^5\left (\frac {1}{2} (c+d x)\right )+\frac {1}{2} \cos ^3\left (\frac {1}{2} (c+d x)\right ) (1190 A-1974 B+2161 C+6 (140 A-273 B+277 C) \cos (c+d x)-4 (35 A-21 B+64 C) \cos (2 (c+d x))-42 B \cos (3 (c+d x))+18 C \cos (3 (c+d x))-15 C \cos (4 (c+d x))) \sin \left (\frac {1}{2} (c+d x)\right )}{105 d (a (1+\cos (c+d x)))^{3/2} \left (-1+\sin ^2\left (\frac {1}{2} (c+d x)\right )\right )} \] Input:
Integrate[(Cos[c + d*x]^3*(A + B*Cos[c + d*x] + C*Cos[c + d*x]^2))/(a + a* Cos[c + d*x])^(3/2),x]
Output:
(-105*(11*A - 15*B + 19*C)*ArcTanh[Sin[(c + d*x)/2]]*Cos[(c + d*x)/2]^5 + (Cos[(c + d*x)/2]^3*(1190*A - 1974*B + 2161*C + 6*(140*A - 273*B + 277*C)* Cos[c + d*x] - 4*(35*A - 21*B + 64*C)*Cos[2*(c + d*x)] - 42*B*Cos[3*(c + d *x)] + 18*C*Cos[3*(c + d*x)] - 15*C*Cos[4*(c + d*x)])*Sin[(c + d*x)/2])/2) /(105*d*(a*(1 + Cos[c + d*x]))^(3/2)*(-1 + Sin[(c + d*x)/2]^2))
Time = 1.87 (sec) , antiderivative size = 303, normalized size of antiderivative = 1.09, number of steps used = 20, number of rules used = 19, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.442, Rules used = {3042, 3520, 27, 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) \left (A+B \cos (c+d x)+C \cos ^2(c+d x)\right )}{(a \cos (c+d x)+a)^{3/2}} \, 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 )+C \sin \left (c+d x+\frac {\pi }{2}\right )^2\right )}{\left (a \sin \left (c+d x+\frac {\pi }{2}\right )+a\right )^{3/2}}dx\) |
\(\Big \downarrow \) 3520 |
\(\displaystyle \frac {\int -\frac {\cos ^3(c+d x) (4 a (A-2 B+2 C)-a (7 A-7 B+11 C) \cos (c+d x))}{2 \sqrt {\cos (c+d x) a+a}}dx}{2 a^2}-\frac {(A-B+C) \sin (c+d x) \cos ^4(c+d x)}{2 d (a \cos (c+d x)+a)^{3/2}}\) |
\(\Big \downarrow \) 27 |
\(\displaystyle -\frac {\int \frac {\cos ^3(c+d x) (4 a (A-2 B+2 C)-a (7 A-7 B+11 C) \cos (c+d x))}{\sqrt {\cos (c+d x) a+a}}dx}{4 a^2}-\frac {(A-B+C) \sin (c+d x) \cos ^4(c+d x)}{2 d (a \cos (c+d x)+a)^{3/2}}\) |
\(\Big \downarrow \) 3042 |
\(\displaystyle -\frac {\int \frac {\sin \left (c+d x+\frac {\pi }{2}\right )^3 \left (4 a (A-2 B+2 C)-a (7 A-7 B+11 C) \sin \left (c+d x+\frac {\pi }{2}\right )\right )}{\sqrt {\sin \left (c+d x+\frac {\pi }{2}\right ) a+a}}dx}{4 a^2}-\frac {(A-B+C) \sin (c+d x) \cos ^4(c+d x)}{2 d (a \cos (c+d x)+a)^{3/2}}\) |
\(\Big \downarrow \) 3462 |
\(\displaystyle -\frac {\frac {2 \int -\frac {\cos ^2(c+d x) \left (6 a^2 (7 A-7 B+11 C)-a^2 (35 A-63 B+67 C) \cos (c+d x)\right )}{2 \sqrt {\cos (c+d x) a+a}}dx}{7 a}-\frac {2 a (7 A-7 B+11 C) \sin (c+d x) \cos ^3(c+d x)}{7 d \sqrt {a \cos (c+d x)+a}}}{4 a^2}-\frac {(A-B+C) \sin (c+d x) \cos ^4(c+d x)}{2 d (a \cos (c+d x)+a)^{3/2}}\) |
\(\Big \downarrow \) 27 |
\(\displaystyle -\frac {-\frac {\int \frac {\cos ^2(c+d x) \left (6 a^2 (7 A-7 B+11 C)-a^2 (35 A-63 B+67 C) \cos (c+d x)\right )}{\sqrt {\cos (c+d x) a+a}}dx}{7 a}-\frac {2 a (7 A-7 B+11 C) \sin (c+d x) \cos ^3(c+d x)}{7 d \sqrt {a \cos (c+d x)+a}}}{4 a^2}-\frac {(A-B+C) \sin (c+d x) \cos ^4(c+d x)}{2 d (a \cos (c+d x)+a)^{3/2}}\) |
\(\Big \downarrow \) 3042 |
\(\displaystyle -\frac {-\frac {\int \frac {\sin \left (c+d x+\frac {\pi }{2}\right )^2 \left (6 a^2 (7 A-7 B+11 C)-a^2 (35 A-63 B+67 C) \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 a (7 A-7 B+11 C) \sin (c+d x) \cos ^3(c+d x)}{7 d \sqrt {a \cos (c+d x)+a}}}{4 a^2}-\frac {(A-B+C) \sin (c+d x) \cos ^4(c+d x)}{2 d (a \cos (c+d x)+a)^{3/2}}\) |
\(\Big \downarrow \) 3462 |
\(\displaystyle -\frac {-\frac {\frac {2 \int -\frac {\cos (c+d x) \left (4 a^3 (35 A-63 B+67 C)-a^3 (245 A-273 B+397 C) \cos (c+d x)\right )}{2 \sqrt {\cos (c+d x) a+a}}dx}{5 a}-\frac {2 a^2 (35 A-63 B+67 C) \sin (c+d x) \cos ^2(c+d x)}{5 d \sqrt {a \cos (c+d x)+a}}}{7 a}-\frac {2 a (7 A-7 B+11 C) \sin (c+d x) \cos ^3(c+d x)}{7 d \sqrt {a \cos (c+d x)+a}}}{4 a^2}-\frac {(A-B+C) \sin (c+d x) \cos ^4(c+d x)}{2 d (a \cos (c+d x)+a)^{3/2}}\) |
\(\Big \downarrow \) 27 |
\(\displaystyle -\frac {-\frac {-\frac {\int \frac {\cos (c+d x) \left (4 a^3 (35 A-63 B+67 C)-a^3 (245 A-273 B+397 C) \cos (c+d x)\right )}{\sqrt {\cos (c+d x) a+a}}dx}{5 a}-\frac {2 a^2 (35 A-63 B+67 C) \sin (c+d x) \cos ^2(c+d x)}{5 d \sqrt {a \cos (c+d x)+a}}}{7 a}-\frac {2 a (7 A-7 B+11 C) \sin (c+d x) \cos ^3(c+d x)}{7 d \sqrt {a \cos (c+d x)+a}}}{4 a^2}-\frac {(A-B+C) \sin (c+d x) \cos ^4(c+d x)}{2 d (a \cos (c+d x)+a)^{3/2}}\) |
\(\Big \downarrow \) 3042 |
\(\displaystyle -\frac {-\frac {-\frac {\int \frac {\sin \left (c+d x+\frac {\pi }{2}\right ) \left (4 a^3 (35 A-63 B+67 C)-a^3 (245 A-273 B+397 C) \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^2 (35 A-63 B+67 C) \sin (c+d x) \cos ^2(c+d x)}{5 d \sqrt {a \cos (c+d x)+a}}}{7 a}-\frac {2 a (7 A-7 B+11 C) \sin (c+d x) \cos ^3(c+d x)}{7 d \sqrt {a \cos (c+d x)+a}}}{4 a^2}-\frac {(A-B+C) \sin (c+d x) \cos ^4(c+d x)}{2 d (a \cos (c+d x)+a)^{3/2}}\) |
\(\Big \downarrow \) 3447 |
\(\displaystyle -\frac {-\frac {-\frac {\int \frac {4 a^3 (35 A-63 B+67 C) \cos (c+d x)-a^3 (245 A-273 B+397 C) \cos ^2(c+d x)}{\sqrt {\cos (c+d x) a+a}}dx}{5 a}-\frac {2 a^2 (35 A-63 B+67 C) \sin (c+d x) \cos ^2(c+d x)}{5 d \sqrt {a \cos (c+d x)+a}}}{7 a}-\frac {2 a (7 A-7 B+11 C) \sin (c+d x) \cos ^3(c+d x)}{7 d \sqrt {a \cos (c+d x)+a}}}{4 a^2}-\frac {(A-B+C) \sin (c+d x) \cos ^4(c+d x)}{2 d (a \cos (c+d x)+a)^{3/2}}\) |
\(\Big \downarrow \) 3042 |
\(\displaystyle -\frac {-\frac {-\frac {\int \frac {4 a^3 (35 A-63 B+67 C) \sin \left (c+d x+\frac {\pi }{2}\right )-a^3 (245 A-273 B+397 C) \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^2 (35 A-63 B+67 C) \sin (c+d x) \cos ^2(c+d x)}{5 d \sqrt {a \cos (c+d x)+a}}}{7 a}-\frac {2 a (7 A-7 B+11 C) \sin (c+d x) \cos ^3(c+d x)}{7 d \sqrt {a \cos (c+d x)+a}}}{4 a^2}-\frac {(A-B+C) \sin (c+d x) \cos ^4(c+d x)}{2 d (a \cos (c+d x)+a)^{3/2}}\) |
\(\Big \downarrow \) 3502 |
\(\displaystyle -\frac {-\frac {-\frac {\frac {2 \int -\frac {a^4 (245 A-273 B+397 C)-2 a^4 (455 A-651 B+799 C) \cos (c+d x)}{2 \sqrt {\cos (c+d x) a+a}}dx}{3 a}-\frac {2 a^2 (245 A-273 B+397 C) \sin (c+d x) \sqrt {a \cos (c+d x)+a}}{3 d}}{5 a}-\frac {2 a^2 (35 A-63 B+67 C) \sin (c+d x) \cos ^2(c+d x)}{5 d \sqrt {a \cos (c+d x)+a}}}{7 a}-\frac {2 a (7 A-7 B+11 C) \sin (c+d x) \cos ^3(c+d x)}{7 d \sqrt {a \cos (c+d x)+a}}}{4 a^2}-\frac {(A-B+C) \sin (c+d x) \cos ^4(c+d x)}{2 d (a \cos (c+d x)+a)^{3/2}}\) |
\(\Big \downarrow \) 27 |
\(\displaystyle -\frac {-\frac {-\frac {-\frac {\int \frac {a^4 (245 A-273 B+397 C)-2 a^4 (455 A-651 B+799 C) \cos (c+d x)}{\sqrt {\cos (c+d x) a+a}}dx}{3 a}-\frac {2 a^2 (245 A-273 B+397 C) \sin (c+d x) \sqrt {a \cos (c+d x)+a}}{3 d}}{5 a}-\frac {2 a^2 (35 A-63 B+67 C) \sin (c+d x) \cos ^2(c+d x)}{5 d \sqrt {a \cos (c+d x)+a}}}{7 a}-\frac {2 a (7 A-7 B+11 C) \sin (c+d x) \cos ^3(c+d x)}{7 d \sqrt {a \cos (c+d x)+a}}}{4 a^2}-\frac {(A-B+C) \sin (c+d x) \cos ^4(c+d x)}{2 d (a \cos (c+d x)+a)^{3/2}}\) |
\(\Big \downarrow \) 3042 |
\(\displaystyle -\frac {-\frac {-\frac {-\frac {\int \frac {a^4 (245 A-273 B+397 C)-2 a^4 (455 A-651 B+799 C) \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^2 (245 A-273 B+397 C) \sin (c+d x) \sqrt {a \cos (c+d x)+a}}{3 d}}{5 a}-\frac {2 a^2 (35 A-63 B+67 C) \sin (c+d x) \cos ^2(c+d x)}{5 d \sqrt {a \cos (c+d x)+a}}}{7 a}-\frac {2 a (7 A-7 B+11 C) \sin (c+d x) \cos ^3(c+d x)}{7 d \sqrt {a \cos (c+d x)+a}}}{4 a^2}-\frac {(A-B+C) \sin (c+d x) \cos ^4(c+d x)}{2 d (a \cos (c+d x)+a)^{3/2}}\) |
\(\Big \downarrow \) 3230 |
\(\displaystyle -\frac {-\frac {-\frac {-\frac {105 a^4 (11 A-15 B+19 C) \int \frac {1}{\sqrt {\cos (c+d x) a+a}}dx-\frac {4 a^4 (455 A-651 B+799 C) \sin (c+d x)}{d \sqrt {a \cos (c+d x)+a}}}{3 a}-\frac {2 a^2 (245 A-273 B+397 C) \sin (c+d x) \sqrt {a \cos (c+d x)+a}}{3 d}}{5 a}-\frac {2 a^2 (35 A-63 B+67 C) \sin (c+d x) \cos ^2(c+d x)}{5 d \sqrt {a \cos (c+d x)+a}}}{7 a}-\frac {2 a (7 A-7 B+11 C) \sin (c+d x) \cos ^3(c+d x)}{7 d \sqrt {a \cos (c+d x)+a}}}{4 a^2}-\frac {(A-B+C) \sin (c+d x) \cos ^4(c+d x)}{2 d (a \cos (c+d x)+a)^{3/2}}\) |
\(\Big \downarrow \) 3042 |
\(\displaystyle -\frac {-\frac {-\frac {-\frac {105 a^4 (11 A-15 B+19 C) \int \frac {1}{\sqrt {\sin \left (c+d x+\frac {\pi }{2}\right ) a+a}}dx-\frac {4 a^4 (455 A-651 B+799 C) \sin (c+d x)}{d \sqrt {a \cos (c+d x)+a}}}{3 a}-\frac {2 a^2 (245 A-273 B+397 C) \sin (c+d x) \sqrt {a \cos (c+d x)+a}}{3 d}}{5 a}-\frac {2 a^2 (35 A-63 B+67 C) \sin (c+d x) \cos ^2(c+d x)}{5 d \sqrt {a \cos (c+d x)+a}}}{7 a}-\frac {2 a (7 A-7 B+11 C) \sin (c+d x) \cos ^3(c+d x)}{7 d \sqrt {a \cos (c+d x)+a}}}{4 a^2}-\frac {(A-B+C) \sin (c+d x) \cos ^4(c+d x)}{2 d (a \cos (c+d x)+a)^{3/2}}\) |
\(\Big \downarrow \) 3128 |
\(\displaystyle -\frac {-\frac {-\frac {-\frac {-\frac {210 a^4 (11 A-15 B+19 C) \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^4 (455 A-651 B+799 C) \sin (c+d x)}{d \sqrt {a \cos (c+d x)+a}}}{3 a}-\frac {2 a^2 (245 A-273 B+397 C) \sin (c+d x) \sqrt {a \cos (c+d x)+a}}{3 d}}{5 a}-\frac {2 a^2 (35 A-63 B+67 C) \sin (c+d x) \cos ^2(c+d x)}{5 d \sqrt {a \cos (c+d x)+a}}}{7 a}-\frac {2 a (7 A-7 B+11 C) \sin (c+d x) \cos ^3(c+d x)}{7 d \sqrt {a \cos (c+d x)+a}}}{4 a^2}-\frac {(A-B+C) \sin (c+d x) \cos ^4(c+d x)}{2 d (a \cos (c+d x)+a)^{3/2}}\) |
\(\Big \downarrow \) 219 |
\(\displaystyle -\frac {-\frac {-\frac {2 a^2 (35 A-63 B+67 C) \sin (c+d x) \cos ^2(c+d x)}{5 d \sqrt {a \cos (c+d x)+a}}-\frac {-\frac {2 a^2 (245 A-273 B+397 C) \sin (c+d x) \sqrt {a \cos (c+d x)+a}}{3 d}-\frac {\frac {105 \sqrt {2} a^{7/2} (11 A-15 B+19 C) \text {arctanh}\left (\frac {\sqrt {a} \sin (c+d x)}{\sqrt {2} \sqrt {a \cos (c+d x)+a}}\right )}{d}-\frac {4 a^4 (455 A-651 B+799 C) \sin (c+d x)}{d \sqrt {a \cos (c+d x)+a}}}{3 a}}{5 a}}{7 a}-\frac {2 a (7 A-7 B+11 C) \sin (c+d x) \cos ^3(c+d x)}{7 d \sqrt {a \cos (c+d x)+a}}}{4 a^2}-\frac {(A-B+C) \sin (c+d x) \cos ^4(c+d x)}{2 d (a \cos (c+d x)+a)^{3/2}}\) |
Input:
Int[(Cos[c + d*x]^3*(A + B*Cos[c + d*x] + C*Cos[c + d*x]^2))/(a + a*Cos[c + d*x])^(3/2),x]
Output:
-1/2*((A - B + C)*Cos[c + d*x]^4*Sin[c + d*x])/(d*(a + a*Cos[c + d*x])^(3/ 2)) - ((-2*a*(7*A - 7*B + 11*C)*Cos[c + d*x]^3*Sin[c + d*x])/(7*d*Sqrt[a + a*Cos[c + d*x]]) - ((-2*a^2*(35*A - 63*B + 67*C)*Cos[c + d*x]^2*Sin[c + d *x])/(5*d*Sqrt[a + a*Cos[c + d*x]]) - ((-2*a^2*(245*A - 273*B + 397*C)*Sqr t[a + a*Cos[c + d*x]]*Sin[c + d*x])/(3*d) - ((105*Sqrt[2]*a^(7/2)*(11*A - 15*B + 19*C)*ArcTanh[(Sqrt[a]*Sin[c + d*x])/(Sqrt[2]*Sqrt[a + a*Cos[c + d* x]])])/d - (4*a^4*(455*A - 651*B + 799*C)*Sin[c + d*x])/(d*Sqrt[a + a*Cos[ c + d*x]]))/(3*a))/(5*a))/(7*a))/(4*a^2)
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]
Int[((a_) + (b_.)*sin[(e_.) + (f_.)*(x_)])^(m_)*((c_.) + (d_.)*sin[(e_.) + (f_.)*(x_)])^(n_.)*((A_.) + (B_.)*sin[(e_.) + (f_.)*(x_)] + (C_.)*sin[(e_.) + (f_.)*(x_)]^2), x_Symbol] :> Simp[(a*A - b*B + a*C)*Cos[e + f*x]*(a + b* Sin[e + f*x])^m*((c + d*Sin[e + f*x])^(n + 1)/(f*(b*c - a*d)*(2*m + 1))), x ] + Simp[1/(b*(b*c - a*d)*(2*m + 1)) Int[(a + b*Sin[e + f*x])^(m + 1)*(c + d*Sin[e + f*x])^n*Simp[A*(a*c*(m + 1) - b*d*(2*m + n + 2)) + B*(b*c*m + a *d*(n + 1)) - C*(a*c*m + b*d*(n + 1)) + (d*(a*A - b*B)*(m + n + 2) + C*(b*c *(2*m + 1) - a*d*(m - n - 1)))*Sin[e + f*x], x], x], x] /; FreeQ[{a, b, c, d, e, f, A, B, C, n}, x] && NeQ[b*c - a*d, 0] && EqQ[a^2 - b^2, 0] && NeQ[c ^2 - d^2, 0] && LtQ[m, -2^(-1)]
Leaf count of result is larger than twice the leaf count of optimal. \(576\) vs. \(2(246)=492\).
Time = 0.70 (sec) , antiderivative size = 577, normalized size of antiderivative = 2.08
method | result | size |
default | \(\frac {\sqrt {\sin \left (\frac {d x}{2}+\frac {c}{2}\right )^{2} a}\, \left (960 C \sqrt {2}\, \sqrt {\sin \left (\frac {d x}{2}+\frac {c}{2}\right )^{2} a}\, \sqrt {a}\, \sin \left (\frac {d x}{2}+\frac {c}{2}\right )^{8}-96 \sqrt {2}\, \sqrt {a}\, \sqrt {\sin \left (\frac {d x}{2}+\frac {c}{2}\right )^{2} a}\, \left (7 B +17 C \right ) \sin \left (\frac {d x}{2}+\frac {c}{2}\right )^{6}+112 \sqrt {2}\, \sqrt {a}\, \sqrt {\sin \left (\frac {d x}{2}+\frac {c}{2}\right )^{2} a}\, \left (5 A +6 B +16 C \right ) \sin \left (\frac {d x}{2}+\frac {c}{2}\right )^{4}-35 \sqrt {2}\, \left (33 A \ln \left (\frac {4 \sqrt {a}\, \sqrt {\sin \left (\frac {d x}{2}+\frac {c}{2}\right )^{2} a}+4 a}{\cos \left (\frac {d x}{2}+\frac {c}{2}\right )}\right ) a -8 A \sqrt {a}\, \sqrt {\sin \left (\frac {d x}{2}+\frac {c}{2}\right )^{2} a}-45 B \ln \left (\frac {4 \sqrt {a}\, \sqrt {\sin \left (\frac {d x}{2}+\frac {c}{2}\right )^{2} a}+4 a}{\cos \left (\frac {d x}{2}+\frac {c}{2}\right )}\right ) a +48 B \sqrt {a}\, \sqrt {\sin \left (\frac {d x}{2}+\frac {c}{2}\right )^{2} a}+57 C \ln \left (\frac {4 \sqrt {a}\, \sqrt {\sin \left (\frac {d x}{2}+\frac {c}{2}\right )^{2} a}+4 a}{\cos \left (\frac {d x}{2}+\frac {c}{2}\right )}\right ) a -16 C \sqrt {a}\, \sqrt {\sin \left (\frac {d x}{2}+\frac {c}{2}\right )^{2} a}\right ) \sin \left (\frac {d x}{2}+\frac {c}{2}\right )^{2}+1155 \sqrt {2}\, \ln \left (\frac {4 \sqrt {a}\, \sqrt {\sin \left (\frac {d x}{2}+\frac {c}{2}\right )^{2} a}+4 a}{\cos \left (\frac {d x}{2}+\frac {c}{2}\right )}\right ) a A -1575 \sqrt {2}\, \ln \left (\frac {4 \sqrt {a}\, \sqrt {\sin \left (\frac {d x}{2}+\frac {c}{2}\right )^{2} a}+4 a}{\cos \left (\frac {d x}{2}+\frac {c}{2}\right )}\right ) a B +1995 \sqrt {2}\, \ln \left (\frac {4 \sqrt {a}\, \sqrt {\sin \left (\frac {d x}{2}+\frac {c}{2}\right )^{2} a}+4 a}{\cos \left (\frac {d x}{2}+\frac {c}{2}\right )}\right ) a C -945 A \sqrt {2}\, \sqrt {\sin \left (\frac {d x}{2}+\frac {c}{2}\right )^{2} a}\, \sqrt {a}+1785 B \sqrt {2}\, \sqrt {\sin \left (\frac {d x}{2}+\frac {c}{2}\right )^{2} a}\, \sqrt {a}-1785 C \sqrt {2}\, \sqrt {\sin \left (\frac {d x}{2}+\frac {c}{2}\right )^{2} a}\, \sqrt {a}\right )}{420 \cos \left (\frac {d x}{2}+\frac {c}{2}\right ) a^{\frac {5}{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}\) | \(577\) |
parts | \(\text {Expression too large to display}\) | \(797\) |
Input:
int(cos(d*x+c)^3*(A+B*cos(d*x+c)+C*cos(d*x+c)^2)/(a+a*cos(d*x+c))^(3/2),x, method=_RETURNVERBOSE)
Output:
1/420/cos(1/2*d*x+1/2*c)*(sin(1/2*d*x+1/2*c)^2*a)^(1/2)*(960*C*2^(1/2)*(si n(1/2*d*x+1/2*c)^2*a)^(1/2)*a^(1/2)*sin(1/2*d*x+1/2*c)^8-96*2^(1/2)*a^(1/2 )*(sin(1/2*d*x+1/2*c)^2*a)^(1/2)*(7*B+17*C)*sin(1/2*d*x+1/2*c)^6+112*2^(1/ 2)*a^(1/2)*(sin(1/2*d*x+1/2*c)^2*a)^(1/2)*(5*A+6*B+16*C)*sin(1/2*d*x+1/2*c )^4-35*2^(1/2)*(33*A*ln(4/cos(1/2*d*x+1/2*c)*(a^(1/2)*(sin(1/2*d*x+1/2*c)^ 2*a)^(1/2)+a))*a-8*A*a^(1/2)*(sin(1/2*d*x+1/2*c)^2*a)^(1/2)-45*B*ln(4/cos( 1/2*d*x+1/2*c)*(a^(1/2)*(sin(1/2*d*x+1/2*c)^2*a)^(1/2)+a))*a+48*B*a^(1/2)* (sin(1/2*d*x+1/2*c)^2*a)^(1/2)+57*C*ln(4/cos(1/2*d*x+1/2*c)*(a^(1/2)*(sin( 1/2*d*x+1/2*c)^2*a)^(1/2)+a))*a-16*C*a^(1/2)*(sin(1/2*d*x+1/2*c)^2*a)^(1/2 ))*sin(1/2*d*x+1/2*c)^2+1155*2^(1/2)*ln(4/cos(1/2*d*x+1/2*c)*(a^(1/2)*(sin (1/2*d*x+1/2*c)^2*a)^(1/2)+a))*a*A-1575*2^(1/2)*ln(4/cos(1/2*d*x+1/2*c)*(a ^(1/2)*(sin(1/2*d*x+1/2*c)^2*a)^(1/2)+a))*a*B+1995*2^(1/2)*ln(4/cos(1/2*d* x+1/2*c)*(a^(1/2)*(sin(1/2*d*x+1/2*c)^2*a)^(1/2)+a))*a*C-945*A*2^(1/2)*(si n(1/2*d*x+1/2*c)^2*a)^(1/2)*a^(1/2)+1785*B*2^(1/2)*(sin(1/2*d*x+1/2*c)^2*a )^(1/2)*a^(1/2)-1785*C*2^(1/2)*(sin(1/2*d*x+1/2*c)^2*a)^(1/2)*a^(1/2))/a^( 5/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 = 259, normalized size of antiderivative = 0.94 \[ \int \frac {\cos ^3(c+d x) \left (A+B \cos (c+d x)+C \cos ^2(c+d x)\right )}{(a+a \cos (c+d x))^{3/2}} \, dx=\frac {105 \, \sqrt {2} {\left ({\left (11 \, A - 15 \, B + 19 \, C\right )} \cos \left (d x + c\right )^{2} + 2 \, {\left (11 \, A - 15 \, B + 19 \, C\right )} \cos \left (d x + c\right ) + 11 \, A - 15 \, B + 19 \, C\right )} \sqrt {a} \log \left (-\frac {a \cos \left (d x + c\right )^{2} - 2 \, \sqrt {2} \sqrt {a \cos \left (d x + c\right ) + a} \sqrt {a} \sin \left (d x + c\right ) - 2 \, a \cos \left (d x + c\right ) - 3 \, a}{\cos \left (d x + c\right )^{2} + 2 \, \cos \left (d x + c\right ) + 1}\right ) + 4 \, {\left (60 \, C \cos \left (d x + c\right )^{4} + 12 \, {\left (7 \, B - 3 \, C\right )} \cos \left (d x + c\right )^{3} + 28 \, {\left (5 \, A - 3 \, B + 7 \, C\right )} \cos \left (d x + c\right )^{2} - 12 \, {\left (35 \, A - 63 \, B + 67 \, C\right )} \cos \left (d x + c\right ) - 665 \, A + 1029 \, B - 1201 \, C\right )} \sqrt {a \cos \left (d x + c\right ) + a} \sin \left (d x + c\right )}{840 \, {\left (a^{2} d \cos \left (d x + c\right )^{2} + 2 \, a^{2} d \cos \left (d x + c\right ) + a^{2} d\right )}} \] Input:
integrate(cos(d*x+c)^3*(A+B*cos(d*x+c)+C*cos(d*x+c)^2)/(a+a*cos(d*x+c))^(3 /2),x, algorithm="fricas")
Output:
1/840*(105*sqrt(2)*((11*A - 15*B + 19*C)*cos(d*x + c)^2 + 2*(11*A - 15*B + 19*C)*cos(d*x + c) + 11*A - 15*B + 19*C)*sqrt(a)*log(-(a*cos(d*x + c)^2 - 2*sqrt(2)*sqrt(a*cos(d*x + c) + a)*sqrt(a)*sin(d*x + c) - 2*a*cos(d*x + c ) - 3*a)/(cos(d*x + c)^2 + 2*cos(d*x + c) + 1)) + 4*(60*C*cos(d*x + c)^4 + 12*(7*B - 3*C)*cos(d*x + c)^3 + 28*(5*A - 3*B + 7*C)*cos(d*x + c)^2 - 12* (35*A - 63*B + 67*C)*cos(d*x + c) - 665*A + 1029*B - 1201*C)*sqrt(a*cos(d* x + c) + a)*sin(d*x + c))/(a^2*d*cos(d*x + c)^2 + 2*a^2*d*cos(d*x + c) + a ^2*d)
Timed out. \[ \int \frac {\cos ^3(c+d x) \left (A+B \cos (c+d x)+C \cos ^2(c+d x)\right )}{(a+a \cos (c+d x))^{3/2}} \, dx=\text {Timed out} \] Input:
integrate(cos(d*x+c)**3*(A+B*cos(d*x+c)+C*cos(d*x+c)**2)/(a+a*cos(d*x+c))* *(3/2),x)
Output:
Timed out
Timed out. \[ \int \frac {\cos ^3(c+d x) \left (A+B \cos (c+d x)+C \cos ^2(c+d x)\right )}{(a+a \cos (c+d x))^{3/2}} \, dx=\text {Timed out} \] Input:
integrate(cos(d*x+c)^3*(A+B*cos(d*x+c)+C*cos(d*x+c)^2)/(a+a*cos(d*x+c))^(3 /2),x, algorithm="maxima")
Output:
Timed out
Exception generated. \[ \int \frac {\cos ^3(c+d x) \left (A+B \cos (c+d x)+C \cos ^2(c+d x)\right )}{(a+a \cos (c+d x))^{3/2}} \, dx=\text {Exception raised: TypeError} \] Input:
integrate(cos(d*x+c)^3*(A+B*cos(d*x+c)+C*cos(d*x+c)^2)/(a+a*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
Timed out. \[ \int \frac {\cos ^3(c+d x) \left (A+B \cos (c+d x)+C \cos ^2(c+d x)\right )}{(a+a \cos (c+d x))^{3/2}} \, dx=\int \frac {{\cos \left (c+d\,x\right )}^3\,\left (C\,{\cos \left (c+d\,x\right )}^2+B\,\cos \left (c+d\,x\right )+A\right )}{{\left (a+a\,\cos \left (c+d\,x\right )\right )}^{3/2}} \,d x \] Input:
int((cos(c + d*x)^3*(A + B*cos(c + d*x) + C*cos(c + d*x)^2))/(a + a*cos(c + d*x))^(3/2),x)
Output:
int((cos(c + d*x)^3*(A + B*cos(c + d*x) + C*cos(c + d*x)^2))/(a + a*cos(c + d*x))^(3/2), x)
\[ \int \frac {\cos ^3(c+d x) \left (A+B \cos (c+d x)+C \cos ^2(c+d x)\right )}{(a+a \cos (c+d x))^{3/2}} \, dx=\frac {\sqrt {a}\, \left (\left (\int \frac {\sqrt {\cos \left (d x +c \right )+1}\, \cos \left (d x +c \right )^{5}}{\cos \left (d x +c \right )^{2}+2 \cos \left (d x +c \right )+1}d x \right ) c +\left (\int \frac {\sqrt {\cos \left (d x +c \right )+1}\, \cos \left (d x +c \right )^{4}}{\cos \left (d x +c \right )^{2}+2 \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 )^{2}+2 \cos \left (d x +c \right )+1}d x \right ) a \right )}{a^{2}} \] Input:
int(cos(d*x+c)^3*(A+B*cos(d*x+c)+C*cos(d*x+c)^2)/(a+a*cos(d*x+c))^(3/2),x)
Output:
(sqrt(a)*(int((sqrt(cos(c + d*x) + 1)*cos(c + d*x)**5)/(cos(c + d*x)**2 + 2*cos(c + d*x) + 1),x)*c + int((sqrt(cos(c + d*x) + 1)*cos(c + d*x)**4)/(c os(c + d*x)**2 + 2*cos(c + d*x) + 1),x)*b + int((sqrt(cos(c + d*x) + 1)*co s(c + d*x)**3)/(cos(c + d*x)**2 + 2*cos(c + d*x) + 1),x)*a))/a**2