Optimal. Leaf size=295 \[ -\frac{4 \sqrt{2} \sqrt{\frac{2 a+b \sin (2 c+2 d x)}{2 a+b}} \text{EllipticF}\left (c+d x-\frac{\pi }{4},\frac{2 b}{2 a+b}\right )}{3 d \left (4 a^2-b^2\right ) \sqrt{2 a+b \sin (2 c+2 d x)}}+\frac{32 \sqrt{2} a b \cos (2 c+2 d x)}{3 d \left (4 a^2-b^2\right )^2 \sqrt{2 a+b \sin (2 c+2 d x)}}+\frac{4 \sqrt{2} b \cos (2 c+2 d x)}{3 d \left (4 a^2-b^2\right ) (2 a+b \sin (2 c+2 d x))^{3/2}}+\frac{32 \sqrt{2} a \sqrt{2 a+b \sin (2 c+2 d x)} E\left (c+d x-\frac{\pi }{4}|\frac{2 b}{2 a+b}\right )}{3 d \left (4 a^2-b^2\right )^2 \sqrt{\frac{2 a+b \sin (2 c+2 d x)}{2 a+b}}} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.300671, antiderivative size = 295, normalized size of antiderivative = 1., number of steps used = 8, number of rules used = 8, integrand size = 20, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.4, Rules used = {2666, 2664, 2754, 2752, 2663, 2661, 2655, 2653} \[ \frac{32 \sqrt{2} a b \cos (2 c+2 d x)}{3 d \left (4 a^2-b^2\right )^2 \sqrt{2 a+b \sin (2 c+2 d x)}}+\frac{4 \sqrt{2} b \cos (2 c+2 d x)}{3 d \left (4 a^2-b^2\right ) (2 a+b \sin (2 c+2 d x))^{3/2}}-\frac{4 \sqrt{2} \sqrt{\frac{2 a+b \sin (2 c+2 d x)}{2 a+b}} F\left (c+d x-\frac{\pi }{4}|\frac{2 b}{2 a+b}\right )}{3 d \left (4 a^2-b^2\right ) \sqrt{2 a+b \sin (2 c+2 d x)}}+\frac{32 \sqrt{2} a \sqrt{2 a+b \sin (2 c+2 d x)} E\left (c+d x-\frac{\pi }{4}|\frac{2 b}{2 a+b}\right )}{3 d \left (4 a^2-b^2\right )^2 \sqrt{\frac{2 a+b \sin (2 c+2 d x)}{2 a+b}}} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 2666
Rule 2664
Rule 2754
Rule 2752
Rule 2663
Rule 2661
Rule 2655
Rule 2653
Rubi steps
\begin{align*} \int \frac{1}{(a+b \cos (c+d x) \sin (c+d x))^{5/2}} \, dx &=\int \frac{1}{\left (a+\frac{1}{2} b \sin (2 c+2 d x)\right )^{5/2}} \, dx\\ &=\frac{4 \sqrt{2} b \cos (2 c+2 d x)}{3 \left (4 a^2-b^2\right ) d (2 a+b \sin (2 c+2 d x))^{3/2}}-\frac{8 \int \frac{-\frac{3 a}{2}+\frac{1}{4} b \sin (2 c+2 d x)}{\left (a+\frac{1}{2} b \sin (2 c+2 d x)\right )^{3/2}} \, dx}{3 \left (4 a^2-b^2\right )}\\ &=\frac{4 \sqrt{2} b \cos (2 c+2 d x)}{3 \left (4 a^2-b^2\right ) d (2 a+b \sin (2 c+2 d x))^{3/2}}+\frac{32 \sqrt{2} a b \cos (2 c+2 d x)}{3 \left (4 a^2-b^2\right )^2 d \sqrt{2 a+b \sin (2 c+2 d x)}}+\frac{64 \int \frac{\frac{1}{16} \left (12 a^2+b^2\right )+\frac{1}{2} a b \sin (2 c+2 d x)}{\sqrt{a+\frac{1}{2} b \sin (2 c+2 d x)}} \, dx}{3 \left (4 a^2-b^2\right )^2}\\ &=\frac{4 \sqrt{2} b \cos (2 c+2 d x)}{3 \left (4 a^2-b^2\right ) d (2 a+b \sin (2 c+2 d x))^{3/2}}+\frac{32 \sqrt{2} a b \cos (2 c+2 d x)}{3 \left (4 a^2-b^2\right )^2 d \sqrt{2 a+b \sin (2 c+2 d x)}}+\frac{(64 a) \int \sqrt{a+\frac{1}{2} b \sin (2 c+2 d x)} \, dx}{3 \left (4 a^2-b^2\right )^2}-\frac{4 \int \frac{1}{\sqrt{a+\frac{1}{2} b \sin (2 c+2 d x)}} \, dx}{3 \left (4 a^2-b^2\right )}\\ &=\frac{4 \sqrt{2} b \cos (2 c+2 d x)}{3 \left (4 a^2-b^2\right ) d (2 a+b \sin (2 c+2 d x))^{3/2}}+\frac{32 \sqrt{2} a b \cos (2 c+2 d x)}{3 \left (4 a^2-b^2\right )^2 d \sqrt{2 a+b \sin (2 c+2 d x)}}+\frac{\left (64 a \sqrt{a+\frac{1}{2} b \sin (2 c+2 d x)}\right ) \int \sqrt{\frac{a}{a+\frac{b}{2}}+\frac{b \sin (2 c+2 d x)}{2 \left (a+\frac{b}{2}\right )}} \, dx}{3 \left (4 a^2-b^2\right )^2 \sqrt{\frac{a+\frac{1}{2} b \sin (2 c+2 d x)}{a+\frac{b}{2}}}}-\frac{\left (4 \sqrt{\frac{a+\frac{1}{2} b \sin (2 c+2 d x)}{a+\frac{b}{2}}}\right ) \int \frac{1}{\sqrt{\frac{a}{a+\frac{b}{2}}+\frac{b \sin (2 c+2 d x)}{2 \left (a+\frac{b}{2}\right )}}} \, dx}{3 \left (4 a^2-b^2\right ) \sqrt{a+\frac{1}{2} b \sin (2 c+2 d x)}}\\ &=\frac{4 \sqrt{2} b \cos (2 c+2 d x)}{3 \left (4 a^2-b^2\right ) d (2 a+b \sin (2 c+2 d x))^{3/2}}+\frac{32 \sqrt{2} a b \cos (2 c+2 d x)}{3 \left (4 a^2-b^2\right )^2 d \sqrt{2 a+b \sin (2 c+2 d x)}}+\frac{32 \sqrt{2} a E\left (c-\frac{\pi }{4}+d x|\frac{2 b}{2 a+b}\right ) \sqrt{2 a+b \sin (2 c+2 d x)}}{3 \left (4 a^2-b^2\right )^2 d \sqrt{\frac{2 a+b \sin (2 c+2 d x)}{2 a+b}}}-\frac{4 \sqrt{2} F\left (c-\frac{\pi }{4}+d x|\frac{2 b}{2 a+b}\right ) \sqrt{\frac{2 a+b \sin (2 c+2 d x)}{2 a+b}}}{3 \left (4 a^2-b^2\right ) d \sqrt{2 a+b \sin (2 c+2 d x)}}\\ \end{align*}
Mathematica [A] time = 1.5317, size = 201, normalized size = 0.68 \[ -\frac{4 \sqrt{2} \left ((2 a-b) (2 a+b)^2 \left (\frac{2 a+b \sin (2 (c+d x))}{2 a+b}\right )^{3/2} \text{EllipticF}\left (c+d x-\frac{\pi }{4},\frac{2 b}{2 a+b}\right )+b \cos (2 (c+d x)) \left (-20 a^2-8 a b \sin (2 (c+d x))+b^2\right )-\frac{8 a (2 a+b \sin (2 (c+d x)))^2 E\left (c+d x-\frac{\pi }{4}|\frac{2 b}{2 a+b}\right )}{\sqrt{\frac{2 a+b \sin (2 (c+d x))}{2 a+b}}}\right )}{3 d \left (b^2-4 a^2\right )^2 (2 a+b \sin (2 (c+d x)))^{3/2}} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [B] time = 3.382, size = 1554, normalized size = 5.3 \begin{align*} \text{result too large to display} \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 \frac{1}{{\left (b \cos \left (d x + c\right ) \sin \left (d x + c\right ) + a\right )}^{\frac{5}{2}}}\,{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 (-\frac{\sqrt{b \cos \left (d x + c\right ) \sin \left (d x + c\right ) + a}}{3 \, a b^{2} \cos \left (d x + c\right )^{4} - 3 \, a b^{2} \cos \left (d x + c\right )^{2} - a^{3} +{\left (b^{3} \cos \left (d x + c\right )^{5} - b^{3} \cos \left (d x + c\right )^{3} - 3 \, a^{2} b \cos \left (d x + c\right )\right )} \sin \left (d x + c\right )}, 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 \frac{1}{{\left (b \cos \left (d x + c\right ) \sin \left (d x + c\right ) + a\right )}^{\frac{5}{2}}}\,{d x} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]