Optimal. Leaf size=258 \[ -\frac {2 b f g x \sqrt {1+c^2 x^2}}{c \sqrt {d+c^2 d x^2}}-\frac {b g^2 x^2 \sqrt {1+c^2 x^2}}{4 c \sqrt {d+c^2 d x^2}}+\frac {2 f g \left (1+c^2 x^2\right ) \left (a+b \sinh ^{-1}(c x)\right )}{c^2 \sqrt {d+c^2 d x^2}}+\frac {g^2 x \left (1+c^2 x^2\right ) \left (a+b \sinh ^{-1}(c x)\right )}{2 c^2 \sqrt {d+c^2 d x^2}}+\frac {f^2 \sqrt {1+c^2 x^2} \left (a+b \sinh ^{-1}(c x)\right )^2}{2 b c \sqrt {d+c^2 d x^2}}-\frac {g^2 \sqrt {1+c^2 x^2} \left (a+b \sinh ^{-1}(c x)\right )^2}{4 b c^3 \sqrt {d+c^2 d x^2}} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.28, antiderivative size = 258, normalized size of antiderivative = 1.00, number of steps
used = 9, number of rules used = 7, integrand size = 30, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.233, Rules used = {5845, 5838,
5783, 5798, 8, 5812, 30} \begin {gather*} \frac {f^2 \sqrt {c^2 x^2+1} \left (a+b \sinh ^{-1}(c x)\right )^2}{2 b c \sqrt {c^2 d x^2+d}}+\frac {2 f g \left (c^2 x^2+1\right ) \left (a+b \sinh ^{-1}(c x)\right )}{c^2 \sqrt {c^2 d x^2+d}}+\frac {g^2 x \left (c^2 x^2+1\right ) \left (a+b \sinh ^{-1}(c x)\right )}{2 c^2 \sqrt {c^2 d x^2+d}}-\frac {g^2 \sqrt {c^2 x^2+1} \left (a+b \sinh ^{-1}(c x)\right )^2}{4 b c^3 \sqrt {c^2 d x^2+d}}-\frac {2 b f g x \sqrt {c^2 x^2+1}}{c \sqrt {c^2 d x^2+d}}-\frac {b g^2 x^2 \sqrt {c^2 x^2+1}}{4 c \sqrt {c^2 d x^2+d}} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 8
Rule 30
Rule 5783
Rule 5798
Rule 5812
Rule 5838
Rule 5845
Rubi steps
\begin {align*} \int \frac {(f+g x)^2 \left (a+b \sinh ^{-1}(c x)\right )}{\sqrt {d+c^2 d x^2}} \, dx &=\frac {\sqrt {1+c^2 x^2} \int \frac {(f+g x)^2 \left (a+b \sinh ^{-1}(c x)\right )}{\sqrt {1+c^2 x^2}} \, dx}{\sqrt {d+c^2 d x^2}}\\ &=\frac {\sqrt {1+c^2 x^2} \int \left (\frac {f^2 \left (a+b \sinh ^{-1}(c x)\right )}{\sqrt {1+c^2 x^2}}+\frac {2 f g x \left (a+b \sinh ^{-1}(c x)\right )}{\sqrt {1+c^2 x^2}}+\frac {g^2 x^2 \left (a+b \sinh ^{-1}(c x)\right )}{\sqrt {1+c^2 x^2}}\right ) \, dx}{\sqrt {d+c^2 d x^2}}\\ &=\frac {\left (f^2 \sqrt {1+c^2 x^2}\right ) \int \frac {a+b \sinh ^{-1}(c x)}{\sqrt {1+c^2 x^2}} \, dx}{\sqrt {d+c^2 d x^2}}+\frac {\left (2 f g \sqrt {1+c^2 x^2}\right ) \int \frac {x \left (a+b \sinh ^{-1}(c x)\right )}{\sqrt {1+c^2 x^2}} \, dx}{\sqrt {d+c^2 d x^2}}+\frac {\left (g^2 \sqrt {1+c^2 x^2}\right ) \int \frac {x^2 \left (a+b \sinh ^{-1}(c x)\right )}{\sqrt {1+c^2 x^2}} \, dx}{\sqrt {d+c^2 d x^2}}\\ &=\frac {2 f g \left (1+c^2 x^2\right ) \left (a+b \sinh ^{-1}(c x)\right )}{c^2 \sqrt {d+c^2 d x^2}}+\frac {g^2 x \left (1+c^2 x^2\right ) \left (a+b \sinh ^{-1}(c x)\right )}{2 c^2 \sqrt {d+c^2 d x^2}}+\frac {f^2 \sqrt {1+c^2 x^2} \left (a+b \sinh ^{-1}(c x)\right )^2}{2 b c \sqrt {d+c^2 d x^2}}-\frac {\left (2 b f g \sqrt {1+c^2 x^2}\right ) \int 1 \, dx}{c \sqrt {d+c^2 d x^2}}-\frac {\left (g^2 \sqrt {1+c^2 x^2}\right ) \int \frac {a+b \sinh ^{-1}(c x)}{\sqrt {1+c^2 x^2}} \, dx}{2 c^2 \sqrt {d+c^2 d x^2}}-\frac {\left (b g^2 \sqrt {1+c^2 x^2}\right ) \int x \, dx}{2 c \sqrt {d+c^2 d x^2}}\\ &=-\frac {2 b f g x \sqrt {1+c^2 x^2}}{c \sqrt {d+c^2 d x^2}}-\frac {b g^2 x^2 \sqrt {1+c^2 x^2}}{4 c \sqrt {d+c^2 d x^2}}+\frac {2 f g \left (1+c^2 x^2\right ) \left (a+b \sinh ^{-1}(c x)\right )}{c^2 \sqrt {d+c^2 d x^2}}+\frac {g^2 x \left (1+c^2 x^2\right ) \left (a+b \sinh ^{-1}(c x)\right )}{2 c^2 \sqrt {d+c^2 d x^2}}+\frac {f^2 \sqrt {1+c^2 x^2} \left (a+b \sinh ^{-1}(c x)\right )^2}{2 b c \sqrt {d+c^2 d x^2}}-\frac {g^2 \sqrt {1+c^2 x^2} \left (a+b \sinh ^{-1}(c x)\right )^2}{4 b c^3 \sqrt {d+c^2 d x^2}}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.36, size = 233, normalized size = 0.90 \begin {gather*} \frac {4 c \sqrt {d} g \left (-4 b c f x \sqrt {1+c^2 x^2}+a (4 f+g x) \left (1+c^2 x^2\right )\right )+4 b c \sqrt {d} g (4 f+g x) \left (1+c^2 x^2\right ) \sinh ^{-1}(c x)+2 b \sqrt {d} \left (2 c^2 f^2-g^2\right ) \sqrt {1+c^2 x^2} \sinh ^{-1}(c x)^2-b \sqrt {d} g^2 \sqrt {1+c^2 x^2} \cosh \left (2 \sinh ^{-1}(c x)\right )+4 a \left (2 c^2 f^2-g^2\right ) \sqrt {d+c^2 d x^2} \log \left (c d x+\sqrt {d} \sqrt {d+c^2 d x^2}\right )}{8 c^3 \sqrt {d} \sqrt {d+c^2 d x^2}} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [B] Leaf count of result is larger than twice the leaf count of optimal. \(485\) vs.
\(2(230)=460\).
time = 6.14, size = 486, normalized size = 1.88
method | result | size |
default | \(\frac {a \,g^{2} x \sqrt {c^{2} d \,x^{2}+d}}{2 c^{2} d}-\frac {a \,g^{2} \ln \left (\frac {x \,c^{2} d}{\sqrt {c^{2} d}}+\sqrt {c^{2} d \,x^{2}+d}\right )}{2 c^{2} \sqrt {c^{2} d}}+\frac {2 a f g \sqrt {c^{2} d \,x^{2}+d}}{c^{2} d}+\frac {a \,f^{2} \ln \left (\frac {x \,c^{2} d}{\sqrt {c^{2} d}}+\sqrt {c^{2} d \,x^{2}+d}\right )}{\sqrt {c^{2} d}}+b \left (\frac {\sqrt {d \left (c^{2} x^{2}+1\right )}\, \arcsinh \left (c x \right )^{2} \left (2 c^{2} f^{2}-g^{2}\right )}{4 \sqrt {c^{2} x^{2}+1}\, c^{3} d}+\frac {\sqrt {d \left (c^{2} x^{2}+1\right )}\, \left (2 c^{3} x^{3}+2 c^{2} x^{2} \sqrt {c^{2} x^{2}+1}+2 c x +\sqrt {c^{2} x^{2}+1}\right ) g^{2} \left (2 \arcsinh \left (c x \right )-1\right )}{16 c^{3} d \left (c^{2} x^{2}+1\right )}+\frac {\sqrt {d \left (c^{2} x^{2}+1\right )}\, \left (c^{2} x^{2}+\sqrt {c^{2} x^{2}+1}\, c x +1\right ) f g \left (\arcsinh \left (c x \right )-1\right )}{c^{2} d \left (c^{2} x^{2}+1\right )}+\frac {\sqrt {d \left (c^{2} x^{2}+1\right )}\, \left (c^{2} x^{2}-\sqrt {c^{2} x^{2}+1}\, c x +1\right ) f g \left (\arcsinh \left (c x \right )+1\right )}{c^{2} d \left (c^{2} x^{2}+1\right )}+\frac {\sqrt {d \left (c^{2} x^{2}+1\right )}\, \left (2 c^{3} x^{3}-2 c^{2} x^{2} \sqrt {c^{2} x^{2}+1}+2 c x -\sqrt {c^{2} x^{2}+1}\right ) g^{2} \left (2 \arcsinh \left (c x \right )+1\right )}{16 c^{3} d \left (c^{2} x^{2}+1\right )}\right )\) | \(486\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F(-2)]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Exception raised: RuntimeError} \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 {\left (a + b \operatorname {asinh}{\left (c x \right )}\right ) \left (f + g x\right )^{2}}{\sqrt {d \left (c^{2} x^{2} + 1\right )}}\, dx \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [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]
________________________________________________________________________________________
Mupad [F]
time = 0.00, size = -1, normalized size = -0.00 \begin {gather*} \int \frac {{\left (f+g\,x\right )}^2\,\left (a+b\,\mathrm {asinh}\left (c\,x\right )\right )}{\sqrt {d\,c^2\,x^2+d}} \,d x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________