Optimal. Leaf size=171 \[ \frac{f \sqrt{1-c^2 x^2} \left (a+b \sin ^{-1}(c x)\right )^3}{3 b c \sqrt{d-c^2 d x^2}}-\frac{g \left (1-c^2 x^2\right ) \left (a+b \sin ^{-1}(c x)\right )^2}{c^2 \sqrt{d-c^2 d x^2}}+\frac{2 b g x \sqrt{1-c^2 x^2} \left (a+b \sin ^{-1}(c x)\right )}{c \sqrt{d-c^2 d x^2}}+\frac{2 b^2 g \left (1-c^2 x^2\right )}{c^2 \sqrt{d-c^2 d x^2}} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.368733, antiderivative size = 207, normalized size of antiderivative = 1.21, number of steps used = 8, number of rules used = 6, integrand size = 31, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.194, Rules used = {4777, 4763, 4641, 4677, 4619, 261} \[ \frac{f \sqrt{1-c^2 x^2} \left (a+b \sin ^{-1}(c x)\right )^3}{3 b c \sqrt{d-c^2 d x^2}}+\frac{2 a b g x \sqrt{1-c^2 x^2}}{c \sqrt{d-c^2 d x^2}}-\frac{g \left (1-c^2 x^2\right ) \left (a+b \sin ^{-1}(c x)\right )^2}{c^2 \sqrt{d-c^2 d x^2}}+\frac{2 b^2 g \left (1-c^2 x^2\right )}{c^2 \sqrt{d-c^2 d x^2}}+\frac{2 b^2 g x \sqrt{1-c^2 x^2} \sin ^{-1}(c x)}{c \sqrt{d-c^2 d x^2}} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 4777
Rule 4763
Rule 4641
Rule 4677
Rule 4619
Rule 261
Rubi steps
\begin{align*} \int \frac{(f+g x) \left (a+b \sin ^{-1}(c x)\right )^2}{\sqrt{d-c^2 d x^2}} \, dx &=\frac{\sqrt{1-c^2 x^2} \int \frac{(f+g x) \left (a+b \sin ^{-1}(c x)\right )^2}{\sqrt{1-c^2 x^2}} \, dx}{\sqrt{d-c^2 d x^2}}\\ &=\frac{\sqrt{1-c^2 x^2} \int \left (\frac{f \left (a+b \sin ^{-1}(c x)\right )^2}{\sqrt{1-c^2 x^2}}+\frac{g x \left (a+b \sin ^{-1}(c x)\right )^2}{\sqrt{1-c^2 x^2}}\right ) \, dx}{\sqrt{d-c^2 d x^2}}\\ &=\frac{\left (f \sqrt{1-c^2 x^2}\right ) \int \frac{\left (a+b \sin ^{-1}(c x)\right )^2}{\sqrt{1-c^2 x^2}} \, dx}{\sqrt{d-c^2 d x^2}}+\frac{\left (g \sqrt{1-c^2 x^2}\right ) \int \frac{x \left (a+b \sin ^{-1}(c x)\right )^2}{\sqrt{1-c^2 x^2}} \, dx}{\sqrt{d-c^2 d x^2}}\\ &=-\frac{g \left (1-c^2 x^2\right ) \left (a+b \sin ^{-1}(c x)\right )^2}{c^2 \sqrt{d-c^2 d x^2}}+\frac{f \sqrt{1-c^2 x^2} \left (a+b \sin ^{-1}(c x)\right )^3}{3 b c \sqrt{d-c^2 d x^2}}+\frac{\left (2 b g \sqrt{1-c^2 x^2}\right ) \int \left (a+b \sin ^{-1}(c x)\right ) \, dx}{c \sqrt{d-c^2 d x^2}}\\ &=\frac{2 a b g x \sqrt{1-c^2 x^2}}{c \sqrt{d-c^2 d x^2}}-\frac{g \left (1-c^2 x^2\right ) \left (a+b \sin ^{-1}(c x)\right )^2}{c^2 \sqrt{d-c^2 d x^2}}+\frac{f \sqrt{1-c^2 x^2} \left (a+b \sin ^{-1}(c x)\right )^3}{3 b c \sqrt{d-c^2 d x^2}}+\frac{\left (2 b^2 g \sqrt{1-c^2 x^2}\right ) \int \sin ^{-1}(c x) \, dx}{c \sqrt{d-c^2 d x^2}}\\ &=\frac{2 a b g x \sqrt{1-c^2 x^2}}{c \sqrt{d-c^2 d x^2}}+\frac{2 b^2 g x \sqrt{1-c^2 x^2} \sin ^{-1}(c x)}{c \sqrt{d-c^2 d x^2}}-\frac{g \left (1-c^2 x^2\right ) \left (a+b \sin ^{-1}(c x)\right )^2}{c^2 \sqrt{d-c^2 d x^2}}+\frac{f \sqrt{1-c^2 x^2} \left (a+b \sin ^{-1}(c x)\right )^3}{3 b c \sqrt{d-c^2 d x^2}}-\frac{\left (2 b^2 g \sqrt{1-c^2 x^2}\right ) \int \frac{x}{\sqrt{1-c^2 x^2}} \, dx}{\sqrt{d-c^2 d x^2}}\\ &=\frac{2 a b g x \sqrt{1-c^2 x^2}}{c \sqrt{d-c^2 d x^2}}+\frac{2 b^2 g \left (1-c^2 x^2\right )}{c^2 \sqrt{d-c^2 d x^2}}+\frac{2 b^2 g x \sqrt{1-c^2 x^2} \sin ^{-1}(c x)}{c \sqrt{d-c^2 d x^2}}-\frac{g \left (1-c^2 x^2\right ) \left (a+b \sin ^{-1}(c x)\right )^2}{c^2 \sqrt{d-c^2 d x^2}}+\frac{f \sqrt{1-c^2 x^2} \left (a+b \sin ^{-1}(c x)\right )^3}{3 b c \sqrt{d-c^2 d x^2}}\\ \end{align*}
Mathematica [A] time = 0.596177, size = 291, normalized size = 1.7 \[ \frac{3 \sqrt{d} g \left (c^2 x^2-1\right ) \left (a^2 \sqrt{1-c^2 x^2}-2 a b c x-2 b^2 \sqrt{1-c^2 x^2}\right )-3 a^2 c f \sqrt{1-c^2 x^2} \sqrt{d-c^2 d x^2} \tan ^{-1}\left (\frac{c x \sqrt{d-c^2 d x^2}}{\sqrt{d} \left (c^2 x^2-1\right )}\right )+3 b \sqrt{d} \left (c^2 x^2-1\right ) \sin ^{-1}(c x)^2 \left (b g \sqrt{1-c^2 x^2}-a c f\right )-6 b \sqrt{d} g \left (c^2 x^2-1\right ) \sin ^{-1}(c x) \left (b c x-a \sqrt{1-c^2 x^2}\right )-b^2 c \sqrt{d} f \left (c^2 x^2-1\right ) \sin ^{-1}(c x)^3}{3 c^2 \sqrt{d} \sqrt{1-c^2 x^2} \sqrt{d-c^2 d x^2}} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [B] time = 0.303, size = 513, normalized size = 3. \begin{align*} -{\frac{{a}^{2}g}{{c}^{2}d}\sqrt{-{c}^{2}d{x}^{2}+d}}+{{a}^{2}f\arctan \left ({x\sqrt{{c}^{2}d}{\frac{1}{\sqrt{-{c}^{2}d{x}^{2}+d}}}} \right ){\frac{1}{\sqrt{{c}^{2}d}}}}-{\frac{{b}^{2} \left ( \arcsin \left ( cx \right ) \right ) ^{3}f}{3\,dc \left ({c}^{2}{x}^{2}-1 \right ) }\sqrt{-d \left ({c}^{2}{x}^{2}-1 \right ) }\sqrt{-{c}^{2}{x}^{2}+1}}-{\frac{{b}^{2}g \left ( \arcsin \left ( cx \right ) \right ) ^{2}{x}^{2}}{d \left ({c}^{2}{x}^{2}-1 \right ) }\sqrt{-d \left ({c}^{2}{x}^{2}-1 \right ) }}-2\,{\frac{{b}^{2}\sqrt{-d \left ({c}^{2}{x}^{2}-1 \right ) }g\arcsin \left ( cx \right ) \sqrt{-{c}^{2}{x}^{2}+1}x}{dc \left ({c}^{2}{x}^{2}-1 \right ) }}+2\,{\frac{{b}^{2}\sqrt{-d \left ({c}^{2}{x}^{2}-1 \right ) }g{x}^{2}}{d \left ({c}^{2}{x}^{2}-1 \right ) }}+{\frac{{b}^{2}g \left ( \arcsin \left ( cx \right ) \right ) ^{2}}{{c}^{2}d \left ({c}^{2}{x}^{2}-1 \right ) }\sqrt{-d \left ({c}^{2}{x}^{2}-1 \right ) }}-2\,{\frac{{b}^{2}\sqrt{-d \left ({c}^{2}{x}^{2}-1 \right ) }g}{{c}^{2}d \left ({c}^{2}{x}^{2}-1 \right ) }}-{\frac{ab \left ( \arcsin \left ( cx \right ) \right ) ^{2}f}{dc \left ({c}^{2}{x}^{2}-1 \right ) }\sqrt{-d \left ({c}^{2}{x}^{2}-1 \right ) }\sqrt{-{c}^{2}{x}^{2}+1}}-2\,{\frac{ab\sqrt{-d \left ({c}^{2}{x}^{2}-1 \right ) }g\arcsin \left ( cx \right ){x}^{2}}{d \left ({c}^{2}{x}^{2}-1 \right ) }}-2\,{\frac{ab\sqrt{-d \left ({c}^{2}{x}^{2}-1 \right ) }g\sqrt{-{c}^{2}{x}^{2}+1}x}{dc \left ({c}^{2}{x}^{2}-1 \right ) }}+2\,{\frac{ab\sqrt{-d \left ({c}^{2}{x}^{2}-1 \right ) }g\arcsin \left ( cx \right ) }{{c}^{2}d \left ({c}^{2}{x}^{2}-1 \right ) }} \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^{2} g x + a^{2} f +{\left (b^{2} g x + b^{2} f\right )} \arcsin \left (c x\right )^{2} + 2 \,{\left (a b g x + a b f\right )} \arcsin \left (c x\right )\right )}}{c^{2} d x^{2} - d}, 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 )}{\left (b \arcsin \left (c x\right ) + a\right )}^{2}}{\sqrt{-c^{2} d x^{2} + d}}\,{d x} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]