Optimal. Leaf size=58 \[ \frac{a x^2}{2}+\frac{b \left (c+d x^2\right ) \sec ^{-1}\left (c+d x^2\right )}{2 d}-\frac{b \tanh ^{-1}\left (\sqrt{1-\frac{1}{\left (c+d x^2\right )^2}}\right )}{2 d} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.0729258, antiderivative size = 58, normalized size of antiderivative = 1., number of steps used = 7, number of rules used = 6, integrand size = 14, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.429, Rules used = {6715, 5250, 372, 266, 63, 206} \[ \frac{a x^2}{2}+\frac{b \left (c+d x^2\right ) \sec ^{-1}\left (c+d x^2\right )}{2 d}-\frac{b \tanh ^{-1}\left (\sqrt{1-\frac{1}{\left (c+d x^2\right )^2}}\right )}{2 d} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 6715
Rule 5250
Rule 372
Rule 266
Rule 63
Rule 206
Rubi steps
\begin{align*} \int x \left (a+b \sec ^{-1}\left (c+d x^2\right )\right ) \, dx &=\frac{1}{2} \operatorname{Subst}\left (\int \left (a+b \sec ^{-1}(c+d x)\right ) \, dx,x,x^2\right )\\ &=\frac{a x^2}{2}+\frac{1}{2} b \operatorname{Subst}\left (\int \sec ^{-1}(c+d x) \, dx,x,x^2\right )\\ &=\frac{a x^2}{2}+\frac{b \left (c+d x^2\right ) \sec ^{-1}\left (c+d x^2\right )}{2 d}-\frac{1}{2} b \operatorname{Subst}\left (\int \frac{1}{(c+d x) \sqrt{1-\frac{1}{(c+d x)^2}}} \, dx,x,x^2\right )\\ &=\frac{a x^2}{2}+\frac{b \left (c+d x^2\right ) \sec ^{-1}\left (c+d x^2\right )}{2 d}-\frac{b \operatorname{Subst}\left (\int \frac{1}{\sqrt{1-\frac{1}{x^2}} x} \, dx,x,c+d x^2\right )}{2 d}\\ &=\frac{a x^2}{2}+\frac{b \left (c+d x^2\right ) \sec ^{-1}\left (c+d x^2\right )}{2 d}+\frac{b \operatorname{Subst}\left (\int \frac{1}{\sqrt{1-x} x} \, dx,x,\frac{1}{\left (c+d x^2\right )^2}\right )}{4 d}\\ &=\frac{a x^2}{2}+\frac{b \left (c+d x^2\right ) \sec ^{-1}\left (c+d x^2\right )}{2 d}-\frac{b \operatorname{Subst}\left (\int \frac{1}{1-x^2} \, dx,x,\sqrt{1-\frac{1}{\left (c+d x^2\right )^2}}\right )}{2 d}\\ &=\frac{a x^2}{2}+\frac{b \left (c+d x^2\right ) \sec ^{-1}\left (c+d x^2\right )}{2 d}-\frac{b \tanh ^{-1}\left (\sqrt{1-\frac{1}{\left (c+d x^2\right )^2}}\right )}{2 d}\\ \end{align*}
Mathematica [B] time = 0.223293, size = 148, normalized size = 2.55 \[ \frac{a x^2}{2}-\frac{b \left (c+d x^2\right ) \sqrt{\frac{c^2+2 c d x^2+d^2 x^4-1}{\left (c+d x^2\right )^2}} \left (\tanh ^{-1}\left (\frac{c+d x^2}{\sqrt{c^2+2 c d x^2+d^2 x^4-1}}\right )-c \tan ^{-1}\left (\sqrt{\left (c+d x^2\right )^2-1}\right )\right )}{2 d \sqrt{c^2+2 c d x^2+d^2 x^4-1}}+\frac{1}{2} b x^2 \sec ^{-1}\left (c+d x^2\right ) \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A] time = 0.254, size = 81, normalized size = 1.4 \begin{align*}{\frac{{\rm arcsec} \left (d{x}^{2}+c\right ){x}^{2}b}{2}}+{\frac{a{x}^{2}}{2}}+{\frac{b{\rm arcsec} \left (d{x}^{2}+c\right )c}{2\,d}}-{\frac{b}{2\,d}\ln \left ( d{x}^{2}+c+ \left ( d{x}^{2}+c \right ) \sqrt{1- \left ( d{x}^{2}+c \right ) ^{-2}} \right ) }+{\frac{ac}{2\,d}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A] time = 0.970845, size = 96, normalized size = 1.66 \begin{align*} \frac{1}{2} \, a x^{2} + \frac{{\left (2 \,{\left (d x^{2} + c\right )} \operatorname{arcsec}\left (d x^{2} + c\right ) - \log \left (\sqrt{-\frac{1}{{\left (d x^{2} + c\right )}^{2}} + 1} + 1\right ) + \log \left (-\sqrt{-\frac{1}{{\left (d x^{2} + c\right )}^{2}} + 1} + 1\right )\right )} b}{4 \, d} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A] time = 2.84079, size = 227, normalized size = 3.91 \begin{align*} \frac{b d x^{2} \operatorname{arcsec}\left (d x^{2} + c\right ) + a d x^{2} + 2 \, b c \arctan \left (-d x^{2} - c + \sqrt{d^{2} x^{4} + 2 \, c d x^{2} + c^{2} - 1}\right ) + b \log \left (-d x^{2} - c + \sqrt{d^{2} x^{4} + 2 \, c d x^{2} + c^{2} - 1}\right )}{2 \, d} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F(-1)] time = 0., size = 0, normalized size = 0. \begin{align*} \text{Timed out} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int{\left (b \operatorname{arcsec}\left (d x^{2} + c\right ) + a\right )} x\,{d x} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]