Optimal. Leaf size=123 \[ -\frac{\sqrt{c x-1} \sqrt{c x+1} \left (4 \left (4 c^2 d^2+e^2\right )+5 c^2 d e x\right )}{18 c^3}-\frac{1}{6} d \left (\frac{3 e}{c^2}+\frac{2 d^2}{e}\right ) \cosh ^{-1}(c x)-\frac{\sqrt{c x-1} \sqrt{c x+1} (d+e x)^2}{9 c}+\frac{\cosh ^{-1}(c x) (d+e x)^3}{3 e} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.103075, antiderivative size = 123, normalized size of antiderivative = 1., number of steps used = 4, number of rules used = 4, integrand size = 12, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.333, Rules used = {5802, 100, 147, 52} \[ -\frac{\sqrt{c x-1} \sqrt{c x+1} \left (4 \left (4 c^2 d^2+e^2\right )+5 c^2 d e x\right )}{18 c^3}-\frac{1}{6} d \left (\frac{3 e}{c^2}+\frac{2 d^2}{e}\right ) \cosh ^{-1}(c x)-\frac{\sqrt{c x-1} \sqrt{c x+1} (d+e x)^2}{9 c}+\frac{\cosh ^{-1}(c x) (d+e x)^3}{3 e} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 5802
Rule 100
Rule 147
Rule 52
Rubi steps
\begin{align*} \int (d+e x)^2 \cosh ^{-1}(c x) \, dx &=\frac{(d+e x)^3 \cosh ^{-1}(c x)}{3 e}-\frac{c \int \frac{(d+e x)^3}{\sqrt{-1+c x} \sqrt{1+c x}} \, dx}{3 e}\\ &=-\frac{\sqrt{-1+c x} \sqrt{1+c x} (d+e x)^2}{9 c}+\frac{(d+e x)^3 \cosh ^{-1}(c x)}{3 e}-\frac{\int \frac{(d+e x) \left (3 c^2 d^2+2 e^2+5 c^2 d e x\right )}{\sqrt{-1+c x} \sqrt{1+c x}} \, dx}{9 c e}\\ &=-\frac{\sqrt{-1+c x} \sqrt{1+c x} (d+e x)^2}{9 c}-\frac{\sqrt{-1+c x} \sqrt{1+c x} \left (4 \left (4 c^2 d^2+e^2\right )+5 c^2 d e x\right )}{18 c^3}+\frac{(d+e x)^3 \cosh ^{-1}(c x)}{3 e}-\frac{1}{6} \left (d \left (\frac{2 c d^2}{e}+\frac{3 e}{c}\right )\right ) \int \frac{1}{\sqrt{-1+c x} \sqrt{1+c x}} \, dx\\ &=-\frac{\sqrt{-1+c x} \sqrt{1+c x} (d+e x)^2}{9 c}-\frac{\sqrt{-1+c x} \sqrt{1+c x} \left (4 \left (4 c^2 d^2+e^2\right )+5 c^2 d e x\right )}{18 c^3}-\frac{1}{6} d \left (\frac{2 d^2}{e}+\frac{3 e}{c^2}\right ) \cosh ^{-1}(c x)+\frac{(d+e x)^3 \cosh ^{-1}(c x)}{3 e}\\ \end{align*}
Mathematica [A] time = 0.168389, size = 113, normalized size = 0.92 \[ -\frac{\sqrt{c x-1} \sqrt{c x+1} \left (c^2 \left (18 d^2+9 d e x+2 e^2 x^2\right )+4 e^2\right )-6 c^3 x \cosh ^{-1}(c x) \left (3 d^2+3 d e x+e^2 x^2\right )+9 c d e \log \left (c x+\sqrt{c x-1} \sqrt{c x+1}\right )}{18 c^3} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [B] time = 0.013, size = 233, normalized size = 1.9 \begin{align*}{\frac{{e}^{2}{\rm arccosh} \left (cx\right ){x}^{3}}{3}}+e{\rm arccosh} \left (cx\right ){x}^{2}d+{\rm arccosh} \left (cx\right )x{d}^{2}+{\frac{{\rm arccosh} \left (cx\right ){d}^{3}}{3\,e}}-{\frac{{e}^{2}{x}^{2}}{9\,c}\sqrt{cx-1}\sqrt{cx+1}}-{\frac{{d}^{3}}{3\,e}\sqrt{cx-1}\sqrt{cx+1}\ln \left ( cx+\sqrt{{c}^{2}{x}^{2}-1} \right ){\frac{1}{\sqrt{{c}^{2}{x}^{2}-1}}}}-{\frac{dex}{2\,c}\sqrt{cx-1}\sqrt{cx+1}}-{\frac{{d}^{2}}{c}\sqrt{cx-1}\sqrt{cx+1}}-{\frac{de}{2\,{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}}}}-{\frac{2\,{e}^{2}}{9\,{c}^{3}}\sqrt{cx-1}\sqrt{cx+1}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A] time = 1.08668, size = 201, normalized size = 1.63 \begin{align*} -\frac{1}{18} \,{\left (\frac{2 \, \sqrt{c^{2} x^{2} - 1} e^{2} x^{2}}{c^{2}} + \frac{9 \, \sqrt{c^{2} x^{2} - 1} d e x}{c^{2}} + \frac{18 \, \sqrt{c^{2} x^{2} - 1} d^{2}}{c^{2}} + \frac{9 \, d e \log \left (2 \, c^{2} x + 2 \, \sqrt{c^{2} x^{2} - 1} \sqrt{c^{2}}\right )}{\sqrt{c^{2}} c^{2}} + \frac{4 \, \sqrt{c^{2} x^{2} - 1} e^{2}}{c^{4}}\right )} c + \frac{1}{3} \,{\left (e^{2} x^{3} + 3 \, d e x^{2} + 3 \, d^{2} x\right )} \operatorname{arcosh}\left (c x\right ) \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A] time = 2.00196, size = 230, normalized size = 1.87 \begin{align*} \frac{3 \,{\left (2 \, c^{3} e^{2} x^{3} + 6 \, c^{3} d e x^{2} + 6 \, c^{3} d^{2} x - 3 \, c d e\right )} \log \left (c x + \sqrt{c^{2} x^{2} - 1}\right ) -{\left (2 \, c^{2} e^{2} x^{2} + 9 \, c^{2} d e x + 18 \, c^{2} d^{2} + 4 \, e^{2}\right )} \sqrt{c^{2} x^{2} - 1}}{18 \, c^{3}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [A] time = 0.832006, size = 155, normalized size = 1.26 \begin{align*} \begin{cases} d^{2} x \operatorname{acosh}{\left (c x \right )} + d e x^{2} \operatorname{acosh}{\left (c x \right )} + \frac{e^{2} x^{3} \operatorname{acosh}{\left (c x \right )}}{3} - \frac{d^{2} \sqrt{c^{2} x^{2} - 1}}{c} - \frac{d e x \sqrt{c^{2} x^{2} - 1}}{2 c} - \frac{e^{2} x^{2} \sqrt{c^{2} x^{2} - 1}}{9 c} - \frac{d e \operatorname{acosh}{\left (c x \right )}}{2 c^{2}} - \frac{2 e^{2} \sqrt{c^{2} x^{2} - 1}}{9 c^{3}} & \text{for}\: c \neq 0 \\\frac{i \pi \left (d^{2} x + d e x^{2} + \frac{e^{2} x^{3}}{3}\right )}{2} & \text{otherwise} \end{cases} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A] time = 1.16729, size = 174, normalized size = 1.41 \begin{align*} \frac{1}{3} \,{\left (x e + d\right )}^{3} e^{\left (-1\right )} \log \left (c x + \sqrt{c^{2} x^{2} - 1}\right ) - \frac{1}{18} \,{\left (\sqrt{c^{2} x^{2} - 1}{\left (x{\left (\frac{2 \, x e^{3}}{c} + \frac{9 \, d e^{2}}{c}\right )} + \frac{2 \,{\left (9 \, c^{3} d^{2} e + 2 \, c e^{3}\right )}}{c^{4}}\right )} - \frac{3 \,{\left (2 \, c^{2} d^{3} + 3 \, d e^{2}\right )} \log \left ({\left | -x{\left | c \right |} + \sqrt{c^{2} x^{2} - 1} \right |}\right )}{c{\left | c \right |}}\right )} e^{\left (-1\right )} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]