Optimal. Leaf size=470 \[ \frac {b c \left (e^2 f-d e g+d^2 h\right ) \sqrt {1-c^2 x^2}}{12 e^2 \left (c^2 d^2-e^2\right ) (d+e x)^3}-\frac {b c \left (4 e^2 (e g-2 d h)-c^2 d \left (5 e^2 f-d e g-3 d^2 h\right )\right ) \sqrt {1-c^2 x^2}}{24 e^2 \left (c^2 d^2-e^2\right )^2 (d+e x)^2}+\frac {b c \left (12 e^4 h+c^4 d^2 \left (11 e^2 f+d e g-d^2 h\right )+4 c^2 e^2 \left (e^2 f-4 d e g+d^2 h\right )\right ) \sqrt {1-c^2 x^2}}{24 e^2 \left (c^2 d^2-e^2\right )^3 (d+e x)}-\frac {\left (e^2 f-d e g+d^2 h\right ) (a+b \text {ArcSin}(c x))}{4 e^3 (d+e x)^4}-\frac {(e g-2 d h) (a+b \text {ArcSin}(c x))}{3 e^3 (d+e x)^3}-\frac {h (a+b \text {ArcSin}(c x))}{2 e^3 (d+e x)^2}-\frac {b c^3 \left (4 e^4 (e g-5 d h)-c^2 d e^2 \left (9 e^2 f-13 d e g-7 d^2 h\right )-2 c^4 d^3 \left (3 e^2 f+d e g+d^2 h\right )\right ) \text {ArcTan}\left (\frac {e+c^2 d x}{\sqrt {c^2 d^2-e^2} \sqrt {1-c^2 x^2}}\right )}{24 e^3 \left (c^2 d^2-e^2\right )^{7/2}} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.65, antiderivative size = 470, normalized size of antiderivative = 1.00, number of steps
used = 7, number of rules used = 8, integrand size = 26, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.308, Rules used = {712, 4837, 12,
1665, 849, 821, 739, 210} \begin {gather*} -\frac {(a+b \text {ArcSin}(c x)) \left (d^2 h-d e g+e^2 f\right )}{4 e^3 (d+e x)^4}-\frac {(e g-2 d h) (a+b \text {ArcSin}(c x))}{3 e^3 (d+e x)^3}-\frac {h (a+b \text {ArcSin}(c x))}{2 e^3 (d+e x)^2}-\frac {b c^3 \text {ArcTan}\left (\frac {c^2 d x+e}{\sqrt {1-c^2 x^2} \sqrt {c^2 d^2-e^2}}\right ) \left (-2 c^4 d^3 \left (d^2 h+d e g+3 e^2 f\right )-c^2 d e^2 \left (-7 d^2 h-13 d e g+9 e^2 f\right )+4 e^4 (e g-5 d h)\right )}{24 e^3 \left (c^2 d^2-e^2\right )^{7/2}}-\frac {b c \sqrt {1-c^2 x^2} \left (4 e^2 (e g-2 d h)-c^2 d \left (-3 d^2 h-d e g+5 e^2 f\right )\right )}{24 e^2 \left (c^2 d^2-e^2\right )^2 (d+e x)^2}+\frac {b c \sqrt {1-c^2 x^2} \left (d^2 h-d e g+e^2 f\right )}{12 e^2 \left (c^2 d^2-e^2\right ) (d+e x)^3}+\frac {b c \sqrt {1-c^2 x^2} \left (c^4 d^2 \left (d^2 (-h)+d e g+11 e^2 f\right )+4 c^2 e^2 \left (d^2 h-4 d e g+e^2 f\right )+12 e^4 h\right )}{24 e^2 \left (c^2 d^2-e^2\right )^3 (d+e x)} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 12
Rule 210
Rule 712
Rule 739
Rule 821
Rule 849
Rule 1665
Rule 4837
Rubi steps
\begin {align*} \int \frac {\left (f+g x+h x^2\right ) \left (a+b \sin ^{-1}(c x)\right )}{(d+e x)^5} \, dx &=-\frac {\left (e^2 f-d e g+d^2 h\right ) \left (a+b \sin ^{-1}(c x)\right )}{4 e^3 (d+e x)^4}-\frac {(e g-2 d h) \left (a+b \sin ^{-1}(c x)\right )}{3 e^3 (d+e x)^3}-\frac {h \left (a+b \sin ^{-1}(c x)\right )}{2 e^3 (d+e x)^2}-(b c) \int \frac {-3 e^2 f-d e g-d^2 h-4 e (e g+d h) x-6 e^2 h x^2}{12 e^3 (d+e x)^4 \sqrt {1-c^2 x^2}} \, dx\\ &=-\frac {\left (e^2 f-d e g+d^2 h\right ) \left (a+b \sin ^{-1}(c x)\right )}{4 e^3 (d+e x)^4}-\frac {(e g-2 d h) \left (a+b \sin ^{-1}(c x)\right )}{3 e^3 (d+e x)^3}-\frac {h \left (a+b \sin ^{-1}(c x)\right )}{2 e^3 (d+e x)^2}-\frac {(b c) \int \frac {-3 e^2 f-d e g-d^2 h-4 e (e g+d h) x-6 e^2 h x^2}{(d+e x)^4 \sqrt {1-c^2 x^2}} \, dx}{12 e^3}\\ &=\frac {b c \left (e^2 f-d e g+d^2 h\right ) \sqrt {1-c^2 x^2}}{12 e^2 \left (c^2 d^2-e^2\right ) (d+e x)^3}-\frac {\left (e^2 f-d e g+d^2 h\right ) \left (a+b \sin ^{-1}(c x)\right )}{4 e^3 (d+e x)^4}-\frac {(e g-2 d h) \left (a+b \sin ^{-1}(c x)\right )}{3 e^3 (d+e x)^3}-\frac {h \left (a+b \sin ^{-1}(c x)\right )}{2 e^3 (d+e x)^2}-\frac {(b c) \int \frac {3 \left (2 e^2 (2 e g-d h)-c^2 d \left (3 e^2 f+d e g+d^2 h\right )\right )+6 e \left (3 e^2 h+c^2 \left (e^2 f-d e g-2 d^2 h\right )\right ) x}{(d+e x)^3 \sqrt {1-c^2 x^2}} \, dx}{36 e^3 \left (c^2 d^2-e^2\right )}\\ &=\frac {b c \left (e^2 f-d e g+d^2 h\right ) \sqrt {1-c^2 x^2}}{12 e^2 \left (c^2 d^2-e^2\right ) (d+e x)^3}-\frac {b c \left (4 e^2 (e g-2 d h)-c^2 d \left (5 e^2 f-d e g-3 d^2 h\right )\right ) \sqrt {1-c^2 x^2}}{24 e^2 \left (c^2 d^2-e^2\right )^2 (d+e x)^2}-\frac {\left (e^2 f-d e g+d^2 h\right ) \left (a+b \sin ^{-1}(c x)\right )}{4 e^3 (d+e x)^4}-\frac {(e g-2 d h) \left (a+b \sin ^{-1}(c x)\right )}{3 e^3 (d+e x)^3}-\frac {h \left (a+b \sin ^{-1}(c x)\right )}{2 e^3 (d+e x)^2}-\frac {(b c) \int \frac {-6 \left (6 e^4 h+2 c^2 e^2 \left (e^2 f-3 d e g-d^2 h\right )+c^4 d^2 \left (3 e^2 f+d e g+d^2 h\right )\right )-3 c^2 e \left (4 e^2 (e g-2 d h)-c^2 d \left (5 e^2 f-d e g-3 d^2 h\right )\right ) x}{(d+e x)^2 \sqrt {1-c^2 x^2}} \, dx}{72 e^3 \left (c^2 d^2-e^2\right )^2}\\ &=\frac {b c \left (e^2 f-d e g+d^2 h\right ) \sqrt {1-c^2 x^2}}{12 e^2 \left (c^2 d^2-e^2\right ) (d+e x)^3}-\frac {b c \left (4 e^2 (e g-2 d h)-c^2 d \left (5 e^2 f-d e g-3 d^2 h\right )\right ) \sqrt {1-c^2 x^2}}{24 e^2 \left (c^2 d^2-e^2\right )^2 (d+e x)^2}+\frac {b c \left (12 e^4 h+c^4 d^2 \left (11 e^2 f+d e g-d^2 h\right )+4 c^2 e^2 \left (e^2 f-4 d e g+d^2 h\right )\right ) \sqrt {1-c^2 x^2}}{24 e^2 \left (c^2 d^2-e^2\right )^3 (d+e x)}-\frac {\left (e^2 f-d e g+d^2 h\right ) \left (a+b \sin ^{-1}(c x)\right )}{4 e^3 (d+e x)^4}-\frac {(e g-2 d h) \left (a+b \sin ^{-1}(c x)\right )}{3 e^3 (d+e x)^3}-\frac {h \left (a+b \sin ^{-1}(c x)\right )}{2 e^3 (d+e x)^2}-\frac {\left (b c^3 \left (4 e^4 (e g-5 d h)-c^2 d e^2 \left (9 e^2 f-13 d e g-7 d^2 h\right )-2 c^4 d^3 \left (3 e^2 f+d e g+d^2 h\right )\right )\right ) \int \frac {1}{(d+e x) \sqrt {1-c^2 x^2}} \, dx}{24 e^3 \left (c^2 d^2-e^2\right )^3}\\ &=\frac {b c \left (e^2 f-d e g+d^2 h\right ) \sqrt {1-c^2 x^2}}{12 e^2 \left (c^2 d^2-e^2\right ) (d+e x)^3}-\frac {b c \left (4 e^2 (e g-2 d h)-c^2 d \left (5 e^2 f-d e g-3 d^2 h\right )\right ) \sqrt {1-c^2 x^2}}{24 e^2 \left (c^2 d^2-e^2\right )^2 (d+e x)^2}+\frac {b c \left (12 e^4 h+c^4 d^2 \left (11 e^2 f+d e g-d^2 h\right )+4 c^2 e^2 \left (e^2 f-4 d e g+d^2 h\right )\right ) \sqrt {1-c^2 x^2}}{24 e^2 \left (c^2 d^2-e^2\right )^3 (d+e x)}-\frac {\left (e^2 f-d e g+d^2 h\right ) \left (a+b \sin ^{-1}(c x)\right )}{4 e^3 (d+e x)^4}-\frac {(e g-2 d h) \left (a+b \sin ^{-1}(c x)\right )}{3 e^3 (d+e x)^3}-\frac {h \left (a+b \sin ^{-1}(c x)\right )}{2 e^3 (d+e x)^2}+\frac {\left (b c^3 \left (4 e^4 (e g-5 d h)-c^2 d e^2 \left (9 e^2 f-13 d e g-7 d^2 h\right )-2 c^4 d^3 \left (3 e^2 f+d e g+d^2 h\right )\right )\right ) \text {Subst}\left (\int \frac {1}{-c^2 d^2+e^2-x^2} \, dx,x,\frac {e+c^2 d x}{\sqrt {1-c^2 x^2}}\right )}{24 e^3 \left (c^2 d^2-e^2\right )^3}\\ &=\frac {b c \left (e^2 f-d e g+d^2 h\right ) \sqrt {1-c^2 x^2}}{12 e^2 \left (c^2 d^2-e^2\right ) (d+e x)^3}-\frac {b c \left (4 e^2 (e g-2 d h)-c^2 d \left (5 e^2 f-d e g-3 d^2 h\right )\right ) \sqrt {1-c^2 x^2}}{24 e^2 \left (c^2 d^2-e^2\right )^2 (d+e x)^2}+\frac {b c \left (12 e^4 h+c^4 d^2 \left (11 e^2 f+d e g-d^2 h\right )+4 c^2 e^2 \left (e^2 f-4 d e g+d^2 h\right )\right ) \sqrt {1-c^2 x^2}}{24 e^2 \left (c^2 d^2-e^2\right )^3 (d+e x)}-\frac {\left (e^2 f-d e g+d^2 h\right ) \left (a+b \sin ^{-1}(c x)\right )}{4 e^3 (d+e x)^4}-\frac {(e g-2 d h) \left (a+b \sin ^{-1}(c x)\right )}{3 e^3 (d+e x)^3}-\frac {h \left (a+b \sin ^{-1}(c x)\right )}{2 e^3 (d+e x)^2}-\frac {b c^3 \left (4 e^4 (e g-5 d h)-c^2 d e^2 \left (9 e^2 f-13 d e g-7 d^2 h\right )-2 c^4 d^3 \left (3 e^2 f+d e g+d^2 h\right )\right ) \tan ^{-1}\left (\frac {e+c^2 d x}{\sqrt {c^2 d^2-e^2} \sqrt {1-c^2 x^2}}\right )}{24 e^3 \left (c^2 d^2-e^2\right )^{7/2}}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 1.80, size = 575, normalized size = 1.22 \begin {gather*} -\frac {\frac {6 a \left (e^2 f-d e g+d^2 h\right )}{(d+e x)^4}+\frac {8 a (e g-2 d h)}{(d+e x)^3}+\frac {12 a h}{(d+e x)^2}+\frac {b c e \sqrt {1-c^2 x^2} \left (c^4 d^2 \left (-2 d^4 h+11 e^4 f x^2+d e^3 x (27 f+g x)-d^3 e (2 g+5 h x)+d^2 e^2 (18 f+x (g-h x))\right )+2 e^4 \left (3 d^2 h+d e (g+8 h x)+e^2 (f+2 x (g+3 h x))\right )+c^2 e^2 \left (11 d^4 h+4 e^4 f x^2+d e^3 x (3 f-16 g x)+d^3 e (-15 g+19 h x)+d^2 e^2 (-5 f+x (-35 g+4 h x))\right )\right )}{\left (-c^2 d^2+e^2\right )^3 (d+e x)^3}+\frac {2 b \left (d^2 h+d e (g+4 h x)+e^2 \left (3 f+4 g x+6 h x^2\right )\right ) \text {ArcSin}(c x)}{(d+e x)^4}-\frac {b c^3 \left (-4 e^4 (e g-5 d h)+c^2 d e^2 \left (9 e^2 f-13 d e g-7 d^2 h\right )+2 c^4 d^3 \left (3 e^2 f+d e g+d^2 h\right )\right ) \log (d+e x)}{(c d-e)^3 (c d+e)^3 \sqrt {-c^2 d^2+e^2}}+\frac {b c^3 \left (-4 e^4 (e g-5 d h)+c^2 d e^2 \left (9 e^2 f-13 d e g-7 d^2 h\right )+2 c^4 d^3 \left (3 e^2 f+d e g+d^2 h\right )\right ) \log \left (e+c^2 d x+\sqrt {-c^2 d^2+e^2} \sqrt {1-c^2 x^2}\right )}{(c d-e)^3 (c d+e)^3 \sqrt {-c^2 d^2+e^2}}}{24 e^3} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [B] Leaf count of result is larger than twice the leaf count of optimal. \(2964\) vs.
\(2(444)=888\).
time = 0.11, size = 2965, normalized size = 6.31
method | result | size |
derivativedivides | \(\text {Expression too large to display}\) | \(2965\) |
default | \(\text {Expression too large to display}\) | \(2965\) |
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(-1)] Timed out
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Timed out} \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 ) \left (f + g x + h x^{2}\right )}{\left (d + e x\right )^{5}}\, 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: RuntimeError} \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 (a+b\,\mathrm {asin}\left (c\,x\right )\right )\,\left (h\,x^2+g\,x+f\right )}{{\left (d+e\,x\right )}^5} \,d x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________