Optimal. Leaf size=63 \[ -\frac{\left (1-2 a^2\right ) \sinh ^{-1}(a+b x)}{2 b^3}-\frac{3 a \sqrt{(a+b x)^2+1}}{2 b^3}+\frac{x \sqrt{(a+b x)^2+1}}{2 b^2} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.0404596, antiderivative size = 63, normalized size of antiderivative = 1., number of steps used = 4, number of rules used = 4, integrand size = 17, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.235, Rules used = {371, 743, 641, 215} \[ -\frac{\left (1-2 a^2\right ) \sinh ^{-1}(a+b x)}{2 b^3}-\frac{3 a \sqrt{(a+b x)^2+1}}{2 b^3}+\frac{x \sqrt{(a+b x)^2+1}}{2 b^2} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 371
Rule 743
Rule 641
Rule 215
Rubi steps
\begin{align*} \int \frac{x^2}{\sqrt{1+(a+b x)^2}} \, dx &=\frac{\operatorname{Subst}\left (\int \frac{(-a+x)^2}{\sqrt{1+x^2}} \, dx,x,a+b x\right )}{b^3}\\ &=\frac{x \sqrt{1+(a+b x)^2}}{2 b^2}+\frac{\operatorname{Subst}\left (\int \frac{-1+2 a^2-3 a x}{\sqrt{1+x^2}} \, dx,x,a+b x\right )}{2 b^3}\\ &=-\frac{3 a \sqrt{1+(a+b x)^2}}{2 b^3}+\frac{x \sqrt{1+(a+b x)^2}}{2 b^2}-\frac{\left (1-2 a^2\right ) \operatorname{Subst}\left (\int \frac{1}{\sqrt{1+x^2}} \, dx,x,a+b x\right )}{2 b^3}\\ &=-\frac{3 a \sqrt{1+(a+b x)^2}}{2 b^3}+\frac{x \sqrt{1+(a+b x)^2}}{2 b^2}-\frac{\left (1-2 a^2\right ) \sinh ^{-1}(a+b x)}{2 b^3}\\ \end{align*}
Mathematica [A] time = 0.0565015, size = 51, normalized size = 0.81 \[ \frac{\sqrt{a^2+2 a b x+b^2 x^2+1} (b x-3 a)+\left (2 a^2-1\right ) \sinh ^{-1}(a+b x)}{2 b^3} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [B] time = 0.01, size = 146, normalized size = 2.3 \begin{align*}{\frac{x}{2\,{b}^{2}}\sqrt{{b}^{2}{x}^{2}+2\,abx+{a}^{2}+1}}-{\frac{3\,a}{2\,{b}^{3}}\sqrt{{b}^{2}{x}^{2}+2\,abx+{a}^{2}+1}}+{\frac{{a}^{2}}{{b}^{2}}\ln \left ({({b}^{2}x+ab){\frac{1}{\sqrt{{b}^{2}}}}}+\sqrt{{b}^{2}{x}^{2}+2\,abx+{a}^{2}+1} \right ){\frac{1}{\sqrt{{b}^{2}}}}}-{\frac{1}{2\,{b}^{2}}\ln \left ({({b}^{2}x+ab){\frac{1}{\sqrt{{b}^{2}}}}}+\sqrt{{b}^{2}{x}^{2}+2\,abx+{a}^{2}+1} \right ){\frac{1}{\sqrt{{b}^{2}}}}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F(-2)] time = 0., size = 0, normalized size = 0. \begin{align*} \text{Exception raised: ValueError} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A] time = 1.74386, size = 165, normalized size = 2.62 \begin{align*} -\frac{{\left (2 \, a^{2} - 1\right )} \log \left (-b x - a + \sqrt{b^{2} x^{2} + 2 \, a b x + a^{2} + 1}\right ) - \sqrt{b^{2} x^{2} + 2 \, a b x + a^{2} + 1}{\left (b x - 3 \, a\right )}}{2 \, b^{3}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int \frac{x^{2}}{\sqrt{a^{2} + 2 a b x + b^{2} x^{2} + 1}}\, dx \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A] time = 1.1905, size = 95, normalized size = 1.51 \begin{align*} \frac{1}{2} \, \sqrt{{\left (b x + a\right )}^{2} + 1}{\left (\frac{x}{b^{2}} - \frac{3 \, a}{b^{3}}\right )} - \frac{{\left (2 \, a^{2} - 1\right )} \log \left (-a b -{\left (x{\left | b \right |} - \sqrt{{\left (b x + a\right )}^{2} + 1}\right )}{\left | b \right |}\right )}{2 \, b^{2}{\left | b \right |}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]