Optimal. Leaf size=199 \[ -\frac {15 (a+b x) \sqrt {1-(a+b x)^2}}{64 b}-\frac {(a+b x) \left (1-(a+b x)^2\right )^{3/2}}{32 b}+\frac {9 \text {ArcSin}(a+b x)}{64 b}-\frac {3 (a+b x)^2 \text {ArcSin}(a+b x)}{8 b}+\frac {\left (1-(a+b x)^2\right )^2 \text {ArcSin}(a+b x)}{8 b}+\frac {3 (a+b x) \sqrt {1-(a+b x)^2} \text {ArcSin}(a+b x)^2}{8 b}+\frac {(a+b x) \left (1-(a+b x)^2\right )^{3/2} \text {ArcSin}(a+b x)^2}{4 b}+\frac {\text {ArcSin}(a+b x)^3}{8 b} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.15, antiderivative size = 199, normalized size of antiderivative = 1.00, number of steps
used = 11, number of rules used = 9, integrand size = 33, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.273, Rules used = {4891, 4743,
4741, 4737, 4723, 327, 222, 4767, 201} \begin {gather*} \frac {\text {ArcSin}(a+b x)^3}{8 b}+\frac {(a+b x) \left (1-(a+b x)^2\right )^{3/2} \text {ArcSin}(a+b x)^2}{4 b}+\frac {3 (a+b x) \sqrt {1-(a+b x)^2} \text {ArcSin}(a+b x)^2}{8 b}-\frac {3 (a+b x)^2 \text {ArcSin}(a+b x)}{8 b}+\frac {\left (1-(a+b x)^2\right )^2 \text {ArcSin}(a+b x)}{8 b}+\frac {9 \text {ArcSin}(a+b x)}{64 b}-\frac {(a+b x) \left (1-(a+b x)^2\right )^{3/2}}{32 b}-\frac {15 (a+b x) \sqrt {1-(a+b x)^2}}{64 b} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 201
Rule 222
Rule 327
Rule 4723
Rule 4737
Rule 4741
Rule 4743
Rule 4767
Rule 4891
Rubi steps
\begin {align*} \int \left (1-a^2-2 a b x-b^2 x^2\right )^{3/2} \sin ^{-1}(a+b x)^2 \, dx &=\frac {\text {Subst}\left (\int \left (1-x^2\right )^{3/2} \sin ^{-1}(x)^2 \, dx,x,a+b x\right )}{b}\\ &=\frac {(a+b x) \left (1-(a+b x)^2\right )^{3/2} \sin ^{-1}(a+b x)^2}{4 b}-\frac {\text {Subst}\left (\int x \left (1-x^2\right ) \sin ^{-1}(x) \, dx,x,a+b x\right )}{2 b}+\frac {3 \text {Subst}\left (\int \sqrt {1-x^2} \sin ^{-1}(x)^2 \, dx,x,a+b x\right )}{4 b}\\ &=\frac {\left (1-(a+b x)^2\right )^2 \sin ^{-1}(a+b x)}{8 b}+\frac {3 (a+b x) \sqrt {1-(a+b x)^2} \sin ^{-1}(a+b x)^2}{8 b}+\frac {(a+b x) \left (1-(a+b x)^2\right )^{3/2} \sin ^{-1}(a+b x)^2}{4 b}-\frac {\text {Subst}\left (\int \left (1-x^2\right )^{3/2} \, dx,x,a+b x\right )}{8 b}+\frac {3 \text {Subst}\left (\int \frac {\sin ^{-1}(x)^2}{\sqrt {1-x^2}} \, dx,x,a+b x\right )}{8 b}-\frac {3 \text {Subst}\left (\int x \sin ^{-1}(x) \, dx,x,a+b x\right )}{4 b}\\ &=-\frac {(a+b x) \left (1-(a+b x)^2\right )^{3/2}}{32 b}-\frac {3 (a+b x)^2 \sin ^{-1}(a+b x)}{8 b}+\frac {\left (1-(a+b x)^2\right )^2 \sin ^{-1}(a+b x)}{8 b}+\frac {3 (a+b x) \sqrt {1-(a+b x)^2} \sin ^{-1}(a+b x)^2}{8 b}+\frac {(a+b x) \left (1-(a+b x)^2\right )^{3/2} \sin ^{-1}(a+b x)^2}{4 b}+\frac {\sin ^{-1}(a+b x)^3}{8 b}-\frac {3 \text {Subst}\left (\int \sqrt {1-x^2} \, dx,x,a+b x\right )}{32 b}+\frac {3 \text {Subst}\left (\int \frac {x^2}{\sqrt {1-x^2}} \, dx,x,a+b x\right )}{8 b}\\ &=-\frac {15 (a+b x) \sqrt {1-(a+b x)^2}}{64 b}-\frac {(a+b x) \left (1-(a+b x)^2\right )^{3/2}}{32 b}-\frac {3 (a+b x)^2 \sin ^{-1}(a+b x)}{8 b}+\frac {\left (1-(a+b x)^2\right )^2 \sin ^{-1}(a+b x)}{8 b}+\frac {3 (a+b x) \sqrt {1-(a+b x)^2} \sin ^{-1}(a+b x)^2}{8 b}+\frac {(a+b x) \left (1-(a+b x)^2\right )^{3/2} \sin ^{-1}(a+b x)^2}{4 b}+\frac {\sin ^{-1}(a+b x)^3}{8 b}-\frac {3 \text {Subst}\left (\int \frac {1}{\sqrt {1-x^2}} \, dx,x,a+b x\right )}{64 b}+\frac {3 \text {Subst}\left (\int \frac {1}{\sqrt {1-x^2}} \, dx,x,a+b x\right )}{16 b}\\ &=-\frac {15 (a+b x) \sqrt {1-(a+b x)^2}}{64 b}-\frac {(a+b x) \left (1-(a+b x)^2\right )^{3/2}}{32 b}+\frac {9 \sin ^{-1}(a+b x)}{64 b}-\frac {3 (a+b x)^2 \sin ^{-1}(a+b x)}{8 b}+\frac {\left (1-(a+b x)^2\right )^2 \sin ^{-1}(a+b x)}{8 b}+\frac {3 (a+b x) \sqrt {1-(a+b x)^2} \sin ^{-1}(a+b x)^2}{8 b}+\frac {(a+b x) \left (1-(a+b x)^2\right )^{3/2} \sin ^{-1}(a+b x)^2}{4 b}+\frac {\sin ^{-1}(a+b x)^3}{8 b}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.12, size = 216, normalized size = 1.09 \begin {gather*} \frac {\sqrt {1-a^2-2 a b x-b^2 x^2} \left (-17 a+2 a^3-17 b x+6 a^2 b x+6 a b^2 x^2+2 b^3 x^3\right )+\left (17-40 a^2+8 a^4\right ) \text {ArcSin}(a+b x)+8 b x \left (-10 a+4 a^3-5 b x+6 a^2 b x+4 a b^2 x^2+b^3 x^3\right ) \text {ArcSin}(a+b x)-8 \sqrt {1-a^2-2 a b x-b^2 x^2} \left (-5 a+2 a^3-5 b x+6 a^2 b x+6 a b^2 x^2+2 b^3 x^3\right ) \text {ArcSin}(a+b x)^2+8 \text {ArcSin}(a+b x)^3}{64 b} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [B] Leaf count of result is larger than twice the leaf count of optimal. \(514\) vs.
\(2(175)=350\).
time = 0.47, size = 515, normalized size = 2.59
method | result | size |
default | \(\frac {-16 \sqrt {-b^{2} x^{2}-2 a b x -a^{2}+1}\, \arcsin \left (b x +a \right )^{2} b^{3} x^{3}+8 \arcsin \left (b x +a \right ) b^{4} x^{4}-48 \sqrt {-b^{2} x^{2}-2 a b x -a^{2}+1}\, \arcsin \left (b x +a \right )^{2} a \,b^{2} x^{2}+32 \arcsin \left (b x +a \right ) a \,b^{3} x^{3}-48 \sqrt {-b^{2} x^{2}-2 a b x -a^{2}+1}\, \arcsin \left (b x +a \right )^{2} a^{2} b x +48 \arcsin \left (b x +a \right ) a^{2} b^{2} x^{2}+2 \sqrt {-b^{2} x^{2}-2 a b x -a^{2}+1}\, b^{3} x^{3}-16 \sqrt {-b^{2} x^{2}-2 a b x -a^{2}+1}\, \arcsin \left (b x +a \right )^{2} a^{3}+32 \arcsin \left (b x +a \right ) a^{3} b x +6 \sqrt {-b^{2} x^{2}-2 a b x -a^{2}+1}\, a \,b^{2} x^{2}+40 \arcsin \left (b x +a \right )^{2} \sqrt {-b^{2} x^{2}-2 a b x -a^{2}+1}\, b x +8 \arcsin \left (b x +a \right ) a^{4}-40 \arcsin \left (b x +a \right ) b^{2} x^{2}+6 \sqrt {-b^{2} x^{2}-2 a b x -a^{2}+1}\, a^{2} b x +40 \arcsin \left (b x +a \right )^{2} \sqrt {-b^{2} x^{2}-2 a b x -a^{2}+1}\, a -80 \arcsin \left (b x +a \right ) a b x +2 \sqrt {-b^{2} x^{2}-2 a b x -a^{2}+1}\, a^{3}+8 \arcsin \left (b x +a \right )^{3}-40 \arcsin \left (b x +a \right ) a^{2}-17 \sqrt {-b^{2} x^{2}-2 a b x -a^{2}+1}\, b x -17 \sqrt {-b^{2} x^{2}-2 a b x -a^{2}+1}\, a +17 \arcsin \left (b x +a \right )}{64 b}\) | \(515\) |
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 [A]
time = 2.22, size = 185, normalized size = 0.93 \begin {gather*} \frac {8 \, \arcsin \left (b x + a\right )^{3} + {\left (8 \, b^{4} x^{4} + 32 \, a b^{3} x^{3} + 8 \, {\left (6 \, a^{2} - 5\right )} b^{2} x^{2} + 8 \, a^{4} + 16 \, {\left (2 \, a^{3} - 5 \, a\right )} b x - 40 \, a^{2} + 17\right )} \arcsin \left (b x + a\right ) + {\left (2 \, b^{3} x^{3} + 6 \, a b^{2} x^{2} + 2 \, a^{3} + {\left (6 \, a^{2} - 17\right )} b x - 8 \, {\left (2 \, b^{3} x^{3} + 6 \, a b^{2} x^{2} + 2 \, a^{3} + {\left (6 \, a^{2} - 5\right )} b x - 5 \, a\right )} \arcsin \left (b x + a\right )^{2} - 17 \, a\right )} \sqrt {-b^{2} x^{2} - 2 \, a b x - a^{2} + 1}}{64 \, b} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [B] Leaf count of result is larger than twice the leaf count of optimal. 568 vs.
\(2 (175) = 350\).
time = 0.95, size = 568, normalized size = 2.85 \begin {gather*} \begin {cases} \frac {a^{4} \operatorname {asin}{\left (a + b x \right )}}{8 b} + \frac {a^{3} x \operatorname {asin}{\left (a + b x \right )}}{2} - \frac {a^{3} \sqrt {- a^{2} - 2 a b x - b^{2} x^{2} + 1} \operatorname {asin}^{2}{\left (a + b x \right )}}{4 b} + \frac {a^{3} \sqrt {- a^{2} - 2 a b x - b^{2} x^{2} + 1}}{32 b} + \frac {3 a^{2} b x^{2} \operatorname {asin}{\left (a + b x \right )}}{4} - \frac {3 a^{2} x \sqrt {- a^{2} - 2 a b x - b^{2} x^{2} + 1} \operatorname {asin}^{2}{\left (a + b x \right )}}{4} + \frac {3 a^{2} x \sqrt {- a^{2} - 2 a b x - b^{2} x^{2} + 1}}{32} - \frac {5 a^{2} \operatorname {asin}{\left (a + b x \right )}}{8 b} + \frac {a b^{2} x^{3} \operatorname {asin}{\left (a + b x \right )}}{2} - \frac {3 a b x^{2} \sqrt {- a^{2} - 2 a b x - b^{2} x^{2} + 1} \operatorname {asin}^{2}{\left (a + b x \right )}}{4} + \frac {3 a b x^{2} \sqrt {- a^{2} - 2 a b x - b^{2} x^{2} + 1}}{32} - \frac {5 a x \operatorname {asin}{\left (a + b x \right )}}{4} + \frac {5 a \sqrt {- a^{2} - 2 a b x - b^{2} x^{2} + 1} \operatorname {asin}^{2}{\left (a + b x \right )}}{8 b} - \frac {17 a \sqrt {- a^{2} - 2 a b x - b^{2} x^{2} + 1}}{64 b} + \frac {b^{3} x^{4} \operatorname {asin}{\left (a + b x \right )}}{8} - \frac {b^{2} x^{3} \sqrt {- a^{2} - 2 a b x - b^{2} x^{2} + 1} \operatorname {asin}^{2}{\left (a + b x \right )}}{4} + \frac {b^{2} x^{3} \sqrt {- a^{2} - 2 a b x - b^{2} x^{2} + 1}}{32} - \frac {5 b x^{2} \operatorname {asin}{\left (a + b x \right )}}{8} + \frac {5 x \sqrt {- a^{2} - 2 a b x - b^{2} x^{2} + 1} \operatorname {asin}^{2}{\left (a + b x \right )}}{8} - \frac {17 x \sqrt {- a^{2} - 2 a b x - b^{2} x^{2} + 1}}{64} + \frac {\operatorname {asin}^{3}{\left (a + b x \right )}}{8 b} + \frac {17 \operatorname {asin}{\left (a + b x \right )}}{64 b} & \text {for}\: b \neq 0 \\x \left (1 - a^{2}\right )^{\frac {3}{2}} \operatorname {asin}^{2}{\left (a \right )} & \text {otherwise} \end {cases} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A]
time = 0.49, size = 227, normalized size = 1.14 \begin {gather*} \frac {{\left (-b^{2} x^{2} - 2 \, a b x - a^{2} + 1\right )}^{\frac {3}{2}} {\left (b x + a\right )} \arcsin \left (b x + a\right )^{2}}{4 \, b} + \frac {3 \, \sqrt {-b^{2} x^{2} - 2 \, a b x - a^{2} + 1} {\left (b x + a\right )} \arcsin \left (b x + a\right )^{2}}{8 \, b} + \frac {{\left (b^{2} x^{2} + 2 \, a b x + a^{2} - 1\right )}^{2} \arcsin \left (b x + a\right )}{8 \, b} + \frac {\arcsin \left (b x + a\right )^{3}}{8 \, b} - \frac {{\left (-b^{2} x^{2} - 2 \, a b x - a^{2} + 1\right )}^{\frac {3}{2}} {\left (b x + a\right )}}{32 \, b} - \frac {3 \, {\left (b^{2} x^{2} + 2 \, a b x + a^{2} - 1\right )} \arcsin \left (b x + a\right )}{8 \, b} - \frac {15 \, \sqrt {-b^{2} x^{2} - 2 \, a b x - a^{2} + 1} {\left (b x + a\right )}}{64 \, b} - \frac {15 \, \arcsin \left (b x + a\right )}{64 \, b} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [F]
time = 0.00, size = -1, normalized size = -0.01 \begin {gather*} \int {\mathrm {asin}\left (a+b\,x\right )}^2\,{\left (-a^2-2\,a\,b\,x-b^2\,x^2+1\right )}^{3/2} \,d x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________