Optimal. Leaf size=115 \[ \frac{1}{4} x^4 \left (a+b \sin ^{-1}\left (c+d x^2\right )\right )+\frac{b x^2 \sqrt{-c^2-2 c d x^2-d^2 x^4+1}}{8 d}-\frac{3 b c \sqrt{-c^2-2 c d x^2-d^2 x^4+1}}{8 d^2}-\frac{b \left (2 c^2+1\right ) \sin ^{-1}\left (c+d x^2\right )}{8 d^2} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.13019, antiderivative size = 115, normalized size of antiderivative = 1., number of steps used = 7, number of rules used = 7, integrand size = 16, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.438, Rules used = {4842, 12, 1114, 742, 640, 619, 216} \[ \frac{1}{4} x^4 \left (a+b \sin ^{-1}\left (c+d x^2\right )\right )+\frac{b x^2 \sqrt{-c^2-2 c d x^2-d^2 x^4+1}}{8 d}-\frac{3 b c \sqrt{-c^2-2 c d x^2-d^2 x^4+1}}{8 d^2}-\frac{b \left (2 c^2+1\right ) \sin ^{-1}\left (c+d x^2\right )}{8 d^2} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 4842
Rule 12
Rule 1114
Rule 742
Rule 640
Rule 619
Rule 216
Rubi steps
\begin{align*} \int x^3 \left (a+b \sin ^{-1}\left (c+d x^2\right )\right ) \, dx &=\frac{1}{4} x^4 \left (a+b \sin ^{-1}\left (c+d x^2\right )\right )-\frac{1}{4} b \int \frac{2 d x^5}{\sqrt{1-c^2-2 c d x^2-d^2 x^4}} \, dx\\ &=\frac{1}{4} x^4 \left (a+b \sin ^{-1}\left (c+d x^2\right )\right )-\frac{1}{2} (b d) \int \frac{x^5}{\sqrt{1-c^2-2 c d x^2-d^2 x^4}} \, dx\\ &=\frac{1}{4} x^4 \left (a+b \sin ^{-1}\left (c+d x^2\right )\right )-\frac{1}{4} (b d) \operatorname{Subst}\left (\int \frac{x^2}{\sqrt{1-c^2-2 c d x-d^2 x^2}} \, dx,x,x^2\right )\\ &=\frac{b x^2 \sqrt{1-c^2-2 c d x^2-d^2 x^4}}{8 d}+\frac{1}{4} x^4 \left (a+b \sin ^{-1}\left (c+d x^2\right )\right )+\frac{b \operatorname{Subst}\left (\int \frac{-1+c^2+3 c d x}{\sqrt{1-c^2-2 c d x-d^2 x^2}} \, dx,x,x^2\right )}{8 d}\\ &=-\frac{3 b c \sqrt{1-c^2-2 c d x^2-d^2 x^4}}{8 d^2}+\frac{b x^2 \sqrt{1-c^2-2 c d x^2-d^2 x^4}}{8 d}+\frac{1}{4} x^4 \left (a+b \sin ^{-1}\left (c+d x^2\right )\right )-\frac{\left (b \left (1+2 c^2\right )\right ) \operatorname{Subst}\left (\int \frac{1}{\sqrt{1-c^2-2 c d x-d^2 x^2}} \, dx,x,x^2\right )}{8 d}\\ &=-\frac{3 b c \sqrt{1-c^2-2 c d x^2-d^2 x^4}}{8 d^2}+\frac{b x^2 \sqrt{1-c^2-2 c d x^2-d^2 x^4}}{8 d}+\frac{1}{4} x^4 \left (a+b \sin ^{-1}\left (c+d x^2\right )\right )+\frac{\left (b \left (1+2 c^2\right )\right ) \operatorname{Subst}\left (\int \frac{1}{\sqrt{1-\frac{x^2}{4 d^2}}} \, dx,x,-2 d \left (c+d x^2\right )\right )}{16 d^3}\\ &=-\frac{3 b c \sqrt{1-c^2-2 c d x^2-d^2 x^4}}{8 d^2}+\frac{b x^2 \sqrt{1-c^2-2 c d x^2-d^2 x^4}}{8 d}-\frac{b \left (1+2 c^2\right ) \sin ^{-1}\left (c+d x^2\right )}{8 d^2}+\frac{1}{4} x^4 \left (a+b \sin ^{-1}\left (c+d x^2\right )\right )\\ \end{align*}
Mathematica [A] time = 0.0785011, size = 98, normalized size = 0.85 \[ \frac{a x^4}{4}+\frac{1}{2} b \left (\frac{x^2}{4 d}-\frac{3 c}{4 d^2}\right ) \sqrt{-c^2-2 c d x^2-d^2 x^4+1}-\frac{b \left (2 c^2+1\right ) \sin ^{-1}\left (c+d x^2\right )}{8 d^2}+\frac{1}{4} b x^4 \sin ^{-1}\left (c+d x^2\right ) \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A] time = 0.016, size = 191, normalized size = 1.7 \begin{align*}{\frac{{x}^{4}a}{4}}+{\frac{b{x}^{4}\arcsin \left ( d{x}^{2}+c \right ) }{4}}+{\frac{b{x}^{2}}{8\,d}\sqrt{-{d}^{2}{x}^{4}-2\,cd{x}^{2}-{c}^{2}+1}}-{\frac{3\,bc}{8\,{d}^{2}}\sqrt{-{d}^{2}{x}^{4}-2\,cd{x}^{2}-{c}^{2}+1}}-{\frac{b{c}^{2}}{4\,d}\arctan \left ({\sqrt{{d}^{2}} \left ({x}^{2}+{\frac{c}{d}} \right ){\frac{1}{\sqrt{-{d}^{2}{x}^{4}-2\,cd{x}^{2}-{c}^{2}+1}}}} \right ){\frac{1}{\sqrt{{d}^{2}}}}}-{\frac{b}{8\,d}\arctan \left ({\sqrt{{d}^{2}} \left ({x}^{2}+{\frac{c}{d}} \right ){\frac{1}{\sqrt{-{d}^{2}{x}^{4}-2\,cd{x}^{2}-{c}^{2}+1}}}} \right ){\frac{1}{\sqrt{{d}^{2}}}}} \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 [A] time = 2.34112, size = 173, normalized size = 1.5 \begin{align*} \frac{2 \, a d^{2} x^{4} +{\left (2 \, b d^{2} x^{4} - 2 \, b c^{2} - b\right )} \arcsin \left (d x^{2} + c\right ) + \sqrt{-d^{2} x^{4} - 2 \, c d x^{2} - c^{2} + 1}{\left (b d x^{2} - 3 \, b c\right )}}{8 \, d^{2}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [A] time = 1.36988, size = 133, normalized size = 1.16 \begin{align*} \begin{cases} \frac{a x^{4}}{4} - \frac{b c^{2} \operatorname{asin}{\left (c + d x^{2} \right )}}{4 d^{2}} - \frac{3 b c \sqrt{- c^{2} - 2 c d x^{2} - d^{2} x^{4} + 1}}{8 d^{2}} + \frac{b x^{4} \operatorname{asin}{\left (c + d x^{2} \right )}}{4} + \frac{b x^{2} \sqrt{- c^{2} - 2 c d x^{2} - d^{2} x^{4} + 1}}{8 d} - \frac{b \operatorname{asin}{\left (c + d x^{2} \right )}}{8 d^{2}} & \text{for}\: d \neq 0 \\\frac{x^{4} \left (a + b \operatorname{asin}{\left (c \right )}\right )}{4} & \text{otherwise} \end{cases} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A] time = 1.13422, size = 176, normalized size = 1.53 \begin{align*} \frac{\frac{2 \,{\left ({\left (d x^{2} + c\right )}^{2} - 2 \,{\left (d x^{2} + c\right )} c\right )} a}{d} - \frac{{\left (4 \,{\left (d x^{2} + c\right )} c \arcsin \left (d x^{2} + c\right ) - 2 \,{\left ({\left (d x^{2} + c\right )}^{2} - 1\right )} \arcsin \left (d x^{2} + c\right ) -{\left (d x^{2} + c\right )} \sqrt{-{\left (d x^{2} + c\right )}^{2} + 1} + 4 \, \sqrt{-{\left (d x^{2} + c\right )}^{2} + 1} c - \arcsin \left (d x^{2} + c\right )\right )} b}{d}}{8 \, d} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]