Optimal. Leaf size=77 \[ \frac {2 a (1+a x)}{\sqrt {c-a^2 c x^2}}-\frac {\sqrt {c-a^2 c x^2}}{c x}-\frac {2 a \tanh ^{-1}\left (\frac {\sqrt {c-a^2 c x^2}}{\sqrt {c}}\right )}{\sqrt {c}} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.17, antiderivative size = 77, normalized size of antiderivative = 1.00, number of steps
used = 6, number of rules used = 6, integrand size = 27, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.222, Rules used = {6286, 1819,
821, 272, 65, 214} \begin {gather*} \frac {2 a (a x+1)}{\sqrt {c-a^2 c x^2}}-\frac {\sqrt {c-a^2 c x^2}}{c x}-\frac {2 a \tanh ^{-1}\left (\frac {\sqrt {c-a^2 c x^2}}{\sqrt {c}}\right )}{\sqrt {c}} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 65
Rule 214
Rule 272
Rule 821
Rule 1819
Rule 6286
Rubi steps
\begin {align*} \int \frac {e^{2 \tanh ^{-1}(a x)}}{x^2 \sqrt {c-a^2 c x^2}} \, dx &=c \int \frac {(1+a x)^2}{x^2 \left (c-a^2 c x^2\right )^{3/2}} \, dx\\ &=\frac {2 a (1+a x)}{\sqrt {c-a^2 c x^2}}-\int \frac {-1-2 a x}{x^2 \sqrt {c-a^2 c x^2}} \, dx\\ &=\frac {2 a (1+a x)}{\sqrt {c-a^2 c x^2}}-\frac {\sqrt {c-a^2 c x^2}}{c x}+(2 a) \int \frac {1}{x \sqrt {c-a^2 c x^2}} \, dx\\ &=\frac {2 a (1+a x)}{\sqrt {c-a^2 c x^2}}-\frac {\sqrt {c-a^2 c x^2}}{c x}+a \text {Subst}\left (\int \frac {1}{x \sqrt {c-a^2 c x}} \, dx,x,x^2\right )\\ &=\frac {2 a (1+a x)}{\sqrt {c-a^2 c x^2}}-\frac {\sqrt {c-a^2 c x^2}}{c x}-\frac {2 \text {Subst}\left (\int \frac {1}{\frac {1}{a^2}-\frac {x^2}{a^2 c}} \, dx,x,\sqrt {c-a^2 c x^2}\right )}{a c}\\ &=\frac {2 a (1+a x)}{\sqrt {c-a^2 c x^2}}-\frac {\sqrt {c-a^2 c x^2}}{c x}-\frac {2 a \tanh ^{-1}\left (\frac {\sqrt {c-a^2 c x^2}}{\sqrt {c}}\right )}{\sqrt {c}}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.19, size = 78, normalized size = 1.01 \begin {gather*} \frac {(1-3 a x) \sqrt {c-a^2 c x^2}}{c x (-1+a x)}+\frac {2 a \log (x)}{\sqrt {c}}-\frac {2 a \log \left (c+\sqrt {c} \sqrt {c-a^2 c x^2}\right )}{\sqrt {c}} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A]
time = 0.07, size = 99, normalized size = 1.29
method | result | size |
default | \(-\frac {\sqrt {-a^{2} c \,x^{2}+c}}{c x}-\frac {2 a \ln \left (\frac {2 c +2 \sqrt {c}\, \sqrt {-a^{2} c \,x^{2}+c}}{x}\right )}{\sqrt {c}}-\frac {2 \sqrt {-c \,a^{2} \left (x -\frac {1}{a}\right )^{2}-2 c a \left (x -\frac {1}{a}\right )}}{c \left (x -\frac {1}{a}\right )}\) | \(99\) |
risch | \(\frac {a^{2} x^{2}-1}{x \sqrt {-c \left (a^{2} x^{2}-1\right )}}-\frac {2 \sqrt {-c \,a^{2} \left (x -\frac {1}{a}\right )^{2}-2 c a \left (x -\frac {1}{a}\right )}}{c \left (x -\frac {1}{a}\right )}-\frac {2 a \ln \left (\frac {2 c +2 \sqrt {c}\, \sqrt {-a^{2} c \,x^{2}+c}}{x}\right )}{\sqrt {c}}\) | \(105\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Failed to integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A]
time = 0.36, size = 178, normalized size = 2.31 \begin {gather*} \left [\frac {{\left (a^{2} x^{2} - a x\right )} \sqrt {c} \log \left (-\frac {a^{2} c x^{2} + 2 \, \sqrt {-a^{2} c x^{2} + c} \sqrt {c} - 2 \, c}{x^{2}}\right ) - \sqrt {-a^{2} c x^{2} + c} {\left (3 \, a x - 1\right )}}{a c x^{2} - c x}, -\frac {2 \, {\left (a^{2} x^{2} - a x\right )} \sqrt {-c} \arctan \left (\frac {\sqrt {-a^{2} c x^{2} + c} \sqrt {-c}}{a^{2} c x^{2} - c}\right ) + \sqrt {-a^{2} c x^{2} + c} {\left (3 \, a x - 1\right )}}{a c x^{2} - c x}\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 {a x}{a x^{3} \sqrt {- a^{2} c x^{2} + c} - x^{2} \sqrt {- a^{2} c x^{2} + c}}\, dx - \int \frac {1}{a x^{3} \sqrt {- a^{2} c x^{2} + c} - x^{2} \sqrt {- a^{2} c x^{2} + c}}\, dx \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {could not integrate} \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 {{\left (a\,x+1\right )}^2}{x^2\,\sqrt {c-a^2\,c\,x^2}\,\left (a^2\,x^2-1\right )} \,d x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________