Optimal. Leaf size=50 \[ \frac {c \sqrt {1-a^2 x^2}}{a}+\frac {c \tanh ^{-1}\left (\sqrt {1-a^2 x^2}\right )}{a}-\frac {2 c \sin ^{-1}(a x)}{a} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.16, antiderivative size = 50, normalized size of antiderivative = 1.00, number of steps used = 9, number of rules used = 9, integrand size = 20, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.450, Rules used = {6131, 6128, 852, 1809, 844, 216, 266, 63, 208} \[ \frac {c \sqrt {1-a^2 x^2}}{a}+\frac {c \tanh ^{-1}\left (\sqrt {1-a^2 x^2}\right )}{a}-\frac {2 c \sin ^{-1}(a x)}{a} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 63
Rule 208
Rule 216
Rule 266
Rule 844
Rule 852
Rule 1809
Rule 6128
Rule 6131
Rubi steps
\begin {align*} \int e^{3 \tanh ^{-1}(a x)} \left (c-\frac {c}{a x}\right ) \, dx &=-\frac {c \int \frac {e^{3 \tanh ^{-1}(a x)} (1-a x)}{x} \, dx}{a}\\ &=-\frac {c \int \frac {\left (1-a^2 x^2\right )^{3/2}}{x (1-a x)^2} \, dx}{a}\\ &=-\frac {c \int \frac {(1+a x)^2}{x \sqrt {1-a^2 x^2}} \, dx}{a}\\ &=\frac {c \sqrt {1-a^2 x^2}}{a}+\frac {c \int \frac {-a^2-2 a^3 x}{x \sqrt {1-a^2 x^2}} \, dx}{a^3}\\ &=\frac {c \sqrt {1-a^2 x^2}}{a}-(2 c) \int \frac {1}{\sqrt {1-a^2 x^2}} \, dx-\frac {c \int \frac {1}{x \sqrt {1-a^2 x^2}} \, dx}{a}\\ &=\frac {c \sqrt {1-a^2 x^2}}{a}-\frac {2 c \sin ^{-1}(a x)}{a}-\frac {c \operatorname {Subst}\left (\int \frac {1}{x \sqrt {1-a^2 x}} \, dx,x,x^2\right )}{2 a}\\ &=\frac {c \sqrt {1-a^2 x^2}}{a}-\frac {2 c \sin ^{-1}(a x)}{a}+\frac {c \operatorname {Subst}\left (\int \frac {1}{\frac {1}{a^2}-\frac {x^2}{a^2}} \, dx,x,\sqrt {1-a^2 x^2}\right )}{a^3}\\ &=\frac {c \sqrt {1-a^2 x^2}}{a}-\frac {2 c \sin ^{-1}(a x)}{a}+\frac {c \tanh ^{-1}\left (\sqrt {1-a^2 x^2}\right )}{a}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A] time = 0.06, size = 47, normalized size = 0.94 \[ \frac {c \left (\sqrt {1-a^2 x^2}+\log \left (\sqrt {1-a^2 x^2}+1\right )-2 \sin ^{-1}(a x)-\log (x)\right )}{a} \]
Warning: Unable to verify antiderivative.
[In]
[Out]
________________________________________________________________________________________
fricas [A] time = 0.43, size = 66, normalized size = 1.32 \[ \frac {4 \, c \arctan \left (\frac {\sqrt {-a^{2} x^{2} + 1} - 1}{a x}\right ) - c \log \left (\frac {\sqrt {-a^{2} x^{2} + 1} - 1}{x}\right ) + \sqrt {-a^{2} x^{2} + 1} c}{a} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [A] time = 2.10, size = 68, normalized size = 1.36 \[ -\frac {2 \, c \arcsin \left (a x\right ) \mathrm {sgn}\relax (a)}{{\left | a \right |}} + \frac {c \log \left (\frac {{\left | -2 \, \sqrt {-a^{2} x^{2} + 1} {\left | a \right |} - 2 \, a \right |}}{2 \, a^{2} {\left | x \right |}}\right )}{{\left | a \right |}} + \frac {\sqrt {-a^{2} x^{2} + 1} c}{a} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [A] time = 0.04, size = 84, normalized size = 1.68 \[ -\frac {c a \,x^{2}}{\sqrt {-a^{2} x^{2}+1}}+\frac {c}{a \sqrt {-a^{2} x^{2}+1}}-\frac {2 c \arctan \left (\frac {\sqrt {a^{2}}\, x}{\sqrt {-a^{2} x^{2}+1}}\right )}{\sqrt {a^{2}}}+\frac {c \arctanh \left (\frac {1}{\sqrt {-a^{2} x^{2}+1}}\right )}{a} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [B] time = 0.47, size = 140, normalized size = 2.80 \[ -a^{3} c {\left (\frac {x^{2}}{\sqrt {-a^{2} x^{2} + 1} a^{2}} - \frac {2}{\sqrt {-a^{2} x^{2} + 1} a^{4}}\right )} + 2 \, a^{2} c {\left (\frac {x}{\sqrt {-a^{2} x^{2} + 1} a^{2}} - \frac {\arcsin \left (a x\right )}{a^{3}}\right )} - \frac {2 \, c x}{\sqrt {-a^{2} x^{2} + 1}} - \frac {c {\left (\frac {1}{\sqrt {-a^{2} x^{2} + 1}} - \log \left (\frac {2 \, \sqrt {-a^{2} x^{2} + 1}}{{\left | x \right |}} + \frac {2}{{\left | x \right |}}\right )\right )}}{a} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [B] time = 0.05, size = 56, normalized size = 1.12 \[ \frac {c\,\sqrt {1-a^2\,x^2}}{a}+\frac {c\,\mathrm {atanh}\left (\sqrt {1-a^2\,x^2}\right )}{a}-\frac {2\,c\,\mathrm {asinh}\left (x\,\sqrt {-a^2}\right )}{\sqrt {-a^2}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [A] time = 10.25, size = 104, normalized size = 2.08 \[ - a c \left (\begin {cases} \frac {x^{2}}{2} & \text {for}\: a^{2} = 0 \\- \frac {\sqrt {- a^{2} x^{2} + 1}}{a^{2}} & \text {otherwise} \end {cases}\right ) - 2 c \left (\begin {cases} \sqrt {\frac {1}{a^{2}}} \operatorname {asin}{\left (x \sqrt {a^{2}} \right )} & \text {for}\: a^{2} > 0 \\\sqrt {- \frac {1}{a^{2}}} \operatorname {asinh}{\left (x \sqrt {- a^{2}} \right )} & \text {for}\: a^{2} < 0 \end {cases}\right ) - \frac {c \left (\begin {cases} - \operatorname {acosh}{\left (\frac {1}{a x} \right )} & \text {for}\: \frac {1}{\left |{a^{2} x^{2}}\right |} > 1 \\i \operatorname {asin}{\left (\frac {1}{a x} \right )} & \text {otherwise} \end {cases}\right )}{a} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________