Optimal. Leaf size=74 \[ -2 \sqrt {c-a c x}-2 \sqrt {c} \tanh ^{-1}\left (\frac {\sqrt {c-a c x}}{\sqrt {c}}\right )+4 \sqrt {2} \sqrt {c} \tanh ^{-1}\left (\frac {\sqrt {c-a c x}}{\sqrt {2} \sqrt {c}}\right ) \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.09, antiderivative size = 74, normalized size of antiderivative = 1.00, number of steps
used = 8, number of rules used = 7, integrand size = 23, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.304, Rules used = {6265, 21, 86,
162, 65, 214, 212} \begin {gather*} -2 \sqrt {c-a c x}-2 \sqrt {c} \tanh ^{-1}\left (\frac {\sqrt {c-a c x}}{\sqrt {c}}\right )+4 \sqrt {2} \sqrt {c} \tanh ^{-1}\left (\frac {\sqrt {c-a c x}}{\sqrt {2} \sqrt {c}}\right ) \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 21
Rule 65
Rule 86
Rule 162
Rule 212
Rule 214
Rule 6265
Rubi steps
\begin {align*} \int \frac {e^{-2 \tanh ^{-1}(a x)} \sqrt {c-a c x}}{x} \, dx &=\int \frac {(1-a x) \sqrt {c-a c x}}{x (1+a x)} \, dx\\ &=\frac {\int \frac {(c-a c x)^{3/2}}{x (1+a x)} \, dx}{c}\\ &=-2 \sqrt {c-a c x}+\frac {\int \frac {a c^2-3 a^2 c^2 x}{x (1+a x) \sqrt {c-a c x}} \, dx}{a c}\\ &=-2 \sqrt {c-a c x}+c \int \frac {1}{x \sqrt {c-a c x}} \, dx-(4 a c) \int \frac {1}{(1+a x) \sqrt {c-a c x}} \, dx\\ &=-2 \sqrt {c-a c x}+8 \text {Subst}\left (\int \frac {1}{2-\frac {x^2}{c}} \, dx,x,\sqrt {c-a c x}\right )-\frac {2 \text {Subst}\left (\int \frac {1}{\frac {1}{a}-\frac {x^2}{a c}} \, dx,x,\sqrt {c-a c x}\right )}{a}\\ &=-2 \sqrt {c-a c x}-2 \sqrt {c} \tanh ^{-1}\left (\frac {\sqrt {c-a c x}}{\sqrt {c}}\right )+4 \sqrt {2} \sqrt {c} \tanh ^{-1}\left (\frac {\sqrt {c-a c x}}{\sqrt {2} \sqrt {c}}\right )\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.02, size = 74, normalized size = 1.00 \begin {gather*} -2 \sqrt {c-a c x}-2 \sqrt {c} \tanh ^{-1}\left (\frac {\sqrt {c-a c x}}{\sqrt {c}}\right )+4 \sqrt {2} \sqrt {c} \tanh ^{-1}\left (\frac {\sqrt {c-a c x}}{\sqrt {2} \sqrt {c}}\right ) \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A]
time = 0.72, size = 58, normalized size = 0.78
method | result | size |
derivativedivides | \(-2 \arctanh \left (\frac {\sqrt {-c x a +c}}{\sqrt {c}}\right ) \sqrt {c}+4 \arctanh \left (\frac {\sqrt {-c x a +c}\, \sqrt {2}}{2 \sqrt {c}}\right ) \sqrt {2}\, \sqrt {c}-2 \sqrt {-c x a +c}\) | \(58\) |
default | \(-2 \arctanh \left (\frac {\sqrt {-c x a +c}}{\sqrt {c}}\right ) \sqrt {c}+4 \arctanh \left (\frac {\sqrt {-c x a +c}\, \sqrt {2}}{2 \sqrt {c}}\right ) \sqrt {2}\, \sqrt {c}-2 \sqrt {-c x a +c}\) | \(58\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A]
time = 0.48, size = 97, normalized size = 1.31 \begin {gather*} -2 \, \sqrt {2} \sqrt {c} \log \left (-\frac {\sqrt {2} \sqrt {c} - \sqrt {-a c x + c}}{\sqrt {2} \sqrt {c} + \sqrt {-a c x + c}}\right ) + \sqrt {c} \log \left (\frac {\sqrt {-a c x + c} - \sqrt {c}}{\sqrt {-a c x + c} + \sqrt {c}}\right ) - 2 \, \sqrt {-a c x + c} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A]
time = 0.42, size = 157, normalized size = 2.12 \begin {gather*} \left [2 \, \sqrt {2} \sqrt {c} \log \left (\frac {a c x - 2 \, \sqrt {2} \sqrt {-a c x + c} \sqrt {c} - 3 \, c}{a x + 1}\right ) + \sqrt {c} \log \left (\frac {a c x + 2 \, \sqrt {-a c x + c} \sqrt {c} - 2 \, c}{x}\right ) - 2 \, \sqrt {-a c x + c}, -4 \, \sqrt {2} \sqrt {-c} \arctan \left (\frac {\sqrt {2} \sqrt {-a c x + c} \sqrt {-c}}{2 \, c}\right ) + 2 \, \sqrt {-c} \arctan \left (\frac {\sqrt {-a c x + c} \sqrt {-c}}{c}\right ) - 2 \, \sqrt {-a c x + c}\right ] \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [A]
time = 5.33, size = 80, normalized size = 1.08 \begin {gather*} \frac {2 c \operatorname {atan}{\left (\frac {\sqrt {- a c x + c}}{\sqrt {- c}} \right )}}{\sqrt {- c}} - \frac {4 \sqrt {2} c \operatorname {atan}{\left (\frac {\sqrt {2} \sqrt {- a c x + c}}{2 \sqrt {- c}} \right )}}{\sqrt {- c}} - 2 \sqrt {- a c x + c} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A]
time = 0.41, size = 67, normalized size = 0.91 \begin {gather*} -\frac {4 \, \sqrt {2} c \arctan \left (\frac {\sqrt {2} \sqrt {-a c x + c}}{2 \, \sqrt {-c}}\right )}{\sqrt {-c}} + \frac {2 \, c \arctan \left (\frac {\sqrt {-a c x + c}}{\sqrt {-c}}\right )}{\sqrt {-c}} - 2 \, \sqrt {-a c x + c} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [B]
time = 0.83, size = 57, normalized size = 0.77 \begin {gather*} 4\,\sqrt {2}\,\sqrt {c}\,\mathrm {atanh}\left (\frac {\sqrt {2}\,\sqrt {c-a\,c\,x}}{2\,\sqrt {c}}\right )-2\,\sqrt {c-a\,c\,x}-2\,\sqrt {c}\,\mathrm {atanh}\left (\frac {\sqrt {c-a\,c\,x}}{\sqrt {c}}\right ) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________