Optimal. Leaf size=513 \[ \frac {2 f g (a+b \text {ArcSin}(c x))^2}{c^2 d \sqrt {d-c^2 d x^2}}+\frac {\left (c^2 f^2+g^2\right ) x (a+b \text {ArcSin}(c x))^2}{c^2 d \sqrt {d-c^2 d x^2}}-\frac {i \left (c^2 f^2+g^2\right ) \sqrt {1-c^2 x^2} (a+b \text {ArcSin}(c x))^2}{c^3 d \sqrt {d-c^2 d x^2}}-\frac {g^2 \sqrt {1-c^2 x^2} (a+b \text {ArcSin}(c x))^3}{3 b c^3 d \sqrt {d-c^2 d x^2}}+\frac {8 i b f g \sqrt {1-c^2 x^2} (a+b \text {ArcSin}(c x)) \text {ArcTan}\left (e^{i \text {ArcSin}(c x)}\right )}{c^2 d \sqrt {d-c^2 d x^2}}+\frac {2 b \left (c^2 f^2+g^2\right ) \sqrt {1-c^2 x^2} (a+b \text {ArcSin}(c x)) \log \left (1+e^{2 i \text {ArcSin}(c x)}\right )}{c^3 d \sqrt {d-c^2 d x^2}}-\frac {4 i b^2 f g \sqrt {1-c^2 x^2} \text {PolyLog}\left (2,-i e^{i \text {ArcSin}(c x)}\right )}{c^2 d \sqrt {d-c^2 d x^2}}+\frac {4 i b^2 f g \sqrt {1-c^2 x^2} \text {PolyLog}\left (2,i e^{i \text {ArcSin}(c x)}\right )}{c^2 d \sqrt {d-c^2 d x^2}}-\frac {i b^2 \left (c^2 f^2+g^2\right ) \sqrt {1-c^2 x^2} \text {PolyLog}\left (2,-e^{2 i \text {ArcSin}(c x)}\right )}{c^3 d \sqrt {d-c^2 d x^2}} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.69, antiderivative size = 513, normalized size of antiderivative = 1.00, number
of steps used = 19, number of rules used = 13, integrand size = 33, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.394, Rules
used = {4861, 4859, 4847, 4745, 4765, 3800, 2221, 2317, 2438, 4767, 4749, 4266, 4737}
\begin {gather*} \frac {8 i b f g \sqrt {1-c^2 x^2} \text {ArcTan}\left (e^{i \text {ArcSin}(c x)}\right ) (a+b \text {ArcSin}(c x))}{c^2 d \sqrt {d-c^2 d x^2}}+\frac {x \left (c^2 f^2+g^2\right ) (a+b \text {ArcSin}(c x))^2}{c^2 d \sqrt {d-c^2 d x^2}}+\frac {2 f g (a+b \text {ArcSin}(c x))^2}{c^2 d \sqrt {d-c^2 d x^2}}-\frac {i \sqrt {1-c^2 x^2} \left (c^2 f^2+g^2\right ) (a+b \text {ArcSin}(c x))^2}{c^3 d \sqrt {d-c^2 d x^2}}+\frac {2 b \sqrt {1-c^2 x^2} \left (c^2 f^2+g^2\right ) \log \left (1+e^{2 i \text {ArcSin}(c x)}\right ) (a+b \text {ArcSin}(c x))}{c^3 d \sqrt {d-c^2 d x^2}}-\frac {g^2 \sqrt {1-c^2 x^2} (a+b \text {ArcSin}(c x))^3}{3 b c^3 d \sqrt {d-c^2 d x^2}}-\frac {4 i b^2 f g \sqrt {1-c^2 x^2} \text {Li}_2\left (-i e^{i \text {ArcSin}(c x)}\right )}{c^2 d \sqrt {d-c^2 d x^2}}+\frac {4 i b^2 f g \sqrt {1-c^2 x^2} \text {Li}_2\left (i e^{i \text {ArcSin}(c x)}\right )}{c^2 d \sqrt {d-c^2 d x^2}}-\frac {i b^2 \sqrt {1-c^2 x^2} \left (c^2 f^2+g^2\right ) \text {Li}_2\left (-e^{2 i \text {ArcSin}(c x)}\right )}{c^3 d \sqrt {d-c^2 d x^2}} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 2221
Rule 2317
Rule 2438
Rule 3800
Rule 4266
Rule 4737
Rule 4745
Rule 4749
Rule 4765
Rule 4767
Rule 4847
Rule 4859
Rule 4861
Rubi steps
\begin {align*} \int \frac {(f+g x)^2 \left (a+b \sin ^{-1}(c x)\right )^2}{\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 )^2}{\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 )^2}{c^2 \left (1-c^2 x^2\right )^{3/2}}-\frac {g^2 \left (a+b \sin ^{-1}(c x)\right )^2}{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 )^2}{\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 {\left (a+b \sin ^{-1}(c x)\right )^2}{\sqrt {1-c^2 x^2}} \, dx}{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 )^3}{3 b c^3 d \sqrt {d-c^2 d x^2}}+\frac {\sqrt {1-c^2 x^2} \int \left (\frac {c^2 f^2 \left (1+\frac {g^2}{c^2 f^2}\right ) \left (a+b \sin ^{-1}(c x)\right )^2}{\left (1-c^2 x^2\right )^{3/2}}+\frac {2 c^2 f g x \left (a+b \sin ^{-1}(c x)\right )^2}{\left (1-c^2 x^2\right )^{3/2}}\right ) \, dx}{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 )^3}{3 b c^3 d \sqrt {d-c^2 d x^2}}+\frac {\left (2 f g \sqrt {1-c^2 x^2}\right ) \int \frac {x \left (a+b \sin ^{-1}(c x)\right )^2}{\left (1-c^2 x^2\right )^{3/2}} \, dx}{d \sqrt {d-c^2 d x^2}}+\frac {\left (\left (c^2 f^2+g^2\right ) \sqrt {1-c^2 x^2}\right ) \int \frac {\left (a+b \sin ^{-1}(c x)\right )^2}{\left (1-c^2 x^2\right )^{3/2}} \, dx}{c^2 d \sqrt {d-c^2 d x^2}}\\ &=\frac {2 f g \left (a+b \sin ^{-1}(c x)\right )^2}{c^2 d \sqrt {d-c^2 d x^2}}+\frac {\left (c^2 f^2+g^2\right ) x \left (a+b \sin ^{-1}(c x)\right )^2}{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 )^3}{3 b c^3 d \sqrt {d-c^2 d x^2}}-\frac {\left (4 b f g \sqrt {1-c^2 x^2}\right ) \int \frac {a+b \sin ^{-1}(c x)}{1-c^2 x^2} \, dx}{c d \sqrt {d-c^2 d x^2}}-\frac {\left (2 b \left (c^2 f^2+g^2\right ) \sqrt {1-c^2 x^2}\right ) \int \frac {x \left (a+b \sin ^{-1}(c x)\right )}{1-c^2 x^2} \, dx}{c d \sqrt {d-c^2 d x^2}}\\ &=\frac {2 f g \left (a+b \sin ^{-1}(c x)\right )^2}{c^2 d \sqrt {d-c^2 d x^2}}+\frac {\left (c^2 f^2+g^2\right ) x \left (a+b \sin ^{-1}(c x)\right )^2}{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 )^3}{3 b c^3 d \sqrt {d-c^2 d x^2}}-\frac {\left (4 b f g \sqrt {1-c^2 x^2}\right ) \text {Subst}\left (\int (a+b x) \sec (x) \, dx,x,\sin ^{-1}(c x)\right )}{c^2 d \sqrt {d-c^2 d x^2}}-\frac {\left (2 b \left (c^2 f^2+g^2\right ) \sqrt {1-c^2 x^2}\right ) \text {Subst}\left (\int (a+b x) \tan (x) \, dx,x,\sin ^{-1}(c x)\right )}{c^3 d \sqrt {d-c^2 d x^2}}\\ &=\frac {2 f g \left (a+b \sin ^{-1}(c x)\right )^2}{c^2 d \sqrt {d-c^2 d x^2}}+\frac {\left (c^2 f^2+g^2\right ) x \left (a+b \sin ^{-1}(c x)\right )^2}{c^2 d \sqrt {d-c^2 d x^2}}-\frac {i \left (c^2 f^2+g^2\right ) \sqrt {1-c^2 x^2} \left (a+b \sin ^{-1}(c x)\right )^2}{c^3 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 )^3}{3 b c^3 d \sqrt {d-c^2 d x^2}}+\frac {8 i b f g \sqrt {1-c^2 x^2} \left (a+b \sin ^{-1}(c x)\right ) \tan ^{-1}\left (e^{i \sin ^{-1}(c x)}\right )}{c^2 d \sqrt {d-c^2 d x^2}}+\frac {\left (4 b^2 f g \sqrt {1-c^2 x^2}\right ) \text {Subst}\left (\int \log \left (1-i e^{i x}\right ) \, dx,x,\sin ^{-1}(c x)\right )}{c^2 d \sqrt {d-c^2 d x^2}}-\frac {\left (4 b^2 f g \sqrt {1-c^2 x^2}\right ) \text {Subst}\left (\int \log \left (1+i e^{i x}\right ) \, dx,x,\sin ^{-1}(c x)\right )}{c^2 d \sqrt {d-c^2 d x^2}}+\frac {\left (4 i b \left (c^2 f^2+g^2\right ) \sqrt {1-c^2 x^2}\right ) \text {Subst}\left (\int \frac {e^{2 i x} (a+b x)}{1+e^{2 i x}} \, dx,x,\sin ^{-1}(c x)\right )}{c^3 d \sqrt {d-c^2 d x^2}}\\ &=\frac {2 f g \left (a+b \sin ^{-1}(c x)\right )^2}{c^2 d \sqrt {d-c^2 d x^2}}+\frac {\left (c^2 f^2+g^2\right ) x \left (a+b \sin ^{-1}(c x)\right )^2}{c^2 d \sqrt {d-c^2 d x^2}}-\frac {i \left (c^2 f^2+g^2\right ) \sqrt {1-c^2 x^2} \left (a+b \sin ^{-1}(c x)\right )^2}{c^3 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 )^3}{3 b c^3 d \sqrt {d-c^2 d x^2}}+\frac {8 i b f g \sqrt {1-c^2 x^2} \left (a+b \sin ^{-1}(c x)\right ) \tan ^{-1}\left (e^{i \sin ^{-1}(c x)}\right )}{c^2 d \sqrt {d-c^2 d x^2}}+\frac {2 b \left (c^2 f^2+g^2\right ) \sqrt {1-c^2 x^2} \left (a+b \sin ^{-1}(c x)\right ) \log \left (1+e^{2 i \sin ^{-1}(c x)}\right )}{c^3 d \sqrt {d-c^2 d x^2}}-\frac {\left (4 i b^2 f g \sqrt {1-c^2 x^2}\right ) \text {Subst}\left (\int \frac {\log (1-i x)}{x} \, dx,x,e^{i \sin ^{-1}(c x)}\right )}{c^2 d \sqrt {d-c^2 d x^2}}+\frac {\left (4 i b^2 f g \sqrt {1-c^2 x^2}\right ) \text {Subst}\left (\int \frac {\log (1+i x)}{x} \, dx,x,e^{i \sin ^{-1}(c x)}\right )}{c^2 d \sqrt {d-c^2 d x^2}}-\frac {\left (2 b^2 \left (c^2 f^2+g^2\right ) \sqrt {1-c^2 x^2}\right ) \text {Subst}\left (\int \log \left (1+e^{2 i x}\right ) \, dx,x,\sin ^{-1}(c x)\right )}{c^3 d \sqrt {d-c^2 d x^2}}\\ &=\frac {2 f g \left (a+b \sin ^{-1}(c x)\right )^2}{c^2 d \sqrt {d-c^2 d x^2}}+\frac {\left (c^2 f^2+g^2\right ) x \left (a+b \sin ^{-1}(c x)\right )^2}{c^2 d \sqrt {d-c^2 d x^2}}-\frac {i \left (c^2 f^2+g^2\right ) \sqrt {1-c^2 x^2} \left (a+b \sin ^{-1}(c x)\right )^2}{c^3 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 )^3}{3 b c^3 d \sqrt {d-c^2 d x^2}}+\frac {8 i b f g \sqrt {1-c^2 x^2} \left (a+b \sin ^{-1}(c x)\right ) \tan ^{-1}\left (e^{i \sin ^{-1}(c x)}\right )}{c^2 d \sqrt {d-c^2 d x^2}}+\frac {2 b \left (c^2 f^2+g^2\right ) \sqrt {1-c^2 x^2} \left (a+b \sin ^{-1}(c x)\right ) \log \left (1+e^{2 i \sin ^{-1}(c x)}\right )}{c^3 d \sqrt {d-c^2 d x^2}}-\frac {4 i b^2 f g \sqrt {1-c^2 x^2} \text {Li}_2\left (-i e^{i \sin ^{-1}(c x)}\right )}{c^2 d \sqrt {d-c^2 d x^2}}+\frac {4 i b^2 f g \sqrt {1-c^2 x^2} \text {Li}_2\left (i e^{i \sin ^{-1}(c x)}\right )}{c^2 d \sqrt {d-c^2 d x^2}}+\frac {\left (i b^2 \left (c^2 f^2+g^2\right ) \sqrt {1-c^2 x^2}\right ) \text {Subst}\left (\int \frac {\log (1+x)}{x} \, dx,x,e^{2 i \sin ^{-1}(c x)}\right )}{c^3 d \sqrt {d-c^2 d x^2}}\\ &=\frac {2 f g \left (a+b \sin ^{-1}(c x)\right )^2}{c^2 d \sqrt {d-c^2 d x^2}}+\frac {\left (c^2 f^2+g^2\right ) x \left (a+b \sin ^{-1}(c x)\right )^2}{c^2 d \sqrt {d-c^2 d x^2}}-\frac {i \left (c^2 f^2+g^2\right ) \sqrt {1-c^2 x^2} \left (a+b \sin ^{-1}(c x)\right )^2}{c^3 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 )^3}{3 b c^3 d \sqrt {d-c^2 d x^2}}+\frac {8 i b f g \sqrt {1-c^2 x^2} \left (a+b \sin ^{-1}(c x)\right ) \tan ^{-1}\left (e^{i \sin ^{-1}(c x)}\right )}{c^2 d \sqrt {d-c^2 d x^2}}+\frac {2 b \left (c^2 f^2+g^2\right ) \sqrt {1-c^2 x^2} \left (a+b \sin ^{-1}(c x)\right ) \log \left (1+e^{2 i \sin ^{-1}(c x)}\right )}{c^3 d \sqrt {d-c^2 d x^2}}-\frac {4 i b^2 f g \sqrt {1-c^2 x^2} \text {Li}_2\left (-i e^{i \sin ^{-1}(c x)}\right )}{c^2 d \sqrt {d-c^2 d x^2}}+\frac {4 i b^2 f g \sqrt {1-c^2 x^2} \text {Li}_2\left (i e^{i \sin ^{-1}(c x)}\right )}{c^2 d \sqrt {d-c^2 d x^2}}-\frac {i b^2 \left (c^2 f^2+g^2\right ) \sqrt {1-c^2 x^2} \text {Li}_2\left (-e^{2 i \sin ^{-1}(c x)}\right )}{c^3 d \sqrt {d-c^2 d x^2}}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 1.34, size = 259, normalized size = 0.50 \begin {gather*} \frac {\sqrt {1-c^2 x^2} \left (-\frac {2 g^2 (a+b \text {ArcSin}(c x))^3}{b}+3 (-c f+g)^2 \left (-(a+b \text {ArcSin}(c x))^2 \cot \left (\frac {1}{4} (\pi +2 \text {ArcSin}(c x))\right )+i \left ((a+b \text {ArcSin}(c x)) \left (a+b \text {ArcSin}(c x)-4 i b \log \left (1+i e^{-i \text {ArcSin}(c x)}\right )\right )+4 b^2 \text {PolyLog}\left (2,-i e^{-i \text {ArcSin}(c x)}\right )\right )\right )-3 (c f+g)^2 \left (i \left ((a+b \text {ArcSin}(c x)) \left (a+b \text {ArcSin}(c x)+4 i b \log \left (1+i e^{i \text {ArcSin}(c x)}\right )\right )+4 b^2 \text {PolyLog}\left (2,-i e^{i \text {ArcSin}(c x)}\right )\right )-(a+b \text {ArcSin}(c x))^2 \tan \left (\frac {1}{4} (\pi +2 \text {ArcSin}(c x))\right )\right )\right )}{6 c^3 d \sqrt {d-c^2 d x^2}} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [B] Both result and optimal contain complex but leaf count of result is larger than twice
the leaf count of optimal. 1860 vs. \(2 (516 ) = 1032\).
time = 0.70, size = 1861, normalized size = 3.63
method | result | size |
default | \(\text {Expression too large to display}\) | \(1861\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Failed to integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {could not integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \int \frac {\left (a + b \operatorname {asin}{\left (c x \right )}\right )^{2} \left (f + g x\right )^{2}}{\left (- d \left (c x - 1\right ) \left (c x + 1\right )\right )^{\frac {3}{2}}}\, dx \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F(-2)]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Exception raised: TypeError} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [F]
time = 0.00, size = -1, normalized size = -0.00 \begin {gather*} \int \frac {{\left (f+g\,x\right )}^2\,{\left (a+b\,\mathrm {asin}\left (c\,x\right )\right )}^2}{{\left (d-c^2\,d\,x^2\right )}^{3/2}} \,d x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________