Integrand size = 21, antiderivative size = 87 \[ \int \csc ^3(c+d x) (a+a \sec (c+d x))^3 \, dx=-\frac {2 a^3}{d (1-\cos (c+d x))}+\frac {5 a^3 \log (1-\cos (c+d x))}{d}-\frac {5 a^3 \log (\cos (c+d x))}{d}+\frac {3 a^3 \sec (c+d x)}{d}+\frac {a^3 \sec ^2(c+d x)}{2 d} \] Output:
-2*a^3/d/(1-cos(d*x+c))+5*a^3*ln(1-cos(d*x+c))/d-5*a^3*ln(cos(d*x+c))/d+3* a^3*sec(d*x+c)/d+1/2*a^3*sec(d*x+c)^2/d
Time = 0.62 (sec) , antiderivative size = 88, normalized size of antiderivative = 1.01 \[ \int \csc ^3(c+d x) (a+a \sec (c+d x))^3 \, dx=-\frac {a^3 (1+\cos (c+d x))^3 \sec ^6\left (\frac {1}{2} (c+d x)\right ) \left (2 \csc ^2\left (\frac {1}{2} (c+d x)\right )+10 \left (\log (\cos (c+d x))-2 \log \left (\sin \left (\frac {1}{2} (c+d x)\right )\right )\right )-6 \sec (c+d x)-\sec ^2(c+d x)\right )}{16 d} \] Input:
Integrate[Csc[c + d*x]^3*(a + a*Sec[c + d*x])^3,x]
Output:
-1/16*(a^3*(1 + Cos[c + d*x])^3*Sec[(c + d*x)/2]^6*(2*Csc[(c + d*x)/2]^2 + 10*(Log[Cos[c + d*x]] - 2*Log[Sin[(c + d*x)/2]]) - 6*Sec[c + d*x] - Sec[c + d*x]^2))/d
Time = 0.46 (sec) , antiderivative size = 84, normalized size of antiderivative = 0.97, number of steps used = 12, number of rules used = 11, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.524, Rules used = {3042, 4360, 25, 25, 3042, 25, 3315, 25, 27, 86, 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 \csc ^3(c+d x) (a \sec (c+d x)+a)^3 \, dx\) |
\(\Big \downarrow \) 3042 |
\(\displaystyle \int \frac {\left (a-a \csc \left (c+d x-\frac {\pi }{2}\right )\right )^3}{\cos \left (c+d x-\frac {\pi }{2}\right )^3}dx\) |
\(\Big \downarrow \) 4360 |
\(\displaystyle \int \csc ^3(c+d x) \sec ^3(c+d x) \left (-(a (-\cos (c+d x))-a)^3\right )dx\) |
\(\Big \downarrow \) 25 |
\(\displaystyle -\int -(\cos (c+d x) a+a)^3 \csc ^3(c+d x) \sec ^3(c+d x)dx\) |
\(\Big \downarrow \) 25 |
\(\displaystyle \int \csc ^3(c+d x) \sec ^3(c+d x) (a \cos (c+d x)+a)^3dx\) |
\(\Big \downarrow \) 3042 |
\(\displaystyle \int -\frac {\left (a-a \sin \left (c+d x-\frac {\pi }{2}\right )\right )^3}{\sin \left (c+d x-\frac {\pi }{2}\right )^3 \cos \left (c+d x-\frac {\pi }{2}\right )^3}dx\) |
\(\Big \downarrow \) 25 |
\(\displaystyle -\int \frac {\left (a-a \sin \left (\frac {1}{2} (2 c-\pi )+d x\right )\right )^3}{\cos \left (\frac {1}{2} (2 c-\pi )+d x\right )^3 \sin \left (\frac {1}{2} (2 c-\pi )+d x\right )^3}dx\) |
\(\Big \downarrow \) 3315 |
\(\displaystyle \frac {a^3 \int -\frac {(\cos (c+d x) a+a) \sec ^3(c+d x)}{(a-a \cos (c+d x))^2}d(a \cos (c+d x))}{d}\) |
\(\Big \downarrow \) 25 |
\(\displaystyle -\frac {a^3 \int \frac {(\cos (c+d x) a+a) \sec ^3(c+d x)}{(a-a \cos (c+d x))^2}d(a \cos (c+d x))}{d}\) |
\(\Big \downarrow \) 27 |
\(\displaystyle -\frac {a^6 \int \frac {(\cos (c+d x) a+a) \sec ^3(c+d x)}{a^3 (a-a \cos (c+d x))^2}d(a \cos (c+d x))}{d}\) |
\(\Big \downarrow \) 86 |
\(\displaystyle -\frac {a^6 \int \left (\frac {\sec ^3(c+d x)}{a^4}+\frac {3 \sec ^2(c+d x)}{a^4}+\frac {5 \sec (c+d x)}{a^4}+\frac {5}{a^3 (a-a \cos (c+d x))}+\frac {2}{a^2 (a-a \cos (c+d x))^2}\right )d(a \cos (c+d x))}{d}\) |
\(\Big \downarrow \) 2009 |
\(\displaystyle -\frac {a^6 \left (-\frac {\sec ^2(c+d x)}{2 a^3}-\frac {3 \sec (c+d x)}{a^3}+\frac {5 \log (a \cos (c+d x))}{a^3}-\frac {5 \log (a-a \cos (c+d x))}{a^3}+\frac {2}{a^2 (a-a \cos (c+d x))}\right )}{d}\) |
Input:
Int[Csc[c + d*x]^3*(a + a*Sec[c + d*x])^3,x]
Output:
-((a^6*(2/(a^2*(a - a*Cos[c + d*x])) + (5*Log[a*Cos[c + d*x]])/a^3 - (5*Lo g[a - a*Cos[c + d*x]])/a^3 - (3*Sec[c + d*x])/a^3 - Sec[c + d*x]^2/(2*a^3) ))/d)
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_))*((c_) + (d_.)*(x_))^(n_.)*((e_.) + (f_.)*(x_))^(p_ .), x_] :> Int[ExpandIntegrand[(a + b*x)*(c + d*x)^n*(e + f*x)^p, x], x] /; FreeQ[{a, b, c, d, e, f, n}, x] && ((ILtQ[n, 0] && ILtQ[p, 0]) || EqQ[p, 1 ] || (IGtQ[p, 0] && ( !IntegerQ[n] || LeQ[9*p + 5*(n + 2), 0] || GeQ[n + p + 1, 0] || (GeQ[n + p + 2, 0] && RationalQ[a, b, c, d, e, f]))))
Int[cos[(e_.) + (f_.)*(x_)]^(p_)*((a_) + (b_.)*sin[(e_.) + (f_.)*(x_)])^(m_ .)*((c_.) + (d_.)*sin[(e_.) + (f_.)*(x_)])^(n_.), x_Symbol] :> Simp[1/(b^p* f) Subst[Int[(a + x)^(m + (p - 1)/2)*(a - x)^((p - 1)/2)*(c + (d/b)*x)^n, x], x, b*Sin[e + f*x]], x] /; FreeQ[{a, b, e, f, c, d, m, n}, x] && Intege rQ[(p - 1)/2] && EqQ[a^2 - b^2, 0]
Int[(cos[(e_.) + (f_.)*(x_)]*(g_.))^(p_.)*(csc[(e_.) + (f_.)*(x_)]*(b_.) + (a_))^(m_.), x_Symbol] :> Int[(g*Cos[e + f*x])^p*((b + a*Sin[e + f*x])^m/Si n[e + f*x]^m), x] /; FreeQ[{a, b, e, f, g, p}, x] && IntegerQ[m]
Result contains complex when optimal does not.
Time = 0.28 (sec) , antiderivative size = 132, normalized size of antiderivative = 1.52
method | result | size |
risch | \(\frac {2 a^{3} \left (5 \,{\mathrm e}^{5 i \left (d x +c \right )}-5 \,{\mathrm e}^{4 i \left (d x +c \right )}+8 \,{\mathrm e}^{3 i \left (d x +c \right )}-5 \,{\mathrm e}^{2 i \left (d x +c \right )}+5 \,{\mathrm e}^{i \left (d x +c \right )}\right )}{d \left ({\mathrm e}^{2 i \left (d x +c \right )}+1\right )^{2} \left ({\mathrm e}^{i \left (d x +c \right )}-1\right )^{2}}+\frac {10 a^{3} \ln \left ({\mathrm e}^{i \left (d x +c \right )}-1\right )}{d}-\frac {5 a^{3} \ln \left ({\mathrm e}^{2 i \left (d x +c \right )}+1\right )}{d}\) | \(132\) |
norman | \(\frac {\frac {8 a^{3} \tan \left (\frac {d x}{2}+\frac {c}{2}\right )^{2}}{d}-\frac {a^{3}}{d}-\frac {5 a^{3} \tan \left (\frac {d x}{2}+\frac {c}{2}\right )^{4}}{d}}{\tan \left (\frac {d x}{2}+\frac {c}{2}\right )^{2} \left (\tan \left (\frac {d x}{2}+\frac {c}{2}\right )^{2}-1\right )^{2}}+\frac {10 a^{3} \ln \left (\tan \left (\frac {d x}{2}+\frac {c}{2}\right )\right )}{d}-\frac {5 a^{3} \ln \left (\tan \left (\frac {d x}{2}+\frac {c}{2}\right )-1\right )}{d}-\frac {5 a^{3} \ln \left (\tan \left (\frac {d x}{2}+\frac {c}{2}\right )+1\right )}{d}\) | \(134\) |
derivativedivides | \(\frac {a^{3} \left (\frac {1}{2 \sin \left (d x +c \right )^{2} \cos \left (d x +c \right )^{2}}-\frac {1}{\sin \left (d x +c \right )^{2}}+2 \ln \left (\tan \left (d x +c \right )\right )\right )+3 a^{3} \left (-\frac {1}{2 \sin \left (d x +c \right )^{2} \cos \left (d x +c \right )}+\frac {3}{2 \cos \left (d x +c \right )}+\frac {3 \ln \left (\csc \left (d x +c \right )-\cot \left (d x +c \right )\right )}{2}\right )+3 a^{3} \left (-\frac {1}{2 \sin \left (d x +c \right )^{2}}+\ln \left (\tan \left (d x +c \right )\right )\right )+a^{3} \left (-\frac {\csc \left (d x +c \right ) \cot \left (d x +c \right )}{2}+\frac {\ln \left (\csc \left (d x +c \right )-\cot \left (d x +c \right )\right )}{2}\right )}{d}\) | \(160\) |
default | \(\frac {a^{3} \left (\frac {1}{2 \sin \left (d x +c \right )^{2} \cos \left (d x +c \right )^{2}}-\frac {1}{\sin \left (d x +c \right )^{2}}+2 \ln \left (\tan \left (d x +c \right )\right )\right )+3 a^{3} \left (-\frac {1}{2 \sin \left (d x +c \right )^{2} \cos \left (d x +c \right )}+\frac {3}{2 \cos \left (d x +c \right )}+\frac {3 \ln \left (\csc \left (d x +c \right )-\cot \left (d x +c \right )\right )}{2}\right )+3 a^{3} \left (-\frac {1}{2 \sin \left (d x +c \right )^{2}}+\ln \left (\tan \left (d x +c \right )\right )\right )+a^{3} \left (-\frac {\csc \left (d x +c \right ) \cot \left (d x +c \right )}{2}+\frac {\ln \left (\csc \left (d x +c \right )-\cot \left (d x +c \right )\right )}{2}\right )}{d}\) | \(160\) |
parallelrisch | \(\frac {a^{3} \left (9 \cot \left (\frac {d x}{2}+\frac {c}{2}\right )^{2} \cos \left (2 d x +2 c \right )-56 \cot \left (\frac {d x}{2}+\frac {c}{2}\right )^{2} \cos \left (d x +c \right )-32 \csc \left (\frac {d x}{2}+\frac {c}{2}\right )^{2}-10 \ln \left (\tan \left (\frac {d x}{2}+\frac {c}{2}\right )+1\right ) \cos \left (2 d x +2 c \right )-10 \ln \left (\tan \left (\frac {d x}{2}+\frac {c}{2}\right )-1\right ) \cos \left (2 d x +2 c \right )+20 \ln \left (\tan \left (\frac {d x}{2}+\frac {c}{2}\right )\right ) \cos \left (2 d x +2 c \right )+75 \cot \left (\frac {d x}{2}+\frac {c}{2}\right )^{2}-10 \ln \left (\tan \left (\frac {d x}{2}+\frac {c}{2}\right )+1\right )-10 \ln \left (\tan \left (\frac {d x}{2}+\frac {c}{2}\right )-1\right )+20 \ln \left (\tan \left (\frac {d x}{2}+\frac {c}{2}\right )\right )\right )}{d \left (2+2 \cos \left (2 d x +2 c \right )\right )}\) | \(198\) |
Input:
int(csc(d*x+c)^3*(a+a*sec(d*x+c))^3,x,method=_RETURNVERBOSE)
Output:
2*a^3/d/(exp(2*I*(d*x+c))+1)^2/(exp(I*(d*x+c))-1)^2*(5*exp(5*I*(d*x+c))-5* exp(4*I*(d*x+c))+8*exp(3*I*(d*x+c))-5*exp(2*I*(d*x+c))+5*exp(I*(d*x+c)))+1 0/d*a^3*ln(exp(I*(d*x+c))-1)-5/d*a^3*ln(exp(2*I*(d*x+c))+1)
Time = 0.09 (sec) , antiderivative size = 132, normalized size of antiderivative = 1.52 \[ \int \csc ^3(c+d x) (a+a \sec (c+d x))^3 \, dx=\frac {10 \, a^{3} \cos \left (d x + c\right )^{2} - 5 \, a^{3} \cos \left (d x + c\right ) - a^{3} - 10 \, {\left (a^{3} \cos \left (d x + c\right )^{3} - a^{3} \cos \left (d x + c\right )^{2}\right )} \log \left (-\cos \left (d x + c\right )\right ) + 10 \, {\left (a^{3} \cos \left (d x + c\right )^{3} - a^{3} \cos \left (d x + c\right )^{2}\right )} \log \left (-\frac {1}{2} \, \cos \left (d x + c\right ) + \frac {1}{2}\right )}{2 \, {\left (d \cos \left (d x + c\right )^{3} - d \cos \left (d x + c\right )^{2}\right )}} \] Input:
integrate(csc(d*x+c)^3*(a+a*sec(d*x+c))^3,x, algorithm="fricas")
Output:
1/2*(10*a^3*cos(d*x + c)^2 - 5*a^3*cos(d*x + c) - a^3 - 10*(a^3*cos(d*x + c)^3 - a^3*cos(d*x + c)^2)*log(-cos(d*x + c)) + 10*(a^3*cos(d*x + c)^3 - a ^3*cos(d*x + c)^2)*log(-1/2*cos(d*x + c) + 1/2))/(d*cos(d*x + c)^3 - d*cos (d*x + c)^2)
\[ \int \csc ^3(c+d x) (a+a \sec (c+d x))^3 \, dx=a^{3} \left (\int 3 \csc ^{3}{\left (c + d x \right )} \sec {\left (c + d x \right )}\, dx + \int 3 \csc ^{3}{\left (c + d x \right )} \sec ^{2}{\left (c + d x \right )}\, dx + \int \csc ^{3}{\left (c + d x \right )} \sec ^{3}{\left (c + d x \right )}\, dx + \int \csc ^{3}{\left (c + d x \right )}\, dx\right ) \] Input:
integrate(csc(d*x+c)**3*(a+a*sec(d*x+c))**3,x)
Output:
a**3*(Integral(3*csc(c + d*x)**3*sec(c + d*x), x) + Integral(3*csc(c + d*x )**3*sec(c + d*x)**2, x) + Integral(csc(c + d*x)**3*sec(c + d*x)**3, x) + Integral(csc(c + d*x)**3, x))
Time = 0.03 (sec) , antiderivative size = 84, normalized size of antiderivative = 0.97 \[ \int \csc ^3(c+d x) (a+a \sec (c+d x))^3 \, dx=\frac {10 \, a^{3} \log \left (\cos \left (d x + c\right ) - 1\right ) - 10 \, a^{3} \log \left (\cos \left (d x + c\right )\right ) + \frac {10 \, a^{3} \cos \left (d x + c\right )^{2} - 5 \, a^{3} \cos \left (d x + c\right ) - a^{3}}{\cos \left (d x + c\right )^{3} - \cos \left (d x + c\right )^{2}}}{2 \, d} \] Input:
integrate(csc(d*x+c)^3*(a+a*sec(d*x+c))^3,x, algorithm="maxima")
Output:
1/2*(10*a^3*log(cos(d*x + c) - 1) - 10*a^3*log(cos(d*x + c)) + (10*a^3*cos (d*x + c)^2 - 5*a^3*cos(d*x + c) - a^3)/(cos(d*x + c)^3 - cos(d*x + c)^2)) /d
Time = 0.13 (sec) , antiderivative size = 88, normalized size of antiderivative = 1.01 \[ \int \csc ^3(c+d x) (a+a \sec (c+d x))^3 \, dx=\frac {5 \, a^{3} \log \left ({\left | \cos \left (d x + c\right ) - 1 \right |}\right )}{d} - \frac {5 \, a^{3} \log \left ({\left | \cos \left (d x + c\right ) \right |}\right )}{d} + \frac {10 \, a^{3} \cos \left (d x + c\right )^{2} - 5 \, a^{3} \cos \left (d x + c\right ) - a^{3}}{2 \, d {\left (\cos \left (d x + c\right ) - 1\right )} \cos \left (d x + c\right )^{2}} \] Input:
integrate(csc(d*x+c)^3*(a+a*sec(d*x+c))^3,x, algorithm="giac")
Output:
5*a^3*log(abs(cos(d*x + c) - 1))/d - 5*a^3*log(abs(cos(d*x + c)))/d + 1/2* (10*a^3*cos(d*x + c)^2 - 5*a^3*cos(d*x + c) - a^3)/(d*(cos(d*x + c) - 1)*c os(d*x + c)^2)
Time = 0.09 (sec) , antiderivative size = 75, normalized size of antiderivative = 0.86 \[ \int \csc ^3(c+d x) (a+a \sec (c+d x))^3 \, dx=\frac {-5\,a^3\,{\cos \left (c+d\,x\right )}^2+\frac {5\,a^3\,\cos \left (c+d\,x\right )}{2}+\frac {a^3}{2}}{d\,\left ({\cos \left (c+d\,x\right )}^2-{\cos \left (c+d\,x\right )}^3\right )}-\frac {10\,a^3\,\mathrm {atanh}\left (2\,\cos \left (c+d\,x\right )-1\right )}{d} \] Input:
int((a + a/cos(c + d*x))^3/sin(c + d*x)^3,x)
Output:
((5*a^3*cos(c + d*x))/2 + a^3/2 - 5*a^3*cos(c + d*x)^2)/(d*(cos(c + d*x)^2 - cos(c + d*x)^3)) - (10*a^3*atanh(2*cos(c + d*x) - 1))/d
Time = 0.18 (sec) , antiderivative size = 293, normalized size of antiderivative = 3.37 \[ \int \csc ^3(c+d x) (a+a \sec (c+d x))^3 \, dx=\frac {a^{3} \left (-5 \,\mathrm {log}\left (\tan \left (\frac {d x}{2}+\frac {c}{2}\right )-1\right ) \tan \left (\frac {d x}{2}+\frac {c}{2}\right )^{6}+10 \,\mathrm {log}\left (\tan \left (\frac {d x}{2}+\frac {c}{2}\right )-1\right ) \tan \left (\frac {d x}{2}+\frac {c}{2}\right )^{4}-5 \,\mathrm {log}\left (\tan \left (\frac {d x}{2}+\frac {c}{2}\right )-1\right ) \tan \left (\frac {d x}{2}+\frac {c}{2}\right )^{2}-5 \,\mathrm {log}\left (\tan \left (\frac {d x}{2}+\frac {c}{2}\right )+1\right ) \tan \left (\frac {d x}{2}+\frac {c}{2}\right )^{6}+10 \,\mathrm {log}\left (\tan \left (\frac {d x}{2}+\frac {c}{2}\right )+1\right ) \tan \left (\frac {d x}{2}+\frac {c}{2}\right )^{4}-5 \,\mathrm {log}\left (\tan \left (\frac {d x}{2}+\frac {c}{2}\right )+1\right ) \tan \left (\frac {d x}{2}+\frac {c}{2}\right )^{2}+10 \,\mathrm {log}\left (\tan \left (\frac {d x}{2}+\frac {c}{2}\right )\right ) \tan \left (\frac {d x}{2}+\frac {c}{2}\right )^{6}-20 \,\mathrm {log}\left (\tan \left (\frac {d x}{2}+\frac {c}{2}\right )\right ) \tan \left (\frac {d x}{2}+\frac {c}{2}\right )^{4}+10 \,\mathrm {log}\left (\tan \left (\frac {d x}{2}+\frac {c}{2}\right )\right ) \tan \left (\frac {d x}{2}+\frac {c}{2}\right )^{2}-8 \tan \left (\frac {d x}{2}+\frac {c}{2}\right )^{6}+11 \tan \left (\frac {d x}{2}+\frac {c}{2}\right )^{4}-1\right )}{\tan \left (\frac {d x}{2}+\frac {c}{2}\right )^{2} d \left (\tan \left (\frac {d x}{2}+\frac {c}{2}\right )^{4}-2 \tan \left (\frac {d x}{2}+\frac {c}{2}\right )^{2}+1\right )} \] Input:
int(csc(d*x+c)^3*(a+a*sec(d*x+c))^3,x)
Output:
(a**3*( - 5*log(tan((c + d*x)/2) - 1)*tan((c + d*x)/2)**6 + 10*log(tan((c + d*x)/2) - 1)*tan((c + d*x)/2)**4 - 5*log(tan((c + d*x)/2) - 1)*tan((c + d*x)/2)**2 - 5*log(tan((c + d*x)/2) + 1)*tan((c + d*x)/2)**6 + 10*log(tan( (c + d*x)/2) + 1)*tan((c + d*x)/2)**4 - 5*log(tan((c + d*x)/2) + 1)*tan((c + d*x)/2)**2 + 10*log(tan((c + d*x)/2))*tan((c + d*x)/2)**6 - 20*log(tan( (c + d*x)/2))*tan((c + d*x)/2)**4 + 10*log(tan((c + d*x)/2))*tan((c + d*x) /2)**2 - 8*tan((c + d*x)/2)**6 + 11*tan((c + d*x)/2)**4 - 1))/(tan((c + d* x)/2)**2*d*(tan((c + d*x)/2)**4 - 2*tan((c + d*x)/2)**2 + 1))