Optimal. Leaf size=851 \[ \frac{b f^2 \sqrt{d-c^2 d x^2} \cos ^{-1}(c x)^2 c^3}{2 g^2 \left (c^2 f^2-g^2\right ) \sqrt{1-c^2 x^2}}-\frac{a f^2 \sqrt{d-c^2 d x^2} \sin ^{-1}(c x) c^3}{g^2 \left (c^2 f^2-g^2\right ) \sqrt{1-c^2 x^2}}+\frac{a f \sqrt{d-c^2 d x^2} \tan ^{-1}\left (\frac{f x c^2+g}{\sqrt{c^2 f^2-g^2} \sqrt{1-c^2 x^2}}\right ) c^2}{g^2 \sqrt{c^2 f^2-g^2} \sqrt{1-c^2 x^2}}+\frac{i b f \sqrt{d-c^2 d x^2} \cos ^{-1}(c x) \log \left (\frac{e^{i \cos ^{-1}(c x)} g}{c f-\sqrt{c^2 f^2-g^2}}+1\right ) c^2}{g^2 \sqrt{c^2 f^2-g^2} \sqrt{1-c^2 x^2}}-\frac{i b f \sqrt{d-c^2 d x^2} \cos ^{-1}(c x) \log \left (\frac{e^{i \cos ^{-1}(c x)} g}{c f+\sqrt{c^2 f^2-g^2}}+1\right ) c^2}{g^2 \sqrt{c^2 f^2-g^2} \sqrt{1-c^2 x^2}}+\frac{b f \sqrt{d-c^2 d x^2} \text{PolyLog}\left (2,-\frac{e^{i \cos ^{-1}(c x)} g}{c f-\sqrt{c^2 f^2-g^2}}\right ) c^2}{g^2 \sqrt{c^2 f^2-g^2} \sqrt{1-c^2 x^2}}-\frac{b f \sqrt{d-c^2 d x^2} \text{PolyLog}\left (2,-\frac{e^{i \cos ^{-1}(c x)} g}{c f+\sqrt{c^2 f^2-g^2}}\right ) c^2}{g^2 \sqrt{c^2 f^2-g^2} \sqrt{1-c^2 x^2}}-\frac{b \sqrt{d-c^2 d x^2} \log (f+g x) c}{g^2 \sqrt{1-c^2 x^2}}-\frac{b \sqrt{d-c^2 d x^2} \cos ^{-1}(c x)}{g (f+g x)}-\frac{a \sqrt{d-c^2 d x^2}}{g (f+g x)}-\frac{\sqrt{1-c^2 x^2} \sqrt{d-c^2 d x^2} \left (a+b \cos ^{-1}(c x)\right )^2}{2 b (f+g x)^2 c}-\frac{\left (f x c^2+g\right )^2 \sqrt{d-c^2 d x^2} \left (a+b \cos ^{-1}(c x)\right )^2}{2 b \left (c^2 f^2-g^2\right ) (f+g x)^2 \sqrt{1-c^2 x^2} c} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 2.69367, antiderivative size = 851, normalized size of antiderivative = 1., number of steps used = 35, number of rules used = 22, integrand size = 31, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.71, Rules used = {4778, 4766, 37, 4756, 12, 1651, 844, 216, 725, 204, 4800, 4798, 4642, 4774, 3324, 3321, 2264, 2190, 2279, 2391, 2668, 31} \[ \frac{b f^2 \sqrt{d-c^2 d x^2} \cos ^{-1}(c x)^2 c^3}{2 g^2 \left (c^2 f^2-g^2\right ) \sqrt{1-c^2 x^2}}-\frac{a f^2 \sqrt{d-c^2 d x^2} \sin ^{-1}(c x) c^3}{g^2 \left (c^2 f^2-g^2\right ) \sqrt{1-c^2 x^2}}+\frac{a f \sqrt{d-c^2 d x^2} \tan ^{-1}\left (\frac{f x c^2+g}{\sqrt{c^2 f^2-g^2} \sqrt{1-c^2 x^2}}\right ) c^2}{g^2 \sqrt{c^2 f^2-g^2} \sqrt{1-c^2 x^2}}+\frac{i b f \sqrt{d-c^2 d x^2} \cos ^{-1}(c x) \log \left (\frac{e^{i \cos ^{-1}(c x)} g}{c f-\sqrt{c^2 f^2-g^2}}+1\right ) c^2}{g^2 \sqrt{c^2 f^2-g^2} \sqrt{1-c^2 x^2}}-\frac{i b f \sqrt{d-c^2 d x^2} \cos ^{-1}(c x) \log \left (\frac{e^{i \cos ^{-1}(c x)} g}{c f+\sqrt{c^2 f^2-g^2}}+1\right ) c^2}{g^2 \sqrt{c^2 f^2-g^2} \sqrt{1-c^2 x^2}}+\frac{b f \sqrt{d-c^2 d x^2} \text{PolyLog}\left (2,-\frac{e^{i \cos ^{-1}(c x)} g}{c f-\sqrt{c^2 f^2-g^2}}\right ) c^2}{g^2 \sqrt{c^2 f^2-g^2} \sqrt{1-c^2 x^2}}-\frac{b f \sqrt{d-c^2 d x^2} \text{PolyLog}\left (2,-\frac{e^{i \cos ^{-1}(c x)} g}{c f+\sqrt{c^2 f^2-g^2}}\right ) c^2}{g^2 \sqrt{c^2 f^2-g^2} \sqrt{1-c^2 x^2}}-\frac{b \sqrt{d-c^2 d x^2} \log (f+g x) c}{g^2 \sqrt{1-c^2 x^2}}-\frac{b \sqrt{d-c^2 d x^2} \cos ^{-1}(c x)}{g (f+g x)}-\frac{a \sqrt{d-c^2 d x^2}}{g (f+g x)}-\frac{\sqrt{1-c^2 x^2} \sqrt{d-c^2 d x^2} \left (a+b \cos ^{-1}(c x)\right )^2}{2 b (f+g x)^2 c}-\frac{\left (f x c^2+g\right )^2 \sqrt{d-c^2 d x^2} \left (a+b \cos ^{-1}(c x)\right )^2}{2 b \left (c^2 f^2-g^2\right ) (f+g x)^2 \sqrt{1-c^2 x^2} c} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 4778
Rule 4766
Rule 37
Rule 4756
Rule 12
Rule 1651
Rule 844
Rule 216
Rule 725
Rule 204
Rule 4800
Rule 4798
Rule 4642
Rule 4774
Rule 3324
Rule 3321
Rule 2264
Rule 2190
Rule 2279
Rule 2391
Rule 2668
Rule 31
Rubi steps
\begin{align*} \int \frac{\sqrt{d-c^2 d x^2} \left (a+b \cos ^{-1}(c x)\right )}{(f+g x)^2} \, dx &=\frac{\sqrt{d-c^2 d x^2} \int \frac{\sqrt{1-c^2 x^2} \left (a+b \cos ^{-1}(c x)\right )}{(f+g x)^2} \, dx}{\sqrt{1-c^2 x^2}}\\ &=-\frac{\sqrt{1-c^2 x^2} \sqrt{d-c^2 d x^2} \left (a+b \cos ^{-1}(c x)\right )^2}{2 b c (f+g x)^2}+\frac{\sqrt{d-c^2 d x^2} \int \frac{\left (-2 g-2 c^2 f x\right ) \left (a+b \cos ^{-1}(c x)\right )^2}{(f+g x)^3} \, dx}{2 b c \sqrt{1-c^2 x^2}}\\ &=-\frac{\left (g+c^2 f x\right )^2 \sqrt{d-c^2 d x^2} \left (a+b \cos ^{-1}(c x)\right )^2}{2 b c \left (c^2 f^2-g^2\right ) (f+g x)^2 \sqrt{1-c^2 x^2}}-\frac{\sqrt{1-c^2 x^2} \sqrt{d-c^2 d x^2} \left (a+b \cos ^{-1}(c x)\right )^2}{2 b c (f+g x)^2}-\frac{\sqrt{d-c^2 d x^2} \int \frac{\left (g+c^2 f x\right )^2 \left (a+b \cos ^{-1}(c x)\right )}{\left (c^2 f^2-g^2\right ) (f+g x)^2 \sqrt{1-c^2 x^2}} \, dx}{\sqrt{1-c^2 x^2}}\\ &=-\frac{\left (g+c^2 f x\right )^2 \sqrt{d-c^2 d x^2} \left (a+b \cos ^{-1}(c x)\right )^2}{2 b c \left (c^2 f^2-g^2\right ) (f+g x)^2 \sqrt{1-c^2 x^2}}-\frac{\sqrt{1-c^2 x^2} \sqrt{d-c^2 d x^2} \left (a+b \cos ^{-1}(c x)\right )^2}{2 b c (f+g x)^2}-\frac{\sqrt{d-c^2 d x^2} \int \frac{\left (g+c^2 f x\right )^2 \left (a+b \cos ^{-1}(c x)\right )}{(f+g x)^2 \sqrt{1-c^2 x^2}} \, dx}{\left (c^2 f^2-g^2\right ) \sqrt{1-c^2 x^2}}\\ &=-\frac{\left (g+c^2 f x\right )^2 \sqrt{d-c^2 d x^2} \left (a+b \cos ^{-1}(c x)\right )^2}{2 b c \left (c^2 f^2-g^2\right ) (f+g x)^2 \sqrt{1-c^2 x^2}}-\frac{\sqrt{1-c^2 x^2} \sqrt{d-c^2 d x^2} \left (a+b \cos ^{-1}(c x)\right )^2}{2 b c (f+g x)^2}-\frac{\sqrt{d-c^2 d x^2} \int \left (\frac{a \left (g+c^2 f x\right )^2}{(f+g x)^2 \sqrt{1-c^2 x^2}}+\frac{b \left (g+c^2 f x\right )^2 \cos ^{-1}(c x)}{(f+g x)^2 \sqrt{1-c^2 x^2}}\right ) \, dx}{\left (c^2 f^2-g^2\right ) \sqrt{1-c^2 x^2}}\\ &=-\frac{\left (g+c^2 f x\right )^2 \sqrt{d-c^2 d x^2} \left (a+b \cos ^{-1}(c x)\right )^2}{2 b c \left (c^2 f^2-g^2\right ) (f+g x)^2 \sqrt{1-c^2 x^2}}-\frac{\sqrt{1-c^2 x^2} \sqrt{d-c^2 d x^2} \left (a+b \cos ^{-1}(c x)\right )^2}{2 b c (f+g x)^2}-\frac{\left (a \sqrt{d-c^2 d x^2}\right ) \int \frac{\left (g+c^2 f x\right )^2}{(f+g x)^2 \sqrt{1-c^2 x^2}} \, dx}{\left (c^2 f^2-g^2\right ) \sqrt{1-c^2 x^2}}-\frac{\left (b \sqrt{d-c^2 d x^2}\right ) \int \frac{\left (g+c^2 f x\right )^2 \cos ^{-1}(c x)}{(f+g x)^2 \sqrt{1-c^2 x^2}} \, dx}{\left (c^2 f^2-g^2\right ) \sqrt{1-c^2 x^2}}\\ &=-\frac{a \sqrt{d-c^2 d x^2}}{g (f+g x)}-\frac{\left (g+c^2 f x\right )^2 \sqrt{d-c^2 d x^2} \left (a+b \cos ^{-1}(c x)\right )^2}{2 b c \left (c^2 f^2-g^2\right ) (f+g x)^2 \sqrt{1-c^2 x^2}}-\frac{\sqrt{1-c^2 x^2} \sqrt{d-c^2 d x^2} \left (a+b \cos ^{-1}(c x)\right )^2}{2 b c (f+g x)^2}-\frac{\left (a \sqrt{d-c^2 d x^2}\right ) \int \frac{c^2 f \left (c^2 f^2-g^2\right )+c^4 f^2 \left (\frac{c^2 f^2}{g}-g\right ) x}{(f+g x) \sqrt{1-c^2 x^2}} \, dx}{\left (c^2 f^2-g^2\right )^2 \sqrt{1-c^2 x^2}}-\frac{\left (b \sqrt{d-c^2 d x^2}\right ) \int \left (\frac{c^4 f^2 \cos ^{-1}(c x)}{g^2 \sqrt{1-c^2 x^2}}+\frac{\left (-c^2 f^2+g^2\right )^2 \cos ^{-1}(c x)}{g^2 (f+g x)^2 \sqrt{1-c^2 x^2}}+\frac{2 c^2 f \left (-c^2 f^2+g^2\right ) \cos ^{-1}(c x)}{g^2 (f+g x) \sqrt{1-c^2 x^2}}\right ) \, dx}{\left (c^2 f^2-g^2\right ) \sqrt{1-c^2 x^2}}\\ &=-\frac{a \sqrt{d-c^2 d x^2}}{g (f+g x)}-\frac{\left (g+c^2 f x\right )^2 \sqrt{d-c^2 d x^2} \left (a+b \cos ^{-1}(c x)\right )^2}{2 b c \left (c^2 f^2-g^2\right ) (f+g x)^2 \sqrt{1-c^2 x^2}}-\frac{\sqrt{1-c^2 x^2} \sqrt{d-c^2 d x^2} \left (a+b \cos ^{-1}(c x)\right )^2}{2 b c (f+g x)^2}+\frac{\left (a c^2 f \sqrt{d-c^2 d x^2}\right ) \int \frac{1}{(f+g x) \sqrt{1-c^2 x^2}} \, dx}{g^2 \sqrt{1-c^2 x^2}}+\frac{\left (a c^4 f^2 \left (1-\frac{c^2 f^2}{g^2}\right ) \sqrt{d-c^2 d x^2}\right ) \int \frac{1}{\sqrt{1-c^2 x^2}} \, dx}{\left (c^2 f^2-g^2\right )^2 \sqrt{1-c^2 x^2}}-\frac{\left (b c^4 f^2 \sqrt{d-c^2 d x^2}\right ) \int \frac{\cos ^{-1}(c x)}{\sqrt{1-c^2 x^2}} \, dx}{g^2 \left (c^2 f^2-g^2\right ) \sqrt{1-c^2 x^2}}-\frac{\left (b \left (c^2 f^2-g^2\right ) \sqrt{d-c^2 d x^2}\right ) \int \frac{\cos ^{-1}(c x)}{(f+g x)^2 \sqrt{1-c^2 x^2}} \, dx}{g^2 \sqrt{1-c^2 x^2}}-\frac{\left (2 b c^2 f \left (-c^2 f^2+g^2\right ) \sqrt{d-c^2 d x^2}\right ) \int \frac{\cos ^{-1}(c x)}{(f+g x) \sqrt{1-c^2 x^2}} \, dx}{g^2 \left (c^2 f^2-g^2\right ) \sqrt{1-c^2 x^2}}\\ &=-\frac{a \sqrt{d-c^2 d x^2}}{g (f+g x)}+\frac{b c^3 f^2 \sqrt{d-c^2 d x^2} \cos ^{-1}(c x)^2}{2 g^2 \left (c^2 f^2-g^2\right ) \sqrt{1-c^2 x^2}}-\frac{\left (g+c^2 f x\right )^2 \sqrt{d-c^2 d x^2} \left (a+b \cos ^{-1}(c x)\right )^2}{2 b c \left (c^2 f^2-g^2\right ) (f+g x)^2 \sqrt{1-c^2 x^2}}-\frac{\sqrt{1-c^2 x^2} \sqrt{d-c^2 d x^2} \left (a+b \cos ^{-1}(c x)\right )^2}{2 b c (f+g x)^2}-\frac{a c^3 f^2 \sqrt{d-c^2 d x^2} \sin ^{-1}(c x)}{g^2 \left (c^2 f^2-g^2\right ) \sqrt{1-c^2 x^2}}-\frac{\left (a c^2 f \sqrt{d-c^2 d x^2}\right ) \operatorname{Subst}\left (\int \frac{1}{-c^2 f^2+g^2-x^2} \, dx,x,\frac{g+c^2 f x}{\sqrt{1-c^2 x^2}}\right )}{g^2 \sqrt{1-c^2 x^2}}+\frac{\left (b c \left (c^2 f^2-g^2\right ) \sqrt{d-c^2 d x^2}\right ) \operatorname{Subst}\left (\int \frac{x}{(c f+g \cos (x))^2} \, dx,x,\cos ^{-1}(c x)\right )}{g^2 \sqrt{1-c^2 x^2}}+\frac{\left (2 b c^2 f \left (-c^2 f^2+g^2\right ) \sqrt{d-c^2 d x^2}\right ) \operatorname{Subst}\left (\int \frac{x}{c f+g \cos (x)} \, dx,x,\cos ^{-1}(c x)\right )}{g^2 \left (c^2 f^2-g^2\right ) \sqrt{1-c^2 x^2}}\\ &=-\frac{a \sqrt{d-c^2 d x^2}}{g (f+g x)}-\frac{b \sqrt{d-c^2 d x^2} \cos ^{-1}(c x)}{g (f+g x)}+\frac{b c^3 f^2 \sqrt{d-c^2 d x^2} \cos ^{-1}(c x)^2}{2 g^2 \left (c^2 f^2-g^2\right ) \sqrt{1-c^2 x^2}}-\frac{\left (g+c^2 f x\right )^2 \sqrt{d-c^2 d x^2} \left (a+b \cos ^{-1}(c x)\right )^2}{2 b c \left (c^2 f^2-g^2\right ) (f+g x)^2 \sqrt{1-c^2 x^2}}-\frac{\sqrt{1-c^2 x^2} \sqrt{d-c^2 d x^2} \left (a+b \cos ^{-1}(c x)\right )^2}{2 b c (f+g x)^2}-\frac{a c^3 f^2 \sqrt{d-c^2 d x^2} \sin ^{-1}(c x)}{g^2 \left (c^2 f^2-g^2\right ) \sqrt{1-c^2 x^2}}+\frac{a c^2 f \sqrt{d-c^2 d x^2} \tan ^{-1}\left (\frac{g+c^2 f x}{\sqrt{c^2 f^2-g^2} \sqrt{1-c^2 x^2}}\right )}{g^2 \sqrt{c^2 f^2-g^2} \sqrt{1-c^2 x^2}}+\frac{\left (b c^2 f \sqrt{d-c^2 d x^2}\right ) \operatorname{Subst}\left (\int \frac{x}{c f+g \cos (x)} \, dx,x,\cos ^{-1}(c x)\right )}{g^2 \sqrt{1-c^2 x^2}}+\frac{\left (b c \sqrt{d-c^2 d x^2}\right ) \operatorname{Subst}\left (\int \frac{\sin (x)}{c f+g \cos (x)} \, dx,x,\cos ^{-1}(c x)\right )}{g \sqrt{1-c^2 x^2}}+\frac{\left (4 b c^2 f \left (-c^2 f^2+g^2\right ) \sqrt{d-c^2 d x^2}\right ) \operatorname{Subst}\left (\int \frac{e^{i x} x}{2 c e^{i x} f+g+e^{2 i x} g} \, dx,x,\cos ^{-1}(c x)\right )}{g^2 \left (c^2 f^2-g^2\right ) \sqrt{1-c^2 x^2}}\\ &=-\frac{a \sqrt{d-c^2 d x^2}}{g (f+g x)}-\frac{b \sqrt{d-c^2 d x^2} \cos ^{-1}(c x)}{g (f+g x)}+\frac{b c^3 f^2 \sqrt{d-c^2 d x^2} \cos ^{-1}(c x)^2}{2 g^2 \left (c^2 f^2-g^2\right ) \sqrt{1-c^2 x^2}}-\frac{\left (g+c^2 f x\right )^2 \sqrt{d-c^2 d x^2} \left (a+b \cos ^{-1}(c x)\right )^2}{2 b c \left (c^2 f^2-g^2\right ) (f+g x)^2 \sqrt{1-c^2 x^2}}-\frac{\sqrt{1-c^2 x^2} \sqrt{d-c^2 d x^2} \left (a+b \cos ^{-1}(c x)\right )^2}{2 b c (f+g x)^2}-\frac{a c^3 f^2 \sqrt{d-c^2 d x^2} \sin ^{-1}(c x)}{g^2 \left (c^2 f^2-g^2\right ) \sqrt{1-c^2 x^2}}+\frac{a c^2 f \sqrt{d-c^2 d x^2} \tan ^{-1}\left (\frac{g+c^2 f x}{\sqrt{c^2 f^2-g^2} \sqrt{1-c^2 x^2}}\right )}{g^2 \sqrt{c^2 f^2-g^2} \sqrt{1-c^2 x^2}}-\frac{\left (b c \sqrt{d-c^2 d x^2}\right ) \operatorname{Subst}\left (\int \frac{1}{c f+x} \, dx,x,c g x\right )}{g^2 \sqrt{1-c^2 x^2}}+\frac{\left (2 b c^2 f \sqrt{d-c^2 d x^2}\right ) \operatorname{Subst}\left (\int \frac{e^{i x} x}{2 c e^{i x} f+g+e^{2 i x} g} \, dx,x,\cos ^{-1}(c x)\right )}{g^2 \sqrt{1-c^2 x^2}}+\frac{\left (4 b c^2 f \left (-c^2 f^2+g^2\right ) \sqrt{d-c^2 d x^2}\right ) \operatorname{Subst}\left (\int \frac{e^{i x} x}{2 c f+2 e^{i x} g-2 \sqrt{c^2 f^2-g^2}} \, dx,x,\cos ^{-1}(c x)\right )}{g \left (c^2 f^2-g^2\right )^{3/2} \sqrt{1-c^2 x^2}}-\frac{\left (4 b c^2 f \left (-c^2 f^2+g^2\right ) \sqrt{d-c^2 d x^2}\right ) \operatorname{Subst}\left (\int \frac{e^{i x} x}{2 c f+2 e^{i x} g+2 \sqrt{c^2 f^2-g^2}} \, dx,x,\cos ^{-1}(c x)\right )}{g \left (c^2 f^2-g^2\right )^{3/2} \sqrt{1-c^2 x^2}}\\ &=-\frac{a \sqrt{d-c^2 d x^2}}{g (f+g x)}-\frac{b \sqrt{d-c^2 d x^2} \cos ^{-1}(c x)}{g (f+g x)}+\frac{b c^3 f^2 \sqrt{d-c^2 d x^2} \cos ^{-1}(c x)^2}{2 g^2 \left (c^2 f^2-g^2\right ) \sqrt{1-c^2 x^2}}-\frac{\left (g+c^2 f x\right )^2 \sqrt{d-c^2 d x^2} \left (a+b \cos ^{-1}(c x)\right )^2}{2 b c \left (c^2 f^2-g^2\right ) (f+g x)^2 \sqrt{1-c^2 x^2}}-\frac{\sqrt{1-c^2 x^2} \sqrt{d-c^2 d x^2} \left (a+b \cos ^{-1}(c x)\right )^2}{2 b c (f+g x)^2}-\frac{a c^3 f^2 \sqrt{d-c^2 d x^2} \sin ^{-1}(c x)}{g^2 \left (c^2 f^2-g^2\right ) \sqrt{1-c^2 x^2}}+\frac{a c^2 f \sqrt{d-c^2 d x^2} \tan ^{-1}\left (\frac{g+c^2 f x}{\sqrt{c^2 f^2-g^2} \sqrt{1-c^2 x^2}}\right )}{g^2 \sqrt{c^2 f^2-g^2} \sqrt{1-c^2 x^2}}+\frac{2 i b c^2 f \sqrt{d-c^2 d x^2} \cos ^{-1}(c x) \log \left (1+\frac{e^{i \cos ^{-1}(c x)} g}{c f-\sqrt{c^2 f^2-g^2}}\right )}{g^2 \sqrt{c^2 f^2-g^2} \sqrt{1-c^2 x^2}}-\frac{2 i b c^2 f \sqrt{d-c^2 d x^2} \cos ^{-1}(c x) \log \left (1+\frac{e^{i \cos ^{-1}(c x)} g}{c f+\sqrt{c^2 f^2-g^2}}\right )}{g^2 \sqrt{c^2 f^2-g^2} \sqrt{1-c^2 x^2}}-\frac{b c \sqrt{d-c^2 d x^2} \log (f+g x)}{g^2 \sqrt{1-c^2 x^2}}+\frac{\left (2 b c^2 f \sqrt{d-c^2 d x^2}\right ) \operatorname{Subst}\left (\int \frac{e^{i x} x}{2 c f+2 e^{i x} g-2 \sqrt{c^2 f^2-g^2}} \, dx,x,\cos ^{-1}(c x)\right )}{g \sqrt{c^2 f^2-g^2} \sqrt{1-c^2 x^2}}-\frac{\left (2 b c^2 f \sqrt{d-c^2 d x^2}\right ) \operatorname{Subst}\left (\int \frac{e^{i x} x}{2 c f+2 e^{i x} g+2 \sqrt{c^2 f^2-g^2}} \, dx,x,\cos ^{-1}(c x)\right )}{g \sqrt{c^2 f^2-g^2} \sqrt{1-c^2 x^2}}+\frac{\left (2 i b c^2 f \left (-c^2 f^2+g^2\right ) \sqrt{d-c^2 d x^2}\right ) \operatorname{Subst}\left (\int \log \left (1+\frac{2 e^{i x} g}{2 c f-2 \sqrt{c^2 f^2-g^2}}\right ) \, dx,x,\cos ^{-1}(c x)\right )}{g^2 \left (c^2 f^2-g^2\right )^{3/2} \sqrt{1-c^2 x^2}}-\frac{\left (2 i b c^2 f \left (-c^2 f^2+g^2\right ) \sqrt{d-c^2 d x^2}\right ) \operatorname{Subst}\left (\int \log \left (1+\frac{2 e^{i x} g}{2 c f+2 \sqrt{c^2 f^2-g^2}}\right ) \, dx,x,\cos ^{-1}(c x)\right )}{g^2 \left (c^2 f^2-g^2\right )^{3/2} \sqrt{1-c^2 x^2}}\\ &=-\frac{a \sqrt{d-c^2 d x^2}}{g (f+g x)}-\frac{b \sqrt{d-c^2 d x^2} \cos ^{-1}(c x)}{g (f+g x)}+\frac{b c^3 f^2 \sqrt{d-c^2 d x^2} \cos ^{-1}(c x)^2}{2 g^2 \left (c^2 f^2-g^2\right ) \sqrt{1-c^2 x^2}}-\frac{\left (g+c^2 f x\right )^2 \sqrt{d-c^2 d x^2} \left (a+b \cos ^{-1}(c x)\right )^2}{2 b c \left (c^2 f^2-g^2\right ) (f+g x)^2 \sqrt{1-c^2 x^2}}-\frac{\sqrt{1-c^2 x^2} \sqrt{d-c^2 d x^2} \left (a+b \cos ^{-1}(c x)\right )^2}{2 b c (f+g x)^2}-\frac{a c^3 f^2 \sqrt{d-c^2 d x^2} \sin ^{-1}(c x)}{g^2 \left (c^2 f^2-g^2\right ) \sqrt{1-c^2 x^2}}+\frac{a c^2 f \sqrt{d-c^2 d x^2} \tan ^{-1}\left (\frac{g+c^2 f x}{\sqrt{c^2 f^2-g^2} \sqrt{1-c^2 x^2}}\right )}{g^2 \sqrt{c^2 f^2-g^2} \sqrt{1-c^2 x^2}}+\frac{i b c^2 f \sqrt{d-c^2 d x^2} \cos ^{-1}(c x) \log \left (1+\frac{e^{i \cos ^{-1}(c x)} g}{c f-\sqrt{c^2 f^2-g^2}}\right )}{g^2 \sqrt{c^2 f^2-g^2} \sqrt{1-c^2 x^2}}-\frac{i b c^2 f \sqrt{d-c^2 d x^2} \cos ^{-1}(c x) \log \left (1+\frac{e^{i \cos ^{-1}(c x)} g}{c f+\sqrt{c^2 f^2-g^2}}\right )}{g^2 \sqrt{c^2 f^2-g^2} \sqrt{1-c^2 x^2}}-\frac{b c \sqrt{d-c^2 d x^2} \log (f+g x)}{g^2 \sqrt{1-c^2 x^2}}+\frac{\left (i b c^2 f \sqrt{d-c^2 d x^2}\right ) \operatorname{Subst}\left (\int \log \left (1+\frac{2 e^{i x} g}{2 c f-2 \sqrt{c^2 f^2-g^2}}\right ) \, dx,x,\cos ^{-1}(c x)\right )}{g^2 \sqrt{c^2 f^2-g^2} \sqrt{1-c^2 x^2}}-\frac{\left (i b c^2 f \sqrt{d-c^2 d x^2}\right ) \operatorname{Subst}\left (\int \log \left (1+\frac{2 e^{i x} g}{2 c f+2 \sqrt{c^2 f^2-g^2}}\right ) \, dx,x,\cos ^{-1}(c x)\right )}{g^2 \sqrt{c^2 f^2-g^2} \sqrt{1-c^2 x^2}}+\frac{\left (2 b c^2 f \left (-c^2 f^2+g^2\right ) \sqrt{d-c^2 d x^2}\right ) \operatorname{Subst}\left (\int \frac{\log \left (1+\frac{2 g x}{2 c f-2 \sqrt{c^2 f^2-g^2}}\right )}{x} \, dx,x,e^{i \cos ^{-1}(c x)}\right )}{g^2 \left (c^2 f^2-g^2\right )^{3/2} \sqrt{1-c^2 x^2}}-\frac{\left (2 b c^2 f \left (-c^2 f^2+g^2\right ) \sqrt{d-c^2 d x^2}\right ) \operatorname{Subst}\left (\int \frac{\log \left (1+\frac{2 g x}{2 c f+2 \sqrt{c^2 f^2-g^2}}\right )}{x} \, dx,x,e^{i \cos ^{-1}(c x)}\right )}{g^2 \left (c^2 f^2-g^2\right )^{3/2} \sqrt{1-c^2 x^2}}\\ &=-\frac{a \sqrt{d-c^2 d x^2}}{g (f+g x)}-\frac{b \sqrt{d-c^2 d x^2} \cos ^{-1}(c x)}{g (f+g x)}+\frac{b c^3 f^2 \sqrt{d-c^2 d x^2} \cos ^{-1}(c x)^2}{2 g^2 \left (c^2 f^2-g^2\right ) \sqrt{1-c^2 x^2}}-\frac{\left (g+c^2 f x\right )^2 \sqrt{d-c^2 d x^2} \left (a+b \cos ^{-1}(c x)\right )^2}{2 b c \left (c^2 f^2-g^2\right ) (f+g x)^2 \sqrt{1-c^2 x^2}}-\frac{\sqrt{1-c^2 x^2} \sqrt{d-c^2 d x^2} \left (a+b \cos ^{-1}(c x)\right )^2}{2 b c (f+g x)^2}-\frac{a c^3 f^2 \sqrt{d-c^2 d x^2} \sin ^{-1}(c x)}{g^2 \left (c^2 f^2-g^2\right ) \sqrt{1-c^2 x^2}}+\frac{a c^2 f \sqrt{d-c^2 d x^2} \tan ^{-1}\left (\frac{g+c^2 f x}{\sqrt{c^2 f^2-g^2} \sqrt{1-c^2 x^2}}\right )}{g^2 \sqrt{c^2 f^2-g^2} \sqrt{1-c^2 x^2}}+\frac{i b c^2 f \sqrt{d-c^2 d x^2} \cos ^{-1}(c x) \log \left (1+\frac{e^{i \cos ^{-1}(c x)} g}{c f-\sqrt{c^2 f^2-g^2}}\right )}{g^2 \sqrt{c^2 f^2-g^2} \sqrt{1-c^2 x^2}}-\frac{i b c^2 f \sqrt{d-c^2 d x^2} \cos ^{-1}(c x) \log \left (1+\frac{e^{i \cos ^{-1}(c x)} g}{c f+\sqrt{c^2 f^2-g^2}}\right )}{g^2 \sqrt{c^2 f^2-g^2} \sqrt{1-c^2 x^2}}-\frac{b c \sqrt{d-c^2 d x^2} \log (f+g x)}{g^2 \sqrt{1-c^2 x^2}}+\frac{2 b c^2 f \sqrt{d-c^2 d x^2} \text{Li}_2\left (-\frac{e^{i \cos ^{-1}(c x)} g}{c f-\sqrt{c^2 f^2-g^2}}\right )}{g^2 \sqrt{c^2 f^2-g^2} \sqrt{1-c^2 x^2}}-\frac{2 b c^2 f \sqrt{d-c^2 d x^2} \text{Li}_2\left (-\frac{e^{i \cos ^{-1}(c x)} g}{c f+\sqrt{c^2 f^2-g^2}}\right )}{g^2 \sqrt{c^2 f^2-g^2} \sqrt{1-c^2 x^2}}+\frac{\left (b c^2 f \sqrt{d-c^2 d x^2}\right ) \operatorname{Subst}\left (\int \frac{\log \left (1+\frac{2 g x}{2 c f-2 \sqrt{c^2 f^2-g^2}}\right )}{x} \, dx,x,e^{i \cos ^{-1}(c x)}\right )}{g^2 \sqrt{c^2 f^2-g^2} \sqrt{1-c^2 x^2}}-\frac{\left (b c^2 f \sqrt{d-c^2 d x^2}\right ) \operatorname{Subst}\left (\int \frac{\log \left (1+\frac{2 g x}{2 c f+2 \sqrt{c^2 f^2-g^2}}\right )}{x} \, dx,x,e^{i \cos ^{-1}(c x)}\right )}{g^2 \sqrt{c^2 f^2-g^2} \sqrt{1-c^2 x^2}}\\ &=-\frac{a \sqrt{d-c^2 d x^2}}{g (f+g x)}-\frac{b \sqrt{d-c^2 d x^2} \cos ^{-1}(c x)}{g (f+g x)}+\frac{b c^3 f^2 \sqrt{d-c^2 d x^2} \cos ^{-1}(c x)^2}{2 g^2 \left (c^2 f^2-g^2\right ) \sqrt{1-c^2 x^2}}-\frac{\left (g+c^2 f x\right )^2 \sqrt{d-c^2 d x^2} \left (a+b \cos ^{-1}(c x)\right )^2}{2 b c \left (c^2 f^2-g^2\right ) (f+g x)^2 \sqrt{1-c^2 x^2}}-\frac{\sqrt{1-c^2 x^2} \sqrt{d-c^2 d x^2} \left (a+b \cos ^{-1}(c x)\right )^2}{2 b c (f+g x)^2}-\frac{a c^3 f^2 \sqrt{d-c^2 d x^2} \sin ^{-1}(c x)}{g^2 \left (c^2 f^2-g^2\right ) \sqrt{1-c^2 x^2}}+\frac{a c^2 f \sqrt{d-c^2 d x^2} \tan ^{-1}\left (\frac{g+c^2 f x}{\sqrt{c^2 f^2-g^2} \sqrt{1-c^2 x^2}}\right )}{g^2 \sqrt{c^2 f^2-g^2} \sqrt{1-c^2 x^2}}+\frac{i b c^2 f \sqrt{d-c^2 d x^2} \cos ^{-1}(c x) \log \left (1+\frac{e^{i \cos ^{-1}(c x)} g}{c f-\sqrt{c^2 f^2-g^2}}\right )}{g^2 \sqrt{c^2 f^2-g^2} \sqrt{1-c^2 x^2}}-\frac{i b c^2 f \sqrt{d-c^2 d x^2} \cos ^{-1}(c x) \log \left (1+\frac{e^{i \cos ^{-1}(c x)} g}{c f+\sqrt{c^2 f^2-g^2}}\right )}{g^2 \sqrt{c^2 f^2-g^2} \sqrt{1-c^2 x^2}}-\frac{b c \sqrt{d-c^2 d x^2} \log (f+g x)}{g^2 \sqrt{1-c^2 x^2}}+\frac{b c^2 f \sqrt{d-c^2 d x^2} \text{Li}_2\left (-\frac{e^{i \cos ^{-1}(c x)} g}{c f-\sqrt{c^2 f^2-g^2}}\right )}{g^2 \sqrt{c^2 f^2-g^2} \sqrt{1-c^2 x^2}}-\frac{b c^2 f \sqrt{d-c^2 d x^2} \text{Li}_2\left (-\frac{e^{i \cos ^{-1}(c x)} g}{c f+\sqrt{c^2 f^2-g^2}}\right )}{g^2 \sqrt{c^2 f^2-g^2} \sqrt{1-c^2 x^2}}\\ \end{align*}
Mathematica [A] time = 9.48203, size = 1130, normalized size = 1.33 \[ \frac{a \sqrt{d} f \log (f+g x) c^2}{g^2 \sqrt{g^2-c^2 f^2}}-\frac{a \sqrt{d} f \log \left (d f x c^2+d g+\sqrt{d} \sqrt{g^2-c^2 f^2} \sqrt{-d \left (c^2 x^2-1\right )}\right ) c^2}{g^2 \sqrt{g^2-c^2 f^2}}+\frac{a \sqrt{d} \tan ^{-1}\left (\frac{c x \sqrt{-d \left (c^2 x^2-1\right )}}{\sqrt{d} \left (c^2 x^2-1\right )}\right ) c}{g^2}-\frac{b \sqrt{d \left (1-c^2 x^2\right )} \left (-\frac{\cos ^{-1}(c x)^2}{\sqrt{1-c^2 x^2}}+\frac{2 g \cos ^{-1}(c x)}{c f+c g x}+\frac{2 \log \left (\frac{g x}{f}+1\right )}{\sqrt{1-c^2 x^2}}+\frac{2 c f \left (2 \cos ^{-1}(c x) \tanh ^{-1}\left (\frac{(c f+g) \cot \left (\frac{1}{2} \cos ^{-1}(c x)\right )}{\sqrt{g^2-c^2 f^2}}\right )-2 \cos ^{-1}\left (-\frac{c f}{g}\right ) \tanh ^{-1}\left (\frac{(g-c f) \tan \left (\frac{1}{2} \cos ^{-1}(c x)\right )}{\sqrt{g^2-c^2 f^2}}\right )+\left (\cos ^{-1}\left (-\frac{c f}{g}\right )-2 i \tanh ^{-1}\left (\frac{(c f+g) \cot \left (\frac{1}{2} \cos ^{-1}(c x)\right )}{\sqrt{g^2-c^2 f^2}}\right )+2 i \tanh ^{-1}\left (\frac{(g-c f) \tan \left (\frac{1}{2} \cos ^{-1}(c x)\right )}{\sqrt{g^2-c^2 f^2}}\right )\right ) \log \left (\frac{e^{-\frac{1}{2} i \cos ^{-1}(c x)} \sqrt{g^2-c^2 f^2}}{\sqrt{2} \sqrt{g} \sqrt{c f+c g x}}\right )+\left (\cos ^{-1}\left (-\frac{c f}{g}\right )+2 i \left (\tanh ^{-1}\left (\frac{(c f+g) \cot \left (\frac{1}{2} \cos ^{-1}(c x)\right )}{\sqrt{g^2-c^2 f^2}}\right )-\tanh ^{-1}\left (\frac{(g-c f) \tan \left (\frac{1}{2} \cos ^{-1}(c x)\right )}{\sqrt{g^2-c^2 f^2}}\right )\right )\right ) \log \left (\frac{e^{\frac{1}{2} i \cos ^{-1}(c x)} \sqrt{g^2-c^2 f^2}}{\sqrt{2} \sqrt{g} \sqrt{c f+c g x}}\right )-\left (\cos ^{-1}\left (-\frac{c f}{g}\right )-2 i \tanh ^{-1}\left (\frac{(g-c f) \tan \left (\frac{1}{2} \cos ^{-1}(c x)\right )}{\sqrt{g^2-c^2 f^2}}\right )\right ) \log \left (\frac{(c f+g) \left (-i c f+i g+\sqrt{g^2-c^2 f^2}\right ) \left (\tan \left (\frac{1}{2} \cos ^{-1}(c x)\right )-i\right )}{g \left (c f+g+\sqrt{g^2-c^2 f^2} \tan \left (\frac{1}{2} \cos ^{-1}(c x)\right )\right )}\right )-\left (\cos ^{-1}\left (-\frac{c f}{g}\right )+2 i \tanh ^{-1}\left (\frac{(g-c f) \tan \left (\frac{1}{2} \cos ^{-1}(c x)\right )}{\sqrt{g^2-c^2 f^2}}\right )\right ) \log \left (\frac{(c f+g) \left (i c f-i g+\sqrt{g^2-c^2 f^2}\right ) \left (\tan \left (\frac{1}{2} \cos ^{-1}(c x)\right )+i\right )}{g \left (c f+g+\sqrt{g^2-c^2 f^2} \tan \left (\frac{1}{2} \cos ^{-1}(c x)\right )\right )}\right )+i \left (\text{PolyLog}\left (2,\frac{\left (c f-i \sqrt{g^2-c^2 f^2}\right ) \left (c f+g-\sqrt{g^2-c^2 f^2} \tan \left (\frac{1}{2} \cos ^{-1}(c x)\right )\right )}{g \left (c f+g+\sqrt{g^2-c^2 f^2} \tan \left (\frac{1}{2} \cos ^{-1}(c x)\right )\right )}\right )-\text{PolyLog}\left (2,\frac{\left (c f+i \sqrt{g^2-c^2 f^2}\right ) \left (c f+g-\sqrt{g^2-c^2 f^2} \tan \left (\frac{1}{2} \cos ^{-1}(c x)\right )\right )}{g \left (c f+g+\sqrt{g^2-c^2 f^2} \tan \left (\frac{1}{2} \cos ^{-1}(c x)\right )\right )}\right )\right )\right )}{\sqrt{g^2-c^2 f^2} \sqrt{1-c^2 x^2}}\right ) c}{2 g^2}-\frac{a \sqrt{-d \left (c^2 x^2-1\right )}}{g (f+g x)} \]
Warning: Unable to verify antiderivative.
[In]
[Out]
________________________________________________________________________________________
Maple [C] time = 0.476, size = 1573, normalized size = 1.9 \begin{align*} \text{result too large to display} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F(-2)] time = 0., size = 0, normalized size = 0. \begin{align*} \text{Exception raised: ValueError} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [F] time = 0., size = 0, normalized size = 0. \begin{align*}{\rm integral}\left (\frac{\sqrt{-c^{2} d x^{2} + d}{\left (b \arccos \left (c x\right ) + a\right )}}{g^{2} x^{2} + 2 \, f g x + f^{2}}, x\right ) \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int \frac{\sqrt{- d \left (c x - 1\right ) \left (c x + 1\right )} \left (a + b \operatorname{acos}{\left (c x \right )}\right )}{\left (f + g x\right )^{2}}\, dx \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int \frac{\sqrt{-c^{2} d x^{2} + d}{\left (b \arccos \left (c x\right ) + a\right )}}{{\left (g x + f\right )}^{2}}\,{d x} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]