3.4.43 \(\int (a+b x^2)^p (c+d x^2)^2 \, dx\) [343]

Optimal. Leaf size=176 \[ -\frac {d (3 a d-b c (7+2 p)) x \left (a+b x^2\right )^{1+p}}{b^2 (3+2 p) (5+2 p)}+\frac {d x \left (a+b x^2\right )^{1+p} \left (c+d x^2\right )}{b (5+2 p)}+\frac {\left (3 a^2 d^2-2 a b c d (5+2 p)+b^2 c^2 \left (15+16 p+4 p^2\right )\right ) 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 )}{b^2 (3+2 p) (5+2 p)} \]

[Out]

-d*(3*a*d-b*c*(7+2*p))*x*(b*x^2+a)^(1+p)/b^2/(4*p^2+16*p+15)+d*x*(b*x^2+a)^(1+p)*(d*x^2+c)/b/(5+2*p)+(3*a^2*d^
2-2*a*b*c*d*(5+2*p)+b^2*c^2*(4*p^2+16*p+15))*x*(b*x^2+a)^p*hypergeom([1/2, -p],[3/2],-b*x^2/a)/b^2/(4*p^2+16*p
+15)/((1+b*x^2/a)^p)

________________________________________________________________________________________

Rubi [A]
time = 0.08, antiderivative size = 176, normalized size of antiderivative = 1.00, number of steps used = 4, number of rules used = 4, integrand size = 19, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.210, Rules used = {427, 396, 252, 251} \begin {gather*} \frac {x \left (a+b x^2\right )^p \left (\frac {b x^2}{a}+1\right )^{-p} \left (3 a^2 d^2-2 a b c d (2 p+5)+b^2 c^2 \left (4 p^2+16 p+15\right )\right ) \, _2F_1\left (\frac {1}{2},-p;\frac {3}{2};-\frac {b x^2}{a}\right )}{b^2 (2 p+3) (2 p+5)}-\frac {d x \left (a+b x^2\right )^{p+1} (3 a d-b c (2 p+7))}{b^2 (2 p+3) (2 p+5)}+\frac {d x \left (c+d x^2\right ) \left (a+b x^2\right )^{p+1}}{b (2 p+5)} \end {gather*}

Antiderivative was successfully verified.

[In]

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

[Out]

-((d*(3*a*d - b*c*(7 + 2*p))*x*(a + b*x^2)^(1 + p))/(b^2*(3 + 2*p)*(5 + 2*p))) + (d*x*(a + b*x^2)^(1 + p)*(c +
 d*x^2))/(b*(5 + 2*p)) + ((3*a^2*d^2 - 2*a*b*c*d*(5 + 2*p) + b^2*c^2*(15 + 16*p + 4*p^2))*x*(a + b*x^2)^p*Hype
rgeometric2F1[1/2, -p, 3/2, -((b*x^2)/a)])/(b^2*(3 + 2*p)*(5 + 2*p)*(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])

Rule 396

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

Rule 427

Int[((a_) + (b_.)*(x_)^(n_))^(p_)*((c_) + (d_.)*(x_)^(n_))^(q_), x_Symbol] :> Simp[d*x*(a + b*x^n)^(p + 1)*((c
 + d*x^n)^(q - 1)/(b*(n*(p + q) + 1))), x] + Dist[1/(b*(n*(p + q) + 1)), Int[(a + b*x^n)^p*(c + d*x^n)^(q - 2)
*Simp[c*(b*c*(n*(p + q) + 1) - a*d) + d*(b*c*(n*(p + 2*q - 1) + 1) - a*d*(n*(q - 1) + 1))*x^n, x], x], x] /; F
reeQ[{a, b, c, d, n, p}, x] && NeQ[b*c - a*d, 0] && GtQ[q, 1] && NeQ[n*(p + q) + 1, 0] &&  !IGtQ[p, 1] && IntB
inomialQ[a, b, c, d, n, p, q, x]

Rubi steps

\begin {align*} \int \left (a+b x^2\right )^p \left (c+d x^2\right )^2 \, dx &=\frac {d x \left (a+b x^2\right )^{1+p} \left (c+d x^2\right )}{b (5+2 p)}+\frac {\int \left (a+b x^2\right )^p \left (-c (a d-b c (5+2 p))-d (3 a d-b c (7+2 p)) x^2\right ) \, dx}{b (5+2 p)}\\ &=-\frac {d (3 a d-b c (7+2 p)) x \left (a+b x^2\right )^{1+p}}{b^2 (3+2 p) (5+2 p)}+\frac {d x \left (a+b x^2\right )^{1+p} \left (c+d x^2\right )}{b (5+2 p)}+\frac {\left (3 a^2 d^2-2 a b c d (5+2 p)+b^2 c^2 \left (15+16 p+4 p^2\right )\right ) \int \left (a+b x^2\right )^p \, dx}{b^2 (3+2 p) (5+2 p)}\\ &=-\frac {d (3 a d-b c (7+2 p)) x \left (a+b x^2\right )^{1+p}}{b^2 (3+2 p) (5+2 p)}+\frac {d x \left (a+b x^2\right )^{1+p} \left (c+d x^2\right )}{b (5+2 p)}+\frac {\left (\left (3 a^2 d^2-2 a b c d (5+2 p)+b^2 c^2 \left (15+16 p+4 p^2\right )\right ) \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}{b^2 (3+2 p) (5+2 p)}\\ &=-\frac {d (3 a d-b c (7+2 p)) x \left (a+b x^2\right )^{1+p}}{b^2 (3+2 p) (5+2 p)}+\frac {d x \left (a+b x^2\right )^{1+p} \left (c+d x^2\right )}{b (5+2 p)}+\frac {\left (3 a^2 d^2-2 a b c d (5+2 p)+b^2 c^2 \left (15+16 p+4 p^2\right )\right ) 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 )}{b^2 (3+2 p) (5+2 p)}\\ \end {align*}

________________________________________________________________________________________

Mathematica [A]
time = 5.10, size = 106, normalized size = 0.60 \begin {gather*} \frac {1}{15} x \left (a+b x^2\right )^p \left (1+\frac {b x^2}{a}\right )^{-p} \left (15 c^2 \, _2F_1\left (\frac {1}{2},-p;\frac {3}{2};-\frac {b x^2}{a}\right )+d x^2 \left (10 c \, _2F_1\left (\frac {3}{2},-p;\frac {5}{2};-\frac {b x^2}{a}\right )+3 d x^2 \, _2F_1\left (\frac {5}{2},-p;\frac {7}{2};-\frac {b x^2}{a}\right )\right )\right ) \end {gather*}

Antiderivative was successfully verified.

[In]

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

[Out]

(x*(a + b*x^2)^p*(15*c^2*Hypergeometric2F1[1/2, -p, 3/2, -((b*x^2)/a)] + d*x^2*(10*c*Hypergeometric2F1[3/2, -p
, 5/2, -((b*x^2)/a)] + 3*d*x^2*Hypergeometric2F1[5/2, -p, 7/2, -((b*x^2)/a)])))/(15*(1 + (b*x^2)/a)^p)

________________________________________________________________________________________

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

Verification of antiderivative is not currently implemented for this CAS.

[In]

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

[Out]

int((b*x^2+a)^p*(d*x^2+c)^2,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*(d*x^2+c)^2,x, algorithm="maxima")

[Out]

integrate((d*x^2 + c)^2*(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*(d*x^2+c)^2,x, algorithm="fricas")

[Out]

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

________________________________________________________________________________________

Sympy [C] Result contains complex when optimal does not.
time = 9.93, size = 88, normalized size = 0.50 \begin {gather*} a^{p} c^{2} 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 )} + \frac {2 a^{p} c d x^{3} {{}_{2}F_{1}\left (\begin {matrix} \frac {3}{2}, - p \\ \frac {5}{2} \end {matrix}\middle | {\frac {b x^{2} e^{i \pi }}{a}} \right )}}{3} + \frac {a^{p} d^{2} x^{5} {{}_{2}F_{1}\left (\begin {matrix} \frac {5}{2}, - p \\ \frac {7}{2} \end {matrix}\middle | {\frac {b x^{2} e^{i \pi }}{a}} \right )}}{5} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

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

[Out]

a**p*c**2*x*hyper((1/2, -p), (3/2,), b*x**2*exp_polar(I*pi)/a) + 2*a**p*c*d*x**3*hyper((3/2, -p), (5/2,), b*x*
*2*exp_polar(I*pi)/a)/3 + a**p*d**2*x**5*hyper((5/2, -p), (7/2,), b*x**2*exp_polar(I*pi)/a)/5

________________________________________________________________________________________

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*(d*x^2+c)^2,x, algorithm="giac")

[Out]

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

________________________________________________________________________________________

Mupad [F]
time = 0.00, size = -1, normalized size = -0.01 \begin {gather*} \int {\left (b\,x^2+a\right )}^p\,{\left (d\,x^2+c\right )}^2 \,d x \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

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

[Out]

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

________________________________________________________________________________________