Optimal. Leaf size=97 \[ -\frac {1}{4} \left (\frac {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)}{4 c}+\frac {\cosh ^{-1}(c x) (d+e x)^2}{2 e}-\frac {3 d \sqrt {c x-1} \sqrt {c x+1}}{4 c} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.04, antiderivative size = 97, normalized size of antiderivative = 1.00, number of steps used = 4, number of rules used = 4, integrand size = 10, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.400, Rules used = {5802, 90, 80, 52} \[ -\frac {1}{4} \left (\frac {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)}{4 c}+\frac {\cosh ^{-1}(c x) (d+e x)^2}{2 e}-\frac {3 d \sqrt {c x-1} \sqrt {c x+1}}{4 c} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 52
Rule 80
Rule 90
Rule 5802
Rubi steps
\begin {align*} \int (d+e x) \cosh ^{-1}(c x) \, dx &=\frac {(d+e x)^2 \cosh ^{-1}(c x)}{2 e}-\frac {c \int \frac {(d+e x)^2}{\sqrt {-1+c x} \sqrt {1+c x}} \, dx}{2 e}\\ &=-\frac {\sqrt {-1+c x} \sqrt {1+c x} (d+e x)}{4 c}+\frac {(d+e x)^2 \cosh ^{-1}(c x)}{2 e}-\frac {\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 d \sqrt {-1+c x} \sqrt {1+c x}}{4 c}-\frac {\sqrt {-1+c x} \sqrt {1+c x} (d+e x)}{4 c}+\frac {(d+e x)^2 \cosh ^{-1}(c x)}{2 e}-\frac {1}{4} \left (\frac {2 c d^2}{e}+\frac {e}{c}\right ) \int \frac {1}{\sqrt {-1+c x} \sqrt {1+c x}} \, dx\\ &=-\frac {3 d \sqrt {-1+c x} \sqrt {1+c x}}{4 c}-\frac {\sqrt {-1+c x} \sqrt {1+c x} (d+e x)}{4 c}-\frac {1}{4} \left (\frac {2 d^2}{e}+\frac {e}{c^2}\right ) \cosh ^{-1}(c x)+\frac {(d+e x)^2 \cosh ^{-1}(c x)}{2 e}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A] time = 0.08, size = 73, normalized size = 0.75 \[ -\frac {-2 c^2 x \cosh ^{-1}(c x) (2 d+e x)+c \sqrt {c x-1} \sqrt {c x+1} (4 d+e x)+2 e \tanh ^{-1}\left (\sqrt {\frac {c x-1}{c x+1}}\right )}{4 c^2} \]
Warning: Unable to verify antiderivative.
[In]
[Out]
________________________________________________________________________________________
fricas [A] time = 0.49, size = 65, normalized size = 0.67 \[ \frac {{\left (2 \, c^{2} e x^{2} + 4 \, c^{2} d x - e\right )} \log \left (c x + \sqrt {c^{2} x^{2} - 1}\right ) - \sqrt {c^{2} x^{2} - 1} {\left (c e x + 4 \, c d\right )}}{4 \, c^{2}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [A] time = 0.29, size = 87, normalized size = 0.90 \[ \frac {1}{2} \, {\left (x^{2} e + 2 \, d x\right )} \log \left (c x + \sqrt {c^{2} x^{2} - 1}\right ) - \frac {1}{4} \, \sqrt {c^{2} x^{2} - 1} {\left (\frac {x e}{c} + \frac {4 \, d}{c}\right )} + \frac {e \log \left ({\left | -x {\left | c \right |} + \sqrt {c^{2} x^{2} - 1} \right |}\right )}{4 \, c {\left | c \right |}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [A] time = 0.01, size = 107, normalized size = 1.10 \[ \frac {\mathrm {arccosh}\left (c x \right ) x^{2} e}{2}+\mathrm {arccosh}\left (c x \right ) x d -\frac {\sqrt {c x -1}\, \sqrt {c x +1}\, e x}{4 c}-\frac {d \sqrt {c x -1}\, \sqrt {c x +1}}{c}-\frac {\sqrt {c x -1}\, \sqrt {c x +1}\, e \ln \left (c x +\sqrt {c^{2} x^{2}-1}\right )}{4 c^{2} \sqrt {c^{2} x^{2}-1}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [A] time = 0.46, size = 82, normalized size = 0.85 \[ -\frac {1}{4} \, c {\left (\frac {\sqrt {c^{2} x^{2} - 1} e x}{c^{2}} + \frac {4 \, \sqrt {c^{2} x^{2} - 1} d}{c^{2}} + \frac {e \log \left (2 \, c^{2} x + 2 \, \sqrt {c^{2} x^{2} - 1} c\right )}{c^{3}}\right )} + \frac {1}{2} \, {\left (e x^{2} + 2 \, d x\right )} \operatorname {arcosh}\left (c x\right ) \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [B] time = 0.71, size = 68, normalized size = 0.70 \[ d\,x\,\mathrm {acosh}\left (c\,x\right )+e\,x\,\mathrm {acosh}\left (c\,x\right )\,\left (\frac {x}{2}-\frac {1}{4\,c^2\,x}\right )-\frac {d\,\sqrt {c\,x-1}\,\sqrt {c\,x+1}}{c}-\frac {e\,x\,\sqrt {c\,x-1}\,\sqrt {c\,x+1}}{4\,c} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [A] time = 0.26, size = 80, normalized size = 0.82 \[ \begin {cases} d x \operatorname {acosh}{\left (c x \right )} + \frac {e x^{2} \operatorname {acosh}{\left (c x \right )}}{2} - \frac {d \sqrt {c^{2} x^{2} - 1}}{c} - \frac {e x \sqrt {c^{2} x^{2} - 1}}{4 c} - \frac {e \operatorname {acosh}{\left (c x \right )}}{4 c^{2}} & \text {for}\: c \neq 0 \\\frac {i \pi \left (d x + \frac {e x^{2}}{2}\right )}{2} & \text {otherwise} \end {cases} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________