Optimal. Leaf size=39 \[ \frac {1}{2} b c \sqrt {1-\frac {c^2}{x^2}} x+\frac {1}{2} x^2 \left (a+b \text {ArcSin}\left (\frac {c}{x}\right )\right ) \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.01, antiderivative size = 39, normalized size of antiderivative = 1.00, number of steps
used = 3, number of rules used = 3, integrand size = 12, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.250, Rules used = {4926, 12, 197}
\begin {gather*} \frac {1}{2} x^2 \left (a+b \text {ArcSin}\left (\frac {c}{x}\right )\right )+\frac {1}{2} b c x \sqrt {1-\frac {c^2}{x^2}} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 12
Rule 197
Rule 4926
Rubi steps
\begin {align*} \int x \left (a+b \sin ^{-1}\left (\frac {c}{x}\right )\right ) \, dx &=\frac {1}{2} x^2 \left (a+b \sin ^{-1}\left (\frac {c}{x}\right )\right )+\frac {1}{2} b \int \frac {c}{\sqrt {1-\frac {c^2}{x^2}}} \, dx\\ &=\frac {1}{2} x^2 \left (a+b \sin ^{-1}\left (\frac {c}{x}\right )\right )+\frac {1}{2} (b c) \int \frac {1}{\sqrt {1-\frac {c^2}{x^2}}} \, dx\\ &=\frac {1}{2} b c \sqrt {1-\frac {c^2}{x^2}} x+\frac {1}{2} x^2 \left (a+b \sin ^{-1}\left (\frac {c}{x}\right )\right )\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.03, size = 47, normalized size = 1.21 \begin {gather*} \frac {a x^2}{2}+\frac {1}{2} b c x \sqrt {\frac {-c^2+x^2}{x^2}}+\frac {1}{2} b x^2 \text {ArcSin}\left (\frac {c}{x}\right ) \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A]
time = 0.02, size = 51, normalized size = 1.31
method | result | size |
derivativedivides | \(-c^{2} \left (-\frac {a \,x^{2}}{2 c^{2}}+b \left (-\frac {x^{2} \arcsin \left (\frac {c}{x}\right )}{2 c^{2}}-\frac {x \sqrt {1-\frac {c^{2}}{x^{2}}}}{2 c}\right )\right )\) | \(51\) |
default | \(-c^{2} \left (-\frac {a \,x^{2}}{2 c^{2}}+b \left (-\frac {x^{2} \arcsin \left (\frac {c}{x}\right )}{2 c^{2}}-\frac {x \sqrt {1-\frac {c^{2}}{x^{2}}}}{2 c}\right )\right )\) | \(51\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A]
time = 0.47, size = 36, normalized size = 0.92 \begin {gather*} \frac {1}{2} \, a x^{2} + \frac {1}{2} \, {\left (x^{2} \arcsin \left (\frac {c}{x}\right ) + c x \sqrt {-\frac {c^{2}}{x^{2}} + 1}\right )} b \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A]
time = 2.42, size = 40, normalized size = 1.03 \begin {gather*} \frac {1}{2} \, b x^{2} \arcsin \left (\frac {c}{x}\right ) + \frac {1}{2} \, b c x \sqrt {-\frac {c^{2} - x^{2}}{x^{2}}} + \frac {1}{2} \, a x^{2} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [A]
time = 1.21, size = 58, normalized size = 1.49 \begin {gather*} \frac {a x^{2}}{2} + \frac {b c \left (\begin {cases} c \sqrt {-1 + \frac {x^{2}}{c^{2}}} & \text {for}\: \left |{\frac {x^{2}}{c^{2}}}\right | > 1 \\i c \sqrt {1 - \frac {x^{2}}{c^{2}}} & \text {otherwise} \end {cases}\right )}{2} + \frac {b x^{2} \operatorname {asin}{\left (\frac {c}{x} \right )}}{2} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [B] Leaf count of result is larger than twice the leaf count of optimal. 174 vs.
\(2 (33) = 66\).
time = 0.42, size = 174, normalized size = 4.46 \begin {gather*} \frac {b c x^{2} {\left (\sqrt {-\frac {c^{2}}{x^{2}} + 1} + 1\right )}^{2} \arcsin \left (\frac {c}{x}\right ) + a c x^{2} {\left (\sqrt {-\frac {c^{2}}{x^{2}} + 1} + 1\right )}^{2} + 2 \, b c^{2} x {\left (\sqrt {-\frac {c^{2}}{x^{2}} + 1} + 1\right )} + 2 \, b c^{3} \arcsin \left (\frac {c}{x}\right ) + 2 \, a c^{3} - \frac {2 \, b c^{4}}{x {\left (\sqrt {-\frac {c^{2}}{x^{2}} + 1} + 1\right )}} + \frac {b c^{5} \arcsin \left (\frac {c}{x}\right )}{x^{2} {\left (\sqrt {-\frac {c^{2}}{x^{2}} + 1} + 1\right )}^{2}} + \frac {a c^{5}}{x^{2} {\left (\sqrt {-\frac {c^{2}}{x^{2}} + 1} + 1\right )}^{2}}}{8 \, c} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [B]
time = 0.29, size = 36, normalized size = 0.92 \begin {gather*} \frac {a\,x^2}{2}+\frac {b\,x^2\,\mathrm {asin}\left (\frac {c}{x}\right )}{2}+\frac {b\,c\,x\,\sqrt {1-\frac {c^2}{x^2}}}{2} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________