3.4.45 \(\int (a+b x^2)^p \, dx\) [345]

Optimal. Leaf size=44 \[ x \left (a+b x^2\right )^p \left (1+\frac {b x^2}{a}\right )^{-p} \, _2F_1\left (\frac {1}{2},-p;\frac {3}{2};-\frac {b x^2}{a}\right ) \]

[Out]

x*(b*x^2+a)^p*hypergeom([1/2, -p],[3/2],-b*x^2/a)/((1+b*x^2/a)^p)

________________________________________________________________________________________

Rubi [A]
time = 0.01, antiderivative size = 44, normalized size of antiderivative = 1.00, number of steps used = 2, number of rules used = 2, integrand size = 9, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.222, Rules used = {252, 251} \begin {gather*} x \left (a+b x^2\right )^p \left (\frac {b x^2}{a}+1\right )^{-p} \, _2F_1\left (\frac {1}{2},-p;\frac {3}{2};-\frac {b x^2}{a}\right ) \end {gather*}

Antiderivative was successfully verified.

[In]

Int[(a + b*x^2)^p,x]

[Out]

(x*(a + b*x^2)^p*Hypergeometric2F1[1/2, -p, 3/2, -((b*x^2)/a)])/(1 + (b*x^2)/a)^p

Rule 251

Int[((a_) + (b_.)*(x_)^(n_))^(p_), x_Symbol] :> Simp[a^p*x*Hypergeometric2F1[-p, 1/n, 1/n + 1, (-b)*(x^n/a)],
x] /; FreeQ[{a, b, n, p}, x] &&  !IGtQ[p, 0] &&  !IntegerQ[1/n] &&  !ILtQ[Simplify[1/n + p], 0] && (IntegerQ[p
] || GtQ[a, 0])

Rule 252

Int[((a_) + (b_.)*(x_)^(n_))^(p_), x_Symbol] :> Dist[a^IntPart[p]*((a + b*x^n)^FracPart[p]/(1 + b*(x^n/a))^Fra
cPart[p]), Int[(1 + b*(x^n/a))^p, x], x] /; FreeQ[{a, b, n, p}, x] &&  !IGtQ[p, 0] &&  !IntegerQ[1/n] &&  !ILt
Q[Simplify[1/n + p], 0] &&  !(IntegerQ[p] || GtQ[a, 0])

Rubi steps

\begin {align*} \int \left (a+b x^2\right )^p \, dx &=\left (\left (a+b x^2\right )^p \left (1+\frac {b x^2}{a}\right )^{-p}\right ) \int \left (1+\frac {b x^2}{a}\right )^p \, dx\\ &=x \left (a+b x^2\right )^p \left (1+\frac {b x^2}{a}\right )^{-p} \, _2F_1\left (\frac {1}{2},-p;\frac {3}{2};-\frac {b x^2}{a}\right )\\ \end {align*}

________________________________________________________________________________________

Mathematica [A]
time = 0.00, size = 44, normalized size = 1.00 \begin {gather*} x \left (a+b x^2\right )^p \left (1+\frac {b x^2}{a}\right )^{-p} \, _2F_1\left (\frac {1}{2},-p;\frac {3}{2};-\frac {b x^2}{a}\right ) \end {gather*}

Antiderivative was successfully verified.

[In]

Integrate[(a + b*x^2)^p,x]

[Out]

(x*(a + b*x^2)^p*Hypergeometric2F1[1/2, -p, 3/2, -((b*x^2)/a)])/(1 + (b*x^2)/a)^p

________________________________________________________________________________________

Maple [F]
time = 0.00, size = 0, normalized size = 0.00 \[\int \left (b \,x^{2}+a \right )^{p}\, dx\]

Verification of antiderivative is not currently implemented for this CAS.

[In]

int((b*x^2+a)^p,x)

[Out]

int((b*x^2+a)^p,x)

________________________________________________________________________________________

Maxima [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Failed to integrate} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((b*x^2+a)^p,x, algorithm="maxima")

[Out]

integrate((b*x^2 + a)^p, x)

________________________________________________________________________________________

Fricas [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {could not integrate} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((b*x^2+a)^p,x, algorithm="fricas")

[Out]

integral((b*x^2 + a)^p, x)

________________________________________________________________________________________

Sympy [C] Result contains complex when optimal does not.
time = 1.07, size = 22, normalized size = 0.50 \begin {gather*} a^{p} x {{}_{2}F_{1}\left (\begin {matrix} \frac {1}{2}, - p \\ \frac {3}{2} \end {matrix}\middle | {\frac {b x^{2} e^{i \pi }}{a}} \right )} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((b*x**2+a)**p,x)

[Out]

a**p*x*hyper((1/2, -p), (3/2,), b*x**2*exp_polar(I*pi)/a)

________________________________________________________________________________________

Giac [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {could not integrate} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((b*x^2+a)^p,x, algorithm="giac")

[Out]

integrate((b*x^2 + a)^p, x)

________________________________________________________________________________________

Mupad [B]
time = 5.57, size = 41, normalized size = 0.93 \begin {gather*} \frac {x\,{\left (b\,x^2+a\right )}^p\,{{}}_2{\mathrm {F}}_1\left (\frac {1}{2},-p;\ \frac {3}{2};\ -\frac {b\,x^2}{a}\right )}{{\left (\frac {b\,x^2}{a}+1\right )}^p} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

int((a + b*x^2)^p,x)

[Out]

(x*(a + b*x^2)^p*hypergeom([1/2, -p], 3/2, -(b*x^2)/a))/((b*x^2)/a + 1)^p

________________________________________________________________________________________