Integrand size = 31, antiderivative size = 1278 \[ \int \frac {\left (f+g x+h x^2+i x^3\right ) (a+b \arcsin (c x))}{(d+e x)^4} \, dx=\frac {b c \left (2 e^2 f-3 d e g+6 d^2 h\right ) \sqrt {1-c^2 x^2}}{12 e^2 \left (c^2 d^2-e^2\right ) (d+e x)^2}-\frac {11 b c d^3 i \sqrt {1-c^2 x^2}}{12 e^3 \left (c^2 d^2-e^2\right ) (d+e x)^2}+\frac {b c d^2 (2 e h+27 d i) \sqrt {1-c^2 x^2}}{12 e^3 \left (c^2 d^2-e^2\right ) (d+e x)^2}+\frac {b c d \left (e^2 g-6 d e h-18 d^2 i\right ) \sqrt {1-c^2 x^2}}{12 e^3 \left (c^2 d^2-e^2\right ) (d+e x)^2}-\frac {b c \left (2 e^2 (e g-4 d h)-c^2 d \left (2 e^2 f-d e g-2 d^2 h\right )\right ) \sqrt {1-c^2 x^2}}{4 e^2 \left (c^2 d^2-e^2\right )^2 (d+e x)}-\frac {11 b c^3 d^4 i \sqrt {1-c^2 x^2}}{4 e^3 \left (c^2 d^2-e^2\right )^2 (d+e x)}+\frac {b c d^2 \left (18 e^2 i+c^2 d (2 e h+9 d i)\right ) \sqrt {1-c^2 x^2}}{4 e^3 \left (c^2 d^2-e^2\right )^2 (d+e x)}-\frac {b c d \left (4 e^2 (e h+6 d i)-c^2 d \left (e^2 g-2 d e h+6 d^2 i\right )\right ) \sqrt {1-c^2 x^2}}{4 e^3 \left (c^2 d^2-e^2\right )^2 (d+e x)}-\frac {i b i \arcsin (c x)^2}{2 e^4}-\frac {\left (e^3 f-d e^2 g+d^2 e h-d^3 i\right ) (a+b \arcsin (c x))}{3 e^4 (d+e x)^3}-\frac {\left (e^2 g-2 d e h+3 d^2 i\right ) (a+b \arcsin (c x))}{2 e^4 (d+e x)^2}-\frac {(e h-3 d i) (a+b \arcsin (c x))}{e^4 (d+e x)}+\frac {b c \left (4 c^4 d^2 f+12 e^2 h+c^2 \left (2 e^2 f-9 d e g+6 d^2 h\right )\right ) \arctan \left (\frac {e+c^2 d x}{\sqrt {c^2 d^2-e^2} \sqrt {1-c^2 x^2}}\right )}{12 e \left (c^2 d^2-e^2\right )^{5/2}}-\frac {11 b c^3 d^3 \left (2 c^2 d^2+e^2\right ) i \arctan \left (\frac {e+c^2 d x}{\sqrt {c^2 d^2-e^2} \sqrt {1-c^2 x^2}}\right )}{12 e^4 \left (c^2 d^2-e^2\right )^{5/2}}+\frac {b c^3 d^2 \left (4 c^2 d^2 h+e (2 e h+81 d i)\right ) \arctan \left (\frac {e+c^2 d x}{\sqrt {c^2 d^2-e^2} \sqrt {1-c^2 x^2}}\right )}{12 e^3 \left (c^2 d^2-e^2\right )^{5/2}}+\frac {b c d \left (2 c^4 d^2 g-36 e^2 i+c^2 \left (e^2 g-18 d e h-18 d^2 i\right )\right ) \arctan \left (\frac {e+c^2 d x}{\sqrt {c^2 d^2-e^2} \sqrt {1-c^2 x^2}}\right )}{12 e^2 \left (c^2 d^2-e^2\right )^{5/2}}+\frac {b i \arcsin (c x) \log \left (1-\frac {i e e^{i \arcsin (c x)}}{c d-\sqrt {c^2 d^2-e^2}}\right )}{e^4}+\frac {b i \arcsin (c x) \log \left (1-\frac {i e e^{i \arcsin (c x)}}{c d+\sqrt {c^2 d^2-e^2}}\right )}{e^4}-\frac {b i \arcsin (c x) \log (d+e x)}{e^4}+\frac {i (a+b \arcsin (c x)) \log (d+e x)}{e^4}-\frac {i b i \operatorname {PolyLog}\left (2,\frac {i e e^{i \arcsin (c x)}}{c d-\sqrt {c^2 d^2-e^2}}\right )}{e^4}-\frac {i b i \operatorname {PolyLog}\left (2,\frac {i e e^{i \arcsin (c x)}}{c d+\sqrt {c^2 d^2-e^2}}\right )}{e^4} \]
[Out]
Time = 1.89 (sec) , antiderivative size = 1278, normalized size of antiderivative = 1.00, number of steps used = 29, number of rules used = 17, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.548, Rules used = {1864, 4837, 12, 6874, 759, 821, 739, 210, 849, 1665, 222, 2451, 4825, 4615, 2221, 2317, 2438} \[ \int \frac {\left (f+g x+h x^2+i x^3\right ) (a+b \arcsin (c x))}{(d+e x)^4} \, dx=-\frac {11 b c^3 i \sqrt {1-c^2 x^2} d^4}{4 e^3 \left (c^2 d^2-e^2\right )^2 (d+e x)}-\frac {11 b c^3 \left (2 c^2 d^2+e^2\right ) i \arctan \left (\frac {d x c^2+e}{\sqrt {c^2 d^2-e^2} \sqrt {1-c^2 x^2}}\right ) d^3}{12 e^4 \left (c^2 d^2-e^2\right )^{5/2}}-\frac {11 b c i \sqrt {1-c^2 x^2} d^3}{12 e^3 \left (c^2 d^2-e^2\right ) (d+e x)^2}+\frac {b c^3 \left (4 c^2 h d^2+e (2 e h+81 d i)\right ) \arctan \left (\frac {d x c^2+e}{\sqrt {c^2 d^2-e^2} \sqrt {1-c^2 x^2}}\right ) d^2}{12 e^3 \left (c^2 d^2-e^2\right )^{5/2}}+\frac {b c \left (d (2 e h+9 d i) c^2+18 e^2 i\right ) \sqrt {1-c^2 x^2} d^2}{4 e^3 \left (c^2 d^2-e^2\right )^2 (d+e x)}+\frac {b c (2 e h+27 d i) \sqrt {1-c^2 x^2} d^2}{12 e^3 \left (c^2 d^2-e^2\right ) (d+e x)^2}+\frac {b c \left (2 d^2 g c^4+\left (-18 i d^2-18 e h d+e^2 g\right ) c^2-36 e^2 i\right ) \arctan \left (\frac {d x c^2+e}{\sqrt {c^2 d^2-e^2} \sqrt {1-c^2 x^2}}\right ) d}{12 e^2 \left (c^2 d^2-e^2\right )^{5/2}}-\frac {b c \left (4 e^2 (e h+6 d i)-c^2 d \left (6 i d^2-2 e h d+e^2 g\right )\right ) \sqrt {1-c^2 x^2} d}{4 e^3 \left (c^2 d^2-e^2\right )^2 (d+e x)}+\frac {b c \left (-18 i d^2-6 e h d+e^2 g\right ) \sqrt {1-c^2 x^2} d}{12 e^3 \left (c^2 d^2-e^2\right ) (d+e x)^2}-\frac {i b i \arcsin (c x)^2}{2 e^4}-\frac {(e h-3 d i) (a+b \arcsin (c x))}{e^4 (d+e x)}-\frac {\left (3 i d^2-2 e h d+e^2 g\right ) (a+b \arcsin (c x))}{2 e^4 (d+e x)^2}-\frac {\left (-i d^3+e h d^2-e^2 g d+e^3 f\right ) (a+b \arcsin (c x))}{3 e^4 (d+e x)^3}+\frac {b c \left (4 d^2 f c^4+\left (6 h d^2-9 e g d+2 e^2 f\right ) c^2+12 e^2 h\right ) \arctan \left (\frac {d x c^2+e}{\sqrt {c^2 d^2-e^2} \sqrt {1-c^2 x^2}}\right )}{12 e \left (c^2 d^2-e^2\right )^{5/2}}+\frac {b i \arcsin (c x) \log \left (1-\frac {i e e^{i \arcsin (c x)}}{c d-\sqrt {c^2 d^2-e^2}}\right )}{e^4}+\frac {b i \arcsin (c x) \log \left (1-\frac {i e e^{i \arcsin (c x)}}{c d+\sqrt {c^2 d^2-e^2}}\right )}{e^4}-\frac {b i \arcsin (c x) \log (d+e x)}{e^4}+\frac {i (a+b \arcsin (c x)) \log (d+e x)}{e^4}-\frac {i b i \operatorname {PolyLog}\left (2,\frac {i e e^{i \arcsin (c x)}}{c d-\sqrt {c^2 d^2-e^2}}\right )}{e^4}-\frac {i b i \operatorname {PolyLog}\left (2,\frac {i e e^{i \arcsin (c x)}}{c d+\sqrt {c^2 d^2-e^2}}\right )}{e^4}-\frac {b c \left (2 e^2 (e g-4 d h)-c^2 d \left (-2 h d^2-e g d+2 e^2 f\right )\right ) \sqrt {1-c^2 x^2}}{4 e^2 \left (c^2 d^2-e^2\right )^2 (d+e x)}+\frac {b c \left (6 h d^2-3 e g d+2 e^2 f\right ) \sqrt {1-c^2 x^2}}{12 e^2 \left (c^2 d^2-e^2\right ) (d+e x)^2} \]
[In]
[Out]
Rule 12
Rule 210
Rule 222
Rule 739
Rule 759
Rule 821
Rule 849
Rule 1665
Rule 1864
Rule 2221
Rule 2317
Rule 2438
Rule 2451
Rule 4615
Rule 4825
Rule 4837
Rule 6874
Rubi steps \begin{align*} \text {integral}& = -\frac {\left (e^3 f-d e^2 g+d^2 e h-d^3 i\right ) (a+b \arcsin (c x))}{3 e^4 (d+e x)^3}-\frac {\left (e^2 g-2 d e h+3 d^2 i\right ) (a+b \arcsin (c x))}{2 e^4 (d+e x)^2}-\frac {(e h-3 d i) (a+b \arcsin (c x))}{e^4 (d+e x)}+\frac {i (a+b \arcsin (c x)) \log (d+e x)}{e^4}-(b c) \int \frac {11 d^3 i+d^2 e (-2 h+27 i x)-e^3 (2 f+3 x (g+2 h x))-d e^2 (g+6 x (h-3 i x))+6 i (d+e x)^3 \log (d+e x)}{6 e^4 (d+e x)^3 \sqrt {1-c^2 x^2}} \, dx \\ & = -\frac {\left (e^3 f-d e^2 g+d^2 e h-d^3 i\right ) (a+b \arcsin (c x))}{3 e^4 (d+e x)^3}-\frac {\left (e^2 g-2 d e h+3 d^2 i\right ) (a+b \arcsin (c x))}{2 e^4 (d+e x)^2}-\frac {(e h-3 d i) (a+b \arcsin (c x))}{e^4 (d+e x)}+\frac {i (a+b \arcsin (c x)) \log (d+e x)}{e^4}-\frac {(b c) \int \frac {11 d^3 i+d^2 e (-2 h+27 i x)-e^3 (2 f+3 x (g+2 h x))-d e^2 (g+6 x (h-3 i x))+6 i (d+e x)^3 \log (d+e x)}{(d+e x)^3 \sqrt {1-c^2 x^2}} \, dx}{6 e^4} \\ & = -\frac {\left (e^3 f-d e^2 g+d^2 e h-d^3 i\right ) (a+b \arcsin (c x))}{3 e^4 (d+e x)^3}-\frac {\left (e^2 g-2 d e h+3 d^2 i\right ) (a+b \arcsin (c x))}{2 e^4 (d+e x)^2}-\frac {(e h-3 d i) (a+b \arcsin (c x))}{e^4 (d+e x)}+\frac {i (a+b \arcsin (c x)) \log (d+e x)}{e^4}-\frac {(b c) \int \left (\frac {11 d^3 i}{(d+e x)^3 \sqrt {1-c^2 x^2}}+\frac {d^2 e (-2 h+27 i x)}{(d+e x)^3 \sqrt {1-c^2 x^2}}-\frac {e^3 \left (2 f+3 g x+6 h x^2\right )}{(d+e x)^3 \sqrt {1-c^2 x^2}}+\frac {d e^2 \left (-g-6 h x+18 i x^2\right )}{(d+e x)^3 \sqrt {1-c^2 x^2}}+\frac {6 i \log (d+e x)}{\sqrt {1-c^2 x^2}}\right ) \, dx}{6 e^4} \\ & = -\frac {\left (e^3 f-d e^2 g+d^2 e h-d^3 i\right ) (a+b \arcsin (c x))}{3 e^4 (d+e x)^3}-\frac {\left (e^2 g-2 d e h+3 d^2 i\right ) (a+b \arcsin (c x))}{2 e^4 (d+e x)^2}-\frac {(e h-3 d i) (a+b \arcsin (c x))}{e^4 (d+e x)}+\frac {i (a+b \arcsin (c x)) \log (d+e x)}{e^4}-\frac {\left (b c d^2\right ) \int \frac {-2 h+27 i x}{(d+e x)^3 \sqrt {1-c^2 x^2}} \, dx}{6 e^3}-\frac {(b c d) \int \frac {-g-6 h x+18 i x^2}{(d+e x)^3 \sqrt {1-c^2 x^2}} \, dx}{6 e^2}+\frac {(b c) \int \frac {2 f+3 g x+6 h x^2}{(d+e x)^3 \sqrt {1-c^2 x^2}} \, dx}{6 e}-\frac {(b c i) \int \frac {\log (d+e x)}{\sqrt {1-c^2 x^2}} \, dx}{e^4}-\frac {\left (11 b c d^3 i\right ) \int \frac {1}{(d+e x)^3 \sqrt {1-c^2 x^2}} \, dx}{6 e^4} \\ & = \frac {b c \left (2 e^2 f-3 d e g+6 d^2 h\right ) \sqrt {1-c^2 x^2}}{12 e^2 \left (c^2 d^2-e^2\right ) (d+e x)^2}-\frac {11 b c d^3 i \sqrt {1-c^2 x^2}}{12 e^3 \left (c^2 d^2-e^2\right ) (d+e x)^2}+\frac {b c d^2 (2 e h+27 d i) \sqrt {1-c^2 x^2}}{12 e^3 \left (c^2 d^2-e^2\right ) (d+e x)^2}+\frac {b c d \left (e^2 g-6 d e h-18 d^2 i\right ) \sqrt {1-c^2 x^2}}{12 e^3 \left (c^2 d^2-e^2\right ) (d+e x)^2}-\frac {\left (e^3 f-d e^2 g+d^2 e h-d^3 i\right ) (a+b \arcsin (c x))}{3 e^4 (d+e x)^3}-\frac {\left (e^2 g-2 d e h+3 d^2 i\right ) (a+b \arcsin (c x))}{2 e^4 (d+e x)^2}-\frac {(e h-3 d i) (a+b \arcsin (c x))}{e^4 (d+e x)}-\frac {b i \arcsin (c x) \log (d+e x)}{e^4}+\frac {i (a+b \arcsin (c x)) \log (d+e x)}{e^4}-\frac {\left (b c d^2\right ) \int \frac {-2 \left (2 c^2 d h+27 e i\right )+c^2 (2 e h+27 d i) x}{(d+e x)^2 \sqrt {1-c^2 x^2}} \, dx}{12 e^3 \left (c^2 d^2-e^2\right )}-\frac {(b c d) \int \frac {-2 \left (c^2 d g-6 e h-18 d i\right )-\left (36 e i-c^2 \left (e g-6 d h+\frac {18 d^2 i}{e}\right )\right ) 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) \int \frac {2 \left (2 c^2 d f-3 e g+6 d h\right )-\left (12 e h+c^2 \left (2 e f-3 d g-\frac {6 d^2 h}{e}\right )\right ) x}{(d+e x)^2 \sqrt {1-c^2 x^2}} \, dx}{12 e \left (c^2 d^2-e^2\right )}+\frac {(b c i) \int \frac {\arcsin (c x)}{c d+c e x} \, dx}{e^3}+\frac {\left (11 b c^3 d^3 i\right ) \int \frac {-2 d+e x}{(d+e x)^2 \sqrt {1-c^2 x^2}} \, dx}{12 e^4 \left (c^2 d^2-e^2\right )} \\ & = \frac {b c \left (2 e^2 f-3 d e g+6 d^2 h\right ) \sqrt {1-c^2 x^2}}{12 e^2 \left (c^2 d^2-e^2\right ) (d+e x)^2}-\frac {11 b c d^3 i \sqrt {1-c^2 x^2}}{12 e^3 \left (c^2 d^2-e^2\right ) (d+e x)^2}+\frac {b c d^2 (2 e h+27 d i) \sqrt {1-c^2 x^2}}{12 e^3 \left (c^2 d^2-e^2\right ) (d+e x)^2}+\frac {b c d \left (e^2 g-6 d e h-18 d^2 i\right ) \sqrt {1-c^2 x^2}}{12 e^3 \left (c^2 d^2-e^2\right ) (d+e x)^2}-\frac {b c \left (2 e^2 (e g-4 d h)-c^2 d \left (2 e^2 f-d e g-2 d^2 h\right )\right ) \sqrt {1-c^2 x^2}}{4 e^2 \left (c^2 d^2-e^2\right )^2 (d+e x)}-\frac {11 b c^3 d^4 i \sqrt {1-c^2 x^2}}{4 e^3 \left (c^2 d^2-e^2\right )^2 (d+e x)}+\frac {b c d^2 \left (18 e^2 i+c^2 d (2 e h+9 d i)\right ) \sqrt {1-c^2 x^2}}{4 e^3 \left (c^2 d^2-e^2\right )^2 (d+e x)}-\frac {b c d \left (4 e^2 (e h+6 d i)-c^2 d \left (e^2 g-2 d e h+6 d^2 i\right )\right ) \sqrt {1-c^2 x^2}}{4 e^3 \left (c^2 d^2-e^2\right )^2 (d+e x)}-\frac {\left (e^3 f-d e^2 g+d^2 e h-d^3 i\right ) (a+b \arcsin (c x))}{3 e^4 (d+e x)^3}-\frac {\left (e^2 g-2 d e h+3 d^2 i\right ) (a+b \arcsin (c x))}{2 e^4 (d+e x)^2}-\frac {(e h-3 d i) (a+b \arcsin (c x))}{e^4 (d+e x)}-\frac {b i \arcsin (c x) \log (d+e x)}{e^4}+\frac {i (a+b \arcsin (c x)) \log (d+e x)}{e^4}+\frac {\left (b c \left (4 c^4 d^2 f+12 e^2 h+c^2 \left (2 e^2 f-9 d e g+6 d^2 h\right )\right )\right ) \int \frac {1}{(d+e x) \sqrt {1-c^2 x^2}} \, dx}{12 e \left (c^2 d^2-e^2\right )^2}+\frac {(b c i) \text {Subst}\left (\int \frac {x \cos (x)}{c^2 d+c e \sin (x)} \, dx,x,\arcsin (c x)\right )}{e^3}-\frac {\left (11 b c^3 d^3 \left (2 c^2 d^2+e^2\right ) i\right ) \int \frac {1}{(d+e x) \sqrt {1-c^2 x^2}} \, dx}{12 e^4 \left (c^2 d^2-e^2\right )^2}+\frac {\left (b c^3 d^2 \left (4 c^2 d^2 h+e (2 e h+81 d i)\right )\right ) \int \frac {1}{(d+e x) \sqrt {1-c^2 x^2}} \, dx}{12 e^3 \left (c^2 d^2-e^2\right )^2}+\frac {\left (b c d \left (2 c^4 d^2 g-36 e^2 i+c^2 \left (e^2 g-18 d e h-18 d^2 i\right )\right )\right ) \int \frac {1}{(d+e x) \sqrt {1-c^2 x^2}} \, dx}{12 e^2 \left (c^2 d^2-e^2\right )^2} \\ & = \frac {b c \left (2 e^2 f-3 d e g+6 d^2 h\right ) \sqrt {1-c^2 x^2}}{12 e^2 \left (c^2 d^2-e^2\right ) (d+e x)^2}-\frac {11 b c d^3 i \sqrt {1-c^2 x^2}}{12 e^3 \left (c^2 d^2-e^2\right ) (d+e x)^2}+\frac {b c d^2 (2 e h+27 d i) \sqrt {1-c^2 x^2}}{12 e^3 \left (c^2 d^2-e^2\right ) (d+e x)^2}+\frac {b c d \left (e^2 g-6 d e h-18 d^2 i\right ) \sqrt {1-c^2 x^2}}{12 e^3 \left (c^2 d^2-e^2\right ) (d+e x)^2}-\frac {b c \left (2 e^2 (e g-4 d h)-c^2 d \left (2 e^2 f-d e g-2 d^2 h\right )\right ) \sqrt {1-c^2 x^2}}{4 e^2 \left (c^2 d^2-e^2\right )^2 (d+e x)}-\frac {11 b c^3 d^4 i \sqrt {1-c^2 x^2}}{4 e^3 \left (c^2 d^2-e^2\right )^2 (d+e x)}+\frac {b c d^2 \left (18 e^2 i+c^2 d (2 e h+9 d i)\right ) \sqrt {1-c^2 x^2}}{4 e^3 \left (c^2 d^2-e^2\right )^2 (d+e x)}-\frac {b c d \left (4 e^2 (e h+6 d i)-c^2 d \left (e^2 g-2 d e h+6 d^2 i\right )\right ) \sqrt {1-c^2 x^2}}{4 e^3 \left (c^2 d^2-e^2\right )^2 (d+e x)}-\frac {i b i \arcsin (c x)^2}{2 e^4}-\frac {\left (e^3 f-d e^2 g+d^2 e h-d^3 i\right ) (a+b \arcsin (c x))}{3 e^4 (d+e x)^3}-\frac {\left (e^2 g-2 d e h+3 d^2 i\right ) (a+b \arcsin (c x))}{2 e^4 (d+e x)^2}-\frac {(e h-3 d i) (a+b \arcsin (c x))}{e^4 (d+e x)}-\frac {b i \arcsin (c x) \log (d+e x)}{e^4}+\frac {i (a+b \arcsin (c x)) \log (d+e x)}{e^4}-\frac {\left (b c \left (4 c^4 d^2 f+12 e^2 h+c^2 \left (2 e^2 f-9 d e g+6 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 )}{12 e \left (c^2 d^2-e^2\right )^2}+\frac {(b c i) \text {Subst}\left (\int \frac {e^{i x} x}{c^2 d-c \sqrt {c^2 d^2-e^2}-i c e e^{i x}} \, dx,x,\arcsin (c x)\right )}{e^3}+\frac {(b c i) \text {Subst}\left (\int \frac {e^{i x} x}{c^2 d+c \sqrt {c^2 d^2-e^2}-i c e e^{i x}} \, dx,x,\arcsin (c x)\right )}{e^3}+\frac {\left (11 b c^3 d^3 \left (2 c^2 d^2+e^2\right ) i\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 )}{12 e^4 \left (c^2 d^2-e^2\right )^2}-\frac {\left (b c^3 d^2 \left (4 c^2 d^2 h+e (2 e h+81 d i)\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 )}{12 e^3 \left (c^2 d^2-e^2\right )^2}-\frac {\left (b c d \left (2 c^4 d^2 g-36 e^2 i+c^2 \left (e^2 g-18 d e h-18 d^2 i\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 )}{12 e^2 \left (c^2 d^2-e^2\right )^2} \\ & = \frac {b c \left (2 e^2 f-3 d e g+6 d^2 h\right ) \sqrt {1-c^2 x^2}}{12 e^2 \left (c^2 d^2-e^2\right ) (d+e x)^2}-\frac {11 b c d^3 i \sqrt {1-c^2 x^2}}{12 e^3 \left (c^2 d^2-e^2\right ) (d+e x)^2}+\frac {b c d^2 (2 e h+27 d i) \sqrt {1-c^2 x^2}}{12 e^3 \left (c^2 d^2-e^2\right ) (d+e x)^2}+\frac {b c d \left (e^2 g-6 d e h-18 d^2 i\right ) \sqrt {1-c^2 x^2}}{12 e^3 \left (c^2 d^2-e^2\right ) (d+e x)^2}-\frac {b c \left (2 e^2 (e g-4 d h)-c^2 d \left (2 e^2 f-d e g-2 d^2 h\right )\right ) \sqrt {1-c^2 x^2}}{4 e^2 \left (c^2 d^2-e^2\right )^2 (d+e x)}-\frac {11 b c^3 d^4 i \sqrt {1-c^2 x^2}}{4 e^3 \left (c^2 d^2-e^2\right )^2 (d+e x)}+\frac {b c d^2 \left (18 e^2 i+c^2 d (2 e h+9 d i)\right ) \sqrt {1-c^2 x^2}}{4 e^3 \left (c^2 d^2-e^2\right )^2 (d+e x)}-\frac {b c d \left (4 e^2 (e h+6 d i)-c^2 d \left (e^2 g-2 d e h+6 d^2 i\right )\right ) \sqrt {1-c^2 x^2}}{4 e^3 \left (c^2 d^2-e^2\right )^2 (d+e x)}-\frac {i b i \arcsin (c x)^2}{2 e^4}-\frac {\left (e^3 f-d e^2 g+d^2 e h-d^3 i\right ) (a+b \arcsin (c x))}{3 e^4 (d+e x)^3}-\frac {\left (e^2 g-2 d e h+3 d^2 i\right ) (a+b \arcsin (c x))}{2 e^4 (d+e x)^2}-\frac {(e h-3 d i) (a+b \arcsin (c x))}{e^4 (d+e x)}+\frac {b c \left (4 c^4 d^2 f+12 e^2 h+c^2 \left (2 e^2 f-9 d e g+6 d^2 h\right )\right ) \arctan \left (\frac {e+c^2 d x}{\sqrt {c^2 d^2-e^2} \sqrt {1-c^2 x^2}}\right )}{12 e \left (c^2 d^2-e^2\right )^{5/2}}-\frac {11 b c^3 d^3 \left (2 c^2 d^2+e^2\right ) i \arctan \left (\frac {e+c^2 d x}{\sqrt {c^2 d^2-e^2} \sqrt {1-c^2 x^2}}\right )}{12 e^4 \left (c^2 d^2-e^2\right )^{5/2}}+\frac {b c^3 d^2 \left (4 c^2 d^2 h+e (2 e h+81 d i)\right ) \arctan \left (\frac {e+c^2 d x}{\sqrt {c^2 d^2-e^2} \sqrt {1-c^2 x^2}}\right )}{12 e^3 \left (c^2 d^2-e^2\right )^{5/2}}+\frac {b c d \left (2 c^4 d^2 g-36 e^2 i+c^2 \left (e^2 g-18 d e h-18 d^2 i\right )\right ) \arctan \left (\frac {e+c^2 d x}{\sqrt {c^2 d^2-e^2} \sqrt {1-c^2 x^2}}\right )}{12 e^2 \left (c^2 d^2-e^2\right )^{5/2}}+\frac {b i \arcsin (c x) \log \left (1-\frac {i e e^{i \arcsin (c x)}}{c d-\sqrt {c^2 d^2-e^2}}\right )}{e^4}+\frac {b i \arcsin (c x) \log \left (1-\frac {i e e^{i \arcsin (c x)}}{c d+\sqrt {c^2 d^2-e^2}}\right )}{e^4}-\frac {b i \arcsin (c x) \log (d+e x)}{e^4}+\frac {i (a+b \arcsin (c x)) \log (d+e x)}{e^4}-\frac {(b i) \text {Subst}\left (\int \log \left (1-\frac {i c e e^{i x}}{c^2 d-c \sqrt {c^2 d^2-e^2}}\right ) \, dx,x,\arcsin (c x)\right )}{e^4}-\frac {(b i) \text {Subst}\left (\int \log \left (1-\frac {i c e e^{i x}}{c^2 d+c \sqrt {c^2 d^2-e^2}}\right ) \, dx,x,\arcsin (c x)\right )}{e^4} \\ & = \frac {b c \left (2 e^2 f-3 d e g+6 d^2 h\right ) \sqrt {1-c^2 x^2}}{12 e^2 \left (c^2 d^2-e^2\right ) (d+e x)^2}-\frac {11 b c d^3 i \sqrt {1-c^2 x^2}}{12 e^3 \left (c^2 d^2-e^2\right ) (d+e x)^2}+\frac {b c d^2 (2 e h+27 d i) \sqrt {1-c^2 x^2}}{12 e^3 \left (c^2 d^2-e^2\right ) (d+e x)^2}+\frac {b c d \left (e^2 g-6 d e h-18 d^2 i\right ) \sqrt {1-c^2 x^2}}{12 e^3 \left (c^2 d^2-e^2\right ) (d+e x)^2}-\frac {b c \left (2 e^2 (e g-4 d h)-c^2 d \left (2 e^2 f-d e g-2 d^2 h\right )\right ) \sqrt {1-c^2 x^2}}{4 e^2 \left (c^2 d^2-e^2\right )^2 (d+e x)}-\frac {11 b c^3 d^4 i \sqrt {1-c^2 x^2}}{4 e^3 \left (c^2 d^2-e^2\right )^2 (d+e x)}+\frac {b c d^2 \left (18 e^2 i+c^2 d (2 e h+9 d i)\right ) \sqrt {1-c^2 x^2}}{4 e^3 \left (c^2 d^2-e^2\right )^2 (d+e x)}-\frac {b c d \left (4 e^2 (e h+6 d i)-c^2 d \left (e^2 g-2 d e h+6 d^2 i\right )\right ) \sqrt {1-c^2 x^2}}{4 e^3 \left (c^2 d^2-e^2\right )^2 (d+e x)}-\frac {i b i \arcsin (c x)^2}{2 e^4}-\frac {\left (e^3 f-d e^2 g+d^2 e h-d^3 i\right ) (a+b \arcsin (c x))}{3 e^4 (d+e x)^3}-\frac {\left (e^2 g-2 d e h+3 d^2 i\right ) (a+b \arcsin (c x))}{2 e^4 (d+e x)^2}-\frac {(e h-3 d i) (a+b \arcsin (c x))}{e^4 (d+e x)}+\frac {b c \left (4 c^4 d^2 f+12 e^2 h+c^2 \left (2 e^2 f-9 d e g+6 d^2 h\right )\right ) \arctan \left (\frac {e+c^2 d x}{\sqrt {c^2 d^2-e^2} \sqrt {1-c^2 x^2}}\right )}{12 e \left (c^2 d^2-e^2\right )^{5/2}}-\frac {11 b c^3 d^3 \left (2 c^2 d^2+e^2\right ) i \arctan \left (\frac {e+c^2 d x}{\sqrt {c^2 d^2-e^2} \sqrt {1-c^2 x^2}}\right )}{12 e^4 \left (c^2 d^2-e^2\right )^{5/2}}+\frac {b c^3 d^2 \left (4 c^2 d^2 h+e (2 e h+81 d i)\right ) \arctan \left (\frac {e+c^2 d x}{\sqrt {c^2 d^2-e^2} \sqrt {1-c^2 x^2}}\right )}{12 e^3 \left (c^2 d^2-e^2\right )^{5/2}}+\frac {b c d \left (2 c^4 d^2 g-36 e^2 i+c^2 \left (e^2 g-18 d e h-18 d^2 i\right )\right ) \arctan \left (\frac {e+c^2 d x}{\sqrt {c^2 d^2-e^2} \sqrt {1-c^2 x^2}}\right )}{12 e^2 \left (c^2 d^2-e^2\right )^{5/2}}+\frac {b i \arcsin (c x) \log \left (1-\frac {i e e^{i \arcsin (c x)}}{c d-\sqrt {c^2 d^2-e^2}}\right )}{e^4}+\frac {b i \arcsin (c x) \log \left (1-\frac {i e e^{i \arcsin (c x)}}{c d+\sqrt {c^2 d^2-e^2}}\right )}{e^4}-\frac {b i \arcsin (c x) \log (d+e x)}{e^4}+\frac {i (a+b \arcsin (c x)) \log (d+e x)}{e^4}+\frac {(i b i) \text {Subst}\left (\int \frac {\log \left (1-\frac {i c e x}{c^2 d-c \sqrt {c^2 d^2-e^2}}\right )}{x} \, dx,x,e^{i \arcsin (c x)}\right )}{e^4}+\frac {(i b i) \text {Subst}\left (\int \frac {\log \left (1-\frac {i c e x}{c^2 d+c \sqrt {c^2 d^2-e^2}}\right )}{x} \, dx,x,e^{i \arcsin (c x)}\right )}{e^4} \\ & = \frac {b c \left (2 e^2 f-3 d e g+6 d^2 h\right ) \sqrt {1-c^2 x^2}}{12 e^2 \left (c^2 d^2-e^2\right ) (d+e x)^2}-\frac {11 b c d^3 i \sqrt {1-c^2 x^2}}{12 e^3 \left (c^2 d^2-e^2\right ) (d+e x)^2}+\frac {b c d^2 (2 e h+27 d i) \sqrt {1-c^2 x^2}}{12 e^3 \left (c^2 d^2-e^2\right ) (d+e x)^2}+\frac {b c d \left (e^2 g-6 d e h-18 d^2 i\right ) \sqrt {1-c^2 x^2}}{12 e^3 \left (c^2 d^2-e^2\right ) (d+e x)^2}-\frac {b c \left (2 e^2 (e g-4 d h)-c^2 d \left (2 e^2 f-d e g-2 d^2 h\right )\right ) \sqrt {1-c^2 x^2}}{4 e^2 \left (c^2 d^2-e^2\right )^2 (d+e x)}-\frac {11 b c^3 d^4 i \sqrt {1-c^2 x^2}}{4 e^3 \left (c^2 d^2-e^2\right )^2 (d+e x)}+\frac {b c d^2 \left (18 e^2 i+c^2 d (2 e h+9 d i)\right ) \sqrt {1-c^2 x^2}}{4 e^3 \left (c^2 d^2-e^2\right )^2 (d+e x)}-\frac {b c d \left (4 e^2 (e h+6 d i)-c^2 d \left (e^2 g-2 d e h+6 d^2 i\right )\right ) \sqrt {1-c^2 x^2}}{4 e^3 \left (c^2 d^2-e^2\right )^2 (d+e x)}-\frac {i b i \arcsin (c x)^2}{2 e^4}-\frac {\left (e^3 f-d e^2 g+d^2 e h-d^3 i\right ) (a+b \arcsin (c x))}{3 e^4 (d+e x)^3}-\frac {\left (e^2 g-2 d e h+3 d^2 i\right ) (a+b \arcsin (c x))}{2 e^4 (d+e x)^2}-\frac {(e h-3 d i) (a+b \arcsin (c x))}{e^4 (d+e x)}+\frac {b c \left (4 c^4 d^2 f+12 e^2 h+c^2 \left (2 e^2 f-9 d e g+6 d^2 h\right )\right ) \arctan \left (\frac {e+c^2 d x}{\sqrt {c^2 d^2-e^2} \sqrt {1-c^2 x^2}}\right )}{12 e \left (c^2 d^2-e^2\right )^{5/2}}-\frac {11 b c^3 d^3 \left (2 c^2 d^2+e^2\right ) i \arctan \left (\frac {e+c^2 d x}{\sqrt {c^2 d^2-e^2} \sqrt {1-c^2 x^2}}\right )}{12 e^4 \left (c^2 d^2-e^2\right )^{5/2}}+\frac {b c^3 d^2 \left (4 c^2 d^2 h+e (2 e h+81 d i)\right ) \arctan \left (\frac {e+c^2 d x}{\sqrt {c^2 d^2-e^2} \sqrt {1-c^2 x^2}}\right )}{12 e^3 \left (c^2 d^2-e^2\right )^{5/2}}+\frac {b c d \left (2 c^4 d^2 g-36 e^2 i+c^2 \left (e^2 g-18 d e h-18 d^2 i\right )\right ) \arctan \left (\frac {e+c^2 d x}{\sqrt {c^2 d^2-e^2} \sqrt {1-c^2 x^2}}\right )}{12 e^2 \left (c^2 d^2-e^2\right )^{5/2}}+\frac {b i \arcsin (c x) \log \left (1-\frac {i e e^{i \arcsin (c x)}}{c d-\sqrt {c^2 d^2-e^2}}\right )}{e^4}+\frac {b i \arcsin (c x) \log \left (1-\frac {i e e^{i \arcsin (c x)}}{c d+\sqrt {c^2 d^2-e^2}}\right )}{e^4}-\frac {b i \arcsin (c x) \log (d+e x)}{e^4}+\frac {i (a+b \arcsin (c x)) \log (d+e x)}{e^4}-\frac {i b i \operatorname {PolyLog}\left (2,\frac {i e e^{i \arcsin (c x)}}{c d-\sqrt {c^2 d^2-e^2}}\right )}{e^4}-\frac {i b i \operatorname {PolyLog}\left (2,\frac {i e e^{i \arcsin (c x)}}{c d+\sqrt {c^2 d^2-e^2}}\right )}{e^4} \\ \end{align*}
Result contains higher order function than in optimal. Order 6 vs. order 4 in optimal.
Time = 8.96 (sec) , antiderivative size = 1921, normalized size of antiderivative = 1.50 \[ \int \frac {\left (f+g x+h x^2+i x^3\right ) (a+b \arcsin (c x))}{(d+e x)^4} \, dx=\frac {-a e^3 f+a d e^2 g-a d^2 e h+a d^3 i}{3 e^4 (d+e x)^3}+\frac {-a e^2 g+2 a d e h-3 a d^2 i}{2 e^4 (d+e x)^2}+\frac {-a e h+3 a d i}{e^4 (d+e x)}+b f \left (-\frac {c \sqrt {1+\frac {-d-\sqrt {\frac {1}{c^2}} e}{d+e x}} \sqrt {1+\frac {-d+\sqrt {\frac {1}{c^2}} e}{d+e x}} \operatorname {AppellF1}\left (3,\frac {1}{2},\frac {1}{2},4,-\frac {-d+\sqrt {\frac {1}{c^2}} e}{d+e x},-\frac {-d-\sqrt {\frac {1}{c^2}} e}{d+e x}\right )}{9 e^2 (d+e x)^2 \sqrt {1-c^2 x^2}}-\frac {\arcsin (c x)}{3 e (d+e x)^3}\right )+\frac {a i \log (d+e x)}{e^4}+b h \left (\frac {-\frac {\arcsin (c x)}{d+e x}+\frac {c \arctan \left (\frac {e+c^2 d x}{\sqrt {c^2 d^2-e^2} \sqrt {1-c^2 x^2}}\right )}{\sqrt {c^2 d^2-e^2}}}{e^3}-\frac {d \left (\frac {c \sqrt {1-c^2 x^2}}{\left (c^2 d^2-e^2\right ) (d+e x)}-\frac {\arcsin (c x)}{e (d+e x)^2}-\frac {i c^3 d \left (\log (4)+\log \left (\frac {e^2 \sqrt {c^2 d^2-e^2} \left (i e+i c^2 d x+\sqrt {c^2 d^2-e^2} \sqrt {1-c^2 x^2}\right )}{c^3 d (d+e x)}\right )\right )}{(c d-e) e (c d+e) \sqrt {c^2 d^2-e^2}}\right )}{e^2}+\frac {d^2 \left (\frac {\sqrt {1-c^2 x^2} \left (-c e^2+c^3 d (4 d+3 e x)\right )}{\left (-c^2 d^2+e^2\right )^2 (d+e x)^2}-\frac {2 \arcsin (c x)}{e (d+e x)^3}+\frac {c^3 \left (2 c^2 d^2+e^2\right ) \log (d+e x)}{e (-c d+e)^2 (c d+e)^2 \sqrt {-c^2 d^2+e^2}}-\frac {c^3 \left (2 c^2 d^2+e^2\right ) \log \left (e+c^2 d x+\sqrt {-c^2 d^2+e^2} \sqrt {1-c^2 x^2}\right )}{e (-c d+e)^2 (c d+e)^2 \sqrt {-c^2 d^2+e^2}}\right )}{6 e^2}\right )+b g \left (\frac {\frac {c \sqrt {1-c^2 x^2}}{\left (c^2 d^2-e^2\right ) (d+e x)}-\frac {\arcsin (c x)}{e (d+e x)^2}-\frac {i c^3 d \left (\log (4)+\log \left (\frac {e^2 \sqrt {c^2 d^2-e^2} \left (i e+i c^2 d x+\sqrt {c^2 d^2-e^2} \sqrt {1-c^2 x^2}\right )}{c^3 d (d+e x)}\right )\right )}{(c d-e) e (c d+e) \sqrt {c^2 d^2-e^2}}}{2 e}-\frac {d \left (\frac {\sqrt {1-c^2 x^2} \left (-c e^2+c^3 d (4 d+3 e x)\right )}{\left (-c^2 d^2+e^2\right )^2 (d+e x)^2}-\frac {2 \arcsin (c x)}{e (d+e x)^3}+\frac {c^3 \left (2 c^2 d^2+e^2\right ) \log (d+e x)}{e (-c d+e)^2 (c d+e)^2 \sqrt {-c^2 d^2+e^2}}-\frac {c^3 \left (2 c^2 d^2+e^2\right ) \log \left (e+c^2 d x+\sqrt {-c^2 d^2+e^2} \sqrt {1-c^2 x^2}\right )}{e (-c d+e)^2 (c d+e)^2 \sqrt {-c^2 d^2+e^2}}\right )}{6 e}\right )+b i \left (-\frac {3 d \left (-\frac {\arcsin (c x)}{d+e x}+\frac {c \arctan \left (\frac {e+c^2 d x}{\sqrt {c^2 d^2-e^2} \sqrt {1-c^2 x^2}}\right )}{\sqrt {c^2 d^2-e^2}}\right )}{e^4}+\frac {3 d^2 \left (\frac {c \sqrt {1-c^2 x^2}}{\left (c^2 d^2-e^2\right ) (d+e x)}-\frac {\arcsin (c x)}{e (d+e x)^2}-\frac {i c^3 d \left (\log (4)+\log \left (\frac {e^2 \sqrt {c^2 d^2-e^2} \left (i e+i c^2 d x+\sqrt {c^2 d^2-e^2} \sqrt {1-c^2 x^2}\right )}{c^3 d (d+e x)}\right )\right )}{(c d-e) e (c d+e) \sqrt {c^2 d^2-e^2}}\right )}{2 e^3}-\frac {d^3 \left (\frac {\sqrt {1-c^2 x^2} \left (-c e^2+c^3 d (4 d+3 e x)\right )}{\left (-c^2 d^2+e^2\right )^2 (d+e x)^2}-\frac {2 \arcsin (c x)}{e (d+e x)^3}+\frac {c^3 \left (2 c^2 d^2+e^2\right ) \log (d+e x)}{e (-c d+e)^2 (c d+e)^2 \sqrt {-c^2 d^2+e^2}}-\frac {c^3 \left (2 c^2 d^2+e^2\right ) \log \left (e+c^2 d x+\sqrt {-c^2 d^2+e^2} \sqrt {1-c^2 x^2}\right )}{e (-c d+e)^2 (c d+e)^2 \sqrt {-c^2 d^2+e^2}}\right )}{6 e^3}+\frac {-\frac {i \arcsin (c x)^2}{2 e}+\frac {\arcsin (c x) \log \left (1-\frac {i e e^{i \arcsin (c x)}}{c d-\sqrt {c^2 d^2-e^2}}\right )}{e}+\frac {\arcsin (c x) \log \left (1-\frac {i e e^{i \arcsin (c x)}}{c d+\sqrt {c^2 d^2-e^2}}\right )}{e}-\frac {i \operatorname {PolyLog}\left (2,-\frac {i e e^{i \arcsin (c x)}}{-c d+\sqrt {c^2 d^2-e^2}}\right )}{e}-\frac {i \operatorname {PolyLog}\left (2,\frac {i e e^{i \arcsin (c x)}}{c d+\sqrt {c^2 d^2-e^2}}\right )}{e}}{e^3}\right ) \]
[In]
[Out]
Both result and optimal contain complex but leaf count of result is larger than twice the leaf count of optimal. 3756 vs. \(2 (1225 ) = 2450\).
Time = 11.16 (sec) , antiderivative size = 3757, normalized size of antiderivative = 2.94
method | result | size |
parts | \(\text {Expression too large to display}\) | \(3757\) |
derivativedivides | \(\text {Expression too large to display}\) | \(3777\) |
default | \(\text {Expression too large to display}\) | \(3777\) |
[In]
[Out]
\[ \int \frac {\left (f+g x+h x^2+i x^3\right ) (a+b \arcsin (c x))}{(d+e x)^4} \, dx=\int { \frac {{\left (i x^{3} + h x^{2} + g x + f\right )} {\left (b \arcsin \left (c x\right ) + a\right )}}{{\left (e x + d\right )}^{4}} \,d x } \]
[In]
[Out]
\[ \int \frac {\left (f+g x+h x^2+i x^3\right ) (a+b \arcsin (c x))}{(d+e x)^4} \, dx=\int \frac {\left (a + b \operatorname {asin}{\left (c x \right )}\right ) \left (f + g x + h x^{2} + i x^{3}\right )}{\left (d + e x\right )^{4}}\, dx \]
[In]
[Out]
\[ \int \frac {\left (f+g x+h x^2+i x^3\right ) (a+b \arcsin (c x))}{(d+e x)^4} \, dx=\int { \frac {{\left (i x^{3} + h x^{2} + g x + f\right )} {\left (b \arcsin \left (c x\right ) + a\right )}}{{\left (e x + d\right )}^{4}} \,d x } \]
[In]
[Out]
\[ \int \frac {\left (f+g x+h x^2+i x^3\right ) (a+b \arcsin (c x))}{(d+e x)^4} \, dx=\int { \frac {{\left (i x^{3} + h x^{2} + g x + f\right )} {\left (b \arcsin \left (c x\right ) + a\right )}}{{\left (e x + d\right )}^{4}} \,d x } \]
[In]
[Out]
Timed out. \[ \int \frac {\left (f+g x+h x^2+i x^3\right ) (a+b \arcsin (c x))}{(d+e x)^4} \, dx=\int \frac {\left (a+b\,\mathrm {asin}\left (c\,x\right )\right )\,\left (i\,x^3+h\,x^2+g\,x+f\right )}{{\left (d+e\,x\right )}^4} \,d x \]
[In]
[Out]