Optimal. Leaf size=65 \[ -\frac {c \left (1-a^2 x^2\right )^{3/2}}{2 a (1-a x)}-\frac {3 c \sqrt {1-a^2 x^2}}{2 a}+\frac {3 c \sin ^{-1}(a x)}{2 a} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.05, antiderivative size = 65, normalized size of antiderivative = 1.00, number of steps used = 4, number of rules used = 3, integrand size = 16, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.188, Rules used = {6127, 665, 216} \[ -\frac {c \left (1-a^2 x^2\right )^{3/2}}{2 a (1-a x)}-\frac {3 c \sqrt {1-a^2 x^2}}{2 a}+\frac {3 c \sin ^{-1}(a x)}{2 a} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 216
Rule 665
Rule 6127
Rubi steps
\begin {align*} \int e^{3 \tanh ^{-1}(a x)} (c-a c x) \, dx &=c^3 \int \frac {\left (1-a^2 x^2\right )^{3/2}}{(c-a c x)^2} \, dx\\ &=-\frac {c \left (1-a^2 x^2\right )^{3/2}}{2 a (1-a x)}+\frac {1}{2} \left (3 c^2\right ) \int \frac {\sqrt {1-a^2 x^2}}{c-a c x} \, dx\\ &=-\frac {3 c \sqrt {1-a^2 x^2}}{2 a}-\frac {c \left (1-a^2 x^2\right )^{3/2}}{2 a (1-a x)}+\frac {1}{2} (3 c) \int \frac {1}{\sqrt {1-a^2 x^2}} \, dx\\ &=-\frac {3 c \sqrt {1-a^2 x^2}}{2 a}-\frac {c \left (1-a^2 x^2\right )^{3/2}}{2 a (1-a x)}+\frac {3 c \sin ^{-1}(a x)}{2 a}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A] time = 0.04, size = 48, normalized size = 0.74 \[ -\frac {c \left (\sqrt {1-a^2 x^2} (a x+4)+6 \sin ^{-1}\left (\frac {\sqrt {1-a x}}{\sqrt {2}}\right )\right )}{2 a} \]
Warning: Unable to verify antiderivative.
[In]
[Out]
________________________________________________________________________________________
fricas [A] time = 0.61, size = 52, normalized size = 0.80 \[ -\frac {6 \, c \arctan \left (\frac {\sqrt {-a^{2} x^{2} + 1} - 1}{a x}\right ) + \sqrt {-a^{2} x^{2} + 1} {\left (a c x + 4 \, c\right )}}{2 \, a} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [A] time = 0.19, size = 38, normalized size = 0.58 \[ \frac {3 \, c \arcsin \left (a x\right ) \mathrm {sgn}\relax (a)}{2 \, {\left | a \right |}} - \frac {1}{2} \, \sqrt {-a^{2} x^{2} + 1} {\left (c x + \frac {4 \, c}{a}\right )} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [A] time = 0.04, size = 104, normalized size = 1.60 \[ \frac {c \,a^{2} x^{3}}{2 \sqrt {-a^{2} x^{2}+1}}-\frac {c x}{2 \sqrt {-a^{2} x^{2}+1}}+\frac {3 c \arctan \left (\frac {\sqrt {a^{2}}\, x}{\sqrt {-a^{2} x^{2}+1}}\right )}{2 \sqrt {a^{2}}}+\frac {2 c a \,x^{2}}{\sqrt {-a^{2} x^{2}+1}}-\frac {2 c}{a \sqrt {-a^{2} x^{2}+1}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [A] time = 0.42, size = 85, normalized size = 1.31 \[ \frac {a^{2} c x^{3}}{2 \, \sqrt {-a^{2} x^{2} + 1}} + \frac {2 \, a c x^{2}}{\sqrt {-a^{2} x^{2} + 1}} - \frac {c x}{2 \, \sqrt {-a^{2} x^{2} + 1}} + \frac {3 \, c \arcsin \left (a x\right )}{2 \, a} - \frac {2 \, c}{\sqrt {-a^{2} x^{2} + 1} a} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [B] time = 0.03, size = 58, normalized size = 0.89 \[ \frac {\frac {3\,c\,\mathrm {asinh}\left (x\,\sqrt {-a^2}\right )}{2}+\sqrt {1-a^2\,x^2}\,\left (\frac {2\,a\,c}{\sqrt {-a^2}}-\frac {c\,x\,\sqrt {-a^2}}{2}\right )}{\sqrt {-a^2}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [A] time = 10.29, size = 165, normalized size = 2.54 \[ a^{2} c \left (\begin {cases} - \frac {i x \sqrt {a^{2} x^{2} - 1}}{2 a^{2}} - \frac {i \operatorname {acosh}{\left (a x \right )}}{2 a^{3}} & \text {for}\: \left |{a^{2} x^{2}}\right | > 1 \\\frac {x^{3}}{2 \sqrt {- a^{2} x^{2} + 1}} - \frac {x}{2 a^{2} \sqrt {- a^{2} x^{2} + 1}} + \frac {\operatorname {asin}{\left (a x \right )}}{2 a^{3}} & \text {otherwise} \end {cases}\right ) + 2 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 ) + 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 ) \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________