Optimal. Leaf size=213 \[ \frac{\left (x \left (c^2 f^2+g^2\right )+2 f g\right ) \left (a+b \sin ^{-1}(c x)\right )}{c^2 d \sqrt{d-c^2 d x^2}}-\frac{g^2 \sqrt{1-c^2 x^2} \left (a+b \sin ^{-1}(c x)\right )^2}{2 b c^3 d \sqrt{d-c^2 d x^2}}+\frac{b \sqrt{1-c^2 x^2} (c f-g)^2 \log (c x+1)}{2 c^3 d \sqrt{d-c^2 d x^2}}+\frac{b \sqrt{1-c^2 x^2} (c f+g)^2 \log (1-c x)}{2 c^3 d \sqrt{d-c^2 d x^2}} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.428221, antiderivative size = 213, normalized size of antiderivative = 1., number of steps used = 8, number of rules used = 7, integrand size = 31, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.226, Rules used = {4777, 4775, 637, 4761, 633, 31, 4641} \[ \frac{\left (x \left (c^2 f^2+g^2\right )+2 f g\right ) \left (a+b \sin ^{-1}(c x)\right )}{c^2 d \sqrt{d-c^2 d x^2}}-\frac{g^2 \sqrt{1-c^2 x^2} \left (a+b \sin ^{-1}(c x)\right )^2}{2 b c^3 d \sqrt{d-c^2 d x^2}}+\frac{b \sqrt{1-c^2 x^2} (c f-g)^2 \log (c x+1)}{2 c^3 d \sqrt{d-c^2 d x^2}}+\frac{b \sqrt{1-c^2 x^2} (c f+g)^2 \log (1-c x)}{2 c^3 d \sqrt{d-c^2 d x^2}} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 4777
Rule 4775
Rule 637
Rule 4761
Rule 633
Rule 31
Rule 4641
Rubi steps
\begin{align*} \int \frac{(f+g x)^2 \left (a+b \sin ^{-1}(c x)\right )}{\left (d-c^2 d x^2\right )^{3/2}} \, dx &=\frac{\sqrt{1-c^2 x^2} \int \frac{(f+g x)^2 \left (a+b \sin ^{-1}(c x)\right )}{\left (1-c^2 x^2\right )^{3/2}} \, dx}{d \sqrt{d-c^2 d x^2}}\\ &=\frac{\sqrt{1-c^2 x^2} \int \left (\frac{\left (c^2 f^2+g^2+2 c^2 f g x\right ) \left (a+b \sin ^{-1}(c x)\right )}{c^2 \left (1-c^2 x^2\right )^{3/2}}-\frac{g^2 \left (a+b \sin ^{-1}(c x)\right )}{c^2 \sqrt{1-c^2 x^2}}\right ) \, dx}{d \sqrt{d-c^2 d x^2}}\\ &=\frac{\sqrt{1-c^2 x^2} \int \frac{\left (c^2 f^2+g^2+2 c^2 f g x\right ) \left (a+b \sin ^{-1}(c x)\right )}{\left (1-c^2 x^2\right )^{3/2}} \, dx}{c^2 d \sqrt{d-c^2 d x^2}}-\frac{\left (g^2 \sqrt{1-c^2 x^2}\right ) \int \frac{a+b \sin ^{-1}(c x)}{\sqrt{1-c^2 x^2}} \, dx}{c^2 d \sqrt{d-c^2 d x^2}}\\ &=\frac{\left (2 f g+\left (c^2 f^2+g^2\right ) x\right ) \left (a+b \sin ^{-1}(c x)\right )}{c^2 d \sqrt{d-c^2 d x^2}}-\frac{g^2 \sqrt{1-c^2 x^2} \left (a+b \sin ^{-1}(c x)\right )^2}{2 b c^3 d \sqrt{d-c^2 d x^2}}-\frac{\left (b \sqrt{1-c^2 x^2}\right ) \int \frac{2 f g+\left (c^2 f^2+g^2\right ) x}{1-c^2 x^2} \, dx}{c d \sqrt{d-c^2 d x^2}}\\ &=\frac{\left (2 f g+\left (c^2 f^2+g^2\right ) x\right ) \left (a+b \sin ^{-1}(c x)\right )}{c^2 d \sqrt{d-c^2 d x^2}}-\frac{g^2 \sqrt{1-c^2 x^2} \left (a+b \sin ^{-1}(c x)\right )^2}{2 b c^3 d \sqrt{d-c^2 d x^2}}-\frac{\left (b (c f-g)^2 \sqrt{1-c^2 x^2}\right ) \int \frac{1}{-c-c^2 x} \, dx}{2 c d \sqrt{d-c^2 d x^2}}-\frac{\left (b (c f+g)^2 \sqrt{1-c^2 x^2}\right ) \int \frac{1}{c-c^2 x} \, dx}{2 c d \sqrt{d-c^2 d x^2}}\\ &=\frac{\left (2 f g+\left (c^2 f^2+g^2\right ) x\right ) \left (a+b \sin ^{-1}(c x)\right )}{c^2 d \sqrt{d-c^2 d x^2}}-\frac{g^2 \sqrt{1-c^2 x^2} \left (a+b \sin ^{-1}(c x)\right )^2}{2 b c^3 d \sqrt{d-c^2 d x^2}}+\frac{b (c f+g)^2 \sqrt{1-c^2 x^2} \log (1-c x)}{2 c^3 d \sqrt{d-c^2 d x^2}}+\frac{b (c f-g)^2 \sqrt{1-c^2 x^2} \log (1+c x)}{2 c^3 d \sqrt{d-c^2 d x^2}}\\ \end{align*}
Mathematica [A] time = 0.702019, size = 156, normalized size = 0.73 \[ \frac{\sqrt{1-c^2 x^2} \left ((g-c f)^2 \left (2 b \log \left (\sin \left (\frac{1}{4} \left (2 \sin ^{-1}(c x)+\pi \right )\right )\right )-\cot \left (\frac{1}{4} \left (2 \sin ^{-1}(c x)+\pi \right )\right ) \left (a+b \sin ^{-1}(c x)\right )\right )+(c f+g)^2 \left (\tan \left (\frac{1}{4} \left (2 \sin ^{-1}(c x)+\pi \right )\right ) \left (a+b \sin ^{-1}(c x)\right )+2 b \log \left (\cos \left (\frac{1}{4} \left (2 \sin ^{-1}(c x)+\pi \right )\right )\right )\right )-\frac{g^2 \left (a+b \sin ^{-1}(c x)\right )^2}{b}\right )}{2 c^3 d \sqrt{d-c^2 d x^2}} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [C] time = 0.364, size = 867, normalized size = 4.1 \begin{align*} \text{result too large to display} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F(-2)] time = 0., size = 0, normalized size = 0. \begin{align*} \text{Exception raised: ValueError} \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{-c^{2} d x^{2} + d}{\left (a g^{2} x^{2} + 2 \, a f g x + a f^{2} +{\left (b g^{2} x^{2} + 2 \, b f g x + b f^{2}\right )} \arcsin \left (c x\right )\right )}}{c^{4} d^{2} x^{4} - 2 \, c^{2} d^{2} x^{2} + d^{2}}, 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 \frac{\left (a + b \operatorname{asin}{\left (c x \right )}\right ) \left (f + g x\right )^{2}}{\left (- d \left (c x - 1\right ) \left (c x + 1\right )\right )^{\frac{3}{2}}}\, 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 \frac{{\left (g x + f\right )}^{2}{\left (b \arcsin \left (c x\right ) + a\right )}}{{\left (-c^{2} d x^{2} + d\right )}^{\frac{3}{2}}}\,{d x} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]