Integrand size = 35, antiderivative size = 920 \[ \int \frac {\left (e f+2 d h x+e h x^2\right )^2 (a+b \arcsin (c x))^2}{(d+e x)^2} \, dx=-\frac {4 b^2 h^2 x}{9 c^2}-\frac {2 b^2 h \left (2 e^2 f-d^2 h\right ) x}{e^2}-\frac {b^2 d h^2 x^2}{2 e}-\frac {2}{27} b^2 h^2 x^3+\frac {a b h \left (4 e^2 h+c^2 \left (36 e^2 f-25 d^2 h\right )\right ) \sqrt {1-c^2 x^2}}{9 c^3 e^2}+\frac {5 a b d h^2 (d+e x) \sqrt {1-c^2 x^2}}{9 c e^2}+\frac {2 a b h^2 (d+e x)^2 \sqrt {1-c^2 x^2}}{9 c e^2}-\frac {a b d \left (2 c^2 d^2+3 e^2\right ) h^2 \arcsin (c x)}{3 c^2 e^3}+\frac {4 b^2 h^2 \sqrt {1-c^2 x^2} \arcsin (c x)}{9 c^3}+\frac {2 b^2 h \left (2 e^2 f-d^2 h\right ) \sqrt {1-c^2 x^2} \arcsin (c x)}{c e^2}+\frac {b^2 d h^2 x \sqrt {1-c^2 x^2} \arcsin (c x)}{c e}+\frac {2 b^2 h^2 x^2 \sqrt {1-c^2 x^2} \arcsin (c x)}{9 c}-\frac {b^2 d^3 h^2 \arcsin (c x)^2}{3 e^3}-\frac {b^2 d h^2 \arcsin (c x)^2}{2 c^2 e}+\frac {2 h \left (e^2 f-d^2 h\right ) x (a+b \arcsin (c x))^2}{e^2}-\frac {\left (e^2 f-d^2 h\right )^2 (a+b \arcsin (c x))^2}{e^3 (d+e x)}+\frac {h^2 (d+e x)^3 (a+b \arcsin (c x))^2}{3 e^3}+\frac {2 a b c \left (e^2 f-d^2 h\right )^2 \arctan \left (\frac {e+c^2 d x}{\sqrt {c^2 d^2-e^2} \sqrt {1-c^2 x^2}}\right )}{e^3 \sqrt {c^2 d^2-e^2}}-\frac {2 i b^2 c \left (e^2 f-d^2 h\right )^2 \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^3 \sqrt {c^2 d^2-e^2}}+\frac {2 i b^2 c \left (e^2 f-d^2 h\right )^2 \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^3 \sqrt {c^2 d^2-e^2}}-\frac {2 b^2 c \left (e^2 f-d^2 h\right )^2 \operatorname {PolyLog}\left (2,\frac {i e e^{i \arcsin (c x)}}{c d-\sqrt {c^2 d^2-e^2}}\right )}{e^3 \sqrt {c^2 d^2-e^2}}+\frac {2 b^2 c \left (e^2 f-d^2 h\right )^2 \operatorname {PolyLog}\left (2,\frac {i e e^{i \arcsin (c x)}}{c d+\sqrt {c^2 d^2-e^2}}\right )}{e^3 \sqrt {c^2 d^2-e^2}} \]
[Out]
Time = 2.72 (sec) , antiderivative size = 920, normalized size of antiderivative = 1.00, number of steps used = 32, number of rules used = 25, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.714, Rules used = {697, 4841, 12, 6874, 267, 739, 210, 757, 794, 222, 4883, 1668, 858, 4881, 4737, 4767, 8, 4795, 30, 4857, 3404, 2296, 2221, 2317, 2438} \[ \int \frac {\left (e f+2 d h x+e h x^2\right )^2 (a+b \arcsin (c x))^2}{(d+e x)^2} \, dx=-\frac {b^2 h^2 \arcsin (c x)^2 d^3}{3 e^3}-\frac {b^2 h^2 x^2 d}{2 e}-\frac {b^2 h^2 \arcsin (c x)^2 d}{2 c^2 e}-\frac {a b \left (2 c^2 d^2+3 e^2\right ) h^2 \arcsin (c x) d}{3 c^2 e^3}+\frac {b^2 h^2 x \sqrt {1-c^2 x^2} \arcsin (c x) d}{c e}+\frac {5 a b h^2 (d+e x) \sqrt {1-c^2 x^2} d}{9 c e^2}-\frac {2}{27} b^2 h^2 x^3+\frac {h^2 (d+e x)^3 (a+b \arcsin (c x))^2}{3 e^3}+\frac {2 h \left (e^2 f-d^2 h\right ) x (a+b \arcsin (c x))^2}{e^2}-\frac {\left (e^2 f-d^2 h\right )^2 (a+b \arcsin (c x))^2}{e^3 (d+e x)}-\frac {4 b^2 h^2 x}{9 c^2}-\frac {2 b^2 h \left (2 e^2 f-d^2 h\right ) x}{e^2}+\frac {4 b^2 h^2 \sqrt {1-c^2 x^2} \arcsin (c x)}{9 c^3}+\frac {2 b^2 h^2 x^2 \sqrt {1-c^2 x^2} \arcsin (c x)}{9 c}+\frac {2 b^2 h \left (2 e^2 f-d^2 h\right ) \sqrt {1-c^2 x^2} \arcsin (c x)}{c e^2}+\frac {2 a b c \left (e^2 f-d^2 h\right )^2 \arctan \left (\frac {d x c^2+e}{\sqrt {c^2 d^2-e^2} \sqrt {1-c^2 x^2}}\right )}{e^3 \sqrt {c^2 d^2-e^2}}-\frac {2 i b^2 c \left (e^2 f-d^2 h\right )^2 \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^3 \sqrt {c^2 d^2-e^2}}+\frac {2 i b^2 c \left (e^2 f-d^2 h\right )^2 \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^3 \sqrt {c^2 d^2-e^2}}-\frac {2 b^2 c \left (e^2 f-d^2 h\right )^2 \operatorname {PolyLog}\left (2,\frac {i e e^{i \arcsin (c x)}}{c d-\sqrt {c^2 d^2-e^2}}\right )}{e^3 \sqrt {c^2 d^2-e^2}}+\frac {2 b^2 c \left (e^2 f-d^2 h\right )^2 \operatorname {PolyLog}\left (2,\frac {i e e^{i \arcsin (c x)}}{c d+\sqrt {c^2 d^2-e^2}}\right )}{e^3 \sqrt {c^2 d^2-e^2}}+\frac {2 a b h^2 (d+e x)^2 \sqrt {1-c^2 x^2}}{9 c e^2}+\frac {a b h \left (\left (36 e^2 f-25 d^2 h\right ) c^2+4 e^2 h\right ) \sqrt {1-c^2 x^2}}{9 c^3 e^2} \]
[In]
[Out]
Rule 8
Rule 12
Rule 30
Rule 210
Rule 222
Rule 267
Rule 697
Rule 739
Rule 757
Rule 794
Rule 858
Rule 1668
Rule 2221
Rule 2296
Rule 2317
Rule 2438
Rule 3404
Rule 4737
Rule 4767
Rule 4795
Rule 4841
Rule 4857
Rule 4881
Rule 4883
Rule 6874
Rubi steps \begin{align*} \text {integral}& = \frac {2 h \left (e^2 f-d^2 h\right ) x (a+b \arcsin (c x))^2}{e^2}-\frac {\left (e^2 f-d^2 h\right )^2 (a+b \arcsin (c x))^2}{e^3 (d+e x)}+\frac {h^2 (d+e x)^3 (a+b \arcsin (c x))^2}{3 e^3}-(2 b c) \int \frac {\left (6 e h \left (e^2 f-d^2 h\right ) x-\frac {3 \left (e^2 f-d^2 h\right )^2}{d+e x}+h^2 (d+e x)^3\right ) (a+b \arcsin (c x))}{3 e^3 \sqrt {1-c^2 x^2}} \, dx \\ & = \frac {2 h \left (e^2 f-d^2 h\right ) x (a+b \arcsin (c x))^2}{e^2}-\frac {\left (e^2 f-d^2 h\right )^2 (a+b \arcsin (c x))^2}{e^3 (d+e x)}+\frac {h^2 (d+e x)^3 (a+b \arcsin (c x))^2}{3 e^3}-\frac {(2 b c) \int \frac {\left (6 e h \left (e^2 f-d^2 h\right ) x-\frac {3 \left (e^2 f-d^2 h\right )^2}{d+e x}+h^2 (d+e x)^3\right ) (a+b \arcsin (c x))}{\sqrt {1-c^2 x^2}} \, dx}{3 e^3} \\ & = \frac {2 h \left (e^2 f-d^2 h\right ) x (a+b \arcsin (c x))^2}{e^2}-\frac {\left (e^2 f-d^2 h\right )^2 (a+b \arcsin (c x))^2}{e^3 (d+e x)}+\frac {h^2 (d+e x)^3 (a+b \arcsin (c x))^2}{3 e^3}-\frac {(2 b c) \int \left (\frac {a \left (-3 e^4 f^2+6 d^2 e^2 f h-2 d^4 h^2+2 d e h \left (3 e^2 f-d^2 h\right ) x+6 e^4 f h x^2+4 d e^3 h^2 x^3+e^4 h^2 x^4\right )}{(d+e x) \sqrt {1-c^2 x^2}}+\frac {b \left (-3 e^4 f^2+6 d^2 e^2 f h-2 d^4 h^2+2 d e h \left (3 e^2 f-d^2 h\right ) x+6 e^4 f h x^2+4 d e^3 h^2 x^3+e^4 h^2 x^4\right ) \arcsin (c x)}{(d+e x) \sqrt {1-c^2 x^2}}\right ) \, dx}{3 e^3} \\ & = \frac {2 h \left (e^2 f-d^2 h\right ) x (a+b \arcsin (c x))^2}{e^2}-\frac {\left (e^2 f-d^2 h\right )^2 (a+b \arcsin (c x))^2}{e^3 (d+e x)}+\frac {h^2 (d+e x)^3 (a+b \arcsin (c x))^2}{3 e^3}-\frac {(2 a b c) \int \frac {-3 e^4 f^2+6 d^2 e^2 f h-2 d^4 h^2+2 d e h \left (3 e^2 f-d^2 h\right ) x+6 e^4 f h x^2+4 d e^3 h^2 x^3+e^4 h^2 x^4}{(d+e x) \sqrt {1-c^2 x^2}} \, dx}{3 e^3}-\frac {\left (2 b^2 c\right ) \int \frac {\left (-3 e^4 f^2+6 d^2 e^2 f h-2 d^4 h^2+2 d e h \left (3 e^2 f-d^2 h\right ) x+6 e^4 f h x^2+4 d e^3 h^2 x^3+e^4 h^2 x^4\right ) \arcsin (c x)}{(d+e x) \sqrt {1-c^2 x^2}} \, dx}{3 e^3} \\ & = \frac {2 a b h^2 (d+e x)^2 \sqrt {1-c^2 x^2}}{9 c e^2}+\frac {2 h \left (e^2 f-d^2 h\right ) x (a+b \arcsin (c x))^2}{e^2}-\frac {\left (e^2 f-d^2 h\right )^2 (a+b \arcsin (c x))^2}{e^3 (d+e x)}+\frac {h^2 (d+e x)^3 (a+b \arcsin (c x))^2}{3 e^3}+\frac {(2 a b) \int \frac {-2 d^2 e^6 h^2+3 c^2 \left (3 e^8 f^2-6 d^2 e^6 f h+2 d^4 e^4 h^2\right )-d e^5 h \left (4 e^2 h+c^2 \left (18 e^2 f-7 d^2 h\right )\right ) x-e^6 h \left (2 e^2 h+c^2 \left (18 e^2 f-5 d^2 h\right )\right ) x^2-5 c^2 d e^7 h^2 x^3}{(d+e x) \sqrt {1-c^2 x^2}} \, dx}{9 c e^7}-\frac {\left (2 b^2 c\right ) \int \left (\frac {d^3 h^2 \arcsin (c x)}{\sqrt {1-c^2 x^2}}+\frac {3 e h \left (2 e^2 f-d^2 h\right ) x \arcsin (c x)}{\sqrt {1-c^2 x^2}}+\frac {3 d e^2 h^2 x^2 \arcsin (c x)}{\sqrt {1-c^2 x^2}}+\frac {e^3 h^2 x^3 \arcsin (c x)}{\sqrt {1-c^2 x^2}}-\frac {3 \left (e^2 f-d^2 h\right )^2 \arcsin (c x)}{(d+e x) \sqrt {1-c^2 x^2}}\right ) \, dx}{3 e^3} \\ & = \frac {5 a b d h^2 (d+e x) \sqrt {1-c^2 x^2}}{9 c e^2}+\frac {2 a b h^2 (d+e x)^2 \sqrt {1-c^2 x^2}}{9 c e^2}+\frac {2 h \left (e^2 f-d^2 h\right ) x (a+b \arcsin (c x))^2}{e^2}-\frac {\left (e^2 f-d^2 h\right )^2 (a+b \arcsin (c x))^2}{e^3 (d+e x)}+\frac {h^2 (d+e x)^3 (a+b \arcsin (c x))^2}{3 e^3}-\frac {(a b) \int \frac {3 c^2 e^7 \left (3 d^2 e^2 h^2-2 c^2 \left (3 e^4 f^2-6 d^2 e^2 f h+2 d^4 h^2\right )\right )+c^2 d e^8 h \left (13 e^2 h+c^2 \left (36 e^2 f-19 d^2 h\right )\right ) x+c^2 e^9 h \left (4 e^2 h+c^2 \left (36 e^2 f-25 d^2 h\right )\right ) x^2}{(d+e x) \sqrt {1-c^2 x^2}} \, dx}{9 c^3 e^{10}}-\frac {1}{3} \left (2 b^2 c h^2\right ) \int \frac {x^3 \arcsin (c x)}{\sqrt {1-c^2 x^2}} \, dx-\frac {\left (2 b^2 c d^3 h^2\right ) \int \frac {\arcsin (c x)}{\sqrt {1-c^2 x^2}} \, dx}{3 e^3}-\frac {\left (2 b^2 c d h^2\right ) \int \frac {x^2 \arcsin (c x)}{\sqrt {1-c^2 x^2}} \, dx}{e}+\frac {\left (2 b^2 c \left (e^2 f-d^2 h\right )^2\right ) \int \frac {\arcsin (c x)}{(d+e x) \sqrt {1-c^2 x^2}} \, dx}{e^3}-\frac {\left (2 b^2 c h \left (2 e^2 f-d^2 h\right )\right ) \int \frac {x \arcsin (c x)}{\sqrt {1-c^2 x^2}} \, dx}{e^2} \\ & = \frac {a b h \left (4 e^2 h+c^2 \left (36 e^2 f-25 d^2 h\right )\right ) \sqrt {1-c^2 x^2}}{9 c^3 e^2}+\frac {5 a b d h^2 (d+e x) \sqrt {1-c^2 x^2}}{9 c e^2}+\frac {2 a b h^2 (d+e x)^2 \sqrt {1-c^2 x^2}}{9 c e^2}+\frac {2 b^2 h \left (2 e^2 f-d^2 h\right ) \sqrt {1-c^2 x^2} \arcsin (c x)}{c e^2}+\frac {b^2 d h^2 x \sqrt {1-c^2 x^2} \arcsin (c x)}{c e}+\frac {2 b^2 h^2 x^2 \sqrt {1-c^2 x^2} \arcsin (c x)}{9 c}-\frac {b^2 d^3 h^2 \arcsin (c x)^2}{3 e^3}+\frac {2 h \left (e^2 f-d^2 h\right ) x (a+b \arcsin (c x))^2}{e^2}-\frac {\left (e^2 f-d^2 h\right )^2 (a+b \arcsin (c x))^2}{e^3 (d+e x)}+\frac {h^2 (d+e x)^3 (a+b \arcsin (c x))^2}{3 e^3}+\frac {(a b) \int \frac {-3 c^4 e^9 \left (3 d^2 e^2 h^2-2 c^2 \left (3 e^4 f^2-6 d^2 e^2 f h+2 d^4 h^2\right )\right )-3 c^4 d e^{10} \left (2 c^2 d^2+3 e^2\right ) h^2 x}{(d+e x) \sqrt {1-c^2 x^2}} \, dx}{9 c^5 e^{12}}-\frac {1}{9} \left (2 b^2 h^2\right ) \int x^2 \, dx-\frac {\left (4 b^2 h^2\right ) \int \frac {x \arcsin (c x)}{\sqrt {1-c^2 x^2}} \, dx}{9 c}-\frac {\left (b^2 d h^2\right ) \int x \, dx}{e}-\frac {\left (b^2 d h^2\right ) \int \frac {\arcsin (c x)}{\sqrt {1-c^2 x^2}} \, dx}{c e}+\frac {\left (2 b^2 c \left (e^2 f-d^2 h\right )^2\right ) \text {Subst}\left (\int \frac {x}{c d+e \sin (x)} \, dx,x,\arcsin (c x)\right )}{e^3}-\frac {\left (2 b^2 h \left (2 e^2 f-d^2 h\right )\right ) \int 1 \, dx}{e^2} \\ & = -\frac {2 b^2 h \left (2 e^2 f-d^2 h\right ) x}{e^2}-\frac {b^2 d h^2 x^2}{2 e}-\frac {2}{27} b^2 h^2 x^3+\frac {a b h \left (4 e^2 h+c^2 \left (36 e^2 f-25 d^2 h\right )\right ) \sqrt {1-c^2 x^2}}{9 c^3 e^2}+\frac {5 a b d h^2 (d+e x) \sqrt {1-c^2 x^2}}{9 c e^2}+\frac {2 a b h^2 (d+e x)^2 \sqrt {1-c^2 x^2}}{9 c e^2}+\frac {4 b^2 h^2 \sqrt {1-c^2 x^2} \arcsin (c x)}{9 c^3}+\frac {2 b^2 h \left (2 e^2 f-d^2 h\right ) \sqrt {1-c^2 x^2} \arcsin (c x)}{c e^2}+\frac {b^2 d h^2 x \sqrt {1-c^2 x^2} \arcsin (c x)}{c e}+\frac {2 b^2 h^2 x^2 \sqrt {1-c^2 x^2} \arcsin (c x)}{9 c}-\frac {b^2 d^3 h^2 \arcsin (c x)^2}{3 e^3}-\frac {b^2 d h^2 \arcsin (c x)^2}{2 c^2 e}+\frac {2 h \left (e^2 f-d^2 h\right ) x (a+b \arcsin (c x))^2}{e^2}-\frac {\left (e^2 f-d^2 h\right )^2 (a+b \arcsin (c x))^2}{e^3 (d+e x)}+\frac {h^2 (d+e x)^3 (a+b \arcsin (c x))^2}{3 e^3}-\frac {\left (4 b^2 h^2\right ) \int 1 \, dx}{9 c^2}-\frac {\left (a b d \left (2 c^2 d^2+3 e^2\right ) h^2\right ) \int \frac {1}{\sqrt {1-c^2 x^2}} \, dx}{3 c e^3}+\frac {\left (2 a b c \left (e^2 f-d^2 h\right )^2\right ) \int \frac {1}{(d+e x) \sqrt {1-c^2 x^2}} \, dx}{e^3}+\frac {\left (4 b^2 c \left (e^2 f-d^2 h\right )^2\right ) \text {Subst}\left (\int \frac {e^{i x} x}{i e+2 c d e^{i x}-i e e^{2 i x}} \, dx,x,\arcsin (c x)\right )}{e^3} \\ & = -\frac {4 b^2 h^2 x}{9 c^2}-\frac {2 b^2 h \left (2 e^2 f-d^2 h\right ) x}{e^2}-\frac {b^2 d h^2 x^2}{2 e}-\frac {2}{27} b^2 h^2 x^3+\frac {a b h \left (4 e^2 h+c^2 \left (36 e^2 f-25 d^2 h\right )\right ) \sqrt {1-c^2 x^2}}{9 c^3 e^2}+\frac {5 a b d h^2 (d+e x) \sqrt {1-c^2 x^2}}{9 c e^2}+\frac {2 a b h^2 (d+e x)^2 \sqrt {1-c^2 x^2}}{9 c e^2}-\frac {a b d \left (2 c^2 d^2+3 e^2\right ) h^2 \arcsin (c x)}{3 c^2 e^3}+\frac {4 b^2 h^2 \sqrt {1-c^2 x^2} \arcsin (c x)}{9 c^3}+\frac {2 b^2 h \left (2 e^2 f-d^2 h\right ) \sqrt {1-c^2 x^2} \arcsin (c x)}{c e^2}+\frac {b^2 d h^2 x \sqrt {1-c^2 x^2} \arcsin (c x)}{c e}+\frac {2 b^2 h^2 x^2 \sqrt {1-c^2 x^2} \arcsin (c x)}{9 c}-\frac {b^2 d^3 h^2 \arcsin (c x)^2}{3 e^3}-\frac {b^2 d h^2 \arcsin (c x)^2}{2 c^2 e}+\frac {2 h \left (e^2 f-d^2 h\right ) x (a+b \arcsin (c x))^2}{e^2}-\frac {\left (e^2 f-d^2 h\right )^2 (a+b \arcsin (c x))^2}{e^3 (d+e x)}+\frac {h^2 (d+e x)^3 (a+b \arcsin (c x))^2}{3 e^3}-\frac {\left (2 a b c \left (e^2 f-d^2 h\right )^2\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 )}{e^3}-\frac {\left (4 i b^2 c \left (e^2 f-d^2 h\right )^2\right ) \text {Subst}\left (\int \frac {e^{i x} x}{2 c d-2 \sqrt {c^2 d^2-e^2}-2 i e e^{i x}} \, dx,x,\arcsin (c x)\right )}{e^2 \sqrt {c^2 d^2-e^2}}+\frac {\left (4 i b^2 c \left (e^2 f-d^2 h\right )^2\right ) \text {Subst}\left (\int \frac {e^{i x} x}{2 c d+2 \sqrt {c^2 d^2-e^2}-2 i e e^{i x}} \, dx,x,\arcsin (c x)\right )}{e^2 \sqrt {c^2 d^2-e^2}} \\ & = -\frac {4 b^2 h^2 x}{9 c^2}-\frac {2 b^2 h \left (2 e^2 f-d^2 h\right ) x}{e^2}-\frac {b^2 d h^2 x^2}{2 e}-\frac {2}{27} b^2 h^2 x^3+\frac {a b h \left (4 e^2 h+c^2 \left (36 e^2 f-25 d^2 h\right )\right ) \sqrt {1-c^2 x^2}}{9 c^3 e^2}+\frac {5 a b d h^2 (d+e x) \sqrt {1-c^2 x^2}}{9 c e^2}+\frac {2 a b h^2 (d+e x)^2 \sqrt {1-c^2 x^2}}{9 c e^2}-\frac {a b d \left (2 c^2 d^2+3 e^2\right ) h^2 \arcsin (c x)}{3 c^2 e^3}+\frac {4 b^2 h^2 \sqrt {1-c^2 x^2} \arcsin (c x)}{9 c^3}+\frac {2 b^2 h \left (2 e^2 f-d^2 h\right ) \sqrt {1-c^2 x^2} \arcsin (c x)}{c e^2}+\frac {b^2 d h^2 x \sqrt {1-c^2 x^2} \arcsin (c x)}{c e}+\frac {2 b^2 h^2 x^2 \sqrt {1-c^2 x^2} \arcsin (c x)}{9 c}-\frac {b^2 d^3 h^2 \arcsin (c x)^2}{3 e^3}-\frac {b^2 d h^2 \arcsin (c x)^2}{2 c^2 e}+\frac {2 h \left (e^2 f-d^2 h\right ) x (a+b \arcsin (c x))^2}{e^2}-\frac {\left (e^2 f-d^2 h\right )^2 (a+b \arcsin (c x))^2}{e^3 (d+e x)}+\frac {h^2 (d+e x)^3 (a+b \arcsin (c x))^2}{3 e^3}+\frac {2 a b c \left (e^2 f-d^2 h\right )^2 \arctan \left (\frac {e+c^2 d x}{\sqrt {c^2 d^2-e^2} \sqrt {1-c^2 x^2}}\right )}{e^3 \sqrt {c^2 d^2-e^2}}-\frac {2 i b^2 c \left (e^2 f-d^2 h\right )^2 \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^3 \sqrt {c^2 d^2-e^2}}+\frac {2 i b^2 c \left (e^2 f-d^2 h\right )^2 \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^3 \sqrt {c^2 d^2-e^2}}+\frac {\left (2 i b^2 c \left (e^2 f-d^2 h\right )^2\right ) \text {Subst}\left (\int \log \left (1-\frac {2 i e e^{i x}}{2 c d-2 \sqrt {c^2 d^2-e^2}}\right ) \, dx,x,\arcsin (c x)\right )}{e^3 \sqrt {c^2 d^2-e^2}}-\frac {\left (2 i b^2 c \left (e^2 f-d^2 h\right )^2\right ) \text {Subst}\left (\int \log \left (1-\frac {2 i e e^{i x}}{2 c d+2 \sqrt {c^2 d^2-e^2}}\right ) \, dx,x,\arcsin (c x)\right )}{e^3 \sqrt {c^2 d^2-e^2}} \\ & = -\frac {4 b^2 h^2 x}{9 c^2}-\frac {2 b^2 h \left (2 e^2 f-d^2 h\right ) x}{e^2}-\frac {b^2 d h^2 x^2}{2 e}-\frac {2}{27} b^2 h^2 x^3+\frac {a b h \left (4 e^2 h+c^2 \left (36 e^2 f-25 d^2 h\right )\right ) \sqrt {1-c^2 x^2}}{9 c^3 e^2}+\frac {5 a b d h^2 (d+e x) \sqrt {1-c^2 x^2}}{9 c e^2}+\frac {2 a b h^2 (d+e x)^2 \sqrt {1-c^2 x^2}}{9 c e^2}-\frac {a b d \left (2 c^2 d^2+3 e^2\right ) h^2 \arcsin (c x)}{3 c^2 e^3}+\frac {4 b^2 h^2 \sqrt {1-c^2 x^2} \arcsin (c x)}{9 c^3}+\frac {2 b^2 h \left (2 e^2 f-d^2 h\right ) \sqrt {1-c^2 x^2} \arcsin (c x)}{c e^2}+\frac {b^2 d h^2 x \sqrt {1-c^2 x^2} \arcsin (c x)}{c e}+\frac {2 b^2 h^2 x^2 \sqrt {1-c^2 x^2} \arcsin (c x)}{9 c}-\frac {b^2 d^3 h^2 \arcsin (c x)^2}{3 e^3}-\frac {b^2 d h^2 \arcsin (c x)^2}{2 c^2 e}+\frac {2 h \left (e^2 f-d^2 h\right ) x (a+b \arcsin (c x))^2}{e^2}-\frac {\left (e^2 f-d^2 h\right )^2 (a+b \arcsin (c x))^2}{e^3 (d+e x)}+\frac {h^2 (d+e x)^3 (a+b \arcsin (c x))^2}{3 e^3}+\frac {2 a b c \left (e^2 f-d^2 h\right )^2 \arctan \left (\frac {e+c^2 d x}{\sqrt {c^2 d^2-e^2} \sqrt {1-c^2 x^2}}\right )}{e^3 \sqrt {c^2 d^2-e^2}}-\frac {2 i b^2 c \left (e^2 f-d^2 h\right )^2 \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^3 \sqrt {c^2 d^2-e^2}}+\frac {2 i b^2 c \left (e^2 f-d^2 h\right )^2 \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^3 \sqrt {c^2 d^2-e^2}}+\frac {\left (2 b^2 c \left (e^2 f-d^2 h\right )^2\right ) \text {Subst}\left (\int \frac {\log \left (1-\frac {2 i e x}{2 c d-2 \sqrt {c^2 d^2-e^2}}\right )}{x} \, dx,x,e^{i \arcsin (c x)}\right )}{e^3 \sqrt {c^2 d^2-e^2}}-\frac {\left (2 b^2 c \left (e^2 f-d^2 h\right )^2\right ) \text {Subst}\left (\int \frac {\log \left (1-\frac {2 i e x}{2 c d+2 \sqrt {c^2 d^2-e^2}}\right )}{x} \, dx,x,e^{i \arcsin (c x)}\right )}{e^3 \sqrt {c^2 d^2-e^2}} \\ & = -\frac {4 b^2 h^2 x}{9 c^2}-\frac {2 b^2 h \left (2 e^2 f-d^2 h\right ) x}{e^2}-\frac {b^2 d h^2 x^2}{2 e}-\frac {2}{27} b^2 h^2 x^3+\frac {a b h \left (4 e^2 h+c^2 \left (36 e^2 f-25 d^2 h\right )\right ) \sqrt {1-c^2 x^2}}{9 c^3 e^2}+\frac {5 a b d h^2 (d+e x) \sqrt {1-c^2 x^2}}{9 c e^2}+\frac {2 a b h^2 (d+e x)^2 \sqrt {1-c^2 x^2}}{9 c e^2}-\frac {a b d \left (2 c^2 d^2+3 e^2\right ) h^2 \arcsin (c x)}{3 c^2 e^3}+\frac {4 b^2 h^2 \sqrt {1-c^2 x^2} \arcsin (c x)}{9 c^3}+\frac {2 b^2 h \left (2 e^2 f-d^2 h\right ) \sqrt {1-c^2 x^2} \arcsin (c x)}{c e^2}+\frac {b^2 d h^2 x \sqrt {1-c^2 x^2} \arcsin (c x)}{c e}+\frac {2 b^2 h^2 x^2 \sqrt {1-c^2 x^2} \arcsin (c x)}{9 c}-\frac {b^2 d^3 h^2 \arcsin (c x)^2}{3 e^3}-\frac {b^2 d h^2 \arcsin (c x)^2}{2 c^2 e}+\frac {2 h \left (e^2 f-d^2 h\right ) x (a+b \arcsin (c x))^2}{e^2}-\frac {\left (e^2 f-d^2 h\right )^2 (a+b \arcsin (c x))^2}{e^3 (d+e x)}+\frac {h^2 (d+e x)^3 (a+b \arcsin (c x))^2}{3 e^3}+\frac {2 a b c \left (e^2 f-d^2 h\right )^2 \arctan \left (\frac {e+c^2 d x}{\sqrt {c^2 d^2-e^2} \sqrt {1-c^2 x^2}}\right )}{e^3 \sqrt {c^2 d^2-e^2}}-\frac {2 i b^2 c \left (e^2 f-d^2 h\right )^2 \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^3 \sqrt {c^2 d^2-e^2}}+\frac {2 i b^2 c \left (e^2 f-d^2 h\right )^2 \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^3 \sqrt {c^2 d^2-e^2}}-\frac {2 b^2 c \left (e^2 f-d^2 h\right )^2 \operatorname {PolyLog}\left (2,\frac {i e e^{i \arcsin (c x)}}{c d-\sqrt {c^2 d^2-e^2}}\right )}{e^3 \sqrt {c^2 d^2-e^2}}+\frac {2 b^2 c \left (e^2 f-d^2 h\right )^2 \operatorname {PolyLog}\left (2,\frac {i e e^{i \arcsin (c x)}}{c d+\sqrt {c^2 d^2-e^2}}\right )}{e^3 \sqrt {c^2 d^2-e^2}} \\ \end{align*}
Time = 0.95 (sec) , antiderivative size = 526, normalized size of antiderivative = 0.57 \[ \int \frac {\left (e f+2 d h x+e h x^2\right )^2 (a+b \arcsin (c x))^2}{(d+e x)^2} \, dx=\frac {h \left (2 e^2 f-d^2 h\right ) x (a+b \arcsin (c x))^2}{e^2}+\frac {d h^2 x^2 (a+b \arcsin (c x))^2}{e}+\frac {1}{3} h^2 x^3 (a+b \arcsin (c x))^2-\frac {\left (e^2 f-d^2 h\right )^2 (a+b \arcsin (c x))^2}{e^3 (d+e x)}-\frac {2 b h^2 \left (-3 a \sqrt {1-c^2 x^2} \left (2+c^2 x^2\right )+b c x \left (6+c^2 x^2\right )-3 b \sqrt {1-c^2 x^2} \left (2+c^2 x^2\right ) \arcsin (c x)\right )}{27 c^3}-\frac {2 b h \left (2 e^2 f-d^2 h\right ) \left (b x-\frac {\sqrt {1-c^2 x^2} (a+b \arcsin (c x))}{c}\right )}{e^2}-\frac {b d h^2 \left (b x^2-\frac {2 x \sqrt {1-c^2 x^2} (a+b \arcsin (c x))}{c}+\frac {(a+b \arcsin (c x))^2}{b c^2}\right )}{2 e}+\frac {2 b c \left (e^2 f-d^2 h\right )^2 \left (-i (a+b \arcsin (c x)) \left (\log \left (1+\frac {i e e^{i \arcsin (c x)}}{-c d+\sqrt {c^2 d^2-e^2}}\right )-\log \left (1-\frac {i e e^{i \arcsin (c x)}}{c d+\sqrt {c^2 d^2-e^2}}\right )\right )-b \operatorname {PolyLog}\left (2,\frac {i e e^{i \arcsin (c x)}}{c d-\sqrt {c^2 d^2-e^2}}\right )+b \operatorname {PolyLog}\left (2,\frac {i e e^{i \arcsin (c x)}}{c d+\sqrt {c^2 d^2-e^2}}\right )\right )}{e^3 \sqrt {c^2 d^2-e^2}} \]
[In]
[Out]
Both result and optimal contain complex but leaf count of result is larger than twice the leaf count of optimal. 2173 vs. \(2 (886 ) = 1772\).
Time = 3.88 (sec) , antiderivative size = 2174, normalized size of antiderivative = 2.36
method | result | size |
parts | \(\text {Expression too large to display}\) | \(2174\) |
derivativedivides | \(\text {Expression too large to display}\) | \(2208\) |
default | \(\text {Expression too large to display}\) | \(2208\) |
[In]
[Out]
\[ \int \frac {\left (e f+2 d h x+e h x^2\right )^2 (a+b \arcsin (c x))^2}{(d+e x)^2} \, dx=\int { \frac {{\left (e h x^{2} + 2 \, d h x + e f\right )}^{2} {\left (b \arcsin \left (c x\right ) + a\right )}^{2}}{{\left (e x + d\right )}^{2}} \,d x } \]
[In]
[Out]
\[ \int \frac {\left (e f+2 d h x+e h x^2\right )^2 (a+b \arcsin (c x))^2}{(d+e x)^2} \, dx=\int \frac {\left (a + b \operatorname {asin}{\left (c x \right )}\right )^{2} \left (2 d h x + e f + e h x^{2}\right )^{2}}{\left (d + e x\right )^{2}}\, dx \]
[In]
[Out]
Exception generated. \[ \int \frac {\left (e f+2 d h x+e h x^2\right )^2 (a+b \arcsin (c x))^2}{(d+e x)^2} \, dx=\text {Exception raised: ValueError} \]
[In]
[Out]
\[ \int \frac {\left (e f+2 d h x+e h x^2\right )^2 (a+b \arcsin (c x))^2}{(d+e x)^2} \, dx=\int { \frac {{\left (e h x^{2} + 2 \, d h x + e f\right )}^{2} {\left (b \arcsin \left (c x\right ) + a\right )}^{2}}{{\left (e x + d\right )}^{2}} \,d x } \]
[In]
[Out]
Timed out. \[ \int \frac {\left (e f+2 d h x+e h x^2\right )^2 (a+b \arcsin (c x))^2}{(d+e x)^2} \, dx=\int \frac {{\left (a+b\,\mathrm {asin}\left (c\,x\right )\right )}^2\,{\left (e\,h\,x^2+2\,d\,h\,x+e\,f\right )}^2}{{\left (d+e\,x\right )}^2} \,d x \]
[In]
[Out]