Optimal. Leaf size=74 \[ -\frac {a \cot ^5(c+d x)}{5 d}-\frac {3 b \tanh ^{-1}(\cos (c+d x))}{8 d}-\frac {b \cot ^3(c+d x) \csc (c+d x)}{4 d}+\frac {3 b \cot (c+d x) \csc (c+d x)}{8 d} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.13, antiderivative size = 74, normalized size of antiderivative = 1.00, number of steps used = 6, number of rules used = 5, integrand size = 27, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.185, Rules used = {2838, 2607, 30, 2611, 3770} \[ -\frac {a \cot ^5(c+d x)}{5 d}-\frac {3 b \tanh ^{-1}(\cos (c+d x))}{8 d}-\frac {b \cot ^3(c+d x) \csc (c+d x)}{4 d}+\frac {3 b \cot (c+d x) \csc (c+d x)}{8 d} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 30
Rule 2607
Rule 2611
Rule 2838
Rule 3770
Rubi steps
\begin {align*} \int \cot ^4(c+d x) \csc ^2(c+d x) (a+b \sin (c+d x)) \, dx &=a \int \cot ^4(c+d x) \csc ^2(c+d x) \, dx+b \int \cot ^4(c+d x) \csc (c+d x) \, dx\\ &=-\frac {b \cot ^3(c+d x) \csc (c+d x)}{4 d}-\frac {1}{4} (3 b) \int \cot ^2(c+d x) \csc (c+d x) \, dx+\frac {a \operatorname {Subst}\left (\int x^4 \, dx,x,-\cot (c+d x)\right )}{d}\\ &=-\frac {a \cot ^5(c+d x)}{5 d}+\frac {3 b \cot (c+d x) \csc (c+d x)}{8 d}-\frac {b \cot ^3(c+d x) \csc (c+d x)}{4 d}+\frac {1}{8} (3 b) \int \csc (c+d x) \, dx\\ &=-\frac {3 b \tanh ^{-1}(\cos (c+d x))}{8 d}-\frac {a \cot ^5(c+d x)}{5 d}+\frac {3 b \cot (c+d x) \csc (c+d x)}{8 d}-\frac {b \cot ^3(c+d x) \csc (c+d x)}{4 d}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A] time = 0.04, size = 135, normalized size = 1.82 \[ -\frac {a \cot ^5(c+d x)}{5 d}-\frac {b \csc ^4\left (\frac {1}{2} (c+d x)\right )}{64 d}+\frac {5 b \csc ^2\left (\frac {1}{2} (c+d x)\right )}{32 d}+\frac {b \sec ^4\left (\frac {1}{2} (c+d x)\right )}{64 d}-\frac {5 b \sec ^2\left (\frac {1}{2} (c+d x)\right )}{32 d}+\frac {3 b \log \left (\sin \left (\frac {1}{2} (c+d x)\right )\right )}{8 d}-\frac {3 b \log \left (\cos \left (\frac {1}{2} (c+d x)\right )\right )}{8 d} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [B] time = 0.80, size = 160, normalized size = 2.16 \[ -\frac {16 \, a \cos \left (d x + c\right )^{5} + 15 \, {\left (b \cos \left (d x + c\right )^{4} - 2 \, b \cos \left (d x + c\right )^{2} + b\right )} \log \left (\frac {1}{2} \, \cos \left (d x + c\right ) + \frac {1}{2}\right ) \sin \left (d x + c\right ) - 15 \, {\left (b \cos \left (d x + c\right )^{4} - 2 \, b \cos \left (d x + c\right )^{2} + b\right )} \log \left (-\frac {1}{2} \, \cos \left (d x + c\right ) + \frac {1}{2}\right ) \sin \left (d x + c\right ) + 10 \, {\left (5 \, b \cos \left (d x + c\right )^{3} - 3 \, b \cos \left (d x + c\right )\right )} \sin \left (d x + c\right )}{80 \, {\left (d \cos \left (d x + c\right )^{4} - 2 \, d \cos \left (d x + c\right )^{2} + d\right )} \sin \left (d x + c\right )} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [B] time = 0.22, size = 173, normalized size = 2.34 \[ \frac {2 \, a \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{5} + 5 \, b \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{4} - 10 \, a \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{3} - 40 \, b \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{2} + 120 \, b \log \left ({\left | \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right ) \right |}\right ) + 20 \, a \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right ) - \frac {274 \, b \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{5} + 20 \, a \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{4} - 40 \, b \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{3} - 10 \, a \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{2} + 5 \, b \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right ) + 2 \, a}{\tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{5}}}{320 \, d} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [A] time = 0.34, size = 116, normalized size = 1.57 \[ -\frac {a \left (\cos ^{5}\left (d x +c \right )\right )}{5 d \sin \left (d x +c \right )^{5}}-\frac {b \left (\cos ^{5}\left (d x +c \right )\right )}{4 d \sin \left (d x +c \right )^{4}}+\frac {b \left (\cos ^{5}\left (d x +c \right )\right )}{8 d \sin \left (d x +c \right )^{2}}+\frac {b \left (\cos ^{3}\left (d x +c \right )\right )}{8 d}+\frac {3 b \cos \left (d x +c \right )}{8 d}+\frac {3 b \ln \left (\csc \left (d x +c \right )-\cot \left (d x +c \right )\right )}{8 d} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [A] time = 0.32, size = 86, normalized size = 1.16 \[ -\frac {5 \, b {\left (\frac {2 \, {\left (5 \, \cos \left (d x + c\right )^{3} - 3 \, \cos \left (d x + c\right )\right )}}{\cos \left (d x + c\right )^{4} - 2 \, \cos \left (d x + c\right )^{2} + 1} + 3 \, \log \left (\cos \left (d x + c\right ) + 1\right ) - 3 \, \log \left (\cos \left (d x + c\right ) - 1\right )\right )} + \frac {16 \, a}{\tan \left (d x + c\right )^{5}}}{80 \, d} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [B] time = 9.56, size = 174, normalized size = 2.35 \[ \frac {a\,\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )}{16\,d}-\frac {a\,{\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )}^3}{32\,d}+\frac {a\,{\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )}^5}{160\,d}-\frac {b\,{\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )}^2}{8\,d}+\frac {b\,{\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )}^4}{64\,d}+\frac {3\,b\,\ln \left (\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )\right )}{8\,d}-\frac {{\mathrm {cot}\left (\frac {c}{2}+\frac {d\,x}{2}\right )}^5\,\left (2\,a\,{\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )}^4-4\,b\,{\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )}^3-a\,{\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )}^2+\frac {b\,\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )}{2}+\frac {a}{5}\right )}{32\,d} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [F(-1)] time = 0.00, size = 0, normalized size = 0.00 \[ \text {Timed out} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________