\(\int \frac {x^2}{(a+b x^3) \sqrt {c+d x^3}} \, dx\) [553]

Optimal result
Mathematica [A] (verified)
Rubi [A] (verified)
Maple [A] (verified)
Fricas [A] (verification not implemented)
Sympy [A] (verification not implemented)
Maxima [F(-2)]
Giac [A] (verification not implemented)
Mupad [B] (verification not implemented)
Reduce [F]

Optimal result

Integrand size = 24, antiderivative size = 51 \[ \int \frac {x^2}{\left (a+b x^3\right ) \sqrt {c+d x^3}} \, dx=-\frac {2 \text {arctanh}\left (\frac {\sqrt {b} \sqrt {c+d x^3}}{\sqrt {b c-a d}}\right )}{3 \sqrt {b} \sqrt {b c-a d}} \] Output:

-2/3*arctanh(b^(1/2)*(d*x^3+c)^(1/2)/(-a*d+b*c)^(1/2))/b^(1/2)/(-a*d+b*c)^ 
(1/2)
 

Mathematica [A] (verified)

Time = 0.05 (sec) , antiderivative size = 51, normalized size of antiderivative = 1.00 \[ \int \frac {x^2}{\left (a+b x^3\right ) \sqrt {c+d x^3}} \, dx=\frac {2 \arctan \left (\frac {\sqrt {b} \sqrt {c+d x^3}}{\sqrt {-b c+a d}}\right )}{3 \sqrt {b} \sqrt {-b c+a d}} \] Input:

Integrate[x^2/((a + b*x^3)*Sqrt[c + d*x^3]),x]
 

Output:

(2*ArcTan[(Sqrt[b]*Sqrt[c + d*x^3])/Sqrt[-(b*c) + a*d]])/(3*Sqrt[b]*Sqrt[- 
(b*c) + a*d])
 

Rubi [A] (verified)

Time = 0.31 (sec) , antiderivative size = 51, normalized size of antiderivative = 1.00, number of steps used = 4, number of rules used = 3, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.125, Rules used = {946, 73, 221}

Below are the steps used by Rubi to obtain the solution. The rule number used for the transformation is given above next to the arrow. The rules definitions used are listed below.

\(\displaystyle \int \frac {x^2}{\left (a+b x^3\right ) \sqrt {c+d x^3}} \, dx\)

\(\Big \downarrow \) 946

\(\displaystyle \frac {1}{3} \int \frac {1}{\left (b x^3+a\right ) \sqrt {d x^3+c}}dx^3\)

\(\Big \downarrow \) 73

\(\displaystyle \frac {2 \int \frac {1}{\frac {b x^6}{d}+a-\frac {b c}{d}}d\sqrt {d x^3+c}}{3 d}\)

\(\Big \downarrow \) 221

\(\displaystyle -\frac {2 \text {arctanh}\left (\frac {\sqrt {b} \sqrt {c+d x^3}}{\sqrt {b c-a d}}\right )}{3 \sqrt {b} \sqrt {b c-a d}}\)

Input:

Int[x^2/((a + b*x^3)*Sqrt[c + d*x^3]),x]
 

Output:

(-2*ArcTanh[(Sqrt[b]*Sqrt[c + d*x^3])/Sqrt[b*c - a*d]])/(3*Sqrt[b]*Sqrt[b* 
c - a*d])
 

Defintions of rubi rules used

rule 73
Int[((a_.) + (b_.)*(x_))^(m_)*((c_.) + (d_.)*(x_))^(n_), x_Symbol] :> With[ 
{p = Denominator[m]}, Simp[p/b   Subst[Int[x^(p*(m + 1) - 1)*(c - a*(d/b) + 
 d*(x^p/b))^n, x], x, (a + b*x)^(1/p)], x]] /; FreeQ[{a, b, c, d}, x] && Lt 
Q[-1, m, 0] && LeQ[-1, n, 0] && LeQ[Denominator[n], Denominator[m]] && IntL 
inearQ[a, b, c, d, m, n, x]
 

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

rule 946
Int[(x_)^(m_.)*((a_) + (b_.)*(x_)^(n_))^(p_.)*((c_) + (d_.)*(x_)^(n_))^(q_. 
), x_Symbol] :> Simp[1/n   Subst[Int[(a + b*x)^p*(c + d*x)^q, x], x, x^n], 
x] /; FreeQ[{a, b, c, d, m, n, p, q}, x] && NeQ[b*c - a*d, 0] && EqQ[m - n 
+ 1, 0]
 
Maple [A] (verified)

Time = 0.99 (sec) , antiderivative size = 39, normalized size of antiderivative = 0.76

method result size
default \(\frac {2 \arctan \left (\frac {b \sqrt {d \,x^{3}+c}}{\sqrt {\left (a d -b c \right ) b}}\right )}{3 \sqrt {\left (a d -b c \right ) b}}\) \(39\)
pseudoelliptic \(\frac {2 \arctan \left (\frac {b \sqrt {d \,x^{3}+c}}{\sqrt {\left (a d -b c \right ) b}}\right )}{3 \sqrt {\left (a d -b c \right ) b}}\) \(39\)
elliptic \(-\frac {i \sqrt {2}\, \left (\munderset {\underline {\hspace {1.25 ex}}\alpha =\operatorname {RootOf}\left (b \,\textit {\_Z}^{3}+a \right )}{\sum }\frac {\left (-c \,d^{2}\right )^{\frac {1}{3}} \sqrt {2}\, \sqrt {\frac {i d \left (2 x +\frac {-i \sqrt {3}\, \left (-c \,d^{2}\right )^{\frac {1}{3}}+\left (-c \,d^{2}\right )^{\frac {1}{3}}}{d}\right )}{\left (-c \,d^{2}\right )^{\frac {1}{3}}}}\, \sqrt {\frac {d \left (x -\frac {\left (-c \,d^{2}\right )^{\frac {1}{3}}}{d}\right )}{-3 \left (-c \,d^{2}\right )^{\frac {1}{3}}+i \sqrt {3}\, \left (-c \,d^{2}\right )^{\frac {1}{3}}}}\, \sqrt {-\frac {i d \left (2 x +\frac {i \sqrt {3}\, \left (-c \,d^{2}\right )^{\frac {1}{3}}+\left (-c \,d^{2}\right )^{\frac {1}{3}}}{d}\right )}{2 \left (-c \,d^{2}\right )^{\frac {1}{3}}}}\, \left (i \left (-c \,d^{2}\right )^{\frac {1}{3}} \underline {\hspace {1.25 ex}}\alpha \sqrt {3}\, d -i \sqrt {3}\, \left (-c \,d^{2}\right )^{\frac {2}{3}}+2 \underline {\hspace {1.25 ex}}\alpha ^{2} d^{2}-\left (-c \,d^{2}\right )^{\frac {1}{3}} \underline {\hspace {1.25 ex}}\alpha d -\left (-c \,d^{2}\right )^{\frac {2}{3}}\right ) \operatorname {EllipticPi}\left (\frac {\sqrt {3}\, \sqrt {\frac {i \left (x +\frac {\left (-c \,d^{2}\right )^{\frac {1}{3}}}{2 d}-\frac {i \sqrt {3}\, \left (-c \,d^{2}\right )^{\frac {1}{3}}}{2 d}\right ) \sqrt {3}\, d}{\left (-c \,d^{2}\right )^{\frac {1}{3}}}}}{3}, \frac {b \left (2 i \left (-c \,d^{2}\right )^{\frac {1}{3}} \underline {\hspace {1.25 ex}}\alpha ^{2} \sqrt {3}\, d -i \left (-c \,d^{2}\right )^{\frac {2}{3}} \underline {\hspace {1.25 ex}}\alpha \sqrt {3}+i \sqrt {3}\, c d -3 \left (-c \,d^{2}\right )^{\frac {2}{3}} \underline {\hspace {1.25 ex}}\alpha -3 c d \right )}{2 d \left (a d -b c \right )}, \sqrt {\frac {i \sqrt {3}\, \left (-c \,d^{2}\right )^{\frac {1}{3}}}{d \left (-\frac {3 \left (-c \,d^{2}\right )^{\frac {1}{3}}}{2 d}+\frac {i \sqrt {3}\, \left (-c \,d^{2}\right )^{\frac {1}{3}}}{2 d}\right )}}\right )}{2 \left (a d -b c \right ) \sqrt {d \,x^{3}+c}}\right )}{3 d^{2}}\) \(426\)

Input:

int(x^2/(b*x^3+a)/(d*x^3+c)^(1/2),x,method=_RETURNVERBOSE)
 

Output:

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

Fricas [A] (verification not implemented)

Time = 0.10 (sec) , antiderivative size = 130, normalized size of antiderivative = 2.55 \[ \int \frac {x^2}{\left (a+b x^3\right ) \sqrt {c+d x^3}} \, dx=\left [\frac {\log \left (\frac {b d x^{3} + 2 \, b c - a d - 2 \, \sqrt {d x^{3} + c} \sqrt {b^{2} c - a b d}}{b x^{3} + a}\right )}{3 \, \sqrt {b^{2} c - a b d}}, \frac {2 \, \sqrt {-b^{2} c + a b d} \arctan \left (\frac {\sqrt {d x^{3} + c} \sqrt {-b^{2} c + a b d}}{b d x^{3} + b c}\right )}{3 \, {\left (b^{2} c - a b d\right )}}\right ] \] Input:

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

Output:

[1/3*log((b*d*x^3 + 2*b*c - a*d - 2*sqrt(d*x^3 + c)*sqrt(b^2*c - a*b*d))/( 
b*x^3 + a))/sqrt(b^2*c - a*b*d), 2/3*sqrt(-b^2*c + a*b*d)*arctan(sqrt(d*x^ 
3 + c)*sqrt(-b^2*c + a*b*d)/(b*d*x^3 + b*c))/(b^2*c - a*b*d)]
 

Sympy [A] (verification not implemented)

Time = 4.49 (sec) , antiderivative size = 88, normalized size of antiderivative = 1.73 \[ \int \frac {x^2}{\left (a+b x^3\right ) \sqrt {c+d x^3}} \, dx=\begin {cases} \frac {2 \operatorname {atan}{\left (\frac {\sqrt {c + d x^{3}}}{\sqrt {\frac {a d - b c}{b}}} \right )}}{3 b \sqrt {\frac {a d - b c}{b}}} & \text {for}\: d \neq 0 \\\begin {cases} \frac {x^{3}}{3 a \sqrt {c}} & \text {for}\: b = 0 \\\tilde {\infty } x^{3} & \text {for}\: \sqrt {c} = 0 \\\frac {\log {\left (3 a \sqrt {c} + 3 b \sqrt {c} x^{3} \right )}}{3 b \sqrt {c}} & \text {otherwise} \end {cases} & \text {otherwise} \end {cases} \] Input:

integrate(x**2/(b*x**3+a)/(d*x**3+c)**(1/2),x)
 

Output:

Piecewise((2*atan(sqrt(c + d*x**3)/sqrt((a*d - b*c)/b))/(3*b*sqrt((a*d - b 
*c)/b)), Ne(d, 0)), (Piecewise((x**3/(3*a*sqrt(c)), Eq(b, 0)), (zoo*x**3, 
Eq(sqrt(c), 0)), (log(3*a*sqrt(c) + 3*b*sqrt(c)*x**3)/(3*b*sqrt(c)), True) 
), True))
 

Maxima [F(-2)]

Exception generated. \[ \int \frac {x^2}{\left (a+b x^3\right ) \sqrt {c+d x^3}} \, dx=\text {Exception raised: ValueError} \] Input:

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

Output:

Exception raised: ValueError >> Computation failed since Maxima requested 
additional constraints; using the 'assume' command before evaluation *may* 
 help (example of legal syntax is 'assume(a*d-b*c>0)', see `assume?` for m 
ore detail
 

Giac [A] (verification not implemented)

Time = 0.12 (sec) , antiderivative size = 40, normalized size of antiderivative = 0.78 \[ \int \frac {x^2}{\left (a+b x^3\right ) \sqrt {c+d x^3}} \, dx=\frac {2 \, \arctan \left (\frac {\sqrt {d x^{3} + c} b}{\sqrt {-b^{2} c + a b d}}\right )}{3 \, \sqrt {-b^{2} c + a b d}} \] Input:

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

Output:

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

Mupad [B] (verification not implemented)

Time = 4.62 (sec) , antiderivative size = 70, normalized size of antiderivative = 1.37 \[ \int \frac {x^2}{\left (a+b x^3\right ) \sqrt {c+d x^3}} \, dx=\frac {\ln \left (\frac {a\,d\,1{}\mathrm {i}-b\,c\,2{}\mathrm {i}+2\,\sqrt {d\,x^3+c}\,\sqrt {a\,b\,d-b^2\,c}-b\,d\,x^3\,1{}\mathrm {i}}{b\,x^3+a}\right )\,1{}\mathrm {i}}{3\,\sqrt {a\,b\,d-b^2\,c}} \] Input:

int(x^2/((a + b*x^3)*(c + d*x^3)^(1/2)),x)
 

Output:

(log((a*d*1i - b*c*2i + 2*(c + d*x^3)^(1/2)*(a*b*d - b^2*c)^(1/2) - b*d*x^ 
3*1i)/(a + b*x^3))*1i)/(3*(a*b*d - b^2*c)^(1/2))
 

Reduce [F]

\[ \int \frac {x^2}{\left (a+b x^3\right ) \sqrt {c+d x^3}} \, dx=\int \frac {\sqrt {d \,x^{3}+c}\, x^{2}}{b d \,x^{6}+a d \,x^{3}+b c \,x^{3}+a c}d x \] Input:

int(x^2/(b*x^3+a)/(d*x^3+c)^(1/2),x)
 

Output:

int((sqrt(c + d*x**3)*x**2)/(a*c + a*d*x**3 + b*c*x**3 + b*d*x**6),x)