Optimal. Leaf size=611 \[ -\frac {i e^{-\frac {i a}{b}} (a+b \text {ArcSin}(c+d x))^n \left (-\frac {i (a+b \text {ArcSin}(c+d x))}{b}\right )^{-n} \text {Gamma}\left (1+n,-\frac {i (a+b \text {ArcSin}(c+d x))}{b}\right )}{8 d^3}-\frac {i c^2 e^{-\frac {i a}{b}} (a+b \text {ArcSin}(c+d x))^n \left (-\frac {i (a+b \text {ArcSin}(c+d x))}{b}\right )^{-n} \text {Gamma}\left (1+n,-\frac {i (a+b \text {ArcSin}(c+d x))}{b}\right )}{2 d^3}+\frac {i e^{\frac {i a}{b}} (a+b \text {ArcSin}(c+d x))^n \left (\frac {i (a+b \text {ArcSin}(c+d x))}{b}\right )^{-n} \text {Gamma}\left (1+n,\frac {i (a+b \text {ArcSin}(c+d x))}{b}\right )}{8 d^3}+\frac {i c^2 e^{\frac {i a}{b}} (a+b \text {ArcSin}(c+d x))^n \left (\frac {i (a+b \text {ArcSin}(c+d x))}{b}\right )^{-n} \text {Gamma}\left (1+n,\frac {i (a+b \text {ArcSin}(c+d x))}{b}\right )}{2 d^3}+\frac {2^{-2-n} c e^{-\frac {2 i a}{b}} (a+b \text {ArcSin}(c+d x))^n \left (-\frac {i (a+b \text {ArcSin}(c+d x))}{b}\right )^{-n} \text {Gamma}\left (1+n,-\frac {2 i (a+b \text {ArcSin}(c+d x))}{b}\right )}{d^3}+\frac {2^{-2-n} c e^{\frac {2 i a}{b}} (a+b \text {ArcSin}(c+d x))^n \left (\frac {i (a+b \text {ArcSin}(c+d x))}{b}\right )^{-n} \text {Gamma}\left (1+n,\frac {2 i (a+b \text {ArcSin}(c+d x))}{b}\right )}{d^3}+\frac {i 3^{-1-n} e^{-\frac {3 i a}{b}} (a+b \text {ArcSin}(c+d x))^n \left (-\frac {i (a+b \text {ArcSin}(c+d x))}{b}\right )^{-n} \text {Gamma}\left (1+n,-\frac {3 i (a+b \text {ArcSin}(c+d x))}{b}\right )}{8 d^3}-\frac {i 3^{-1-n} e^{\frac {3 i a}{b}} (a+b \text {ArcSin}(c+d x))^n \left (\frac {i (a+b \text {ArcSin}(c+d x))}{b}\right )^{-n} \text {Gamma}\left (1+n,\frac {3 i (a+b \text {ArcSin}(c+d x))}{b}\right )}{8 d^3} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.86, antiderivative size = 611, normalized size of antiderivative = 1.00, number of steps
used = 22, number of rules used = 9, integrand size = 16, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.562, Rules used = {4889, 4831,
6873, 12, 6874, 3388, 2212, 4491, 3389} \begin {gather*} -\frac {i c^2 e^{-\frac {i a}{b}} (a+b \text {ArcSin}(c+d x))^n \left (-\frac {i (a+b \text {ArcSin}(c+d x))}{b}\right )^{-n} \text {Gamma}\left (n+1,-\frac {i (a+b \text {ArcSin}(c+d x))}{b}\right )}{2 d^3}+\frac {i c^2 e^{\frac {i a}{b}} (a+b \text {ArcSin}(c+d x))^n \left (\frac {i (a+b \text {ArcSin}(c+d x))}{b}\right )^{-n} \text {Gamma}\left (n+1,\frac {i (a+b \text {ArcSin}(c+d x))}{b}\right )}{2 d^3}-\frac {i e^{-\frac {i a}{b}} (a+b \text {ArcSin}(c+d x))^n \left (-\frac {i (a+b \text {ArcSin}(c+d x))}{b}\right )^{-n} \text {Gamma}\left (n+1,-\frac {i (a+b \text {ArcSin}(c+d x))}{b}\right )}{8 d^3}+\frac {c 2^{-n-2} e^{-\frac {2 i a}{b}} (a+b \text {ArcSin}(c+d x))^n \left (-\frac {i (a+b \text {ArcSin}(c+d x))}{b}\right )^{-n} \text {Gamma}\left (n+1,-\frac {2 i (a+b \text {ArcSin}(c+d x))}{b}\right )}{d^3}+\frac {i 3^{-n-1} e^{-\frac {3 i a}{b}} (a+b \text {ArcSin}(c+d x))^n \left (-\frac {i (a+b \text {ArcSin}(c+d x))}{b}\right )^{-n} \text {Gamma}\left (n+1,-\frac {3 i (a+b \text {ArcSin}(c+d x))}{b}\right )}{8 d^3}+\frac {i e^{\frac {i a}{b}} (a+b \text {ArcSin}(c+d x))^n \left (\frac {i (a+b \text {ArcSin}(c+d x))}{b}\right )^{-n} \text {Gamma}\left (n+1,\frac {i (a+b \text {ArcSin}(c+d x))}{b}\right )}{8 d^3}+\frac {c 2^{-n-2} e^{\frac {2 i a}{b}} (a+b \text {ArcSin}(c+d x))^n \left (\frac {i (a+b \text {ArcSin}(c+d x))}{b}\right )^{-n} \text {Gamma}\left (n+1,\frac {2 i (a+b \text {ArcSin}(c+d x))}{b}\right )}{d^3}-\frac {i 3^{-n-1} e^{\frac {3 i a}{b}} (a+b \text {ArcSin}(c+d x))^n \left (\frac {i (a+b \text {ArcSin}(c+d x))}{b}\right )^{-n} \text {Gamma}\left (n+1,\frac {3 i (a+b \text {ArcSin}(c+d x))}{b}\right )}{8 d^3} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 12
Rule 2212
Rule 3388
Rule 3389
Rule 4491
Rule 4831
Rule 4889
Rule 6873
Rule 6874
Rubi steps
\begin {align*} \int x^2 \left (a+b \sin ^{-1}(c+d x)\right )^n \, dx &=\frac {\text {Subst}\left (\int \left (-\frac {c}{d}+\frac {x}{d}\right )^2 \left (a+b \sin ^{-1}(x)\right )^n \, dx,x,c+d x\right )}{d}\\ &=\frac {\text {Subst}\left (\int (a+b x)^n \cos (x) \left (-\frac {c}{d}+\frac {\sin (x)}{d}\right )^2 \, dx,x,\sin ^{-1}(c+d x)\right )}{d}\\ &=\frac {\text {Subst}\left (\int \frac {(a+b x)^n \cos (x) (c-\sin (x))^2}{d^2} \, dx,x,\sin ^{-1}(c+d x)\right )}{d}\\ &=\frac {\text {Subst}\left (\int (a+b x)^n \cos (x) (c-\sin (x))^2 \, dx,x,\sin ^{-1}(c+d x)\right )}{d^3}\\ &=\frac {\text {Subst}\left (\int \left (c^2 (a+b x)^n \cos (x)-2 c (a+b x)^n \cos (x) \sin (x)+(a+b x)^n \cos (x) \sin ^2(x)\right ) \, dx,x,\sin ^{-1}(c+d x)\right )}{d^3}\\ &=\frac {\text {Subst}\left (\int (a+b x)^n \cos (x) \sin ^2(x) \, dx,x,\sin ^{-1}(c+d x)\right )}{d^3}-\frac {(2 c) \text {Subst}\left (\int (a+b x)^n \cos (x) \sin (x) \, dx,x,\sin ^{-1}(c+d x)\right )}{d^3}+\frac {c^2 \text {Subst}\left (\int (a+b x)^n \cos (x) \, dx,x,\sin ^{-1}(c+d x)\right )}{d^3}\\ &=\frac {\text {Subst}\left (\int \left (\frac {1}{4} (a+b x)^n \cos (x)-\frac {1}{4} (a+b x)^n \cos (3 x)\right ) \, dx,x,\sin ^{-1}(c+d x)\right )}{d^3}-\frac {(2 c) \text {Subst}\left (\int \frac {1}{2} (a+b x)^n \sin (2 x) \, dx,x,\sin ^{-1}(c+d x)\right )}{d^3}+\frac {c^2 \text {Subst}\left (\int e^{-i x} (a+b x)^n \, dx,x,\sin ^{-1}(c+d x)\right )}{2 d^3}+\frac {c^2 \text {Subst}\left (\int e^{i x} (a+b x)^n \, dx,x,\sin ^{-1}(c+d x)\right )}{2 d^3}\\ &=-\frac {i c^2 e^{-\frac {i a}{b}} \left (a+b \sin ^{-1}(c+d x)\right )^n \left (-\frac {i \left (a+b \sin ^{-1}(c+d x)\right )}{b}\right )^{-n} \Gamma \left (1+n,-\frac {i \left (a+b \sin ^{-1}(c+d x)\right )}{b}\right )}{2 d^3}+\frac {i c^2 e^{\frac {i a}{b}} \left (a+b \sin ^{-1}(c+d x)\right )^n \left (\frac {i \left (a+b \sin ^{-1}(c+d x)\right )}{b}\right )^{-n} \Gamma \left (1+n,\frac {i \left (a+b \sin ^{-1}(c+d x)\right )}{b}\right )}{2 d^3}+\frac {\text {Subst}\left (\int (a+b x)^n \cos (x) \, dx,x,\sin ^{-1}(c+d x)\right )}{4 d^3}-\frac {\text {Subst}\left (\int (a+b x)^n \cos (3 x) \, dx,x,\sin ^{-1}(c+d x)\right )}{4 d^3}-\frac {c \text {Subst}\left (\int (a+b x)^n \sin (2 x) \, dx,x,\sin ^{-1}(c+d x)\right )}{d^3}\\ &=-\frac {i c^2 e^{-\frac {i a}{b}} \left (a+b \sin ^{-1}(c+d x)\right )^n \left (-\frac {i \left (a+b \sin ^{-1}(c+d x)\right )}{b}\right )^{-n} \Gamma \left (1+n,-\frac {i \left (a+b \sin ^{-1}(c+d x)\right )}{b}\right )}{2 d^3}+\frac {i c^2 e^{\frac {i a}{b}} \left (a+b \sin ^{-1}(c+d x)\right )^n \left (\frac {i \left (a+b \sin ^{-1}(c+d x)\right )}{b}\right )^{-n} \Gamma \left (1+n,\frac {i \left (a+b \sin ^{-1}(c+d x)\right )}{b}\right )}{2 d^3}+\frac {\text {Subst}\left (\int e^{-i x} (a+b x)^n \, dx,x,\sin ^{-1}(c+d x)\right )}{8 d^3}+\frac {\text {Subst}\left (\int e^{i x} (a+b x)^n \, dx,x,\sin ^{-1}(c+d x)\right )}{8 d^3}-\frac {\text {Subst}\left (\int e^{-3 i x} (a+b x)^n \, dx,x,\sin ^{-1}(c+d x)\right )}{8 d^3}-\frac {\text {Subst}\left (\int e^{3 i x} (a+b x)^n \, dx,x,\sin ^{-1}(c+d x)\right )}{8 d^3}-\frac {(i c) \text {Subst}\left (\int e^{-2 i x} (a+b x)^n \, dx,x,\sin ^{-1}(c+d x)\right )}{2 d^3}+\frac {(i c) \text {Subst}\left (\int e^{2 i x} (a+b x)^n \, dx,x,\sin ^{-1}(c+d x)\right )}{2 d^3}\\ &=-\frac {i e^{-\frac {i a}{b}} \left (a+b \sin ^{-1}(c+d x)\right )^n \left (-\frac {i \left (a+b \sin ^{-1}(c+d x)\right )}{b}\right )^{-n} \Gamma \left (1+n,-\frac {i \left (a+b \sin ^{-1}(c+d x)\right )}{b}\right )}{8 d^3}-\frac {i c^2 e^{-\frac {i a}{b}} \left (a+b \sin ^{-1}(c+d x)\right )^n \left (-\frac {i \left (a+b \sin ^{-1}(c+d x)\right )}{b}\right )^{-n} \Gamma \left (1+n,-\frac {i \left (a+b \sin ^{-1}(c+d x)\right )}{b}\right )}{2 d^3}+\frac {i e^{\frac {i a}{b}} \left (a+b \sin ^{-1}(c+d x)\right )^n \left (\frac {i \left (a+b \sin ^{-1}(c+d x)\right )}{b}\right )^{-n} \Gamma \left (1+n,\frac {i \left (a+b \sin ^{-1}(c+d x)\right )}{b}\right )}{8 d^3}+\frac {i c^2 e^{\frac {i a}{b}} \left (a+b \sin ^{-1}(c+d x)\right )^n \left (\frac {i \left (a+b \sin ^{-1}(c+d x)\right )}{b}\right )^{-n} \Gamma \left (1+n,\frac {i \left (a+b \sin ^{-1}(c+d x)\right )}{b}\right )}{2 d^3}+\frac {2^{-2-n} c e^{-\frac {2 i a}{b}} \left (a+b \sin ^{-1}(c+d x)\right )^n \left (-\frac {i \left (a+b \sin ^{-1}(c+d x)\right )}{b}\right )^{-n} \Gamma \left (1+n,-\frac {2 i \left (a+b \sin ^{-1}(c+d x)\right )}{b}\right )}{d^3}+\frac {2^{-2-n} c e^{\frac {2 i a}{b}} \left (a+b \sin ^{-1}(c+d x)\right )^n \left (\frac {i \left (a+b \sin ^{-1}(c+d x)\right )}{b}\right )^{-n} \Gamma \left (1+n,\frac {2 i \left (a+b \sin ^{-1}(c+d x)\right )}{b}\right )}{d^3}+\frac {i 3^{-1-n} e^{-\frac {3 i a}{b}} \left (a+b \sin ^{-1}(c+d x)\right )^n \left (-\frac {i \left (a+b \sin ^{-1}(c+d x)\right )}{b}\right )^{-n} \Gamma \left (1+n,-\frac {3 i \left (a+b \sin ^{-1}(c+d x)\right )}{b}\right )}{8 d^3}-\frac {i 3^{-1-n} e^{\frac {3 i a}{b}} \left (a+b \sin ^{-1}(c+d x)\right )^n \left (\frac {i \left (a+b \sin ^{-1}(c+d x)\right )}{b}\right )^{-n} \Gamma \left (1+n,\frac {3 i \left (a+b \sin ^{-1}(c+d x)\right )}{b}\right )}{8 d^3}\\ \end {align*}
________________________________________________________________________________________
Mathematica [F]
time = 1.11, size = 0, normalized size = 0.00 \begin {gather*} \int x^2 (a+b \text {ArcSin}(c+d x))^n \, dx \end {gather*}
Verification is not applicable to the result.
[In]
[Out]
________________________________________________________________________________________
Maple [F]
time = 0.86, size = 0, normalized size = 0.00 \[\int x^{2} \left (a +b \arcsin \left (d x +c \right )\right )^{n}\, dx\]
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 x^{2} \left (a + b \operatorname {asin}{\left (c + d x \right )}\right )^{n}\, dx \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [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]
________________________________________________________________________________________
Mupad [F]
time = 0.00, size = -1, normalized size = -0.00 \begin {gather*} \int x^2\,{\left (a+b\,\mathrm {asin}\left (c+d\,x\right )\right )}^n \,d x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________