Optimal. Leaf size=95 \[ -\frac{13^{n/2} \sin \left (c+d x-\tan ^{-1}\left (\frac{3}{2}\right )\right ) \cos ^{n+1}\left (c+d x-\tan ^{-1}\left (\frac{3}{2}\right )\right ) \text{Hypergeometric2F1}\left (\frac{1}{2},\frac{n+1}{2},\frac{n+3}{2},\cos ^2\left (c+d x-\tan ^{-1}\left (\frac{3}{2}\right )\right )\right )}{d (n+1) \sqrt{\sin ^2\left (c+d x-\tan ^{-1}\left (\frac{3}{2}\right )\right )}} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.0489555, antiderivative size = 95, normalized size of antiderivative = 1., number of steps used = 2, number of rules used = 2, integrand size = 19, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.105, Rules used = {3077, 2643} \[ -\frac{13^{n/2} \sin \left (c+d x-\tan ^{-1}\left (\frac{3}{2}\right )\right ) \cos ^{n+1}\left (c+d x-\tan ^{-1}\left (\frac{3}{2}\right )\right ) \, _2F_1\left (\frac{1}{2},\frac{n+1}{2};\frac{n+3}{2};\cos ^2\left (c+d x-\tan ^{-1}\left (\frac{3}{2}\right )\right )\right )}{d (n+1) \sqrt{\sin ^2\left (c+d x-\tan ^{-1}\left (\frac{3}{2}\right )\right )}} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 3077
Rule 2643
Rubi steps
\begin{align*} \int (2 \cos (c+d x)+3 \sin (c+d x))^n \, dx &=13^{n/2} \int \cos ^n\left (c+d x-\tan ^{-1}\left (\frac{3}{2}\right )\right ) \, dx\\ &=-\frac{13^{n/2} \cos ^{1+n}\left (c+d x-\tan ^{-1}\left (\frac{3}{2}\right )\right ) \, _2F_1\left (\frac{1}{2},\frac{1+n}{2};\frac{3+n}{2};\cos ^2\left (c+d x-\tan ^{-1}\left (\frac{3}{2}\right )\right )\right ) \sin \left (c+d x-\tan ^{-1}\left (\frac{3}{2}\right )\right )}{d (1+n) \sqrt{\sin ^2\left (c+d x-\tan ^{-1}\left (\frac{3}{2}\right )\right )}}\\ \end{align*}
Mathematica [A] time = 0.176881, size = 88, normalized size = 0.93 \[ -\frac{\sin \left (2 \left (c+d x+\tan ^{-1}\left (\frac{2}{3}\right )\right )\right ) \sin ^2\left (c+d x+\tan ^{-1}\left (\frac{2}{3}\right )\right )^{-\frac{n}{2}-\frac{1}{2}} (3 \sin (c+d x)+2 \cos (c+d x))^n \text{Hypergeometric2F1}\left (\frac{1}{2},\frac{1-n}{2},\frac{3}{2},\cos ^2\left (c+d x+\tan ^{-1}\left (\frac{2}{3}\right )\right )\right )}{2 d} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [F] time = 0.416, size = 0, normalized size = 0. \begin{align*} \int \left ( 2\,\cos \left ( dx+c \right ) +3\,\sin \left ( dx+c \right ) \right ) ^{n}\, dx \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int{\left (2 \, \cos \left (d x + c\right ) + 3 \, \sin \left (d x + c\right )\right )}^{n}\,{d x} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [F] time = 0., size = 0, normalized size = 0. \begin{align*}{\rm integral}\left ({\left (2 \, \cos \left (d x + c\right ) + 3 \, \sin \left (d x + c\right )\right )}^{n}, x\right ) \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F(-1)] time = 0., size = 0, normalized size = 0. \begin{align*} \text{Timed out} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int{\left (2 \, \cos \left (d x + c\right ) + 3 \, \sin \left (d x + c\right )\right )}^{n}\,{d x} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]