Optimal. Leaf size=83 \[ -\frac {\cosh ^{-1}(c x)}{e (d+e x)}+\frac {2 c \tanh ^{-1}\left (\frac {\sqrt {c d+e} \sqrt {1+c x}}{\sqrt {c d-e} \sqrt {-1+c x}}\right )}{\sqrt {c d-e} e \sqrt {c d+e}} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.06, antiderivative size = 83, normalized size of antiderivative = 1.00, number of steps
used = 3, number of rules used = 3, integrand size = 12, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.250, Rules used = {5963, 95, 214}
\begin {gather*} \frac {2 c \tanh ^{-1}\left (\frac {\sqrt {c x+1} \sqrt {c d+e}}{\sqrt {c x-1} \sqrt {c d-e}}\right )}{e \sqrt {c d-e} \sqrt {c d+e}}-\frac {\cosh ^{-1}(c x)}{e (d+e x)} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 95
Rule 214
Rule 5963
Rubi steps
\begin {align*} \int \frac {\cosh ^{-1}(c x)}{(d+e x)^2} \, dx &=-\frac {\cosh ^{-1}(c x)}{e (d+e x)}+\frac {c \int \frac {1}{\sqrt {-1+c x} \sqrt {1+c x} (d+e x)} \, dx}{e}\\ &=-\frac {\cosh ^{-1}(c x)}{e (d+e x)}+\frac {(2 c) \text {Subst}\left (\int \frac {1}{c d-e-(c d+e) x^2} \, dx,x,\frac {\sqrt {1+c x}}{\sqrt {-1+c x}}\right )}{e}\\ &=-\frac {\cosh ^{-1}(c x)}{e (d+e x)}+\frac {2 c \tanh ^{-1}\left (\frac {\sqrt {c d+e} \sqrt {1+c x}}{\sqrt {c d-e} \sqrt {-1+c x}}\right )}{\sqrt {c d-e} e \sqrt {c d+e}}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.07, size = 92, normalized size = 1.11 \begin {gather*} \frac {-\frac {\cosh ^{-1}(c x)}{d+e x}+\frac {c \left (\log (d+e x)-\log \left (e+c^2 d x-\sqrt {c^2 d^2-e^2} \sqrt {-1+c x} \sqrt {1+c x}\right )\right )}{\sqrt {c^2 d^2-e^2}}}{e} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A]
time = 5.67, size = 134, normalized size = 1.61
method | result | size |
derivativedivides | \(\frac {-\frac {c^{2} \mathrm {arccosh}\left (c x \right )}{\left (e c x +c d \right ) e}-\frac {c^{2} \sqrt {c x +1}\, \sqrt {c x -1}\, \ln \left (-\frac {2 \left (c^{2} d x -\sqrt {c^{2} x^{2}-1}\, \sqrt {\frac {c^{2} d^{2}-e^{2}}{e^{2}}}\, e +e \right )}{e c x +c d}\right )}{e^{2} \sqrt {\frac {c^{2} d^{2}-e^{2}}{e^{2}}}\, \sqrt {c^{2} x^{2}-1}}}{c}\) | \(134\) |
default | \(\frac {-\frac {c^{2} \mathrm {arccosh}\left (c x \right )}{\left (e c x +c d \right ) e}-\frac {c^{2} \sqrt {c x +1}\, \sqrt {c x -1}\, \ln \left (-\frac {2 \left (c^{2} d x -\sqrt {c^{2} x^{2}-1}\, \sqrt {\frac {c^{2} d^{2}-e^{2}}{e^{2}}}\, e +e \right )}{e c x +c d}\right )}{e^{2} \sqrt {\frac {c^{2} d^{2}-e^{2}}{e^{2}}}\, \sqrt {c^{2} x^{2}-1}}}{c}\) | \(134\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F(-2)]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Exception raised: ValueError} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [B] Leaf count of result is larger than twice the leaf count of optimal. 504 vs.
\(2 (74) = 148\).
time = 0.39, size = 1023, normalized size = 12.33 \begin {gather*} \left [\frac {{\left (c d x \cosh \left (1\right ) + c d x \sinh \left (1\right ) + c d^{2}\right )} \sqrt {\frac {{\left (c^{2} d^{2} - 1\right )} \cosh \left (1\right ) - {\left (c^{2} d^{2} + 1\right )} \sinh \left (1\right )}{\cosh \left (1\right ) - \sinh \left (1\right )}} \log \left (\frac {c^{3} d^{2} x + c d \cosh \left (1\right ) + c d \sinh \left (1\right ) + {\left (c^{2} d^{2} + c d \sqrt {\frac {{\left (c^{2} d^{2} - 1\right )} \cosh \left (1\right ) - {\left (c^{2} d^{2} + 1\right )} \sinh \left (1\right )}{\cosh \left (1\right ) - \sinh \left (1\right )}} - \cosh \left (1\right )^{2} - 2 \, \cosh \left (1\right ) \sinh \left (1\right ) - \sinh \left (1\right )^{2}\right )} \sqrt {c^{2} x^{2} - 1} + {\left (c^{2} d x + \cosh \left (1\right ) + \sinh \left (1\right )\right )} \sqrt {\frac {{\left (c^{2} d^{2} - 1\right )} \cosh \left (1\right ) - {\left (c^{2} d^{2} + 1\right )} \sinh \left (1\right )}{\cosh \left (1\right ) - \sinh \left (1\right )}}}{x \cosh \left (1\right ) + x \sinh \left (1\right ) + d}\right ) + {\left (c^{2} d^{2} x \cosh \left (1\right ) - x \cosh \left (1\right )^{3} - 3 \, x \cosh \left (1\right ) \sinh \left (1\right )^{2} - x \sinh \left (1\right )^{3} + {\left (c^{2} d^{2} x - 3 \, x \cosh \left (1\right )^{2}\right )} \sinh \left (1\right )\right )} \log \left (c x + \sqrt {c^{2} x^{2} - 1}\right ) + {\left (c^{2} d^{2} x \cosh \left (1\right ) + c^{2} d^{3} - x \cosh \left (1\right )^{3} - x \sinh \left (1\right )^{3} - d \cosh \left (1\right )^{2} - {\left (3 \, x \cosh \left (1\right ) + d\right )} \sinh \left (1\right )^{2} + {\left (c^{2} d^{2} x - 3 \, x \cosh \left (1\right )^{2} - 2 \, d \cosh \left (1\right )\right )} \sinh \left (1\right )\right )} \log \left (-c x + \sqrt {c^{2} x^{2} - 1}\right )}{c^{2} d^{3} x \cosh \left (1\right )^{2} + c^{2} d^{4} \cosh \left (1\right ) - d x \cosh \left (1\right )^{4} - d x \sinh \left (1\right )^{4} - d^{2} \cosh \left (1\right )^{3} - {\left (4 \, d x \cosh \left (1\right ) + d^{2}\right )} \sinh \left (1\right )^{3} + {\left (c^{2} d^{3} x - 6 \, d x \cosh \left (1\right )^{2} - 3 \, d^{2} \cosh \left (1\right )\right )} \sinh \left (1\right )^{2} + {\left (2 \, c^{2} d^{3} x \cosh \left (1\right ) + c^{2} d^{4} - 4 \, d x \cosh \left (1\right )^{3} - 3 \, d^{2} \cosh \left (1\right )^{2}\right )} \sinh \left (1\right )}, -\frac {2 \, {\left (c d x \cosh \left (1\right ) + c d x \sinh \left (1\right ) + c d^{2}\right )} \sqrt {-\frac {{\left (c^{2} d^{2} - 1\right )} \cosh \left (1\right ) - {\left (c^{2} d^{2} + 1\right )} \sinh \left (1\right )}{\cosh \left (1\right ) - \sinh \left (1\right )}} \arctan \left (-\frac {\sqrt {c^{2} x^{2} - 1} \sqrt {-\frac {{\left (c^{2} d^{2} - 1\right )} \cosh \left (1\right ) - {\left (c^{2} d^{2} + 1\right )} \sinh \left (1\right )}{\cosh \left (1\right ) - \sinh \left (1\right )}} {\left (\cosh \left (1\right ) + \sinh \left (1\right )\right )} - {\left (c x \cosh \left (1\right ) + c x \sinh \left (1\right ) + c d\right )} \sqrt {-\frac {{\left (c^{2} d^{2} - 1\right )} \cosh \left (1\right ) - {\left (c^{2} d^{2} + 1\right )} \sinh \left (1\right )}{\cosh \left (1\right ) - \sinh \left (1\right )}}}{c^{2} d^{2} - \cosh \left (1\right )^{2} - 2 \, \cosh \left (1\right ) \sinh \left (1\right ) - \sinh \left (1\right )^{2}}\right ) - {\left (c^{2} d^{2} x \cosh \left (1\right ) - x \cosh \left (1\right )^{3} - 3 \, x \cosh \left (1\right ) \sinh \left (1\right )^{2} - x \sinh \left (1\right )^{3} + {\left (c^{2} d^{2} x - 3 \, x \cosh \left (1\right )^{2}\right )} \sinh \left (1\right )\right )} \log \left (c x + \sqrt {c^{2} x^{2} - 1}\right ) - {\left (c^{2} d^{2} x \cosh \left (1\right ) + c^{2} d^{3} - x \cosh \left (1\right )^{3} - x \sinh \left (1\right )^{3} - d \cosh \left (1\right )^{2} - {\left (3 \, x \cosh \left (1\right ) + d\right )} \sinh \left (1\right )^{2} + {\left (c^{2} d^{2} x - 3 \, x \cosh \left (1\right )^{2} - 2 \, d \cosh \left (1\right )\right )} \sinh \left (1\right )\right )} \log \left (-c x + \sqrt {c^{2} x^{2} - 1}\right )}{c^{2} d^{3} x \cosh \left (1\right )^{2} + c^{2} d^{4} \cosh \left (1\right ) - d x \cosh \left (1\right )^{4} - d x \sinh \left (1\right )^{4} - d^{2} \cosh \left (1\right )^{3} - {\left (4 \, d x \cosh \left (1\right ) + d^{2}\right )} \sinh \left (1\right )^{3} + {\left (c^{2} d^{3} x - 6 \, d x \cosh \left (1\right )^{2} - 3 \, d^{2} \cosh \left (1\right )\right )} \sinh \left (1\right )^{2} + {\left (2 \, c^{2} d^{3} x \cosh \left (1\right ) + c^{2} d^{4} - 4 \, d x \cosh \left (1\right )^{3} - 3 \, d^{2} \cosh \left (1\right )^{2}\right )} \sinh \left (1\right )}\right ] \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 {\operatorname {acosh}{\left (c x \right )}}{\left (d + e x\right )^{2}}\, dx \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [B] Leaf count of result is larger than twice the leaf count of optimal. 240 vs.
\(2 (71) = 142\).
time = 0.58, size = 240, normalized size = 2.89 \begin {gather*} -\frac {\log \left (c x + \sqrt {c^{2} x^{2} - 1}\right )}{{\left (e x + d\right )} e} + \frac {\frac {c e^{4} \log \left ({\left | c^{2} d e - \sqrt {c^{2} d^{2} - e^{2}} {\left | c \right |} {\left | e \right |} \right |}\right ) \mathrm {sgn}\left (\frac {1}{e x + d}\right ) \mathrm {sgn}\left (e\right )}{\sqrt {c^{2} d^{2} - e^{2}} {\left | e \right |}} - \frac {c e^{4} \log \left ({\left | c^{2} d e - \sqrt {c^{2} d^{2} - e^{2}} {\left (\sqrt {c^{2} - \frac {2 \, c^{2} d}{e x + d} + \frac {c^{2} d^{2}}{{\left (e x + d\right )}^{2}} - \frac {e^{2}}{{\left (e x + d\right )}^{2}}} + \frac {\sqrt {c^{2} d^{2} e^{2} - e^{4}}}{{\left (e x + d\right )} e}\right )} {\left | e \right |} \right |}\right )}{\sqrt {c^{2} d^{2} - e^{2}} {\left | e \right |} \mathrm {sgn}\left (\frac {1}{e x + d}\right ) \mathrm {sgn}\left (e\right )}}{e^{4}} \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 {\mathrm {acosh}\left (c\,x\right )}{{\left (d+e\,x\right )}^2} \,d x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________