Optimal. Leaf size=361 \[ \frac{1}{3} x^3 \left (a+b \sin ^{-1}(c x)\right ) \left (d^2 h+2 d e g+e^2 f\right )+d^2 f x \left (a+b \sin ^{-1}(c x)\right )+\frac{1}{2} d x^2 (d g+2 e f) \left (a+b \sin ^{-1}(c x)\right )+\frac{1}{4} e x^4 (2 d h+e g) \left (a+b \sin ^{-1}(c x)\right )+\frac{1}{5} e^2 h x^5 \left (a+b \sin ^{-1}(c x)\right )+\frac{b x^2 \sqrt{1-c^2 x^2} \left (25 c^2 \left (d^2 h+2 d e g+e^2 f\right )+12 e^2 h\right )}{225 c^3}+\frac{b \sqrt{1-c^2 x^2} \left (32 \left (50 c^2 \left (d^2 h+2 d e g+e^2 f\right )+225 c^4 d^2 f+24 e^2 h\right )+225 c^2 x \left (8 c^2 d (d g+2 e f)+3 e (2 d h+e g)\right )\right )}{7200 c^5}-\frac{b \sin ^{-1}(c x) \left (8 c^2 d (d g+2 e f)+3 e (2 d h+e g)\right )}{32 c^4}+\frac{b e x^3 \sqrt{1-c^2 x^2} (2 d h+e g)}{16 c}+\frac{b e^2 h x^4 \sqrt{1-c^2 x^2}}{25 c} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 1.21528, antiderivative size = 361, normalized size of antiderivative = 1., number of steps used = 7, number of rules used = 5, integrand size = 26, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.192, Rules used = {4749, 12, 1809, 780, 216} \[ \frac{1}{3} x^3 \left (a+b \sin ^{-1}(c x)\right ) \left (d^2 h+2 d e g+e^2 f\right )+d^2 f x \left (a+b \sin ^{-1}(c x)\right )+\frac{1}{2} d x^2 (d g+2 e f) \left (a+b \sin ^{-1}(c x)\right )+\frac{1}{4} e x^4 (2 d h+e g) \left (a+b \sin ^{-1}(c x)\right )+\frac{1}{5} e^2 h x^5 \left (a+b \sin ^{-1}(c x)\right )+\frac{b x^2 \sqrt{1-c^2 x^2} \left (25 c^2 \left (d^2 h+2 d e g+e^2 f\right )+12 e^2 h\right )}{225 c^3}+\frac{b \sqrt{1-c^2 x^2} \left (32 \left (50 c^2 \left (d^2 h+2 d e g+e^2 f\right )+225 c^4 d^2 f+24 e^2 h\right )+225 c^2 x \left (8 c^2 d (d g+2 e f)+3 e (2 d h+e g)\right )\right )}{7200 c^5}-\frac{b \sin ^{-1}(c x) \left (8 c^2 d (d g+2 e f)+3 e (2 d h+e g)\right )}{32 c^4}+\frac{b e x^3 \sqrt{1-c^2 x^2} (2 d h+e g)}{16 c}+\frac{b e^2 h x^4 \sqrt{1-c^2 x^2}}{25 c} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 4749
Rule 12
Rule 1809
Rule 780
Rule 216
Rubi steps
\begin{align*} \int (d+e x)^2 \left (f+g x+h x^2\right ) \left (a+b \sin ^{-1}(c x)\right ) \, dx &=d^2 f x \left (a+b \sin ^{-1}(c x)\right )+\frac{1}{2} d (2 e f+d g) x^2 \left (a+b \sin ^{-1}(c x)\right )+\frac{1}{3} \left (e^2 f+2 d e g+d^2 h\right ) x^3 \left (a+b \sin ^{-1}(c x)\right )+\frac{1}{4} e (e g+2 d h) x^4 \left (a+b \sin ^{-1}(c x)\right )+\frac{1}{5} e^2 h x^5 \left (a+b \sin ^{-1}(c x)\right )-(b c) \int \frac{x \left (60 d^2 f+30 d (2 e f+d g) x+20 \left (e^2 f+2 d e g+d^2 h\right ) x^2+15 e (e g+2 d h) x^3+12 e^2 h x^4\right )}{60 \sqrt{1-c^2 x^2}} \, dx\\ &=d^2 f x \left (a+b \sin ^{-1}(c x)\right )+\frac{1}{2} d (2 e f+d g) x^2 \left (a+b \sin ^{-1}(c x)\right )+\frac{1}{3} \left (e^2 f+2 d e g+d^2 h\right ) x^3 \left (a+b \sin ^{-1}(c x)\right )+\frac{1}{4} e (e g+2 d h) x^4 \left (a+b \sin ^{-1}(c x)\right )+\frac{1}{5} e^2 h x^5 \left (a+b \sin ^{-1}(c x)\right )-\frac{1}{60} (b c) \int \frac{x \left (60 d^2 f+30 d (2 e f+d g) x+20 \left (e^2 f+2 d e g+d^2 h\right ) x^2+15 e (e g+2 d h) x^3+12 e^2 h x^4\right )}{\sqrt{1-c^2 x^2}} \, dx\\ &=\frac{b e^2 h x^4 \sqrt{1-c^2 x^2}}{25 c}+d^2 f x \left (a+b \sin ^{-1}(c x)\right )+\frac{1}{2} d (2 e f+d g) x^2 \left (a+b \sin ^{-1}(c x)\right )+\frac{1}{3} \left (e^2 f+2 d e g+d^2 h\right ) x^3 \left (a+b \sin ^{-1}(c x)\right )+\frac{1}{4} e (e g+2 d h) x^4 \left (a+b \sin ^{-1}(c x)\right )+\frac{1}{5} e^2 h x^5 \left (a+b \sin ^{-1}(c x)\right )+\frac{b \int \frac{x \left (-300 c^2 d^2 f-150 c^2 d (2 e f+d g) x-4 \left (12 e^2 h+25 c^2 \left (e^2 f+2 d e g+d^2 h\right )\right ) x^2-75 c^2 e (e g+2 d h) x^3\right )}{\sqrt{1-c^2 x^2}} \, dx}{300 c}\\ &=\frac{b e (e g+2 d h) x^3 \sqrt{1-c^2 x^2}}{16 c}+\frac{b e^2 h x^4 \sqrt{1-c^2 x^2}}{25 c}+d^2 f x \left (a+b \sin ^{-1}(c x)\right )+\frac{1}{2} d (2 e f+d g) x^2 \left (a+b \sin ^{-1}(c x)\right )+\frac{1}{3} \left (e^2 f+2 d e g+d^2 h\right ) x^3 \left (a+b \sin ^{-1}(c x)\right )+\frac{1}{4} e (e g+2 d h) x^4 \left (a+b \sin ^{-1}(c x)\right )+\frac{1}{5} e^2 h x^5 \left (a+b \sin ^{-1}(c x)\right )-\frac{b \int \frac{x \left (1200 c^4 d^2 f+75 c^2 \left (8 c^2 d (2 e f+d g)+3 e (e g+2 d h)\right ) x+16 c^2 \left (12 e^2 h+25 c^2 \left (e^2 f+2 d e g+d^2 h\right )\right ) x^2\right )}{\sqrt{1-c^2 x^2}} \, dx}{1200 c^3}\\ &=\frac{b \left (12 e^2 h+25 c^2 \left (e^2 f+2 d e g+d^2 h\right )\right ) x^2 \sqrt{1-c^2 x^2}}{225 c^3}+\frac{b e (e g+2 d h) x^3 \sqrt{1-c^2 x^2}}{16 c}+\frac{b e^2 h x^4 \sqrt{1-c^2 x^2}}{25 c}+d^2 f x \left (a+b \sin ^{-1}(c x)\right )+\frac{1}{2} d (2 e f+d g) x^2 \left (a+b \sin ^{-1}(c x)\right )+\frac{1}{3} \left (e^2 f+2 d e g+d^2 h\right ) x^3 \left (a+b \sin ^{-1}(c x)\right )+\frac{1}{4} e (e g+2 d h) x^4 \left (a+b \sin ^{-1}(c x)\right )+\frac{1}{5} e^2 h x^5 \left (a+b \sin ^{-1}(c x)\right )+\frac{b \int \frac{x \left (-16 c^2 \left (225 c^4 d^2 f+24 e^2 h+50 c^2 \left (e^2 f+2 d e g+d^2 h\right )\right )-225 c^4 \left (8 c^2 d (2 e f+d g)+3 e (e g+2 d h)\right ) x\right )}{\sqrt{1-c^2 x^2}} \, dx}{3600 c^5}\\ &=\frac{b \left (12 e^2 h+25 c^2 \left (e^2 f+2 d e g+d^2 h\right )\right ) x^2 \sqrt{1-c^2 x^2}}{225 c^3}+\frac{b e (e g+2 d h) x^3 \sqrt{1-c^2 x^2}}{16 c}+\frac{b e^2 h x^4 \sqrt{1-c^2 x^2}}{25 c}+\frac{b \left (32 \left (225 c^4 d^2 f+24 e^2 h+50 c^2 \left (e^2 f+2 d e g+d^2 h\right )\right )+225 c^2 \left (8 c^2 d (2 e f+d g)+3 e (e g+2 d h)\right ) x\right ) \sqrt{1-c^2 x^2}}{7200 c^5}+d^2 f x \left (a+b \sin ^{-1}(c x)\right )+\frac{1}{2} d (2 e f+d g) x^2 \left (a+b \sin ^{-1}(c x)\right )+\frac{1}{3} \left (e^2 f+2 d e g+d^2 h\right ) x^3 \left (a+b \sin ^{-1}(c x)\right )+\frac{1}{4} e (e g+2 d h) x^4 \left (a+b \sin ^{-1}(c x)\right )+\frac{1}{5} e^2 h x^5 \left (a+b \sin ^{-1}(c x)\right )-\frac{\left (b \left (8 c^2 d (2 e f+d g)+3 e (e g+2 d h)\right )\right ) \int \frac{1}{\sqrt{1-c^2 x^2}} \, dx}{32 c^3}\\ &=\frac{b \left (12 e^2 h+25 c^2 \left (e^2 f+2 d e g+d^2 h\right )\right ) x^2 \sqrt{1-c^2 x^2}}{225 c^3}+\frac{b e (e g+2 d h) x^3 \sqrt{1-c^2 x^2}}{16 c}+\frac{b e^2 h x^4 \sqrt{1-c^2 x^2}}{25 c}+\frac{b \left (32 \left (225 c^4 d^2 f+24 e^2 h+50 c^2 \left (e^2 f+2 d e g+d^2 h\right )\right )+225 c^2 \left (8 c^2 d (2 e f+d g)+3 e (e g+2 d h)\right ) x\right ) \sqrt{1-c^2 x^2}}{7200 c^5}-\frac{b \left (8 c^2 d (2 e f+d g)+3 e (e g+2 d h)\right ) \sin ^{-1}(c x)}{32 c^4}+d^2 f x \left (a+b \sin ^{-1}(c x)\right )+\frac{1}{2} d (2 e f+d g) x^2 \left (a+b \sin ^{-1}(c x)\right )+\frac{1}{3} \left (e^2 f+2 d e g+d^2 h\right ) x^3 \left (a+b \sin ^{-1}(c x)\right )+\frac{1}{4} e (e g+2 d h) x^4 \left (a+b \sin ^{-1}(c x)\right )+\frac{1}{5} e^2 h x^5 \left (a+b \sin ^{-1}(c x)\right )\\ \end{align*}
Mathematica [A] time = 0.500644, size = 307, normalized size = 0.85 \[ \frac{120 a c^5 x \left (10 d^2 (6 f+x (3 g+2 h x))+10 d e x (6 f+x (4 g+3 h x))+e^2 x^2 (20 f+3 x (5 g+4 h x))\right )+b \sqrt{1-c^2 x^2} \left (2 c^4 \left (100 d^2 (36 f+x (9 g+4 h x))+50 d e x (36 f+x (16 g+9 h x))+e^2 x^2 (400 f+9 x (25 g+16 h x))\right )+c^2 \left (1600 d^2 h+50 d e (64 g+27 h x)+e^2 \left (1600 f+675 g x+384 h x^2\right )\right )+768 e^2 h\right )+15 b c \sin ^{-1}(c x) \left (8 c^4 x \left (10 d^2 (6 f+x (3 g+2 h x))+10 d e x (6 f+x (4 g+3 h x))+e^2 x^2 (20 f+3 x (5 g+4 h x))\right )-120 c^2 d (d g+2 e f)-45 e (2 d h+e g)\right )}{7200 c^5} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A] time = 0.005, size = 502, normalized size = 1.4 \begin{align*}{\frac{1}{c} \left ({\frac{a}{{c}^{4}} \left ({\frac{{e}^{2}h{c}^{5}{x}^{5}}{5}}+{\frac{ \left ( 2\,cdeh+{e}^{2}cg \right ){c}^{4}{x}^{4}}{4}}+{\frac{ \left ({c}^{2}{d}^{2}h+2\,{c}^{2}deg+{e}^{2}f{c}^{2} \right ){c}^{3}{x}^{3}}{3}}+{\frac{ \left ({c}^{3}{d}^{2}g+2\,{c}^{3}def \right ){c}^{2}{x}^{2}}{2}}+{c}^{5}{d}^{2}fx \right ) }+{\frac{b}{{c}^{4}} \left ({\frac{\arcsin \left ( cx \right ){e}^{2}h{c}^{5}{x}^{5}}{5}}+{\frac{\arcsin \left ( cx \right ){c}^{5}{x}^{4}deh}{2}}+{\frac{\arcsin \left ( cx \right ){c}^{5}{x}^{4}{e}^{2}g}{4}}+{\frac{\arcsin \left ( cx \right ){c}^{5}{x}^{3}{d}^{2}h}{3}}+{\frac{2\,\arcsin \left ( cx \right ){c}^{5}{x}^{3}deg}{3}}+{\frac{\arcsin \left ( cx \right ){c}^{5}{x}^{3}{e}^{2}f}{3}}+{\frac{\arcsin \left ( cx \right ){c}^{5}{x}^{2}{d}^{2}g}{2}}+\arcsin \left ( cx \right ){c}^{5}{x}^{2}def+\arcsin \left ( cx \right ){c}^{5}{d}^{2}fx-{\frac{{e}^{2}h}{5} \left ( -{\frac{{c}^{4}{x}^{4}}{5}\sqrt{-{c}^{2}{x}^{2}+1}}-{\frac{4\,{c}^{2}{x}^{2}}{15}\sqrt{-{c}^{2}{x}^{2}+1}}-{\frac{8}{15}\sqrt{-{c}^{2}{x}^{2}+1}} \right ) }-{\frac{30\,cdeh+15\,{e}^{2}cg}{60} \left ( -{\frac{{c}^{3}{x}^{3}}{4}\sqrt{-{c}^{2}{x}^{2}+1}}-{\frac{3\,cx}{8}\sqrt{-{c}^{2}{x}^{2}+1}}+{\frac{3\,\arcsin \left ( cx \right ) }{8}} \right ) }-{\frac{20\,{c}^{2}{d}^{2}h+40\,{c}^{2}deg+20\,{e}^{2}f{c}^{2}}{60} \left ( -{\frac{{c}^{2}{x}^{2}}{3}\sqrt{-{c}^{2}{x}^{2}+1}}-{\frac{2}{3}\sqrt{-{c}^{2}{x}^{2}+1}} \right ) }-{\frac{30\,{c}^{3}{d}^{2}g+60\,{c}^{3}def}{60} \left ( -{\frac{cx}{2}\sqrt{-{c}^{2}{x}^{2}+1}}+{\frac{\arcsin \left ( cx \right ) }{2}} \right ) }+{c}^{4}{d}^{2}f\sqrt{-{c}^{2}{x}^{2}+1} \right ) } \right ) } \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A] time = 1.65624, size = 849, normalized size = 2.35 \begin{align*} \text{result too large to display} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A] time = 3.91403, size = 1042, normalized size = 2.89 \begin{align*} \frac{1440 \, a c^{5} e^{2} h x^{5} + 7200 \, a c^{5} d^{2} f x + 1800 \,{\left (a c^{5} e^{2} g + 2 \, a c^{5} d e h\right )} x^{4} + 2400 \,{\left (a c^{5} e^{2} f + 2 \, a c^{5} d e g + a c^{5} d^{2} h\right )} x^{3} + 3600 \,{\left (2 \, a c^{5} d e f + a c^{5} d^{2} g\right )} x^{2} + 15 \,{\left (96 \, b c^{5} e^{2} h x^{5} + 480 \, b c^{5} d^{2} f x - 240 \, b c^{3} d e f - 90 \, b c d e h + 120 \,{\left (b c^{5} e^{2} g + 2 \, b c^{5} d e h\right )} x^{4} + 160 \,{\left (b c^{5} e^{2} f + 2 \, b c^{5} d e g + b c^{5} d^{2} h\right )} x^{3} + 240 \,{\left (2 \, b c^{5} d e f + b c^{5} d^{2} g\right )} x^{2} - 15 \,{\left (8 \, b c^{3} d^{2} + 3 \, b c e^{2}\right )} g\right )} \arcsin \left (c x\right ) +{\left (288 \, b c^{4} e^{2} h x^{4} + 3200 \, b c^{2} d e g + 450 \,{\left (b c^{4} e^{2} g + 2 \, b c^{4} d e h\right )} x^{3} + 32 \,{\left (25 \, b c^{4} e^{2} f + 50 \, b c^{4} d e g +{\left (25 \, b c^{4} d^{2} + 12 \, b c^{2} e^{2}\right )} h\right )} x^{2} + 800 \,{\left (9 \, b c^{4} d^{2} + 2 \, b c^{2} e^{2}\right )} f + 64 \,{\left (25 \, b c^{2} d^{2} + 12 \, b e^{2}\right )} h + 225 \,{\left (16 \, b c^{4} d e f + 6 \, b c^{2} d e h +{\left (8 \, b c^{4} d^{2} + 3 \, b c^{2} e^{2}\right )} g\right )} x\right )} \sqrt{-c^{2} x^{2} + 1}}{7200 \, c^{5}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [A] time = 5.68296, size = 821, normalized size = 2.27 \begin{align*} \text{result too large to display} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [B] time = 1.30556, size = 1218, normalized size = 3.37 \begin{align*} \text{result too large to display} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]