Optimal. Leaf size=257 \[ \frac {b c (e f-d g) \sqrt {1-c^2 x^2}}{6 e \left (c^2 d^2-e^2\right ) (d+e x)^2}+\frac {b c \left (c^2 d f-e g\right ) \sqrt {1-c^2 x^2}}{2 \left (c^2 d^2-e^2\right )^2 (d+e x)}-\frac {(e f-d g) (a+b \text {ArcSin}(c x))}{3 e^2 (d+e x)^3}-\frac {g (a+b \text {ArcSin}(c x))}{2 e^2 (d+e x)^2}+\frac {b c^3 \left (e^2 (e f-4 d g)+c^2 d^2 (2 e f+d g)\right ) \text {ArcTan}\left (\frac {e+c^2 d x}{\sqrt {c^2 d^2-e^2} \sqrt {1-c^2 x^2}}\right )}{6 e^2 \left (c^2 d^2-e^2\right )^{5/2}} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.30, antiderivative size = 257, normalized size of antiderivative = 1.00, number of steps
used = 6, number of rules used = 7, integrand size = 21, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.333, Rules used = {45, 4837, 12,
849, 821, 739, 210} \begin {gather*} -\frac {(e f-d g) (a+b \text {ArcSin}(c x))}{3 e^2 (d+e x)^3}-\frac {g (a+b \text {ArcSin}(c x))}{2 e^2 (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 (c^2 d^2 (d g+2 e f)+e^2 (e f-4 d g)\right )}{6 e^2 \left (c^2 d^2-e^2\right )^{5/2}}+\frac {b c \sqrt {1-c^2 x^2} \left (c^2 d f-e g\right )}{2 \left (c^2 d^2-e^2\right )^2 (d+e x)}+\frac {b c \sqrt {1-c^2 x^2} (e f-d g)}{6 e \left (c^2 d^2-e^2\right ) (d+e x)^2} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 12
Rule 45
Rule 210
Rule 739
Rule 821
Rule 849
Rule 4837
Rubi steps
\begin {align*} \int \frac {(f+g x) \left (a+b \sin ^{-1}(c x)\right )}{(d+e x)^4} \, dx &=-\frac {(e f-d g) \left (a+b \sin ^{-1}(c x)\right )}{3 e^2 (d+e x)^3}-\frac {g \left (a+b \sin ^{-1}(c x)\right )}{2 e^2 (d+e x)^2}-(b c) \int \frac {-2 e f-d g-3 e g x}{6 e^2 (d+e x)^3 \sqrt {1-c^2 x^2}} \, dx\\ &=-\frac {(e f-d g) \left (a+b \sin ^{-1}(c x)\right )}{3 e^2 (d+e x)^3}-\frac {g \left (a+b \sin ^{-1}(c x)\right )}{2 e^2 (d+e x)^2}-\frac {(b c) \int \frac {-2 e f-d g-3 e g x}{(d+e x)^3 \sqrt {1-c^2 x^2}} \, dx}{6 e^2}\\ &=\frac {b c (e f-d g) \sqrt {1-c^2 x^2}}{6 e \left (c^2 d^2-e^2\right ) (d+e x)^2}-\frac {(e f-d g) \left (a+b \sin ^{-1}(c x)\right )}{3 e^2 (d+e x)^3}-\frac {g \left (a+b \sin ^{-1}(c x)\right )}{2 e^2 (d+e x)^2}-\frac {(b c) \int \frac {2 \left (3 e^2 g-c^2 d (2 e f+d g)\right )+2 c^2 e (e f-d g) x}{(d+e x)^2 \sqrt {1-c^2 x^2}} \, dx}{12 e^2 \left (c^2 d^2-e^2\right )}\\ &=\frac {b c (e f-d g) \sqrt {1-c^2 x^2}}{6 e \left (c^2 d^2-e^2\right ) (d+e x)^2}+\frac {b c \left (c^2 d f-e g\right ) \sqrt {1-c^2 x^2}}{2 \left (c^2 d^2-e^2\right )^2 (d+e x)}-\frac {(e f-d g) \left (a+b \sin ^{-1}(c x)\right )}{3 e^2 (d+e x)^3}-\frac {g \left (a+b \sin ^{-1}(c x)\right )}{2 e^2 (d+e x)^2}+\frac {\left (b c^3 \left (e^2 (e f-4 d g)+c^2 d^2 (2 e f+d g)\right )\right ) \int \frac {1}{(d+e x) \sqrt {1-c^2 x^2}} \, dx}{6 e^2 \left (c^2 d^2-e^2\right )^2}\\ &=\frac {b c (e f-d g) \sqrt {1-c^2 x^2}}{6 e \left (c^2 d^2-e^2\right ) (d+e x)^2}+\frac {b c \left (c^2 d f-e g\right ) \sqrt {1-c^2 x^2}}{2 \left (c^2 d^2-e^2\right )^2 (d+e x)}-\frac {(e f-d g) \left (a+b \sin ^{-1}(c x)\right )}{3 e^2 (d+e x)^3}-\frac {g \left (a+b \sin ^{-1}(c x)\right )}{2 e^2 (d+e x)^2}-\frac {\left (b c^3 \left (e^2 (e f-4 d g)+c^2 d^2 (2 e f+d g)\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 )}{6 e^2 \left (c^2 d^2-e^2\right )^2}\\ &=\frac {b c (e f-d g) \sqrt {1-c^2 x^2}}{6 e \left (c^2 d^2-e^2\right ) (d+e x)^2}+\frac {b c \left (c^2 d f-e g\right ) \sqrt {1-c^2 x^2}}{2 \left (c^2 d^2-e^2\right )^2 (d+e x)}-\frac {(e f-d g) \left (a+b \sin ^{-1}(c x)\right )}{3 e^2 (d+e x)^3}-\frac {g \left (a+b \sin ^{-1}(c x)\right )}{2 e^2 (d+e x)^2}+\frac {b c^3 \left (e^2 (e f-4 d g)+c^2 d^2 (2 e f+d g)\right ) \tan ^{-1}\left (\frac {e+c^2 d x}{\sqrt {c^2 d^2-e^2} \sqrt {1-c^2 x^2}}\right )}{6 e^2 \left (c^2 d^2-e^2\right )^{5/2}}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.48, size = 321, normalized size = 1.25 \begin {gather*} \frac {\frac {a (-2 e f+2 d g)}{(d+e x)^3}-\frac {3 a g}{(d+e x)^2}+\frac {b c e \sqrt {1-c^2 x^2} \left (c^2 d \left (4 d e f-d^2 g+3 e^2 f x\right )-e^2 (2 d g+e (f+3 g x))\right )}{\left (-c^2 d^2+e^2\right )^2 (d+e x)^2}-\frac {b (2 e f+d g+3 e g x) \text {ArcSin}(c x)}{(d+e x)^3}+\frac {b c^3 \left (e^2 (e f-4 d g)+c^2 d^2 (2 e f+d g)\right ) \log (d+e x)}{(-c d+e)^2 (c d+e)^2 \sqrt {-c^2 d^2+e^2}}-\frac {b c^3 \left (e^2 (e f-4 d g)+c^2 d^2 (2 e f+d g)\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)^2 (c d+e)^2 \sqrt {-c^2 d^2+e^2}}}{6 e^2} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [B] Leaf count of result is larger than twice the leaf count of optimal. \(1257\) vs.
\(2(237)=474\).
time = 0.13, size = 1258, normalized size = 4.89 Too large to display
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 [B] Leaf count of result is larger than twice the leaf count of optimal. 929 vs.
\(2 (240) = 480\).
time = 38.35, size = 1887, normalized size = 7.34 \begin {gather*} \left [-\frac {2 \, a c^{6} d^{7} g - 6 \, a c^{4} d^{5} g e^{2} + 6 \, a c^{2} d^{3} g e^{4} - 2 \, a d g e^{6} + {\left (b c^{5} d^{6} g + b c^{3} f x^{3} e^{6} - {\left (4 \, b c^{3} d g x^{3} - 3 \, b c^{3} d f x^{2}\right )} e^{5} + {\left (2 \, b c^{5} d^{2} f x^{3} - 12 \, b c^{3} d^{2} g x^{2} + 3 \, b c^{3} d^{2} f x\right )} e^{4} + {\left (b c^{5} d^{3} g x^{3} + 6 \, b c^{5} d^{3} f x^{2} - 12 \, b c^{3} d^{3} g x + b c^{3} d^{3} f\right )} e^{3} + {\left (3 \, b c^{5} d^{4} g x^{2} + 6 \, b c^{5} d^{4} f x - 4 \, b c^{3} d^{4} g\right )} e^{2} + {\left (3 \, b c^{5} d^{5} g x + 2 \, b c^{5} d^{5} f\right )} e\right )} \sqrt {-c^{2} d^{2} + e^{2}} \log \left (\frac {2 \, c^{4} d^{2} x^{2} + 2 \, c^{2} d x e - c^{2} d^{2} - 2 \, \sqrt {-c^{2} d^{2} + e^{2}} {\left (c^{2} d x + e\right )} \sqrt {-c^{2} x^{2} + 1} - {\left (c^{2} x^{2} - 2\right )} e^{2}}{x^{2} e^{2} + 2 \, d x e + d^{2}}\right ) + 2 \, {\left (b c^{6} d^{7} g - 3 \, b c^{4} d^{5} g e^{2} + 3 \, b c^{2} d^{3} g e^{4} - b d g e^{6} - {\left (3 \, b g x + 2 \, b f\right )} e^{7} + 3 \, {\left (3 \, b c^{2} d^{2} g x + 2 \, b c^{2} d^{2} f\right )} e^{5} - 3 \, {\left (3 \, b c^{4} d^{4} g x + 2 \, b c^{4} d^{4} f\right )} e^{3} + {\left (3 \, b c^{6} d^{6} g x + 2 \, b c^{6} d^{6} f\right )} e\right )} \arcsin \left (c x\right ) - 2 \, {\left (3 \, a g x + 2 \, a f\right )} e^{7} + 6 \, {\left (3 \, a c^{2} d^{2} g x + 2 \, a c^{2} d^{2} f\right )} e^{5} - 6 \, {\left (3 \, a c^{4} d^{4} g x + 2 \, a c^{4} d^{4} f\right )} e^{3} + 2 \, {\left (3 \, a c^{6} d^{6} g x + 2 \, a c^{6} d^{6} f\right )} e + 2 \, {\left (b c^{5} d^{6} g e - {\left (3 \, b c g x^{2} + b c f x\right )} e^{7} + {\left (3 \, b c^{3} d f x^{2} - 5 \, b c d g x - b c d f\right )} e^{6} + {\left (3 \, b c^{3} d^{2} g x^{2} + 8 \, b c^{3} d^{2} f x - 2 \, b c d^{2} g\right )} e^{5} - {\left (3 \, b c^{5} d^{3} f x^{2} - 4 \, b c^{3} d^{3} g x - 5 \, b c^{3} d^{3} f\right )} e^{4} - {\left (7 \, b c^{5} d^{4} f x - b c^{3} d^{4} g\right )} e^{3} + {\left (b c^{5} d^{5} g x - 4 \, b c^{5} d^{5} f\right )} e^{2}\right )} \sqrt {-c^{2} x^{2} + 1}}{12 \, {\left (3 \, c^{6} d^{8} x e^{3} + c^{6} d^{9} e^{2} - x^{3} e^{11} - 3 \, d x^{2} e^{10} + 3 \, {\left (c^{2} d^{2} x^{3} - d^{2} x\right )} e^{9} + {\left (9 \, c^{2} d^{3} x^{2} - d^{3}\right )} e^{8} - 3 \, {\left (c^{4} d^{4} x^{3} - 3 \, c^{2} d^{4} x\right )} e^{7} - 3 \, {\left (3 \, c^{4} d^{5} x^{2} - c^{2} d^{5}\right )} e^{6} + {\left (c^{6} d^{6} x^{3} - 9 \, c^{4} d^{6} x\right )} e^{5} + 3 \, {\left (c^{6} d^{7} x^{2} - c^{4} d^{7}\right )} e^{4}\right )}}, -\frac {a c^{6} d^{7} g - 3 \, a c^{4} d^{5} g e^{2} + 3 \, a c^{2} d^{3} g e^{4} - a d g e^{6} - {\left (b c^{5} d^{6} g + b c^{3} f x^{3} e^{6} - {\left (4 \, b c^{3} d g x^{3} - 3 \, b c^{3} d f x^{2}\right )} e^{5} + {\left (2 \, b c^{5} d^{2} f x^{3} - 12 \, b c^{3} d^{2} g x^{2} + 3 \, b c^{3} d^{2} f x\right )} e^{4} + {\left (b c^{5} d^{3} g x^{3} + 6 \, b c^{5} d^{3} f x^{2} - 12 \, b c^{3} d^{3} g x + b c^{3} d^{3} f\right )} e^{3} + {\left (3 \, b c^{5} d^{4} g x^{2} + 6 \, b c^{5} d^{4} f x - 4 \, b c^{3} d^{4} g\right )} e^{2} + {\left (3 \, b c^{5} d^{5} g x + 2 \, b c^{5} d^{5} f\right )} e\right )} \sqrt {c^{2} d^{2} - e^{2}} \arctan \left (-\frac {\sqrt {c^{2} d^{2} - e^{2}} {\left (c^{2} d x + e\right )} \sqrt {-c^{2} x^{2} + 1}}{c^{4} d^{2} x^{2} - c^{2} d^{2} - {\left (c^{2} x^{2} - 1\right )} e^{2}}\right ) + {\left (b c^{6} d^{7} g - 3 \, b c^{4} d^{5} g e^{2} + 3 \, b c^{2} d^{3} g e^{4} - b d g e^{6} - {\left (3 \, b g x + 2 \, b f\right )} e^{7} + 3 \, {\left (3 \, b c^{2} d^{2} g x + 2 \, b c^{2} d^{2} f\right )} e^{5} - 3 \, {\left (3 \, b c^{4} d^{4} g x + 2 \, b c^{4} d^{4} f\right )} e^{3} + {\left (3 \, b c^{6} d^{6} g x + 2 \, b c^{6} d^{6} f\right )} e\right )} \arcsin \left (c x\right ) - {\left (3 \, a g x + 2 \, a f\right )} e^{7} + 3 \, {\left (3 \, a c^{2} d^{2} g x + 2 \, a c^{2} d^{2} f\right )} e^{5} - 3 \, {\left (3 \, a c^{4} d^{4} g x + 2 \, a c^{4} d^{4} f\right )} e^{3} + {\left (3 \, a c^{6} d^{6} g x + 2 \, a c^{6} d^{6} f\right )} e + {\left (b c^{5} d^{6} g e - {\left (3 \, b c g x^{2} + b c f x\right )} e^{7} + {\left (3 \, b c^{3} d f x^{2} - 5 \, b c d g x - b c d f\right )} e^{6} + {\left (3 \, b c^{3} d^{2} g x^{2} + 8 \, b c^{3} d^{2} f x - 2 \, b c d^{2} g\right )} e^{5} - {\left (3 \, b c^{5} d^{3} f x^{2} - 4 \, b c^{3} d^{3} g x - 5 \, b c^{3} d^{3} f\right )} e^{4} - {\left (7 \, b c^{5} d^{4} f x - b c^{3} d^{4} g\right )} e^{3} + {\left (b c^{5} d^{5} g x - 4 \, b c^{5} d^{5} f\right )} e^{2}\right )} \sqrt {-c^{2} x^{2} + 1}}{6 \, {\left (3 \, c^{6} d^{8} x e^{3} + c^{6} d^{9} e^{2} - x^{3} e^{11} - 3 \, d x^{2} e^{10} + 3 \, {\left (c^{2} d^{2} x^{3} - d^{2} x\right )} e^{9} + {\left (9 \, c^{2} d^{3} x^{2} - d^{3}\right )} e^{8} - 3 \, {\left (c^{4} d^{4} x^{3} - 3 \, c^{2} d^{4} x\right )} e^{7} - 3 \, {\left (3 \, c^{4} d^{5} x^{2} - c^{2} d^{5}\right )} e^{6} + {\left (c^{6} d^{6} x^{3} - 9 \, c^{4} d^{6} x\right )} e^{5} + 3 \, {\left (c^{6} d^{7} x^{2} - c^{4} d^{7}\right )} e^{4}\right )}}\right ] \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\right )}{\left (d + e x\right )^{4}}\, 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 \frac {\left (f+g\,x\right )\,\left (a+b\,\mathrm {asin}\left (c\,x\right )\right )}{{\left (d+e\,x\right )}^4} \,d x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________