Optimal. Leaf size=136 \[ -\frac {b g x \sqrt {-1+c x} \sqrt {1+c x}}{c \sqrt {d-c^2 d x^2}}-\frac {g (1-c x) (1+c x) \left (a+b \cosh ^{-1}(c x)\right )}{c^2 \sqrt {d-c^2 d x^2}}+\frac {f \sqrt {-1+c x} \sqrt {1+c x} \left (a+b \cosh ^{-1}(c x)\right )^2}{2 b c \sqrt {d-c^2 d x^2}} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.30, antiderivative size = 136, normalized size of antiderivative = 1.00, number of steps
used = 6, number of rules used = 5, integrand size = 29, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.172, Rules used = {5972, 5975,
5893, 5915, 8} \begin {gather*} \frac {f \sqrt {c x-1} \sqrt {c x+1} \left (a+b \cosh ^{-1}(c x)\right )^2}{2 b c \sqrt {d-c^2 d x^2}}-\frac {g (1-c x) (c x+1) \left (a+b \cosh ^{-1}(c x)\right )}{c^2 \sqrt {d-c^2 d x^2}}-\frac {b g x \sqrt {c x-1} \sqrt {c x+1}}{c \sqrt {d-c^2 d x^2}} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 8
Rule 5893
Rule 5915
Rule 5972
Rule 5975
Rubi steps
\begin {align*} \int \frac {(f+g x) \left (a+b \cosh ^{-1}(c x)\right )}{\sqrt {d-c^2 d x^2}} \, dx &=\frac {\left (\sqrt {-1+c x} \sqrt {1+c x}\right ) \int \frac {(f+g x) \left (a+b \cosh ^{-1}(c x)\right )}{\sqrt {-1+c x} \sqrt {1+c x}} \, dx}{\sqrt {d-c^2 d x^2}}\\ &=\frac {\left (\sqrt {-1+c x} \sqrt {1+c x}\right ) \int \left (\frac {f \left (a+b \cosh ^{-1}(c x)\right )}{\sqrt {-1+c x} \sqrt {1+c x}}+\frac {g x \left (a+b \cosh ^{-1}(c x)\right )}{\sqrt {-1+c x} \sqrt {1+c x}}\right ) \, dx}{\sqrt {d-c^2 d x^2}}\\ &=\frac {\left (f \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}{\sqrt {d-c^2 d x^2}}+\frac {\left (g \sqrt {-1+c x} \sqrt {1+c x}\right ) \int \frac {x \left (a+b \cosh ^{-1}(c x)\right )}{\sqrt {-1+c x} \sqrt {1+c x}} \, dx}{\sqrt {d-c^2 d x^2}}\\ &=-\frac {g (1-c x) (1+c x) \left (a+b \cosh ^{-1}(c x)\right )}{c^2 \sqrt {d-c^2 d x^2}}+\frac {f \sqrt {-1+c x} \sqrt {1+c x} \left (a+b \cosh ^{-1}(c x)\right )^2}{2 b c \sqrt {d-c^2 d x^2}}-\frac {\left (b g \sqrt {-1+c x} \sqrt {1+c x}\right ) \int 1 \, dx}{c \sqrt {d-c^2 d x^2}}\\ &=-\frac {b g x \sqrt {-1+c x} \sqrt {1+c x}}{c \sqrt {d-c^2 d x^2}}-\frac {g (1-c x) (1+c x) \left (a+b \cosh ^{-1}(c x)\right )}{c^2 \sqrt {d-c^2 d x^2}}+\frac {f \sqrt {-1+c x} \sqrt {1+c x} \left (a+b \cosh ^{-1}(c x)\right )^2}{2 b c \sqrt {d-c^2 d x^2}}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.47, size = 185, normalized size = 1.36 \begin {gather*} \frac {-\frac {2 a g \sqrt {d-c^2 d x^2}}{d}+\frac {b c f \sqrt {\frac {-1+c x}{1+c x}} (1+c x) \cosh ^{-1}(c x)^2}{\sqrt {d-c^2 d x^2}}-\frac {2 b g \sqrt {d-c^2 d x^2} \left (-1+\sqrt {\frac {-1+c x}{1+c x}} \cosh ^{-1}(c x)\right )}{d \sqrt {\frac {-1+c x}{1+c x}}}-\frac {2 a c f \text {ArcTan}\left (\frac {c x \sqrt {d-c^2 d x^2}}{\sqrt {d} \left (-1+c^2 x^2\right )}\right )}{\sqrt {d}}}{2 c^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. \(247\) vs.
\(2(120)=240\).
time = 7.95, size = 248, normalized size = 1.82
method | result | size |
default | \(-\frac {a g \sqrt {-c^{2} d \,x^{2}+d}}{c^{2} d}+\frac {a f \arctan \left (\frac {\sqrt {c^{2} d}\, x}{\sqrt {-c^{2} d \,x^{2}+d}}\right )}{\sqrt {c^{2} d}}+b \left (-\frac {\sqrt {-d \left (c^{2} x^{2}-1\right )}\, \sqrt {c x -1}\, \sqrt {c x +1}\, f \mathrm {arccosh}\left (c x \right )^{2}}{2 d c \left (c^{2} x^{2}-1\right )}-\frac {\sqrt {-d \left (c^{2} x^{2}-1\right )}\, \left (\sqrt {c x +1}\, \sqrt {c x -1}\, x c +c^{2} x^{2}-1\right ) g \left (-1+\mathrm {arccosh}\left (c x \right )\right )}{2 c^{2} d \left (c^{2} x^{2}-1\right )}-\frac {\sqrt {-d \left (c^{2} x^{2}-1\right )}\, \left (-\sqrt {c x +1}\, \sqrt {c x -1}\, x c +c^{2} x^{2}-1\right ) g \left (1+\mathrm {arccosh}\left (c x \right )\right )}{2 c^{2} d \left (c^{2} x^{2}-1\right )}\right )\) | \(248\) |
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 {\left (a + b \operatorname {acosh}{\left (c x \right )}\right ) \left (f + g x\right )}{\sqrt {- d \left (c x - 1\right ) \left (c x + 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.01 \begin {gather*} \int \frac {\left (f+g\,x\right )\,\left (a+b\,\mathrm {acosh}\left (c\,x\right )\right )}{\sqrt {d-c^2\,d\,x^2}} \,d x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________