Optimal. Leaf size=91 \[ -\frac {c \sqrt {1-a^2 x^2} (a x+1)^2}{3 a}-\frac {5 c \sqrt {1-a^2 x^2} (a x+1)}{6 a}-\frac {5 c \sqrt {1-a^2 x^2}}{2 a}+\frac {5 c \sin ^{-1}(a x)}{2 a} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.06, antiderivative size = 91, normalized size of antiderivative = 1.00, number of steps used = 5, number of rules used = 4, integrand size = 20, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.200, Rules used = {6138, 671, 641, 216} \[ -\frac {c \sqrt {1-a^2 x^2} (a x+1)^2}{3 a}-\frac {5 c \sqrt {1-a^2 x^2} (a x+1)}{6 a}-\frac {5 c \sqrt {1-a^2 x^2}}{2 a}+\frac {5 c \sin ^{-1}(a x)}{2 a} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 216
Rule 641
Rule 671
Rule 6138
Rubi steps
\begin {align*} \int e^{3 \tanh ^{-1}(a x)} \left (c-a^2 c x^2\right ) \, dx &=c \int \frac {(1+a x)^3}{\sqrt {1-a^2 x^2}} \, dx\\ &=-\frac {c (1+a x)^2 \sqrt {1-a^2 x^2}}{3 a}+\frac {1}{3} (5 c) \int \frac {(1+a x)^2}{\sqrt {1-a^2 x^2}} \, dx\\ &=-\frac {5 c (1+a x) \sqrt {1-a^2 x^2}}{6 a}-\frac {c (1+a x)^2 \sqrt {1-a^2 x^2}}{3 a}+\frac {1}{2} (5 c) \int \frac {1+a x}{\sqrt {1-a^2 x^2}} \, dx\\ &=-\frac {5 c \sqrt {1-a^2 x^2}}{2 a}-\frac {5 c (1+a x) \sqrt {1-a^2 x^2}}{6 a}-\frac {c (1+a x)^2 \sqrt {1-a^2 x^2}}{3 a}+\frac {1}{2} (5 c) \int \frac {1}{\sqrt {1-a^2 x^2}} \, dx\\ &=-\frac {5 c \sqrt {1-a^2 x^2}}{2 a}-\frac {5 c (1+a x) \sqrt {1-a^2 x^2}}{6 a}-\frac {c (1+a x)^2 \sqrt {1-a^2 x^2}}{3 a}+\frac {5 c \sin ^{-1}(a x)}{2 a}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A] time = 0.05, size = 57, normalized size = 0.63 \[ -\frac {c \left (\sqrt {1-a^2 x^2} \left (2 a^2 x^2+9 a x+22\right )+30 \sin ^{-1}\left (\frac {\sqrt {1-a x}}{\sqrt {2}}\right )\right )}{6 a} \]
Warning: Unable to verify antiderivative.
[In]
[Out]
________________________________________________________________________________________
fricas [A] time = 0.63, size = 62, normalized size = 0.68 \[ -\frac {30 \, c \arctan \left (\frac {\sqrt {-a^{2} x^{2} + 1} - 1}{a x}\right ) + {\left (2 \, a^{2} c x^{2} + 9 \, a c x + 22 \, c\right )} \sqrt {-a^{2} x^{2} + 1}}{6 \, a} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [A] time = 0.29, size = 46, normalized size = 0.51 \[ \frac {5 \, c \arcsin \left (a x\right ) \mathrm {sgn}\relax (a)}{2 \, {\left | a \right |}} - \frac {1}{6} \, \sqrt {-a^{2} x^{2} + 1} {\left ({\left (2 \, a c x + 9 \, c\right )} x + \frac {22 \, c}{a}\right )} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [A] time = 0.05, size = 125, normalized size = 1.37 \[ \frac {c \,a^{3} x^{4}}{3 \sqrt {-a^{2} x^{2}+1}}+\frac {10 c a \,x^{2}}{3 \sqrt {-a^{2} x^{2}+1}}-\frac {11 c}{3 a \sqrt {-a^{2} x^{2}+1}}+\frac {3 c \,a^{2} x^{3}}{2 \sqrt {-a^{2} x^{2}+1}}-\frac {3 c x}{2 \sqrt {-a^{2} x^{2}+1}}+\frac {5 c \arctan \left (\frac {\sqrt {a^{2}}\, x}{\sqrt {-a^{2} x^{2}+1}}\right )}{2 \sqrt {a^{2}}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [A] time = 0.43, size = 106, normalized size = 1.16 \[ \frac {a^{3} c x^{4}}{3 \, \sqrt {-a^{2} x^{2} + 1}} + \frac {3 \, a^{2} c x^{3}}{2 \, \sqrt {-a^{2} x^{2} + 1}} + \frac {10 \, a c x^{2}}{3 \, \sqrt {-a^{2} x^{2} + 1}} - \frac {3 \, c x}{2 \, \sqrt {-a^{2} x^{2} + 1}} + \frac {5 \, c \arcsin \left (a x\right )}{2 \, a} - \frac {11 \, c}{3 \, \sqrt {-a^{2} x^{2} + 1} a} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [B] time = 0.04, size = 74, normalized size = 0.81 \[ \frac {5\,c\,\mathrm {asinh}\left (x\,\sqrt {-a^2}\right )}{2\,\sqrt {-a^2}}-\frac {3\,c\,x\,\sqrt {1-a^2\,x^2}}{2}-\frac {11\,c\,\sqrt {1-a^2\,x^2}}{3\,a}-\frac {a\,c\,x^2\,\sqrt {1-a^2\,x^2}}{3} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [A] time = 14.31, size = 218, normalized size = 2.40 \[ a^{3} c \left (\begin {cases} - \frac {x^{2} \sqrt {- a^{2} x^{2} + 1}}{3 a^{2}} - \frac {2 \sqrt {- a^{2} x^{2} + 1}}{3 a^{4}} & \text {for}\: a \neq 0 \\\frac {x^{4}}{4} & \text {otherwise} \end {cases}\right ) + 3 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 ) + 3 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]
________________________________________________________________________________________