Optimal. Leaf size=459 \[ -\frac{(1-c x) (c f-g)^2 \left (a+b \cosh ^{-1}(c x)\right )}{2 c^3 d \sqrt{d-c^2 d x^2}}+\frac{(c x+1) (c f+g)^2 \left (a+b \cosh ^{-1}(c x)\right )}{2 c^3 d \sqrt{d-c^2 d x^2}}-\frac{g^2 \sqrt{c x-1} \sqrt{c x+1} \left (a+b \cosh ^{-1}(c x)\right )^2}{2 b c^3 d \sqrt{d-c^2 d x^2}}-\frac{b \sqrt{(1-c x) (c x+1)} \sqrt{1-c^2 x^2} (c f-g)^2 \log \left (\frac{2}{c x+1}\right )}{2 c^3 d \sqrt{-\frac{1-c x}{c x+1}} (c x+1) \sqrt{d-c^2 d x^2}}+\frac{b \sqrt{(1-c x) (c x+1)} \sqrt{1-c^2 x^2} (c f+g)^2 \log \left (\sqrt{-\frac{1-c x}{c x+1}}\right )}{c^3 d \sqrt{-\frac{1-c x}{c x+1}} (c x+1) \sqrt{d-c^2 d x^2}}-\frac{b \sqrt{(1-c x) (c x+1)} \sqrt{1-c^2 x^2} (c f+g)^2 \log \left (\frac{2}{c x+1}\right )}{2 c^3 d \sqrt{-\frac{1-c x}{c x+1}} (c x+1) \sqrt{d-c^2 d x^2}} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 1.26664, antiderivative size = 459, normalized size of antiderivative = 1., number of steps used = 17, number of rules used = 12, integrand size = 31, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.387, Rules used = {5836, 5834, 37, 5848, 12, 6719, 260, 266, 36, 31, 29, 5676} \[ -\frac{(1-c x) (c f-g)^2 \left (a+b \cosh ^{-1}(c x)\right )}{2 c^3 d \sqrt{d-c^2 d x^2}}+\frac{(c x+1) (c f+g)^2 \left (a+b \cosh ^{-1}(c x)\right )}{2 c^3 d \sqrt{d-c^2 d x^2}}-\frac{g^2 \sqrt{c x-1} \sqrt{c x+1} \left (a+b \cosh ^{-1}(c x)\right )^2}{2 b c^3 d \sqrt{d-c^2 d x^2}}-\frac{b \sqrt{(1-c x) (c x+1)} \sqrt{1-c^2 x^2} (c f-g)^2 \log \left (\frac{2}{c x+1}\right )}{2 c^3 d \sqrt{-\frac{1-c x}{c x+1}} (c x+1) \sqrt{d-c^2 d x^2}}+\frac{b \sqrt{(1-c x) (c x+1)} \sqrt{1-c^2 x^2} (c f+g)^2 \log \left (\sqrt{-\frac{1-c x}{c x+1}}\right )}{c^3 d \sqrt{-\frac{1-c x}{c x+1}} (c x+1) \sqrt{d-c^2 d x^2}}-\frac{b \sqrt{(1-c x) (c x+1)} \sqrt{1-c^2 x^2} (c f+g)^2 \log \left (\frac{2}{c x+1}\right )}{2 c^3 d \sqrt{-\frac{1-c x}{c x+1}} (c x+1) \sqrt{d-c^2 d x^2}} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 5836
Rule 5834
Rule 37
Rule 5848
Rule 12
Rule 6719
Rule 260
Rule 266
Rule 36
Rule 31
Rule 29
Rule 5676
Rubi steps
\begin{align*} \int \frac{(f+g x)^2 \left (a+b \cosh ^{-1}(c x)\right )}{\left (d-c^2 d x^2\right )^{3/2}} \, dx &=-\frac{\left (\sqrt{-1+c x} \sqrt{1+c x}\right ) \int \frac{(f+g x)^2 \left (a+b \cosh ^{-1}(c x)\right )}{(-1+c x)^{3/2} (1+c x)^{3/2}} \, dx}{d \sqrt{d-c^2 d x^2}}\\ &=-\frac{\left (\sqrt{-1+c x} \sqrt{1+c x}\right ) \int \left (-\frac{(c f-g)^2 \left (a+b \cosh ^{-1}(c x)\right )}{2 c^2 \sqrt{-1+c x} (1+c x)^{3/2}}+\frac{(c f+g)^2 \left (a+b \cosh ^{-1}(c x)\right )}{2 c^2 (-1+c x)^{3/2} \sqrt{1+c x}}+\frac{g^2 \left (a+b \cosh ^{-1}(c x)\right )}{c^2 \sqrt{-1+c x} \sqrt{1+c x}}\right ) \, dx}{d \sqrt{d-c^2 d x^2}}\\ &=\frac{\left ((c f-g)^2 \sqrt{-1+c x} \sqrt{1+c x}\right ) \int \frac{a+b \cosh ^{-1}(c x)}{\sqrt{-1+c x} (1+c x)^{3/2}} \, dx}{2 c^2 d \sqrt{d-c^2 d x^2}}-\frac{\left (g^2 \sqrt{-1+c x} \sqrt{1+c x}\right ) \int \frac{a+b \cosh ^{-1}(c x)}{\sqrt{-1+c x} \sqrt{1+c x}} \, dx}{c^2 d \sqrt{d-c^2 d x^2}}-\frac{\left ((c f+g)^2 \sqrt{-1+c x} \sqrt{1+c x}\right ) \int \frac{a+b \cosh ^{-1}(c x)}{(-1+c x)^{3/2} \sqrt{1+c x}} \, dx}{2 c^2 d \sqrt{d-c^2 d x^2}}\\ &=-\frac{(c f-g)^2 (1-c x) \left (a+b \cosh ^{-1}(c x)\right )}{2 c^3 d \sqrt{d-c^2 d x^2}}+\frac{(c f+g)^2 (1+c x) \left (a+b \cosh ^{-1}(c x)\right )}{2 c^3 d \sqrt{d-c^2 d x^2}}-\frac{g^2 \sqrt{-1+c x} \sqrt{1+c x} \left (a+b \cosh ^{-1}(c x)\right )^2}{2 b c^3 d \sqrt{d-c^2 d x^2}}-\frac{\left (b (c f-g)^2 \sqrt{1-c^2 x^2}\right ) \int \frac{\sqrt{\frac{-1+c x}{1+c x}}}{c \sqrt{1-c^2 x^2}} \, dx}{2 c d \sqrt{d-c^2 d x^2}}-\frac{\left (b (c f+g)^2 \sqrt{1-c^2 x^2}\right ) \int \frac{1}{c \sqrt{\frac{-1+c x}{1+c x}} \sqrt{1-c^2 x^2}} \, dx}{2 c d \sqrt{d-c^2 d x^2}}\\ &=-\frac{(c f-g)^2 (1-c x) \left (a+b \cosh ^{-1}(c x)\right )}{2 c^3 d \sqrt{d-c^2 d x^2}}+\frac{(c f+g)^2 (1+c x) \left (a+b \cosh ^{-1}(c x)\right )}{2 c^3 d \sqrt{d-c^2 d x^2}}-\frac{g^2 \sqrt{-1+c x} \sqrt{1+c x} \left (a+b \cosh ^{-1}(c x)\right )^2}{2 b c^3 d \sqrt{d-c^2 d x^2}}-\frac{\left (b (c f-g)^2 \sqrt{1-c^2 x^2}\right ) \int \frac{\sqrt{\frac{-1+c x}{1+c x}}}{\sqrt{1-c^2 x^2}} \, dx}{2 c^2 d \sqrt{d-c^2 d x^2}}-\frac{\left (b (c f+g)^2 \sqrt{1-c^2 x^2}\right ) \int \frac{1}{\sqrt{\frac{-1+c x}{1+c x}} \sqrt{1-c^2 x^2}} \, dx}{2 c^2 d \sqrt{d-c^2 d x^2}}\\ &=-\frac{(c f-g)^2 (1-c x) \left (a+b \cosh ^{-1}(c x)\right )}{2 c^3 d \sqrt{d-c^2 d x^2}}+\frac{(c f+g)^2 (1+c x) \left (a+b \cosh ^{-1}(c x)\right )}{2 c^3 d \sqrt{d-c^2 d x^2}}-\frac{g^2 \sqrt{-1+c x} \sqrt{1+c x} \left (a+b \cosh ^{-1}(c x)\right )^2}{2 b c^3 d \sqrt{d-c^2 d x^2}}+\frac{\left (b (c f-g)^2 \sqrt{1-c^2 x^2}\right ) \operatorname{Subst}\left (\int \sqrt{-\frac{x^2}{\left (-1+x^2\right )^2}} \, dx,x,\sqrt{\frac{-1+c x}{1+c x}}\right )}{c^3 d \sqrt{d-c^2 d x^2}}+\frac{\left (b (c f+g)^2 \sqrt{1-c^2 x^2}\right ) \operatorname{Subst}\left (\int \frac{\sqrt{-\frac{x^2}{\left (-1+x^2\right )^2}}}{x^2} \, dx,x,\sqrt{\frac{-1+c x}{1+c x}}\right )}{c^3 d \sqrt{d-c^2 d x^2}}\\ &=-\frac{(c f-g)^2 (1-c x) \left (a+b \cosh ^{-1}(c x)\right )}{2 c^3 d \sqrt{d-c^2 d x^2}}+\frac{(c f+g)^2 (1+c x) \left (a+b \cosh ^{-1}(c x)\right )}{2 c^3 d \sqrt{d-c^2 d x^2}}-\frac{g^2 \sqrt{-1+c x} \sqrt{1+c x} \left (a+b \cosh ^{-1}(c x)\right )^2}{2 b c^3 d \sqrt{d-c^2 d x^2}}-\frac{\left (b (c f-g)^2 \sqrt{-(-1+c x) (1+c x)} \sqrt{1-c^2 x^2}\right ) \operatorname{Subst}\left (\int \frac{x}{-1+x^2} \, dx,x,\sqrt{\frac{-1+c x}{1+c x}}\right )}{c^3 d \sqrt{\frac{-1+c x}{1+c x}} (1+c x) \sqrt{d-c^2 d x^2}}-\frac{\left (b (c f+g)^2 \sqrt{-(-1+c x) (1+c x)} \sqrt{1-c^2 x^2}\right ) \operatorname{Subst}\left (\int \frac{1}{x \left (-1+x^2\right )} \, dx,x,\sqrt{\frac{-1+c x}{1+c x}}\right )}{c^3 d \sqrt{\frac{-1+c x}{1+c x}} (1+c x) \sqrt{d-c^2 d x^2}}\\ &=-\frac{(c f-g)^2 (1-c x) \left (a+b \cosh ^{-1}(c x)\right )}{2 c^3 d \sqrt{d-c^2 d x^2}}+\frac{(c f+g)^2 (1+c x) \left (a+b \cosh ^{-1}(c x)\right )}{2 c^3 d \sqrt{d-c^2 d x^2}}-\frac{g^2 \sqrt{-1+c x} \sqrt{1+c x} \left (a+b \cosh ^{-1}(c x)\right )^2}{2 b c^3 d \sqrt{d-c^2 d x^2}}+\frac{b (c f-g)^2 \sqrt{(1-c x) (1+c x)} \sqrt{1-c^2 x^2} \log (1+c x)}{2 c^3 d \sqrt{-\frac{1-c x}{1+c x}} (1+c x) \sqrt{d-c^2 d x^2}}-\frac{\left (b (c f+g)^2 \sqrt{-(-1+c x) (1+c x)} \sqrt{1-c^2 x^2}\right ) \operatorname{Subst}\left (\int \frac{1}{(-1+x) x} \, dx,x,\frac{-1+c x}{1+c x}\right )}{2 c^3 d \sqrt{\frac{-1+c x}{1+c x}} (1+c x) \sqrt{d-c^2 d x^2}}\\ &=-\frac{(c f-g)^2 (1-c x) \left (a+b \cosh ^{-1}(c x)\right )}{2 c^3 d \sqrt{d-c^2 d x^2}}+\frac{(c f+g)^2 (1+c x) \left (a+b \cosh ^{-1}(c x)\right )}{2 c^3 d \sqrt{d-c^2 d x^2}}-\frac{g^2 \sqrt{-1+c x} \sqrt{1+c x} \left (a+b \cosh ^{-1}(c x)\right )^2}{2 b c^3 d \sqrt{d-c^2 d x^2}}+\frac{b (c f-g)^2 \sqrt{(1-c x) (1+c x)} \sqrt{1-c^2 x^2} \log (1+c x)}{2 c^3 d \sqrt{-\frac{1-c x}{1+c x}} (1+c x) \sqrt{d-c^2 d x^2}}-\frac{\left (b (c f+g)^2 \sqrt{-(-1+c x) (1+c x)} \sqrt{1-c^2 x^2}\right ) \operatorname{Subst}\left (\int \frac{1}{-1+x} \, dx,x,\frac{-1+c x}{1+c x}\right )}{2 c^3 d \sqrt{\frac{-1+c x}{1+c x}} (1+c x) \sqrt{d-c^2 d x^2}}+\frac{\left (b (c f+g)^2 \sqrt{-(-1+c x) (1+c x)} \sqrt{1-c^2 x^2}\right ) \operatorname{Subst}\left (\int \frac{1}{x} \, dx,x,\frac{-1+c x}{1+c x}\right )}{2 c^3 d \sqrt{\frac{-1+c x}{1+c x}} (1+c x) \sqrt{d-c^2 d x^2}}\\ &=-\frac{(c f-g)^2 (1-c x) \left (a+b \cosh ^{-1}(c x)\right )}{2 c^3 d \sqrt{d-c^2 d x^2}}+\frac{(c f+g)^2 (1+c x) \left (a+b \cosh ^{-1}(c x)\right )}{2 c^3 d \sqrt{d-c^2 d x^2}}-\frac{g^2 \sqrt{-1+c x} \sqrt{1+c x} \left (a+b \cosh ^{-1}(c x)\right )^2}{2 b c^3 d \sqrt{d-c^2 d x^2}}+\frac{b (c f+g)^2 \sqrt{(1-c x) (1+c x)} \sqrt{1-c^2 x^2} \log \left (-\frac{1-c x}{1+c x}\right )}{2 c^3 d \sqrt{-\frac{1-c x}{1+c x}} (1+c x) \sqrt{d-c^2 d x^2}}+\frac{b (c f-g)^2 \sqrt{(1-c x) (1+c x)} \sqrt{1-c^2 x^2} \log (1+c x)}{2 c^3 d \sqrt{-\frac{1-c x}{1+c x}} (1+c x) \sqrt{d-c^2 d x^2}}+\frac{b (c f+g)^2 \sqrt{(1-c x) (1+c x)} \sqrt{1-c^2 x^2} \log (1+c x)}{2 c^3 d \sqrt{-\frac{1-c x}{1+c x}} (1+c x) \sqrt{d-c^2 d x^2}}\\ \end{align*}
Mathematica [A] time = 1.07785, size = 281, normalized size = 0.61 \[ \frac{2 \sqrt{d} \left (a c \left (c^2 f^2 x+2 f g+g^2 x\right )-b \sqrt{\frac{c x-1}{c x+1}} (c x+1) \left (c^2 f^2+g^2\right ) \log \left (\sqrt{\frac{c x-1}{c x+1}} (c x+1)\right )-2 b c f g \sqrt{\frac{c x-1}{c x+1}} (c x+1) \log \left (\tanh \left (\frac{1}{2} \cosh ^{-1}(c x)\right )\right )\right )+2 a g^2 \sqrt{d-c^2 d x^2} \tan ^{-1}\left (\frac{c x \sqrt{d-c^2 d x^2}}{\sqrt{d} \left (c^2 x^2-1\right )}\right )+2 b c \sqrt{d} \cosh ^{-1}(c x) \left (c^2 f^2 x+2 f g+g^2 x\right )-b \sqrt{d} g^2 \sqrt{\frac{c x-1}{c x+1}} (c x+1) \cosh ^{-1}(c x)^2}{2 c^3 d^{3/2} \sqrt{d-c^2 d x^2}} \]
Warning: Unable to verify antiderivative.
[In]
[Out]
________________________________________________________________________________________
Maple [B] time = 0.276, size = 879, 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 (a g^{2} x^{2} + 2 \, a f g x + a f^{2} +{\left (b g^{2} x^{2} + 2 \, b f g x + b f^{2}\right )} \operatorname{arcosh}\left (c x\right )\right )}}{c^{4} d^{2} x^{4} - 2 \, c^{2} d^{2} x^{2} + d^{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{\left (a + b \operatorname{acosh}{\left (c x \right )}\right ) \left (f + g x\right )^{2}}{\left (- d \left (c x - 1\right ) \left (c x + 1\right )\right )^{\frac{3}{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{{\left (g x + f\right )}^{2}{\left (b \operatorname{arcosh}\left (c x\right ) + a\right )}}{{\left (-c^{2} d x^{2} + d\right )}^{\frac{3}{2}}}\,{d x} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]