Optimal. Leaf size=781 \[ -\frac {a \sqrt {d+c^2 d x^2}}{g (f+g x)}-\frac {b \sqrt {d+c^2 d x^2} \sinh ^{-1}(c x)}{g (f+g x)}+\frac {a c^3 f^2 \sqrt {d+c^2 d x^2} \sinh ^{-1}(c x)}{g^2 \left (c^2 f^2+g^2\right ) \sqrt {1+c^2 x^2}}+\frac {b c^3 f^2 \sqrt {d+c^2 d x^2} \sinh ^{-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 \sinh ^{-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 \sinh ^{-1}(c x)\right )^2}{2 b c (f+g x)^2}+\frac {a c^2 f \sqrt {d+c^2 d x^2} \tanh ^{-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 {b c^2 f \sqrt {d+c^2 d x^2} \sinh ^{-1}(c x) \log \left (1+\frac {e^{\sinh ^{-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} \sinh ^{-1}(c x) \log \left (1+\frac {e^{\sinh ^{-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 {PolyLog}\left (2,-\frac {e^{\sinh ^{-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 {PolyLog}\left (2,-\frac {e^{\sinh ^{-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}} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 1.76, antiderivative size = 781, normalized size of antiderivative = 1.00, number of steps
used = 35, number of rules used = 22, integrand size = 30, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.733, Rules used = {5845, 5839,
37, 5834, 12, 1665, 858, 221, 739, 212, 5856, 5855, 5783, 5843, 3405, 3403, 2296, 2221, 2317, 2438,
2747, 31} \begin {gather*} -\frac {\sqrt {c^2 d x^2+d} \left (g-c^2 f x\right )^2 \left (a+b \sinh ^{-1}(c x)\right )^2}{2 b c \sqrt {c^2 x^2+1} \left (c^2 f^2+g^2\right ) (f+g x)^2}+\frac {\sqrt {c^2 x^2+1} \sqrt {c^2 d x^2+d} \left (a+b \sinh ^{-1}(c x)\right )^2}{2 b c (f+g x)^2}+\frac {a c^2 f \sqrt {c^2 d x^2+d} \tanh ^{-1}\left (\frac {g-c^2 f x}{\sqrt {c^2 x^2+1} \sqrt {c^2 f^2+g^2}}\right )}{g^2 \sqrt {c^2 x^2+1} \sqrt {c^2 f^2+g^2}}-\frac {a \sqrt {c^2 d x^2+d}}{g (f+g x)}+\frac {a c^3 f^2 \sqrt {c^2 d x^2+d} \sinh ^{-1}(c x)}{g^2 \sqrt {c^2 x^2+1} \left (c^2 f^2+g^2\right )}-\frac {b c^2 f \sqrt {c^2 d x^2+d} \text {Li}_2\left (-\frac {e^{\sinh ^{-1}(c x)} g}{c f-\sqrt {c^2 f^2+g^2}}\right )}{g^2 \sqrt {c^2 x^2+1} \sqrt {c^2 f^2+g^2}}+\frac {b c^2 f \sqrt {c^2 d x^2+d} \text {Li}_2\left (-\frac {e^{\sinh ^{-1}(c x)} g}{c f+\sqrt {c^2 f^2+g^2}}\right )}{g^2 \sqrt {c^2 x^2+1} \sqrt {c^2 f^2+g^2}}-\frac {b c^2 f \sqrt {c^2 d x^2+d} \sinh ^{-1}(c x) \log \left (\frac {g e^{\sinh ^{-1}(c x)}}{c f-\sqrt {c^2 f^2+g^2}}+1\right )}{g^2 \sqrt {c^2 x^2+1} \sqrt {c^2 f^2+g^2}}+\frac {b c^2 f \sqrt {c^2 d x^2+d} \sinh ^{-1}(c x) \log \left (\frac {g e^{\sinh ^{-1}(c x)}}{\sqrt {c^2 f^2+g^2}+c f}+1\right )}{g^2 \sqrt {c^2 x^2+1} \sqrt {c^2 f^2+g^2}}+\frac {b c \sqrt {c^2 d x^2+d} \log (f+g x)}{g^2 \sqrt {c^2 x^2+1}}-\frac {b \sqrt {c^2 d x^2+d} \sinh ^{-1}(c x)}{g (f+g x)}+\frac {b c^3 f^2 \sqrt {c^2 d x^2+d} \sinh ^{-1}(c x)^2}{2 g^2 \sqrt {c^2 x^2+1} \left (c^2 f^2+g^2\right )} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 12
Rule 31
Rule 37
Rule 212
Rule 221
Rule 739
Rule 858
Rule 1665
Rule 2221
Rule 2296
Rule 2317
Rule 2438
Rule 2747
Rule 3403
Rule 3405
Rule 5783
Rule 5834
Rule 5839
Rule 5843
Rule 5845
Rule 5855
Rule 5856
Rubi steps
\begin {align*} \int \frac {\sqrt {d+c^2 d x^2} \left (a+b \sinh ^{-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 \sinh ^{-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 \sinh ^{-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 \sinh ^{-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 \sinh ^{-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 \sinh ^{-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 \sinh ^{-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 \sinh ^{-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 \sinh ^{-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 \sinh ^{-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 \sinh ^{-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 \sinh ^{-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 \sinh ^{-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 \sinh ^{-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 \sinh ^{-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 \sinh ^{-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 \sinh ^{-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 \sinh ^{-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 \sinh ^{-1}(c x)}{g^2 \sqrt {1+c^2 x^2}}+\frac {\left (c^2 f^2+g^2\right )^2 \sinh ^{-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 ) \sinh ^{-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 \sinh ^{-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 \sinh ^{-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 (2 b c^2 f \sqrt {d+c^2 d x^2}\right ) \int \frac {\sinh ^{-1}(c x)}{(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 (\frac {c^2 f^2}{g}+g\right ) \sqrt {d+c^2 d x^2}\right ) \int \frac {1}{\sqrt {1+c^2 x^2}} \, dx}{g \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 {\sinh ^{-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 {\sinh ^{-1}(c x)}{(f+g x)^2 \sqrt {1+c^2 x^2}} \, dx}{g^2 \sqrt {1+c^2 x^2}}\\ &=-\frac {a \sqrt {d+c^2 d x^2}}{g (f+g x)}+\frac {a c^3 f^2 \sqrt {d+c^2 d x^2} \sinh ^{-1}(c x)}{g^2 \left (c^2 f^2+g^2\right ) \sqrt {1+c^2 x^2}}+\frac {b c^3 f^2 \sqrt {d+c^2 d x^2} \sinh ^{-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 \sinh ^{-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 \sinh ^{-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 ) \text {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 (2 b c^2 f \sqrt {d+c^2 d x^2}\right ) \text {Subst}\left (\int \frac {x}{c f+g \sinh (x)} \, dx,x,\sinh ^{-1}(c x)\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 ) \text {Subst}\left (\int \frac {x}{(c f+g \sinh (x))^2} \, dx,x,\sinh ^{-1}(c x)\right )}{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} \sinh ^{-1}(c x)}{g (f+g x)}+\frac {a c^3 f^2 \sqrt {d+c^2 d x^2} \sinh ^{-1}(c x)}{g^2 \left (c^2 f^2+g^2\right ) \sqrt {1+c^2 x^2}}+\frac {b c^3 f^2 \sqrt {d+c^2 d x^2} \sinh ^{-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 \sinh ^{-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 \sinh ^{-1}(c x)\right )^2}{2 b c (f+g x)^2}+\frac {a c^2 f \sqrt {d+c^2 d x^2} \tanh ^{-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 ) \text {Subst}\left (\int \frac {x}{c f+g \sinh (x)} \, dx,x,\sinh ^{-1}(c x)\right )}{g^2 \sqrt {1+c^2 x^2}}-\frac {\left (4 b c^2 f \sqrt {d+c^2 d x^2}\right ) \text {Subst}\left (\int \frac {e^x x}{2 c e^x f-g+e^{2 x} g} \, dx,x,\sinh ^{-1}(c x)\right )}{g^2 \sqrt {1+c^2 x^2}}+\frac {\left (b c \sqrt {d+c^2 d x^2}\right ) \text {Subst}\left (\int \frac {\cosh (x)}{c f+g \sinh (x)} \, dx,x,\sinh ^{-1}(c x)\right )}{g \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} \sinh ^{-1}(c x)}{g (f+g x)}+\frac {a c^3 f^2 \sqrt {d+c^2 d x^2} \sinh ^{-1}(c x)}{g^2 \left (c^2 f^2+g^2\right ) \sqrt {1+c^2 x^2}}+\frac {b c^3 f^2 \sqrt {d+c^2 d x^2} \sinh ^{-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 \sinh ^{-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 \sinh ^{-1}(c x)\right )^2}{2 b c (f+g x)^2}+\frac {a c^2 f \sqrt {d+c^2 d x^2} \tanh ^{-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 ) \text {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 ) \text {Subst}\left (\int \frac {e^x x}{2 c e^x f-g+e^{2 x} g} \, dx,x,\sinh ^{-1}(c x)\right )}{g^2 \sqrt {1+c^2 x^2}}-\frac {\left (4 b c^2 f \sqrt {d+c^2 d x^2}\right ) \text {Subst}\left (\int \frac {e^x x}{2 c f+2 e^x g-2 \sqrt {c^2 f^2+g^2}} \, dx,x,\sinh ^{-1}(c x)\right )}{g \sqrt {c^2 f^2+g^2} \sqrt {1+c^2 x^2}}+\frac {\left (4 b c^2 f \sqrt {d+c^2 d x^2}\right ) \text {Subst}\left (\int \frac {e^x x}{2 c f+2 e^x g+2 \sqrt {c^2 f^2+g^2}} \, dx,x,\sinh ^{-1}(c x)\right )}{g \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} \sinh ^{-1}(c x)}{g (f+g x)}+\frac {a c^3 f^2 \sqrt {d+c^2 d x^2} \sinh ^{-1}(c x)}{g^2 \left (c^2 f^2+g^2\right ) \sqrt {1+c^2 x^2}}+\frac {b c^3 f^2 \sqrt {d+c^2 d x^2} \sinh ^{-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 \sinh ^{-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 \sinh ^{-1}(c x)\right )^2}{2 b c (f+g x)^2}+\frac {a c^2 f \sqrt {d+c^2 d x^2} \tanh ^{-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 b c^2 f \sqrt {d+c^2 d x^2} \sinh ^{-1}(c x) \log \left (1+\frac {e^{\sinh ^{-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} \sinh ^{-1}(c x) \log \left (1+\frac {e^{\sinh ^{-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 ) \text {Subst}\left (\int \log \left (1+\frac {2 e^x g}{2 c f-2 \sqrt {c^2 f^2+g^2}}\right ) \, dx,x,\sinh ^{-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 \sqrt {d+c^2 d x^2}\right ) \text {Subst}\left (\int \log \left (1+\frac {2 e^x g}{2 c f+2 \sqrt {c^2 f^2+g^2}}\right ) \, dx,x,\sinh ^{-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 \sqrt {d+c^2 d x^2}\right ) \text {Subst}\left (\int \frac {e^x x}{2 c f+2 e^x g-2 \sqrt {c^2 f^2+g^2}} \, dx,x,\sinh ^{-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 ) \text {Subst}\left (\int \frac {e^x x}{2 c f+2 e^x g+2 \sqrt {c^2 f^2+g^2}} \, dx,x,\sinh ^{-1}(c x)\right )}{g \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} \sinh ^{-1}(c x)}{g (f+g x)}+\frac {a c^3 f^2 \sqrt {d+c^2 d x^2} \sinh ^{-1}(c x)}{g^2 \left (c^2 f^2+g^2\right ) \sqrt {1+c^2 x^2}}+\frac {b c^3 f^2 \sqrt {d+c^2 d x^2} \sinh ^{-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 \sinh ^{-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 \sinh ^{-1}(c x)\right )^2}{2 b c (f+g x)^2}+\frac {a c^2 f \sqrt {d+c^2 d x^2} \tanh ^{-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 {b c^2 f \sqrt {d+c^2 d x^2} \sinh ^{-1}(c x) \log \left (1+\frac {e^{\sinh ^{-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} \sinh ^{-1}(c x) \log \left (1+\frac {e^{\sinh ^{-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 (b c^2 f \sqrt {d+c^2 d x^2}\right ) \text {Subst}\left (\int \log \left (1+\frac {2 e^x g}{2 c f-2 \sqrt {c^2 f^2+g^2}}\right ) \, dx,x,\sinh ^{-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 ) \text {Subst}\left (\int \log \left (1+\frac {2 e^x g}{2 c f+2 \sqrt {c^2 f^2+g^2}}\right ) \, dx,x,\sinh ^{-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 \sqrt {d+c^2 d x^2}\right ) \text {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^{\sinh ^{-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 \sqrt {d+c^2 d x^2}\right ) \text {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^{\sinh ^{-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} \sinh ^{-1}(c x)}{g (f+g x)}+\frac {a c^3 f^2 \sqrt {d+c^2 d x^2} \sinh ^{-1}(c x)}{g^2 \left (c^2 f^2+g^2\right ) \sqrt {1+c^2 x^2}}+\frac {b c^3 f^2 \sqrt {d+c^2 d x^2} \sinh ^{-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 \sinh ^{-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 \sinh ^{-1}(c x)\right )^2}{2 b c (f+g x)^2}+\frac {a c^2 f \sqrt {d+c^2 d x^2} \tanh ^{-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 {b c^2 f \sqrt {d+c^2 d x^2} \sinh ^{-1}(c x) \log \left (1+\frac {e^{\sinh ^{-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} \sinh ^{-1}(c x) \log \left (1+\frac {e^{\sinh ^{-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^{\sinh ^{-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^{\sinh ^{-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 ) \text {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^{\sinh ^{-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 ) \text {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^{\sinh ^{-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} \sinh ^{-1}(c x)}{g (f+g x)}+\frac {a c^3 f^2 \sqrt {d+c^2 d x^2} \sinh ^{-1}(c x)}{g^2 \left (c^2 f^2+g^2\right ) \sqrt {1+c^2 x^2}}+\frac {b c^3 f^2 \sqrt {d+c^2 d x^2} \sinh ^{-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 \sinh ^{-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 \sinh ^{-1}(c x)\right )^2}{2 b c (f+g x)^2}+\frac {a c^2 f \sqrt {d+c^2 d x^2} \tanh ^{-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 {b c^2 f \sqrt {d+c^2 d x^2} \sinh ^{-1}(c x) \log \left (1+\frac {e^{\sinh ^{-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} \sinh ^{-1}(c x) \log \left (1+\frac {e^{\sinh ^{-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^{\sinh ^{-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^{\sinh ^{-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 [C] Result contains complex when optimal does not.
time = 7.30, size = 1384, normalized size = 1.77 \begin {gather*} \frac {-\frac {2 a g \sqrt {d+c^2 d x^2}}{f+g x}-\frac {2 a c^2 \sqrt {d} f \log (f+g x)}{\sqrt {c^2 f^2+g^2}}+2 a c \sqrt {d} \log \left (c d x+\sqrt {d} \sqrt {d+c^2 d x^2}\right )+\frac {2 a c^2 \sqrt {d} f \log \left (d \left (g-c^2 f x\right )+\sqrt {d} \sqrt {c^2 f^2+g^2} \sqrt {d+c^2 d x^2}\right )}{\sqrt {c^2 f^2+g^2}}+b c \sqrt {d+c^2 d x^2} \left (-\frac {2 g \sinh ^{-1}(c x)}{c f+c g x}+\frac {\sinh ^{-1}(c x)^2}{\sqrt {1+c^2 x^2}}+\frac {2 i c f \pi \tanh ^{-1}\left (\frac {-g+c f \tanh \left (\frac {1}{2} \sinh ^{-1}(c x)\right )}{\sqrt {c^2 f^2+g^2}}\right )}{\sqrt {c^2 f^2+g^2} \sqrt {1+c^2 x^2}}+\frac {2 \log \left (1+\frac {g x}{f}\right )}{\sqrt {1+c^2 x^2}}+\frac {2 c f \left (2 \text {ArcCos}\left (-\frac {i c f}{g}\right ) \tanh ^{-1}\left (\frac {(c f+i g) \cot \left (\frac {1}{4} \left (\pi +2 i \sinh ^{-1}(c x)\right )\right )}{\sqrt {-c^2 f^2-g^2}}\right )+\left (\pi -2 i \sinh ^{-1}(c x)\right ) \tanh ^{-1}\left (\frac {(c f-i g) \tan \left (\frac {1}{4} \left (\pi +2 i \sinh ^{-1}(c x)\right )\right )}{\sqrt {-c^2 f^2-g^2}}\right )+\left (\text {ArcCos}\left (-\frac {i c f}{g}\right )-2 i \tanh ^{-1}\left (\frac {(c f+i g) \cot \left (\frac {1}{4} \left (\pi +2 i \sinh ^{-1}(c x)\right )\right )}{\sqrt {-c^2 f^2-g^2}}\right )-2 i \tanh ^{-1}\left (\frac {(c f-i g) \tan \left (\frac {1}{4} \left (\pi +2 i \sinh ^{-1}(c x)\right )\right )}{\sqrt {-c^2 f^2-g^2}}\right )\right ) \log \left (\frac {\left (\frac {1}{2}-\frac {i}{2}\right ) e^{-\frac {1}{2} \sinh ^{-1}(c x)} \sqrt {-c^2 f^2-g^2}}{\sqrt {-i g} \sqrt {c (f+g x)}}\right )+\left (\text {ArcCos}\left (-\frac {i c f}{g}\right )+2 i \left (\tanh ^{-1}\left (\frac {(c f+i g) \cot \left (\frac {1}{4} \left (\pi +2 i \sinh ^{-1}(c x)\right )\right )}{\sqrt {-c^2 f^2-g^2}}\right )+\tanh ^{-1}\left (\frac {(c f-i g) \tan \left (\frac {1}{4} \left (\pi +2 i \sinh ^{-1}(c x)\right )\right )}{\sqrt {-c^2 f^2-g^2}}\right )\right )\right ) \log \left (\frac {\left (\frac {1}{2}+\frac {i}{2}\right ) e^{\frac {1}{2} \sinh ^{-1}(c x)} \sqrt {-c^2 f^2-g^2}}{\sqrt {-i g} \sqrt {c (f+g x)}}\right )-\left (\text {ArcCos}\left (-\frac {i c f}{g}\right )+2 i \tanh ^{-1}\left (\frac {(c f+i g) \cot \left (\frac {1}{4} \left (\pi +2 i \sinh ^{-1}(c x)\right )\right )}{\sqrt {-c^2 f^2-g^2}}\right )\right ) \log \left (\frac {(i c f+g) \left (-i c f+g+\sqrt {-c^2 f^2-g^2}\right ) \left (1+i \cot \left (\frac {1}{4} \left (\pi +2 i \sinh ^{-1}(c x)\right )\right )\right )}{g \left (i c f+g+i \sqrt {-c^2 f^2-g^2} \cot \left (\frac {1}{4} \left (\pi +2 i \sinh ^{-1}(c x)\right )\right )\right )}\right )-\left (\text {ArcCos}\left (-\frac {i c f}{g}\right )-2 i \tanh ^{-1}\left (\frac {(c f+i g) \cot \left (\frac {1}{4} \left (\pi +2 i \sinh ^{-1}(c x)\right )\right )}{\sqrt {-c^2 f^2-g^2}}\right )\right ) \log \left (\frac {(i c f+g) \left (i c f-g+\sqrt {-c^2 f^2-g^2}\right ) \left (i+\cot \left (\frac {1}{4} \left (\pi +2 i \sinh ^{-1}(c x)\right )\right )\right )}{g \left (c f-i g+\sqrt {-c^2 f^2-g^2} \cot \left (\frac {1}{4} \left (\pi +2 i \sinh ^{-1}(c x)\right )\right )\right )}\right )+i \left (\text {PolyLog}\left (2,\frac {\left (i c f+\sqrt {-c^2 f^2-g^2}\right ) \left (i c f+g-i \sqrt {-c^2 f^2-g^2} \cot \left (\frac {1}{4} \left (\pi +2 i \sinh ^{-1}(c x)\right )\right )\right )}{g \left (i c f+g+i \sqrt {-c^2 f^2-g^2} \cot \left (\frac {1}{4} \left (\pi +2 i \sinh ^{-1}(c x)\right )\right )\right )}\right )-\text {PolyLog}\left (2,\frac {\left (c f+i \sqrt {-c^2 f^2-g^2}\right ) \left (-c f+i g+\sqrt {-c^2 f^2-g^2} \cot \left (\frac {1}{4} \left (\pi +2 i \sinh ^{-1}(c x)\right )\right )\right )}{g \left (i c f+g+i \sqrt {-c^2 f^2-g^2} \cot \left (\frac {1}{4} \left (\pi +2 i \sinh ^{-1}(c x)\right )\right )\right )}\right )\right )\right )}{\sqrt {-c^2 f^2-g^2} \sqrt {1+c^2 x^2}}\right )}{2 g^2} \end {gather*}
Warning: Unable to verify antiderivative.
[In]
[Out]
________________________________________________________________________________________
Maple [B] Leaf count of result is larger than twice the leaf count of optimal. \(1813\) vs.
\(2(745)=1490\).
time = 6.06, size = 1814, normalized size = 2.32
method | result | size |
default | \(\text {Expression too large to display}\) | \(1814\) |
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]
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]
________________________________________________________________________________________
Sympy [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \int \frac {\sqrt {d \left (c^{2} x^{2} + 1\right )} \left (a + b \operatorname {asinh}{\left (c x \right )}\right )}{\left (f + g x\right )^{2}}\, 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: TypeError} \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 {asinh}\left (c\,x\right )\right )\,\sqrt {d\,c^2\,x^2+d}}{{\left (f+g\,x\right )}^2} \,d x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________