Optimal. Leaf size=61 \[ -\frac{a \cos (c+d x)}{d}+\frac{2 b E\left (\left .\frac{1}{2} \left (c+d x-\frac{\pi }{2}\right )\right |2\right )}{d}-\frac{c \sin (c+d x) \cos (c+d x)}{2 d}+\frac{c x}{2} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.289499, antiderivative size = 61, normalized size of antiderivative = 1., number of steps used = 7, number of rules used = 6, integrand size = 29, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.207, Rules used = {4395, 4401, 2639, 2638, 2635, 8} \[ -\frac{a \cos (c+d x)}{d}+\frac{2 b E\left (\left .\frac{1}{2} \left (c+d x-\frac{\pi }{2}\right )\right |2\right )}{d}-\frac{c \sin (c+d x) \cos (c+d x)}{2 d}+\frac{c x}{2} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 4395
Rule 4401
Rule 2639
Rule 2638
Rule 2635
Rule 8
Rubi steps
\begin{align*} \int \sin (c+d x) \left (a+\frac{b}{\sqrt{\sin (c+d x)}}+c \sin (c+d x)\right ) \, dx &=\int \sqrt{\sin (c+d x)} \left (b+a \sqrt{\sin (c+d x)}+c \sin ^{\frac{3}{2}}(c+d x)\right ) \, dx\\ &=\int \left (b \sqrt{\sin (c+d x)}+a \sin (c+d x)+c \sin ^2(c+d x)\right ) \, dx\\ &=a \int \sin (c+d x) \, dx+b \int \sqrt{\sin (c+d x)} \, dx+c \int \sin ^2(c+d x) \, dx\\ &=-\frac{a \cos (c+d x)}{d}+\frac{2 b E\left (\left .\frac{1}{2} \left (c-\frac{\pi }{2}+d x\right )\right |2\right )}{d}-\frac{c \cos (c+d x) \sin (c+d x)}{2 d}+\frac{1}{2} c \int 1 \, dx\\ &=\frac{c x}{2}-\frac{a \cos (c+d x)}{d}+\frac{2 b E\left (\left .\frac{1}{2} \left (c-\frac{\pi }{2}+d x\right )\right |2\right )}{d}-\frac{c \cos (c+d x) \sin (c+d x)}{2 d}\\ \end{align*}
Mathematica [A] time = 0.180645, size = 55, normalized size = 0.9 \[ \frac{-4 a \cos (c+d x)-8 b E\left (\left .\frac{1}{4} (-2 c-2 d x+\pi )\right |2\right )+c (-\sin (2 (c+d x))+2 c+2 d x)}{4 d} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A] time = 0.924, size = 136, normalized size = 2.2 \begin{align*} cx-{\frac{a\cos \left ( dx+c \right ) }{d}}-{\frac{c}{d} \left ({\frac{\sin \left ( dx+c \right ) \cos \left ( dx+c \right ) }{2}}+{\frac{dx}{2}}+{\frac{c}{2}} \right ) }-{\frac{b}{d\cos \left ( dx+c \right ) }\sqrt{\sin \left ( dx+c \right ) +1}\sqrt{-2\,\sin \left ( dx+c \right ) +2}\sqrt{-\sin \left ( dx+c \right ) } \left ( 2\,{\it EllipticE} \left ( \sqrt{\sin \left ( dx+c \right ) +1},1/2\,\sqrt{2} \right ) -{\it EllipticF} \left ( \sqrt{\sin \left ( dx+c \right ) +1},{\frac{\sqrt{2}}{2}} \right ) \right ){\frac{1}{\sqrt{\sin \left ( dx+c \right ) }}}} \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*} \text{result too large to display} \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 (-c \cos \left (d x + c\right )^{2} + a \sin \left (d x + c\right ) + b \sqrt{\sin \left (d x + c\right )} + c, x\right ) \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int \left (a \sqrt{\sin{\left (c + d x \right )}} + b + c \sin ^{\frac{3}{2}}{\left (c + d x \right )}\right ) \sqrt{\sin{\left (c + d x \right )}}\, dx \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 (c \sin \left (d x + c\right ) + a + \frac{b}{\sqrt{\sin \left (d x + c\right )}}\right )} \sin \left (d x + c\right )\,{d x} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]