Optimal. Leaf size=410 \[ \frac{2 (c f+g) (c f-g) \left (c^2 f x+g\right ) \left (a+b \sin ^{-1}(c x)\right )}{3 c^4 d^2 \sqrt{d-c^2 d x^2}}+\frac{(f+g x)^2 \left (c^2 f x+g\right ) \left (a+b \sin ^{-1}(c x)\right )}{3 c^2 d^2 \left (1-c^2 x^2\right ) \sqrt{d-c^2 d x^2}}-\frac{b (f+g x) \left (c^2 f^2+2 c^2 f g x+g^2\right )}{6 c^3 d^2 \sqrt{1-c^2 x^2} \sqrt{d-c^2 d x^2}}+\frac{b g \sqrt{1-c^2 x^2} (c f-g)^2 \log (c x+1)}{12 c^4 d^2 \sqrt{d-c^2 d x^2}}+\frac{b \sqrt{1-c^2 x^2} (c f+g) (c f-g)^2 \log (c x+1)}{3 c^4 d^2 \sqrt{d-c^2 d x^2}}+\frac{b \sqrt{1-c^2 x^2} (c f+g)^2 (c f-g) \log (1-c x)}{3 c^4 d^2 \sqrt{d-c^2 d x^2}}-\frac{b g \sqrt{1-c^2 x^2} (c f+g)^2 \log (1-c x)}{12 c^4 d^2 \sqrt{d-c^2 d x^2}} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.43268, antiderivative size = 410, normalized size of antiderivative = 1., number of steps used = 10, number of rules used = 7, integrand size = 31, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.226, Rules used = {4777, 723, 637, 4761, 819, 633, 31} \[ \frac{2 (c f+g) (c f-g) \left (c^2 f x+g\right ) \left (a+b \sin ^{-1}(c x)\right )}{3 c^4 d^2 \sqrt{d-c^2 d x^2}}+\frac{(f+g x)^2 \left (c^2 f x+g\right ) \left (a+b \sin ^{-1}(c x)\right )}{3 c^2 d^2 \left (1-c^2 x^2\right ) \sqrt{d-c^2 d x^2}}-\frac{b (f+g x) \left (c^2 f^2+2 c^2 f g x+g^2\right )}{6 c^3 d^2 \sqrt{1-c^2 x^2} \sqrt{d-c^2 d x^2}}+\frac{b g \sqrt{1-c^2 x^2} (c f-g)^2 \log (c x+1)}{12 c^4 d^2 \sqrt{d-c^2 d x^2}}+\frac{b \sqrt{1-c^2 x^2} (c f+g) (c f-g)^2 \log (c x+1)}{3 c^4 d^2 \sqrt{d-c^2 d x^2}}+\frac{b \sqrt{1-c^2 x^2} (c f+g)^2 (c f-g) \log (1-c x)}{3 c^4 d^2 \sqrt{d-c^2 d x^2}}-\frac{b g \sqrt{1-c^2 x^2} (c f+g)^2 \log (1-c x)}{12 c^4 d^2 \sqrt{d-c^2 d x^2}} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 4777
Rule 723
Rule 637
Rule 4761
Rule 819
Rule 633
Rule 31
Rubi steps
\begin{align*} \int \frac{(f+g x)^3 \left (a+b \sin ^{-1}(c x)\right )}{\left (d-c^2 d x^2\right )^{5/2}} \, dx &=\frac{\sqrt{1-c^2 x^2} \int \frac{(f+g x)^3 \left (a+b \sin ^{-1}(c x)\right )}{\left (1-c^2 x^2\right )^{5/2}} \, dx}{d^2 \sqrt{d-c^2 d x^2}}\\ &=\frac{2 (c f-g) (c f+g) \left (g+c^2 f x\right ) \left (a+b \sin ^{-1}(c x)\right )}{3 c^4 d^2 \sqrt{d-c^2 d x^2}}+\frac{\left (g+c^2 f x\right ) (f+g x)^2 \left (a+b \sin ^{-1}(c x)\right )}{3 c^2 d^2 \left (1-c^2 x^2\right ) \sqrt{d-c^2 d x^2}}-\frac{\left (b c \sqrt{1-c^2 x^2}\right ) \int \left (\frac{\left (g+c^2 f x\right ) (f+g x)^2}{3 c^2 \left (1-c^2 x^2\right )^2}+\frac{2 (c f-g) (c f+g) \left (g+c^2 f x\right )}{3 c^4 \left (1-c^2 x^2\right )}\right ) \, dx}{d^2 \sqrt{d-c^2 d x^2}}\\ &=\frac{2 (c f-g) (c f+g) \left (g+c^2 f x\right ) \left (a+b \sin ^{-1}(c x)\right )}{3 c^4 d^2 \sqrt{d-c^2 d x^2}}+\frac{\left (g+c^2 f x\right ) (f+g x)^2 \left (a+b \sin ^{-1}(c x)\right )}{3 c^2 d^2 \left (1-c^2 x^2\right ) \sqrt{d-c^2 d x^2}}-\frac{\left (b \sqrt{1-c^2 x^2}\right ) \int \frac{\left (g+c^2 f x\right ) (f+g x)^2}{\left (1-c^2 x^2\right )^2} \, dx}{3 c d^2 \sqrt{d-c^2 d x^2}}-\frac{\left (2 b (c f-g) (c f+g) \sqrt{1-c^2 x^2}\right ) \int \frac{g+c^2 f x}{1-c^2 x^2} \, dx}{3 c^3 d^2 \sqrt{d-c^2 d x^2}}\\ &=-\frac{b (f+g x) \left (c^2 f^2+g^2+2 c^2 f g x\right )}{6 c^3 d^2 \sqrt{1-c^2 x^2} \sqrt{d-c^2 d x^2}}+\frac{2 (c f-g) (c f+g) \left (g+c^2 f x\right ) \left (a+b \sin ^{-1}(c x)\right )}{3 c^4 d^2 \sqrt{d-c^2 d x^2}}+\frac{\left (g+c^2 f x\right ) (f+g x)^2 \left (a+b \sin ^{-1}(c x)\right )}{3 c^2 d^2 \left (1-c^2 x^2\right ) \sqrt{d-c^2 d x^2}}+\frac{\left (b \sqrt{1-c^2 x^2}\right ) \int \frac{g \left (c^2 f^2+g^2\right )+2 c^2 f g^2 x}{1-c^2 x^2} \, dx}{6 c^3 d^2 \sqrt{d-c^2 d x^2}}-\frac{\left (b (c f-g)^2 (c f+g) \sqrt{1-c^2 x^2}\right ) \int \frac{1}{-c-c^2 x} \, dx}{3 c^2 d^2 \sqrt{d-c^2 d x^2}}-\frac{\left (b (c f-g) (c f+g)^2 \sqrt{1-c^2 x^2}\right ) \int \frac{1}{c-c^2 x} \, dx}{3 c^2 d^2 \sqrt{d-c^2 d x^2}}\\ &=-\frac{b (f+g x) \left (c^2 f^2+g^2+2 c^2 f g x\right )}{6 c^3 d^2 \sqrt{1-c^2 x^2} \sqrt{d-c^2 d x^2}}+\frac{2 (c f-g) (c f+g) \left (g+c^2 f x\right ) \left (a+b \sin ^{-1}(c x)\right )}{3 c^4 d^2 \sqrt{d-c^2 d x^2}}+\frac{\left (g+c^2 f x\right ) (f+g x)^2 \left (a+b \sin ^{-1}(c x)\right )}{3 c^2 d^2 \left (1-c^2 x^2\right ) \sqrt{d-c^2 d x^2}}+\frac{b (c f-g) (c f+g)^2 \sqrt{1-c^2 x^2} \log (1-c x)}{3 c^4 d^2 \sqrt{d-c^2 d x^2}}+\frac{b (c f-g)^2 (c f+g) \sqrt{1-c^2 x^2} \log (1+c x)}{3 c^4 d^2 \sqrt{d-c^2 d x^2}}-\frac{\left (b (c f-g)^2 g \sqrt{1-c^2 x^2}\right ) \int \frac{1}{-c-c^2 x} \, dx}{12 c^2 d^2 \sqrt{d-c^2 d x^2}}+\frac{\left (b g (c f+g)^2 \sqrt{1-c^2 x^2}\right ) \int \frac{1}{c-c^2 x} \, dx}{12 c^2 d^2 \sqrt{d-c^2 d x^2}}\\ &=-\frac{b (f+g x) \left (c^2 f^2+g^2+2 c^2 f g x\right )}{6 c^3 d^2 \sqrt{1-c^2 x^2} \sqrt{d-c^2 d x^2}}+\frac{2 (c f-g) (c f+g) \left (g+c^2 f x\right ) \left (a+b \sin ^{-1}(c x)\right )}{3 c^4 d^2 \sqrt{d-c^2 d x^2}}+\frac{\left (g+c^2 f x\right ) (f+g x)^2 \left (a+b \sin ^{-1}(c x)\right )}{3 c^2 d^2 \left (1-c^2 x^2\right ) \sqrt{d-c^2 d x^2}}+\frac{b (c f-g) (c f+g)^2 \sqrt{1-c^2 x^2} \log (1-c x)}{3 c^4 d^2 \sqrt{d-c^2 d x^2}}-\frac{b g (c f+g)^2 \sqrt{1-c^2 x^2} \log (1-c x)}{12 c^4 d^2 \sqrt{d-c^2 d x^2}}+\frac{b (c f-g)^2 g \sqrt{1-c^2 x^2} \log (1+c x)}{12 c^4 d^2 \sqrt{d-c^2 d x^2}}+\frac{b (c f-g)^2 (c f+g) \sqrt{1-c^2 x^2} \log (1+c x)}{3 c^4 d^2 \sqrt{d-c^2 d x^2}}\\ \end{align*}
Mathematica [C] time = 1.27782, size = 366, normalized size = 0.89 \[ \frac{\sqrt{d-c^2 d x^2} \left (-\sqrt{-c^2} \left (-6 a c^2 f^2 g+4 a c^6 f^3 x^3-6 a c^4 f^3 x-6 a c^4 f g^2 x^3-6 a c^2 g^3 x^2+4 a g^3-b c f \left (1-c^2 x^2\right )^{3/2} \left (2 c^2 f^2-3 g^2\right ) \log \left (c^2 x^2-1\right )+2 b \sin ^{-1}(c x) \left (-3 c^4 f x \left (f^2+g^2 x^2\right )-3 c^2 g \left (f^2+g^2 x^2\right )+2 c^6 f^3 x^3+2 g^3\right )+3 b c^3 f^2 g x \sqrt{1-c^2 x^2}+b c^3 f^3 \sqrt{1-c^2 x^2}+3 b c f g^2 \sqrt{1-c^2 x^2}+b c g^3 x \sqrt{1-c^2 x^2}\right )+i b c g \left (1-c^2 x^2\right )^{3/2} \left (3 c^2 f^2-5 g^2\right ) \text{EllipticF}\left (i \sinh ^{-1}\left (\sqrt{-c^2} x\right ),1\right )\right )}{6 c^4 \sqrt{-c^2} d^3 \left (c^2 x^2-1\right )^2} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [C] time = 0.575, size = 5098, normalized size = 12.4 \begin{align*} \text{output too large to display} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [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]
________________________________________________________________________________________
Fricas [F] time = 0., size = 0, normalized size = 0. \begin{align*}{\rm integral}\left (-\frac{{\left (a g^{3} x^{3} + 3 \, a f g^{2} x^{2} + 3 \, a f^{2} g x + a f^{3} +{\left (b g^{3} x^{3} + 3 \, b f g^{2} x^{2} + 3 \, b f^{2} g x + b f^{3}\right )} \arcsin \left (c x\right )\right )} \sqrt{-c^{2} d x^{2} + d}}{c^{6} d^{3} x^{6} - 3 \, c^{4} d^{3} x^{4} + 3 \, c^{2} d^{3} x^{2} - d^{3}}, x\right ) \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F(-2)] time = 0., size = 0, normalized size = 0. \begin{align*} \text{Exception raised: TypeError} \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{{\left (g x + f\right )}^{3}{\left (b \arcsin \left (c x\right ) + a\right )}}{{\left (-c^{2} d x^{2} + d\right )}^{\frac{5}{2}}}\,{d x} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]