3.101 \(\int \frac{x^2}{\sqrt{1-(a+b x)^2}} \, dx\)

Optimal. Leaf size=67 \[ \frac{\left (2 a^2+1\right ) \sin ^{-1}(a+b x)}{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} \]

[Out]

(3*a*Sqrt[1 - (a + b*x)^2])/(2*b^3) - (x*Sqrt[1 - (a + b*x)^2])/(2*b^2) + ((1 + 2*a^2)*ArcSin[a + b*x])/(2*b^3
)

________________________________________________________________________________________

Rubi [A]  time = 0.0485348, antiderivative size = 67, normalized size of antiderivative = 1., number of steps used = 4, number of rules used = 4, integrand size = 19, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.21, Rules used = {371, 743, 641, 216} \[ \frac{\left (2 a^2+1\right ) \sin ^{-1}(a+b x)}{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} \]

Antiderivative was successfully verified.

[In]

Int[x^2/Sqrt[1 - (a + b*x)^2],x]

[Out]

(3*a*Sqrt[1 - (a + b*x)^2])/(2*b^3) - (x*Sqrt[1 - (a + b*x)^2])/(2*b^2) + ((1 + 2*a^2)*ArcSin[a + b*x])/(2*b^3
)

Rule 371

Int[((a_) + (b_.)*(v_)^(n_))^(p_.)*(x_)^(m_.), x_Symbol] :> With[{c = Coefficient[v, x, 0], d = Coefficient[v,
 x, 1]}, Dist[1/d^(m + 1), Subst[Int[SimplifyIntegrand[(x - c)^m*(a + b*x^n)^p, x], x], x, v], x] /; NeQ[c, 0]
] /; FreeQ[{a, b, n, p}, x] && LinearQ[v, x] && IntegerQ[m]

Rule 743

Int[((d_) + (e_.)*(x_))^(m_)*((a_) + (c_.)*(x_)^2)^(p_), x_Symbol] :> Simp[(e*(d + e*x)^(m - 1)*(a + c*x^2)^(p
 + 1))/(c*(m + 2*p + 1)), x] + Dist[1/(c*(m + 2*p + 1)), Int[(d + e*x)^(m - 2)*Simp[c*d^2*(m + 2*p + 1) - a*e^
2*(m - 1) + 2*c*d*e*(m + p)*x, x]*(a + c*x^2)^p, x], x] /; FreeQ[{a, c, d, e, m, p}, x] && NeQ[c*d^2 + a*e^2,
0] && If[RationalQ[m], GtQ[m, 1], SumSimplerQ[m, -2]] && NeQ[m + 2*p + 1, 0] && IntQuadraticQ[a, 0, c, d, e, m
, p, x]

Rule 641

Int[((d_) + (e_.)*(x_))*((a_) + (c_.)*(x_)^2)^(p_.), x_Symbol] :> Simp[(e*(a + c*x^2)^(p + 1))/(2*c*(p + 1)),
x] + Dist[d, Int[(a + c*x^2)^p, x], x] /; FreeQ[{a, c, d, e, p}, x] && NeQ[p, -1]

Rule 216

Int[1/Sqrt[(a_) + (b_.)*(x_)^2], x_Symbol] :> Simp[ArcSin[(Rt[-b, 2]*x)/Sqrt[a]]/Rt[-b, 2], x] /; FreeQ[{a, b}
, x] && GtQ[a, 0] && NegQ[b]

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 ) \sin ^{-1}(a+b x)}{2 b^3}\\ \end{align*}

Mathematica [A]  time = 0.069198, size = 55, normalized size = 0.82 \[ \frac{\sqrt{-a^2-2 a b x-b^2 x^2+1} (3 a-b x)+\left (2 a^2+1\right ) \sin ^{-1}(a+b x)}{2 b^3} \]

Antiderivative was successfully verified.

[In]

Integrate[x^2/Sqrt[1 - (a + b*x)^2],x]

[Out]

((3*a - b*x)*Sqrt[1 - a^2 - 2*a*b*x - b^2*x^2] + (1 + 2*a^2)*ArcSin[a + b*x])/(2*b^3)

________________________________________________________________________________________

Maple [B]  time = 0.016, size = 152, 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}}\arctan \left ({\sqrt{{b}^{2}} \left ({\frac{a}{b}}+x \right ){\frac{1}{\sqrt{-{b}^{2}{x}^{2}-2\,abx-{a}^{2}+1}}}} \right ){\frac{1}{\sqrt{{b}^{2}}}}}+{\frac{1}{2\,{b}^{2}}\arctan \left ({\sqrt{{b}^{2}} \left ({\frac{a}{b}}+x \right ){\frac{1}{\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]

int(x^2/(1-(b*x+a)^2)^(1/2),x)

[Out]

-1/2*x/b^2*(-b^2*x^2-2*a*b*x-a^2+1)^(1/2)+3/2*a/b^3*(-b^2*x^2-2*a*b*x-a^2+1)^(1/2)+a^2/b^2/(b^2)^(1/2)*arctan(
(b^2)^(1/2)*(a/b+x)/(-b^2*x^2-2*a*b*x-a^2+1)^(1/2))+1/2/b^2/(b^2)^(1/2)*arctan((b^2)^(1/2)*(a/b+x)/(-b^2*x^2-2
*a*b*x-a^2+1)^(1/2))

________________________________________________________________________________________

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]

integrate(x^2/(1-(b*x+a)^2)^(1/2),x, algorithm="maxima")

[Out]

Exception raised: ValueError

________________________________________________________________________________________

Fricas [A]  time = 1.87414, size = 211, normalized size = 3.15 \begin{align*} -\frac{{\left (2 \, a^{2} + 1\right )} \arctan \left (\frac{\sqrt{-b^{2} x^{2} - 2 \, a b x - a^{2} + 1}{\left (b x + a\right )}}{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]

integrate(x^2/(1-(b*x+a)^2)^(1/2),x, algorithm="fricas")

[Out]

-1/2*((2*a^2 + 1)*arctan(sqrt(-b^2*x^2 - 2*a*b*x - a^2 + 1)*(b*x + a)/(b^2*x^2 + 2*a*b*x + a^2 - 1)) + sqrt(-b
^2*x^2 - 2*a*b*x - a^2 + 1)*(b*x - 3*a))/b^3

________________________________________________________________________________________

Sympy [F]  time = 0., size = 0, normalized size = 0. \begin{align*} \int \frac{x^{2}}{\sqrt{- \left (a + b x - 1\right ) \left (a + b x + 1\right )}}\, dx \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(x**2/(1-(b*x+a)**2)**(1/2),x)

[Out]

Integral(x**2/sqrt(-(a + b*x - 1)*(a + b*x + 1)), x)

________________________________________________________________________________________

Giac [A]  time = 1.16016, size = 74, normalized size = 1.1 \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 )} \arcsin \left (-b x - a\right ) \mathrm{sgn}\left (b\right )}{2 \, b^{2}{\left | b \right |}} \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(x^2/(1-(b*x+a)^2)^(1/2),x, algorithm="giac")

[Out]

-1/2*sqrt(-(b*x + a)^2 + 1)*(x/b^2 - 3*a/b^3) - 1/2*(2*a^2 + 1)*arcsin(-b*x - a)*sgn(b)/(b^2*abs(b))