Optimal. Leaf size=164 \[ -\frac {e \sqrt {a+b \cosh ^{-1}(c+d x)}}{4 d}+\frac {e (c+d x)^2 \sqrt {a+b \cosh ^{-1}(c+d x)}}{2 d}-\frac {\sqrt {b} e e^{\frac {2 a}{b}} \sqrt {\frac {\pi }{2}} \text {Erf}\left (\frac {\sqrt {2} \sqrt {a+b \cosh ^{-1}(c+d x)}}{\sqrt {b}}\right )}{16 d}-\frac {\sqrt {b} e e^{-\frac {2 a}{b}} \sqrt {\frac {\pi }{2}} \text {Erfi}\left (\frac {\sqrt {2} \sqrt {a+b \cosh ^{-1}(c+d x)}}{\sqrt {b}}\right )}{16 d} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.35, antiderivative size = 164, normalized size of antiderivative = 1.00, number of steps
used = 11, number of rules used = 9, integrand size = 23, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.391, Rules used = {5996, 12,
5884, 5953, 3393, 3388, 2211, 2236, 2235} \begin {gather*} -\frac {\sqrt {\frac {\pi }{2}} \sqrt {b} e e^{\frac {2 a}{b}} \text {Erf}\left (\frac {\sqrt {2} \sqrt {a+b \cosh ^{-1}(c+d x)}}{\sqrt {b}}\right )}{16 d}-\frac {\sqrt {\frac {\pi }{2}} \sqrt {b} e e^{-\frac {2 a}{b}} \text {Erfi}\left (\frac {\sqrt {2} \sqrt {a+b \cosh ^{-1}(c+d x)}}{\sqrt {b}}\right )}{16 d}+\frac {e (c+d x)^2 \sqrt {a+b \cosh ^{-1}(c+d x)}}{2 d}-\frac {e \sqrt {a+b \cosh ^{-1}(c+d x)}}{4 d} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 12
Rule 2211
Rule 2235
Rule 2236
Rule 3388
Rule 3393
Rule 5884
Rule 5953
Rule 5996
Rubi steps
\begin {align*} \int (c e+d e x) \sqrt {a+b \cosh ^{-1}(c+d x)} \, dx &=\frac {\text {Subst}\left (\int e x \sqrt {a+b \cosh ^{-1}(x)} \, dx,x,c+d x\right )}{d}\\ &=\frac {e \text {Subst}\left (\int x \sqrt {a+b \cosh ^{-1}(x)} \, dx,x,c+d x\right )}{d}\\ &=\frac {e (c+d x)^2 \sqrt {a+b \cosh ^{-1}(c+d x)}}{2 d}-\frac {(b e) \text {Subst}\left (\int \frac {x^2}{\sqrt {-1+x} \sqrt {1+x} \sqrt {a+b \cosh ^{-1}(x)}} \, dx,x,c+d x\right )}{4 d}\\ &=\frac {e (c+d x)^2 \sqrt {a+b \cosh ^{-1}(c+d x)}}{2 d}-\frac {(b e) \text {Subst}\left (\int \frac {\cosh ^2(x)}{\sqrt {a+b x}} \, dx,x,\cosh ^{-1}(c+d x)\right )}{4 d}\\ &=\frac {e (c+d x)^2 \sqrt {a+b \cosh ^{-1}(c+d x)}}{2 d}-\frac {(b e) \text {Subst}\left (\int \left (\frac {1}{2 \sqrt {a+b x}}+\frac {\cosh (2 x)}{2 \sqrt {a+b x}}\right ) \, dx,x,\cosh ^{-1}(c+d x)\right )}{4 d}\\ &=-\frac {e \sqrt {a+b \cosh ^{-1}(c+d x)}}{4 d}+\frac {e (c+d x)^2 \sqrt {a+b \cosh ^{-1}(c+d x)}}{2 d}-\frac {(b e) \text {Subst}\left (\int \frac {\cosh (2 x)}{\sqrt {a+b x}} \, dx,x,\cosh ^{-1}(c+d x)\right )}{8 d}\\ &=-\frac {e \sqrt {a+b \cosh ^{-1}(c+d x)}}{4 d}+\frac {e (c+d x)^2 \sqrt {a+b \cosh ^{-1}(c+d x)}}{2 d}-\frac {(b e) \text {Subst}\left (\int \frac {e^{-2 x}}{\sqrt {a+b x}} \, dx,x,\cosh ^{-1}(c+d x)\right )}{16 d}-\frac {(b e) \text {Subst}\left (\int \frac {e^{2 x}}{\sqrt {a+b x}} \, dx,x,\cosh ^{-1}(c+d x)\right )}{16 d}\\ &=-\frac {e \sqrt {a+b \cosh ^{-1}(c+d x)}}{4 d}+\frac {e (c+d x)^2 \sqrt {a+b \cosh ^{-1}(c+d x)}}{2 d}-\frac {e \text {Subst}\left (\int e^{\frac {2 a}{b}-\frac {2 x^2}{b}} \, dx,x,\sqrt {a+b \cosh ^{-1}(c+d x)}\right )}{8 d}-\frac {e \text {Subst}\left (\int e^{-\frac {2 a}{b}+\frac {2 x^2}{b}} \, dx,x,\sqrt {a+b \cosh ^{-1}(c+d x)}\right )}{8 d}\\ &=-\frac {e \sqrt {a+b \cosh ^{-1}(c+d x)}}{4 d}+\frac {e (c+d x)^2 \sqrt {a+b \cosh ^{-1}(c+d x)}}{2 d}-\frac {\sqrt {b} e e^{\frac {2 a}{b}} \sqrt {\frac {\pi }{2}} \text {erf}\left (\frac {\sqrt {2} \sqrt {a+b \cosh ^{-1}(c+d x)}}{\sqrt {b}}\right )}{16 d}-\frac {\sqrt {b} e e^{-\frac {2 a}{b}} \sqrt {\frac {\pi }{2}} \text {erfi}\left (\frac {\sqrt {2} \sqrt {a+b \cosh ^{-1}(c+d x)}}{\sqrt {b}}\right )}{16 d}\\ \end {align*}
________________________________________________________________________________________
Mathematica [B] Leaf count is larger than twice the leaf count of optimal. \(437\) vs. \(2(164)=328\).
time = 1.99, size = 437, normalized size = 2.66 \begin {gather*} \frac {e \left (-32 c (c+d x) \sqrt {a+b \cosh ^{-1}(c+d x)}+8 \sqrt {a+b \cosh ^{-1}(c+d x)} \cosh \left (2 \cosh ^{-1}(c+d x)\right )+8 \sqrt {b} c \sqrt {\pi } \cosh \left (\frac {a}{b}\right ) \text {Erfi}\left (\frac {\sqrt {a+b \cosh ^{-1}(c+d x)}}{\sqrt {b}}\right )-\sqrt {b} \sqrt {2 \pi } \cosh \left (\frac {2 a}{b}\right ) \text {Erfi}\left (\frac {\sqrt {2} \sqrt {a+b \cosh ^{-1}(c+d x)}}{\sqrt {b}}\right )+16 c e^{-\frac {a}{b}} \sqrt {a+b \cosh ^{-1}(c+d x)} \left (\frac {e^{\frac {2 a}{b}} \Gamma \left (\frac {3}{2},\frac {a}{b}+\cosh ^{-1}(c+d x)\right )}{\sqrt {\frac {a}{b}+\cosh ^{-1}(c+d x)}}+\frac {\Gamma \left (\frac {3}{2},-\frac {a+b \cosh ^{-1}(c+d x)}{b}\right )}{\sqrt {-\frac {a+b \cosh ^{-1}(c+d x)}{b}}}\right )-8 \sqrt {b} c \sqrt {\pi } \text {Erfi}\left (\frac {\sqrt {a+b \cosh ^{-1}(c+d x)}}{\sqrt {b}}\right ) \sinh \left (\frac {a}{b}\right )+8 \sqrt {b} c \sqrt {\pi } \text {Erf}\left (\frac {\sqrt {a+b \cosh ^{-1}(c+d x)}}{\sqrt {b}}\right ) \left (\cosh \left (\frac {a}{b}\right )+\sinh \left (\frac {a}{b}\right )\right )+\sqrt {b} \sqrt {2 \pi } \text {Erfi}\left (\frac {\sqrt {2} \sqrt {a+b \cosh ^{-1}(c+d x)}}{\sqrt {b}}\right ) \sinh \left (\frac {2 a}{b}\right )-\sqrt {b} \sqrt {2 \pi } \text {Erf}\left (\frac {\sqrt {2} \sqrt {a+b \cosh ^{-1}(c+d x)}}{\sqrt {b}}\right ) \left (\cosh \left (\frac {2 a}{b}\right )+\sinh \left (\frac {2 a}{b}\right )\right )\right )}{32 d} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [F]
time = 0.02, size = 0, normalized size = 0.00 \[\int \left (d e x +c e \right ) \sqrt {a +b \,\mathrm {arccosh}\left (d x +c \right )}\, dx\]
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(-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]
________________________________________________________________________________________
Sympy [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} e \left (\int c \sqrt {a + b \operatorname {acosh}{\left (c + d x \right )}}\, dx + \int d x \sqrt {a + b \operatorname {acosh}{\left (c + d x \right )}}\, dx\right ) \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 \left (c\,e+d\,e\,x\right )\,\sqrt {a+b\,\mathrm {acosh}\left (c+d\,x\right )} \,d x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________