Optimal. Leaf size=47 \[ -\frac {2 \sqrt {1+\frac {1}{a^2 x^2}}}{a}-\frac {2}{a^2 x}+x+\frac {2 \tanh ^{-1}\left (\sqrt {1+\frac {1}{a^2 x^2}}\right )}{a} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.05, antiderivative size = 47, normalized size of antiderivative = 1.00, number of steps
used = 7, number of rules used = 6, integrand size = 8, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.750, Rules used = {6468, 6874, 272,
52, 65, 214} \begin {gather*} -\frac {2 \sqrt {\frac {1}{a^2 x^2}+1}}{a}+\frac {2 \tanh ^{-1}\left (\sqrt {\frac {1}{a^2 x^2}+1}\right )}{a}-\frac {2}{a^2 x}+x \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 52
Rule 65
Rule 214
Rule 272
Rule 6468
Rule 6874
Rubi steps
\begin {align*} \int e^{2 \text {csch}^{-1}(a x)} \, dx &=\int \left (\sqrt {1+\frac {1}{a^2 x^2}}+\frac {1}{a x}\right )^2 \, dx\\ &=\int \left (1+\frac {2}{a^2 x^2}+\frac {2 \sqrt {1+\frac {1}{a^2 x^2}}}{a x}\right ) \, dx\\ &=-\frac {2}{a^2 x}+x+\frac {2 \int \frac {\sqrt {1+\frac {1}{a^2 x^2}}}{x} \, dx}{a}\\ &=-\frac {2}{a^2 x}+x-\frac {\text {Subst}\left (\int \frac {\sqrt {1+\frac {x}{a^2}}}{x} \, dx,x,\frac {1}{x^2}\right )}{a}\\ &=-\frac {2 \sqrt {1+\frac {1}{a^2 x^2}}}{a}-\frac {2}{a^2 x}+x-\frac {\text {Subst}\left (\int \frac {1}{x \sqrt {1+\frac {x}{a^2}}} \, dx,x,\frac {1}{x^2}\right )}{a}\\ &=-\frac {2 \sqrt {1+\frac {1}{a^2 x^2}}}{a}-\frac {2}{a^2 x}+x-(2 a) \text {Subst}\left (\int \frac {1}{-a^2+a^2 x^2} \, dx,x,\sqrt {1+\frac {1}{a^2 x^2}}\right )\\ &=-\frac {2 \sqrt {1+\frac {1}{a^2 x^2}}}{a}-\frac {2}{a^2 x}+x+\frac {2 \tanh ^{-1}\left (\sqrt {1+\frac {1}{a^2 x^2}}\right )}{a}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.03, size = 52, normalized size = 1.11 \begin {gather*} -\frac {2 \sqrt {1+\frac {1}{a^2 x^2}}}{a}-\frac {2}{a^2 x}+x+\frac {2 \log \left (a \left (1+\sqrt {1+\frac {1}{a^2 x^2}}\right ) x\right )}{a} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [B] Leaf count of result is larger than twice the leaf count of optimal. \(111\) vs.
\(2(43)=86\).
time = 0.04, size = 112, normalized size = 2.38
method | result | size |
default | \(x -\frac {2}{a^{2} x}+\frac {2 \sqrt {\frac {a^{2} x^{2}+1}{a^{2} x^{2}}}\, \left (-a^{2} \left (\frac {a^{2} x^{2}+1}{a^{2}}\right )^{\frac {3}{2}}+\sqrt {\frac {a^{2} x^{2}+1}{a^{2}}}\, a^{2} x^{2}+\ln \left (x +\sqrt {\frac {a^{2} x^{2}+1}{a^{2}}}\right ) x \right )}{a \sqrt {\frac {a^{2} x^{2}+1}{a^{2}}}}\) | \(112\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A]
time = 0.25, size = 59, normalized size = 1.26 \begin {gather*} x - \frac {2 \, \sqrt {\frac {1}{a^{2} x^{2}} + 1} - \log \left (\sqrt {\frac {1}{a^{2} x^{2}} + 1} + 1\right ) + \log \left (\sqrt {\frac {1}{a^{2} x^{2}} + 1} - 1\right )}{a} - \frac {2}{a^{2} x} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A]
time = 0.33, size = 73, normalized size = 1.55 \begin {gather*} \frac {a^{2} x^{2} - 2 \, a x \log \left (a x \sqrt {\frac {a^{2} x^{2} + 1}{a^{2} x^{2}}} - a x\right ) - 2 \, a x \sqrt {\frac {a^{2} x^{2} + 1}{a^{2} x^{2}}} - 2 \, a x - 2}{a^{2} x} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [A]
time = 2.17, size = 49, normalized size = 1.04 \begin {gather*} x - \frac {2 x}{\sqrt {a^{2} x^{2} + 1}} + \frac {2 \operatorname {asinh}{\left (a x \right )}}{a} - \frac {2}{a^{2} x} - \frac {2}{a^{2} x \sqrt {a^{2} x^{2} + 1}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F(-2)]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Exception raised: TypeError} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [B]
time = 2.26, size = 47, normalized size = 1.00 \begin {gather*} x-\frac {2\,\sqrt {\frac {1}{a^2\,x^2}+1}}{a}-\frac {2}{a^2\,x}-\frac {\mathrm {atan}\left (\sqrt {\frac {1}{a^2\,x^2}+1}\,1{}\mathrm {i}\right )\,2{}\mathrm {i}}{a} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________