Optimal. Leaf size=106 \[ \frac{(d+e x)^2 \left (a+b \cosh ^{-1}(c x)\right )}{2 e}-\frac{b \left (\frac{e^2}{c^2}+2 d^2\right ) \cosh ^{-1}(c x)}{4 e}-\frac{b \sqrt{c x-1} \sqrt{c x+1} (d+e x)}{4 c}-\frac{3 b d \sqrt{c x-1} \sqrt{c x+1}}{4 c} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.0444908, antiderivative size = 106, normalized size of antiderivative = 1., number of steps used = 4, number of rules used = 4, integrand size = 14, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.286, Rules used = {5802, 90, 80, 52} \[ \frac{(d+e x)^2 \left (a+b \cosh ^{-1}(c x)\right )}{2 e}-\frac{b \left (\frac{e^2}{c^2}+2 d^2\right ) \cosh ^{-1}(c x)}{4 e}-\frac{b \sqrt{c x-1} \sqrt{c x+1} (d+e x)}{4 c}-\frac{3 b d \sqrt{c x-1} \sqrt{c x+1}}{4 c} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 5802
Rule 90
Rule 80
Rule 52
Rubi steps
\begin{align*} \int (d+e x) \left (a+b \cosh ^{-1}(c x)\right ) \, dx &=\frac{(d+e x)^2 \left (a+b \cosh ^{-1}(c x)\right )}{2 e}-\frac{(b c) \int \frac{(d+e x)^2}{\sqrt{-1+c x} \sqrt{1+c x}} \, dx}{2 e}\\ &=-\frac{b \sqrt{-1+c x} \sqrt{1+c x} (d+e x)}{4 c}+\frac{(d+e x)^2 \left (a+b \cosh ^{-1}(c x)\right )}{2 e}-\frac{b \int \frac{2 c^2 d^2+e^2+3 c^2 d e x}{\sqrt{-1+c x} \sqrt{1+c x}} \, dx}{4 c e}\\ &=-\frac{3 b d \sqrt{-1+c x} \sqrt{1+c x}}{4 c}-\frac{b \sqrt{-1+c x} \sqrt{1+c x} (d+e x)}{4 c}+\frac{(d+e x)^2 \left (a+b \cosh ^{-1}(c x)\right )}{2 e}-\frac{\left (b \left (2 c^2 d^2+e^2\right )\right ) \int \frac{1}{\sqrt{-1+c x} \sqrt{1+c x}} \, dx}{4 c e}\\ &=-\frac{3 b d \sqrt{-1+c x} \sqrt{1+c x}}{4 c}-\frac{b \sqrt{-1+c x} \sqrt{1+c x} (d+e x)}{4 c}-\frac{b \left (2 d^2+\frac{e^2}{c^2}\right ) \cosh ^{-1}(c x)}{4 e}+\frac{(d+e x)^2 \left (a+b \cosh ^{-1}(c x)\right )}{2 e}\\ \end{align*}
Mathematica [A] time = 0.0928296, size = 117, normalized size = 1.1 \[ a d x+\frac{1}{2} a e x^2-\frac{b e \tanh ^{-1}\left (\frac{\sqrt{c x-1}}{\sqrt{c x+1}}\right )}{2 c^2}-\frac{b d \sqrt{c x-1} \sqrt{c x+1}}{c}+b d x \cosh ^{-1}(c x)+\frac{1}{2} b e x^2 \cosh ^{-1}(c x)-\frac{b e x \sqrt{c x-1} \sqrt{c x+1}}{4 c} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A] time = 0.006, size = 123, normalized size = 1.2 \begin{align*}{\frac{a{x}^{2}e}{2}}+adx+{\frac{b{\rm arccosh} \left (cx\right ){x}^{2}e}{2}}+b{\rm arccosh} \left (cx\right )xd-{\frac{bex}{4\,c}\sqrt{cx-1}\sqrt{cx+1}}-{\frac{bd}{c}\sqrt{cx-1}\sqrt{cx+1}}-{\frac{be}{4\,{c}^{2}}\sqrt{cx-1}\sqrt{cx+1}\ln \left ( cx+\sqrt{{c}^{2}{x}^{2}-1} \right ){\frac{1}{\sqrt{{c}^{2}{x}^{2}-1}}}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A] time = 1.15359, size = 146, normalized size = 1.38 \begin{align*} \frac{1}{2} \, a e x^{2} + \frac{1}{4} \,{\left (2 \, x^{2} \operatorname{arcosh}\left (c x\right ) - c{\left (\frac{\sqrt{c^{2} x^{2} - 1} x}{c^{2}} + \frac{\log \left (2 \, c^{2} x + 2 \, \sqrt{c^{2} x^{2} - 1} \sqrt{c^{2}}\right )}{\sqrt{c^{2}} c^{2}}\right )}\right )} b e + a d x + \frac{{\left (c x \operatorname{arcosh}\left (c x\right ) - \sqrt{c^{2} x^{2} - 1}\right )} b d}{c} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A] time = 2.27267, size = 197, normalized size = 1.86 \begin{align*} \frac{2 \, a c^{2} e x^{2} + 4 \, a c^{2} d x +{\left (2 \, b c^{2} e x^{2} + 4 \, b c^{2} d x - b e\right )} \log \left (c x + \sqrt{c^{2} x^{2} - 1}\right ) -{\left (b c e x + 4 \, b c d\right )} \sqrt{c^{2} x^{2} - 1}}{4 \, c^{2}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [A] time = 0.417238, size = 105, normalized size = 0.99 \begin{align*} \begin{cases} a d x + \frac{a e x^{2}}{2} + b d x \operatorname{acosh}{\left (c x \right )} + \frac{b e x^{2} \operatorname{acosh}{\left (c x \right )}}{2} - \frac{b d \sqrt{c^{2} x^{2} - 1}}{c} - \frac{b e x \sqrt{c^{2} x^{2} - 1}}{4 c} - \frac{b e \operatorname{acosh}{\left (c x \right )}}{4 c^{2}} & \text{for}\: c \neq 0 \\\left (a + \frac{i \pi b}{2}\right ) \left (d x + \frac{e x^{2}}{2}\right ) & \text{otherwise} \end{cases} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A] time = 1.26328, size = 170, normalized size = 1.6 \begin{align*}{\left (x \log \left (c x + \sqrt{c^{2} x^{2} - 1}\right ) - \frac{\sqrt{c^{2} x^{2} - 1}}{c}\right )} b d + a d x + \frac{1}{4} \,{\left (2 \, a x^{2} +{\left (2 \, x^{2} \log \left (c x + \sqrt{c^{2} x^{2} - 1}\right ) - c{\left (\frac{\sqrt{c^{2} x^{2} - 1} x}{c^{2}} - \frac{\log \left ({\left | -x{\left | c \right |} + \sqrt{c^{2} x^{2} - 1} \right |}\right )}{c^{2}{\left | c \right |}}\right )}\right )} b\right )} e \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]